text
stringlengths 1
22.8M
|
|---|
The Tour de San Benedettu () or Tour de Cala Rossa was a Genoese tower located in the commune of Lecci on the east coast of Corsica. The tower sat on the Punta di Benedettu at the north side of the Golfe de Porto-Vecchio. Only a few traces survive.
The tower was built in the second half of the 16th century. It was one of a series of coastal defences constructed by the Republic of Genoa between 1530 and 1620 to stem the attacks by Barbary pirates.
See also
List of Genoese towers in Corsica
References
Towers in Corsica
|
Clepsis ingenua is a species of moth of the family Tortricidae. It is found in Sikkim, India.
References
Moths described in 1912
Clepsis
|
The Gare de l'Est, also known as Kinshasa Est or Kinshasa Central Station (French: Gare centrale de Kinshasa), is a central railway station situated in the Gombe commune of Kinshasa, Democratic Republic of the Congo (DRC). Positioned along the Matadi–Kinshasa Railway line, it functions as a pivotal transshipment point connecting the railway and the river. Managed by the Société Commerciale des Transports et des Ports (SCTP, formerly ONATRA), the station stands near Ngobila Beach at the Port of Kinshasa, fostering maritime links with Brazzaville, and is conveniently located close to SCTP buildings and the Ministry of Transport and Channels of Communication.
The Matadi-Kinshasa Railway line traverses through the city, tracing the path of the Ndjili River and, further upstream, the Lukaya River. This route circumvents the historic city from its eastern and southern flanks, ultimately reaching Kinshasa's central station. A deserted former track extends beyond Ngaliema Bay. Additionally, a route leads southeast from the central station to the Ndjili International Airport.
History
Prior to the inauguration of the Congo-Ocean Railway, which links Pointe-Noire with Brazzaville, the primary station serving Léopoldville (now Kinshasa) and Brazzaville was Kintambo (baptized Kintambo Magasin). Following the gauge conversion from 750 mm to 1,067 mm on the Matadi-Kinshasa Railway (Chemin de Fer Matadi-Kinshasa; CFMK) and the relocation of the tracks between Ndolo and Kintambo from the middle of Boulevard Albert 1er (now Boulevard Du 30 Juin) to their current position in 1932, a new station was erected at Pool Malebo: "Léopoldville Est." The former Kintambo station was redesignated as "Léopoldville Ouest." Following the nation's independence from Belgium and the city's renaming to Kinshasa during Mobutu Sese Seko's Authenticité campaign, "Léopoldville Est" was rechristened as Kinshasa Est or Gare de Kinshasa.
Rehabilitation
2015
In October 2015, the Société Commerciale des Transports et des Ports (SCTP) rehabilitated the Matadi–Kinshasa Railway line with a budget of $10.7 million released by the former prime minister Matata Ponyo Mapon. The project aimed to rehabilitate the speed, safety, and comfort of the railroad track. The director of SCTP, Jean Kimbembe Mazunga, mentioned that the former state of the track posed a risk to public safety and caused significant material damage. Many stations, including Kinshasa Central Station, Matete Train Station, and Kimwenza Central Station, were rehabilitated, and the average speed was improved to 55 km/h, reducing the average travel time between Matadi and Kinshasa to 6.5 hours.
2021–2022
On September 14, 2021, the Ministry of Transport and Channels of Communication, Chérubin Okende Senga, announced the rehabilitation of the Matadi–Kinshasa Railway line between Kinshasa and Matadi after visiting the Kimwenza Central Station line. On April 18, 2022, he later announced the rehabilitation of the Matadi–Kinshasa Railway line from the Kinshasa Central Station to N'Djili International Airport, which would be built by a delegation of experts from the Japanese International Cooperation Agency (JICA). The Resident Representative of JICA in the DRC, Kazunao Shibata, led the delegation and indicated that the pre-feasibility study mission aims to strengthen the Kinshasa Railway.
See also
Matadi–Kinshasa Railway
Congo-Ocean Railway
Société Commerciale des Transports et des Ports
Ministry of Transport and Channels of Communication
Jean Kimbembe Mazunga
Chérubin Okende Senga
References
760 mm gauge railways in the Democratic Republic of the Congo
Railway stations opened in 1932
Buildings and structures in Kinshasa
Transport in Kinshasa
Railway lines in the Democratic Republic of the Congo
|
Resurreccion Borra (October 20, 1935 – August 1, 2020) was a Filipino public servant who was a Career Executive Service Officer (CESO), a former commissioner and was the Acting Chairman of the Philippine Commission on Elections. He was the most senior Commissioner of COMELEC who has served the agency for over 44 years. He replaced Benjamin Abalos upon the latter's resignation.
Members of the Borra Commission
Assumed office: October 2, 2007
Dissolved: February 2, 2008
Retirement
Chairman Borra retired effective February 2, 2008. He was replaced by Romeo A. Brawner as an Acting Chairman.
See also
Commission on Elections (Philippines)
References
1935 births
2020 deaths
Filipino civil servants
People from Manila
Commissioners of the Commission on Elections (Philippines)
Arroyo administration personnel
People from Iloilo
|
KVLE may refer to:
KVLE-FM, a radio station (102.3 FM) licensed to Gunnison, Colorado, United States
KVLE (AM), a defunct radio station (610 AM) formerly licensed to Vail, Colorado
|
Bartlett Pond is a pond in the Manomet section of Plymouth, Massachusetts. The inflow of the pond is Beaver Dam Brook, and the outflow is a river that empties into Cape Cod Bay. White Horse Beach nearly surrounds the pond, lying to the southwest, west and north. Manomet Heights lies on the eastern shore.
Geology
Bartlett Pond has water depths of slightly over a meter. The bottom of the pond is made up of fine silt and clay muds with large cobbles, clasts and boulders in some places left behind by the retreat of the glaciers. In a study conducted by University of Massachusetts-Amherst in 2013 and again in 2014, X-ray fluorescence data shows slightly higher abundance of lead and zinc within the upper 50 centimeters of sediment cores taken out of the pond. These elements are common in the shallowest sediments of many ponds throughout the Northeast US, left behind by industrial pollution and leaded gas emissions.
The elements strontium and calcium are associated with seawater, sand, and small fragments of shells and reefs washed ashore during large storms. X-ray fluorescence shows spikes in both elements at certain points associated with layers of sand in the mud. These sand layers may be storm overwash from hurricanes in Massachusetts Bay over the past 700 years.
References
McCarthy Earls, E. (2014). Sedimentary survey of Bartlett Pond, White Horse Beach & Tidmarsh Farms. UMASS-Amherst, Department of Geosciences.
External links
South Shore Coastal Watersheds - Lake Assessments
MassDEP: Mouth of River Maps
Ponds of Plymouth, Massachusetts
Ponds of Massachusetts
|
is a railway station in Tsu, Mie Prefecture, Japan, operated by Ise Railway. The station is 19.4 rail kilometers from the terminus of the line at Kawarada Station.
History
Higashi-Ishinden Station opened on September 1, 1973 as a station on the Japan National Railways (JNR) Ise Line. The Ise Line was privatized on March 27, 1987, four days before the dissolution of the JNR on April 1, 1987.
Lines
Ise Railway
Ise Line
Station layout
Higashi-Ishinden Station consists of a single elevated side platform serving bi-directional traffic. The station is unattended.
Platforms
Adjacent stations
|-
!colspan=5|Ise Railway
External links
Official home page
Railway stations in Japan opened in 1973
Railway stations in Mie Prefecture
|
```turing
BEGIN {
if ($ENV{PERL_CORE}) {
chdir('t') if -d 't';
@INC = $^O eq 'MacOS' ? qw(::lib) : qw(../lib);
}
}
use strict;
use warnings;
BEGIN { $| = 1; print "1..118\n"; }
my $count = 0;
sub ok ($;$) {
my $p = my $r = shift;
if (@_) {
my $x = shift;
$p = !defined $x ? !defined $r : !defined $r ? 0 : $r eq $x;
}
print $p ? "ok" : "not ok", ' ', ++$count, "\n";
}
use Unicode::Collate::Locale;
ok(1);
sub _pack_U { Unicode::Collate::pack_U(@_) }
sub _unpack_U { Unicode::Collate::unpack_U(@_) }
#########################
my $objSrLatn = Unicode::Collate::Locale->
new(locale => 'SR-LATN', normalization => undef);
ok($objSrLatn->getlocale, 'sr_Latn');
$objSrLatn->change(level => 1);
ok($objSrLatn->lt("c", "c\x{30C}"));
ok($objSrLatn->lt("c\x{30C}", "c\x{301}"));
ok($objSrLatn->gt("d", "c\x{301}"));
ok($objSrLatn->lt("d", "dz\x{30C}"));
ok($objSrLatn->lt("dzz", "dz\x{30C}"));
ok($objSrLatn->lt("dz\x{30C}", "d\x{335}"));
ok($objSrLatn->gt("e", "d\x{335}"));
ok($objSrLatn->lt("l", "lj"));
ok($objSrLatn->lt("lz","lj"));
ok($objSrLatn->gt("m", "lj"));
ok($objSrLatn->lt("n", "nj"));
ok($objSrLatn->lt("nz","nj"));
ok($objSrLatn->gt("o", "nj"));
ok($objSrLatn->lt("s", "s\x{30C}"));
ok($objSrLatn->lt("sz","s\x{30C}"));
ok($objSrLatn->gt("t", "s\x{30C}"));
ok($objSrLatn->lt("z", "z\x{30C}"));
ok($objSrLatn->lt("zz","z\x{30C}"));
ok($objSrLatn->lt("z\x{30C}", "\x{292}")); # U+0292 EZH
# 21
# not tailored
ok($objSrLatn->lt("dZ\x{30C}","dz\x{30C}"));
ok($objSrLatn->lt("lJ", "lj"));
ok($objSrLatn->lt("nJ", "nj"));
# 24
$objSrLatn->change(level => 2);
ok($objSrLatn->eq("c\x{30C}", "C\x{30C}"));
ok($objSrLatn->eq("c\x{301}", "C\x{301}"));
ok($objSrLatn->eq("dz\x{30C}","Dz\x{30C}"));
ok($objSrLatn->eq("Dz\x{30C}","DZ\x{30C}"));
ok($objSrLatn->eq("d\x{335}", "D\x{335}"));
ok($objSrLatn->eq("lj", "Lj"));
ok($objSrLatn->eq("Lj", "LJ"));
ok($objSrLatn->eq("nj", "Nj"));
ok($objSrLatn->eq("Nj", "NJ"));
ok($objSrLatn->eq("s\x{30C}", "S\x{30C}"));
ok($objSrLatn->eq("z\x{30C}", "Z\x{30C}"));
# 35
ok($objSrLatn->eq("dz\x{30C}", "\x{1C6}"));
ok($objSrLatn->eq("Dz\x{30C}", "\x{1C6}"));
ok($objSrLatn->eq("Dz\x{30C}", "\x{1C5}"));
ok($objSrLatn->eq("DZ\x{30C}", "\x{1C5}"));
ok($objSrLatn->eq("DZ\x{30C}", "\x{1C4}"));
ok($objSrLatn->eq("lj", "\x{1C9}"));
ok($objSrLatn->eq("Lj", "\x{1C9}"));
ok($objSrLatn->eq("Lj", "\x{1C8}"));
ok($objSrLatn->eq("LJ", "\x{1C8}"));
ok($objSrLatn->eq("LJ", "\x{1C7}"));
ok($objSrLatn->eq("nj", "\x{1CC}"));
ok($objSrLatn->eq("Nj", "\x{1CC}"));
ok($objSrLatn->eq("Nj", "\x{1CB}"));
ok($objSrLatn->eq("NJ", "\x{1CB}"));
ok($objSrLatn->eq("NJ", "\x{1CA}"));
# 50
$objSrLatn->change(level => 3);
ok($objSrLatn->lt("c\x{30C}", "C\x{30C}"));
ok($objSrLatn->lt("c\x{301}", "C\x{301}"));
ok($objSrLatn->lt("dz\x{30C}","Dz\x{30C}"));
ok($objSrLatn->lt("Dz\x{30C}","DZ\x{30C}"));
ok($objSrLatn->lt("d\x{335}", "D\x{335}"));
ok($objSrLatn->lt("lj", "Lj"));
ok($objSrLatn->lt("Lj", "LJ"));
ok($objSrLatn->lt("nj", "Nj"));
ok($objSrLatn->lt("Nj", "NJ"));
ok($objSrLatn->lt("s\x{30C}", "S\x{30C}"));
ok($objSrLatn->lt("z\x{30C}", "Z\x{30C}"));
# 61
ok($objSrLatn->lt("dz\x{30C}", "\x{1C6}"));
ok($objSrLatn->gt("Dz\x{30C}", "\x{1C6}"));
ok($objSrLatn->lt("Dz\x{30C}", "\x{1C5}"));
ok($objSrLatn->gt("DZ\x{30C}", "\x{1C5}"));
ok($objSrLatn->lt("DZ\x{30C}", "\x{1C4}"));
ok($objSrLatn->lt("lj", "\x{1C9}"));
ok($objSrLatn->gt("Lj", "\x{1C9}"));
ok($objSrLatn->lt("Lj", "\x{1C8}"));
ok($objSrLatn->gt("LJ", "\x{1C8}"));
ok($objSrLatn->lt("LJ", "\x{1C7}"));
ok($objSrLatn->lt("nj", "\x{1CC}"));
ok($objSrLatn->gt("Nj", "\x{1CC}"));
ok($objSrLatn->lt("Nj", "\x{1CB}"));
ok($objSrLatn->gt("NJ", "\x{1CB}"));
ok($objSrLatn->lt("NJ", "\x{1CA}"));
# 76
ok($objSrLatn->eq("c\x{30C}", "\x{10D}"));
ok($objSrLatn->eq("C\x{30C}", "\x{10C}"));
ok($objSrLatn->eq("c\x{301}", "\x{107}"));
ok($objSrLatn->eq("c\x{341}", "\x{107}"));
ok($objSrLatn->eq("C\x{301}", "\x{106}"));
ok($objSrLatn->eq("C\x{341}", "\x{106}"));
ok($objSrLatn->eq("dz\x{30C}", "d\x{17E}"));
ok($objSrLatn->eq("dZ\x{30C}", "d\x{17D}"));
ok($objSrLatn->eq("Dz\x{30C}", "D\x{17E}"));
ok($objSrLatn->eq("DZ\x{30C}", "D\x{17D}"));
ok($objSrLatn->eq("d\x{335}", "\x{111}"));
ok($objSrLatn->eq("D\x{335}", "\x{110}"));
ok($objSrLatn->eq("s\x{30C}", "\x{161}"));
ok($objSrLatn->eq("S\x{30C}", "\x{160}"));
ok($objSrLatn->eq("z\x{30C}", "\x{17E}"));
ok($objSrLatn->eq("Z\x{30C}", "\x{17D}"));
# 92
$objSrLatn->change(upper_before_lower => 1);
ok($objSrLatn->gt("c\x{30C}", "C\x{30C}"));
ok($objSrLatn->gt("c\x{301}", "C\x{301}"));
ok($objSrLatn->gt("dz\x{30C}","Dz\x{30C}"));
ok($objSrLatn->gt("Dz\x{30C}","DZ\x{30C}"));
ok($objSrLatn->gt("d\x{335}", "D\x{335}"));
ok($objSrLatn->gt("lj", "Lj"));
ok($objSrLatn->gt("Lj", "LJ"));
ok($objSrLatn->gt("nj", "Nj"));
ok($objSrLatn->gt("Nj", "NJ"));
ok($objSrLatn->gt("s\x{30C}", "S\x{30C}"));
ok($objSrLatn->gt("z\x{30C}", "Z\x{30C}"));
# 103
ok($objSrLatn->lt("DZ\x{30C}", "\x{1C4}"));
ok($objSrLatn->gt("Dz\x{30C}", "\x{1C4}"));
ok($objSrLatn->lt("Dz\x{30C}", "\x{1C5}"));
ok($objSrLatn->gt("dz\x{30C}", "\x{1C5}"));
ok($objSrLatn->lt("dz\x{30C}", "\x{1C6}"));
ok($objSrLatn->lt("LJ", "\x{1C7}"));
ok($objSrLatn->gt("Lj", "\x{1C7}"));
ok($objSrLatn->lt("Lj", "\x{1C8}"));
ok($objSrLatn->gt("lj", "\x{1C8}"));
ok($objSrLatn->lt("lj", "\x{1C9}"));
ok($objSrLatn->lt("NJ", "\x{1CA}"));
ok($objSrLatn->gt("Nj", "\x{1CA}"));
ok($objSrLatn->lt("Nj", "\x{1CB}"));
ok($objSrLatn->gt("nj", "\x{1CB}"));
ok($objSrLatn->lt("nj", "\x{1CC}"));
# 118
```
|
Marcilly-la-Campagne () is a commune in the Eure department in Normandy in northern France.
Population
See also
Communes of the Eure department
References
Communes of Eure
|
```html
<!doctype html>
<script src="/node_modules/scroll-into-view-if-needed/umd/scroll-into-view-if-needed.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>Check End Position of smooth scrollIntoView</title>
<div id="container" style="height: 2500px; width: 2500px">
<div
id="content"
style="
height: 500px;
width: 500px;
margin-left: 1000px;
margin-right: 1000px;
margin-top: 1000px;
margin-bottom: 1000px;
background-color: red;
"
></div>
<div id="shadow"></div>
</div>
<script>
var content_height = 500
var content_width = 500
var window_height = document.scrollingElement.clientHeight
var window_width = document.scrollingElement.clientWidth
var content = document.getElementById('content')
add_completion_callback(() => document.getElementById('container').remove())
function waitForScrollEnd() {
var last_changed_frame = 0
var last_x = window.scrollX
var last_y = window.scrollY
return new Promise((resolve, reject) => {
function tick(frames) {
// We requestAnimationFrame either for 500 frames or until 20 frames with
// no change have been observed.
if (frames >= 500 || frames - last_changed_frame > 20) {
resolve()
} else {
if (window.scrollX != last_x || window.scrollY != last_y) {
last_changed_frame = frames
last_x = window.scrollX
last_y = window.scrollY
}
requestAnimationFrame(tick.bind(null, frames + 1))
}
}
tick(0)
})
}
// When testing manually, we need an additional frame at beginning
// to trigger the effect.
requestAnimationFrame(() => {
promise_test((t) => {
window.scrollTo(0, 0)
var expected_x = content.offsetLeft + content_width - window_width
var expected_y = content.offsetTop + content_height - window_height
assert_not_equals(window.scrollX, expected_x, 'scrollX')
assert_not_equals(window.scrollY, expected_y, 'scrollY')
scrollIntoView(content, {
behavior: 'smooth',
block: 'nearest',
inline: 'nearest',
})
return waitForScrollEnd().then(() => {
assert_approx_equals(window.scrollX, expected_x, 1, 'scrollX')
assert_approx_equals(window.scrollY, expected_y, 1, 'scrollY')
})
}, "Smooth scrollIntoView should scroll the element to the 'nearest' position")
promise_test((t) => {
window.scrollTo(0, 0)
var expected_x = content.offsetLeft
var expected_y = content.offsetTop
assert_not_equals(window.scrollX, expected_x, 'scrollX')
assert_not_equals(window.scrollY, expected_y, 'scrollY')
scrollIntoView(content, {
behavior: 'smooth',
block: 'start',
inline: 'start',
})
return waitForScrollEnd().then(() => {
assert_approx_equals(window.scrollX, expected_x, 1, 'scrollX')
assert_approx_equals(window.scrollY, expected_y, 1, 'scrollY')
})
}, "Smooth scrollIntoView should scroll the element to the 'start' position")
promise_test((t) => {
window.scrollTo(0, 0)
var expected_x = content.offsetLeft + (content_width - window_width) / 2
var expected_y = content.offsetTop + (content_height - window_height) / 2
assert_not_equals(window.scrollX, expected_x, 'scrollX')
assert_not_equals(window.scrollY, expected_y, 'scrollY')
scrollIntoView(content, {
behavior: 'smooth',
block: 'center',
inline: 'center',
})
return waitForScrollEnd().then(() => {
assert_approx_equals(window.scrollX, expected_x, 1, 'scrollX')
assert_approx_equals(window.scrollY, expected_y, 1, 'scrollY')
})
}, "Smooth scrollIntoView should scroll the element to the 'center' position")
promise_test((t) => {
window.scrollTo(0, 0)
var expected_x = content.offsetLeft + content_width - window_width
var expected_y = content.offsetTop + content_height - window_height
assert_not_equals(window.scrollX, expected_x, 'scrollX')
assert_not_equals(window.scrollY, expected_y, 'scrollY')
scrollIntoView(content, {
behavior: 'smooth',
block: 'end',
inline: 'end',
})
return waitForScrollEnd().then(() => {
assert_approx_equals(window.scrollX, expected_x, 1, 'scrollX')
assert_approx_equals(window.scrollY, expected_y, 1, 'scrollY')
})
}, "Smooth scrollIntoView should scroll the element to the 'end' position")
})
</script>
```
|
Linda Chambers is an American playwright, screenwriter, actress and college instructor living and working in Baltimore, Maryland.
Career
Linda Chambers first began serious writing after becoming involved with Corner Theatre ETC, an experimental theatre located in Baltimore. Although her first work at Corner was as an actress - she appeared in the lead role of Steve Yeager's acclaimed 1976 production of Marguerite, written by C. Richard Gillespie - she became increasing drawn into a circle of playwrights whose work was being produced there. In 1981, Chambers moved to New York City with the intention of pursuing a professional theatrical career. In 1982, an evening of three one-act plays written by Chambers was presented off-Broadway at the Cubiculo Theatre under the direction of Brad Mays: Requiem, a fictionalized drama about Irish hunger striker Bobby Sands, Joan, a short meditation on Joan of Arc, and Stones, a two character piece of religious allegory. In 1983, Ms. Chambers appeared in the off-Broadway production of The Water Hen, written by Stanisław Ignacy Witkiewicz also directed by Mays. Theatre critic Mark Matusek praised Ms. Chamber's performance for oozing "seedy pulchritude."
Later that year, Ms. Chambers' play Requiem was picked by the Maryland Center for Public Broadcasting for a series of 30 minute television dramas written by Maryland playwrights. In 1985, Chambers' full-length play Avalon was produced at New York's Theatre 22, under the direction of Nancy Powichroski.
The independent feature film On The Block was released in 1990. Directed by Steve Yeager, the film was co-written by Yeager and Chambers, and featured Baltimore native Howard Rollins in a special supporting role. In 1993, an expanded full length version of Joan was produced in Los Angeles, starring Rain Pryor in the role of Joan of Arc.
Notes and references
External links
Lincoln Center's Museum & Library of the Performing Arts permanent archive The Water Hen
http://issuu.com/j.broder/docs/elephant_nova
Living people
1954 births
20th-century American dramatists and playwrights
|
```smalltalk
/*
*
*
* 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.
*/
using System.Runtime.InteropServices;
namespace ZXing.Interop.Common
{
[ComVisible(true)]
[Guid("4B7E9244-FECF-4D85-BE7F-0572058DD5AE")]
public enum BitmapFormat
{
/// <summary>
/// format of the byte[] isn't known. RGBLuminanceSource tries to determine the best possible value
/// </summary>
Unknown,
/// <summary>
/// grayscale array, the byte array is a luminance array with 1 byte per pixel
/// </summary>
Gray8,
/// <summary>
/// 3 bytes per pixel with the channels red, green and blue
/// </summary>
RGB24,
/// <summary>
/// 4 bytes per pixel with the channels red, green and blue
/// </summary>
RGB32,
/// <summary>
/// 4 bytes per pixel with the channels alpha, red, green and blue
/// </summary>
ARGB32,
/// <summary>
/// 3 bytes per pixel with the channels blue, green and red
/// </summary>
BGR24,
/// <summary>
/// 4 bytes per pixel with the channels blue, green and red
/// </summary>
BGR32,
/// <summary>
/// 4 bytes per pixel with the channels blue, green, red and alpha
/// </summary>
BGRA32,
/// <summary>
/// 2 bytes per pixel, 5 bit red, 6 bits green and 5 bits blue
/// </summary>
RGB565,
/// <summary>
/// 4 bytes per pixel with the channels red, green, blue and alpha
/// </summary>
RGBA32,
}
internal static class BitmapFormatExtensions
{
public static RGBLuminanceSource.BitmapFormat ToZXing(this BitmapFormat format)
{
switch (format)
{
case BitmapFormat.ARGB32:
return RGBLuminanceSource.BitmapFormat.ARGB32;
case BitmapFormat.BGR24:
return RGBLuminanceSource.BitmapFormat.BGR24;
case BitmapFormat.BGR32:
return RGBLuminanceSource.BitmapFormat.BGR32;
case BitmapFormat.BGRA32:
return RGBLuminanceSource.BitmapFormat.BGRA32;
case BitmapFormat.Gray8:
return RGBLuminanceSource.BitmapFormat.Gray8;
case BitmapFormat.RGB24:
return RGBLuminanceSource.BitmapFormat.RGB24;
case BitmapFormat.RGB32:
return RGBLuminanceSource.BitmapFormat.RGB32;
case BitmapFormat.RGBA32:
return RGBLuminanceSource.BitmapFormat.RGBA32;
case BitmapFormat.RGB565:
return RGBLuminanceSource.BitmapFormat.RGB565;
default:
return RGBLuminanceSource.BitmapFormat.Unknown;
}
}
}
}
```
|
```kotlin
package mega.privacy.android.domain.repository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
import mega.privacy.android.domain.entity.SdTransfer
import mega.privacy.android.domain.entity.node.NodeId
import mega.privacy.android.domain.entity.node.TypedNode
import mega.privacy.android.domain.entity.transfer.ActiveTransfer
import mega.privacy.android.domain.entity.transfer.ActiveTransferTotals
import mega.privacy.android.domain.entity.transfer.CompletedTransfer
import mega.privacy.android.domain.entity.transfer.InProgressTransfer
import mega.privacy.android.domain.entity.transfer.Transfer
import mega.privacy.android.domain.entity.transfer.TransferAppData
import mega.privacy.android.domain.entity.transfer.TransferData
import mega.privacy.android.domain.entity.transfer.TransferEvent
import mega.privacy.android.domain.entity.transfer.TransferType
import mega.privacy.android.domain.entity.transfer.TransfersFinishedState
import mega.privacy.android.domain.exception.MegaException
import java.io.File
/**
* Transfer repository of Domain Module
*/
interface TransferRepository {
/**
* Monitor transfer events
*
* @return flow of transfer event
*/
fun monitorTransferEvents(): Flow<TransferEvent>
/**
* Gets the number of pending download transfers that are not background transfers.
*
* @return Number of pending downloads.
*/
suspend fun getNumPendingDownloadsNonBackground(): Int
/**
* Gets the number of pending upload transfers.
*
* @return Number of pending uploads.
*/
suspend fun getNumPendingUploads(): Int
/**
* @return the number of pending Camera Uploads
*/
suspend fun getNumPendingCameraUploads(): Int
/**
* Gets number of pending transfers.
*
* @return Number of pending transfers.
*/
suspend fun getNumPendingTransfers(): Int
/**
* Checks if the completed transfers list is empty.
*
* @return True if the completed transfers is empty, false otherwise.
*/
suspend fun isCompletedTransfersEmpty(): Boolean
/**
* Gets the number of pending and paused uploads.
*
* @return Number of pending and paused uploads.
*/
suspend fun getNumPendingPausedUploads(): Int
/**
* @return the number of pending and paused Camera Uploads
*/
suspend fun getNumPendingPausedCameraUploads(): Int
/**
* Gets the number of pending, non-background and paused downloads.
*
* @return Number of pending, non-background and paused downloads.
*/
suspend fun getNumPendingNonBackgroundPausedDownloads(): Int
/**
* Cancels all upload transfers
*/
suspend fun cancelAllUploadTransfers()
/**
* Cancel Transfer by Tag
* @param transferTag Tag that identifies the transfer
*/
suspend fun cancelTransferByTag(transferTag: Int)
/**
* Monitor the offline availability of the file
*/
fun monitorOfflineFileAvailability(): Flow<Long>
/**
* Broadcast the offline availability of the file
* @param nodeHandle the node handle
*/
suspend fun broadcastOfflineFileAvailability(nodeHandle: Long)
/**
* Monitor transfer over quota
*/
fun monitorTransferOverQuota(): Flow<Boolean>
/**
* Broadcast transfer over quota
* @param isCurrentOverQuota true if the overquota is currently received, false otherwise
*
*/
suspend fun broadcastTransferOverQuota(isCurrentOverQuota: Boolean)
/**
* Monitor storage over quota
*/
fun monitorStorageOverQuota(): Flow<Boolean>
/**
* Broadcast storage over quota
*
*/
suspend fun broadcastStorageOverQuota(isCurrentOverQuota: Boolean)
/**
* Cancels all transfers, uploads and downloads.
*/
suspend fun cancelTransfers()
/**
* Monitor transfer failed
*
*/
fun monitorFailedTransfer(): Flow<Boolean>
/**
* Broadcast transfer failed
*
*/
suspend fun broadcastFailedTransfer(isFailed: Boolean)
/**
* Checks if exist ongoing transfers.
*/
suspend fun ongoingTransfersExist(): Boolean
/**
* Move transfer to first by tag
*
* @param transferTag
*/
suspend fun moveTransferToFirstByTag(transferTag: Int)
/**
* Move transfer to last by tag
*
* @param transferTag
*/
suspend fun moveTransferToLastByTag(transferTag: Int)
/**
* Move transfer before by tag
*
* @param transferTag
* @param prevTransferTag
*/
suspend fun moveTransferBeforeByTag(transferTag: Int, prevTransferTag: Int)
/**
* Get transfer by tag
*
* @param transferTag
*/
suspend fun getTransferByTag(transferTag: Int): Transfer?
/**
* Monitors paused transfers.
*/
fun monitorPausedTransfers(): StateFlow<Boolean>
/**
* Get in progress transfers
*
*/
suspend fun getInProgressTransfers(): List<Transfer>
/**
* Monitor completed transfers
*
* @return a flow of completed transfer
*/
fun monitorCompletedTransfer(): Flow<Unit>
/**
* Get the list of completed transfers
*
* @param size the limit size of the list. If null, the limit does not apply
*/
fun getAllCompletedTransfers(size: Int? = null): Flow<List<CompletedTransfer>>
/**
* Add a completed transfer to local storage
*
* @param transfer
*/
suspend fun addCompletedTransfer(
transfer: Transfer,
megaException: MegaException?,
transferPath: String? = null,
)
/**
* Add a list of completed transfer to local storage
*
* @param finishEventsAndPaths
*/
suspend fun addCompletedTransfers(
finishEventsAndPaths: Map<TransferEvent.TransferFinishEvent, String?>,
)
/**
* Add completed transfers if not exist
*
* @param transfers
*/
suspend fun addCompletedTransfersIfNotExist(transfers: List<CompletedTransfer>)
/**
* Delete oldest completed transfers
*/
suspend fun deleteOldestCompletedTransfers()
/**
* Starts the download worker to monitor the download transfers as a foreground service
*/
suspend fun startDownloadWorker()
/**
* Starts the chat uploads worker to monitor the chat uploads transfers as a foreground service
*/
suspend fun startChatUploadsWorker()
/**
* Monitors transfers finished.
*/
fun monitorTransfersFinished(): Flow<TransfersFinishedState>
/**
* Broadcasts transfers finished.
*/
suspend fun broadcastTransfersFinished(transfersFinishedState: TransfersFinishedState)
/**
* Monitors when transfers management have to stop.
*/
fun monitorStopTransfersWork(): Flow<Boolean>
/**
* Broadcasts when transfers management have to stop.
*/
suspend fun broadcastStopTransfersWork()
/**
* Reset total uploads
*/
suspend fun resetTotalUploads()
/**
* Start downloading a node to desired destination and returns a flow to expose download progress
*
* @param node The node we want to download, it can be a folder
* @param localPath Full path to the destination folder of [node]. If this path does not exist it will try to create it.
* @param appData Custom app data to save in the MegaTransfer object.
* @param shouldStartFirst Puts the transfer on top of the download queue.
*/
fun startDownload(
node: TypedNode,
localPath: String,
appData: TransferAppData?,
shouldStartFirst: Boolean,
): Flow<TransferEvent>
/**
* Gets information about transfer queues.
*
* @return [TransferData]
*/
suspend fun getTransferData(): TransferData?
/**
* Upload a file or folder
*
* @param localPath The local path of the file or folder
* @param parentNodeId The parent node id for the file or folder
* @param fileName The custom file name for the file or folder. Leave the parameter as "null"
* if there are no changes
* @param modificationTime The custom modification time for the file or folder, denoted in
* seconds since the epoch
* @param appData The custom app data to save, which can be nullable
* @param isSourceTemporary Whether the temporary file or folder that is created for upload
* should be deleted or not
* @param shouldStartFirst Whether the file or folder should be placed on top of the upload
* queue or not
*
* @return a Flow of [TransferEvent]
*/
fun startUpload(
localPath: String,
parentNodeId: NodeId,
fileName: String?,
modificationTime: Long,
appData: List<TransferAppData>?,
isSourceTemporary: Boolean,
shouldStartFirst: Boolean,
): Flow<TransferEvent>
/**
* Upload a file or folder
*
* @param localPath The local path of the file or folder
* @param parentNodeId The parent node id for the file or folder
* @param fileName The custom file name for the file or folder. Leave the parameter as "null"
* if there are no changes
* @param appData The custom app data to save chat upload related information
* @param isSourceTemporary Whether the temporary file or folder that is created for upload
* should be deleted or not
* queue or not
*
* @return a Flow of [TransferEvent]
*/
fun startUploadForChat(
localPath: String,
parentNodeId: NodeId,
fileName: String?,
appData: List<TransferAppData.ChatTransferAppData>,
isSourceTemporary: Boolean,
): Flow<TransferEvent>
/**
* Get active transfer by tag
*/
suspend fun getActiveTransferByTag(tag: Int): ActiveTransfer?
/**
* Get active transfers by type
* @return a flow of all active transfers list
*/
fun getActiveTransfersByType(transferType: TransferType): Flow<List<ActiveTransfer>>
/**
* Get current active transfers by type
* @return all active transfers list
*/
suspend fun getCurrentActiveTransfersByType(transferType: TransferType): List<ActiveTransfer>
/**
* Insert a new active transfer or replace it if there's already an active transfer with the same tag
*/
suspend fun insertOrUpdateActiveTransfer(activeTransfer: ActiveTransfer)
/**
* Insert (or replace if there's already an active transfer with the same tag) a list of active transfers
*/
suspend fun insertOrUpdateActiveTransfers(activeTransfers: List<ActiveTransfer>)
/**
* Set or update the transferred bytes counter of this transfer
*/
suspend fun updateTransferredBytes(transfer: Transfer)
/**
* Delete all active transfer
*/
suspend fun deleteAllActiveTransfersByType(transferType: TransferType)
/**
* Set an active transfer as finished by its tag
*/
suspend fun setActiveTransferAsFinishedByTag(tags: List<Int>)
/**
* Get active transfer totals by type
* @return a flow of active transfer totals
*/
fun getActiveTransferTotalsByType(transferType: TransferType): Flow<ActiveTransferTotals>
/**
* Get the current active transfer totals by type
* @return the current active transfer totals
*/
suspend fun getCurrentActiveTransferTotalsByType(transferType: TransferType): ActiveTransferTotals
/**
* Get current upload speed.
*
* @return Current upload speed.
*/
suspend fun getCurrentUploadSpeed(): Int
/**
* Pause transfers
*
* @param isPause
* @return boolean is pause or resume
*/
suspend fun pauseTransfers(isPause: Boolean): Boolean
/**
* Delete all completed transfers
*/
suspend fun deleteAllCompletedTransfers()
/**
* Get failed or cancel transfers
*
* @return the failed or cancelled transfer list
*/
suspend fun getFailedOrCanceledTransfers(): List<CompletedTransfer>
/**
* Delete failed or canceled transfers
*
* @return the failed or cancelled transfer list was deleted
*/
suspend fun deleteFailedOrCanceledTransfers(): List<CompletedTransfer>
/**
* Delete completed transfer
*
* @param transfer
*/
suspend fun deleteCompletedTransfer(transfer: CompletedTransfer, isRemoveCache: Boolean)
/**
* Pause transfer by tag
*
* @param transferTag
* @param isPause
*/
suspend fun pauseTransferByTag(transferTag: Int, isPause: Boolean): Boolean
/**
* Get all sd transfers
*
* @return the list of sd transfers
*/
suspend fun getAllSdTransfers(): List<SdTransfer>
/**
* Get sd transfers by tag
*
* @return the sd transfer with this tag or null if not found
*/
suspend fun getSdTransferByTag(tag: Int): SdTransfer?
/**
* Insert sd transfer
*
* @param transfer sd Transfer
*/
suspend fun insertSdTransfer(transfer: SdTransfer)
/**
* Delete sd transfer by tag
*
* @param tag tag of transfer
*/
suspend fun deleteSdTransferByTag(tag: Int)
/**
* Get completed transfer by id
*
* @param id id of completed transfer
*/
suspend fun getCompletedTransferById(id: Int): CompletedTransfer?
/**
* Get current download speed.
*
* @return Current download speed.
*/
suspend fun getCurrentDownloadSpeed(): Int
/**
* Get or create a folder for transfers in the cache of SD Card if any
*
* @return the File corresponding to the folder in cache in the SD
* Return null if the folder cannot be created or there's no SD card
*/
suspend fun getOrCreateSDCardTransfersCacheFolder(): File?
/**
* @return a flow that emits true if DownloadsWorker is enqueued. false otherwise
*/
fun isDownloadsWorkerEnqueuedFlow(): Flow<Boolean>
/**
* @return a flow that emits true if ChatUploadsWorker is enqueued. false otherwise
*/
fun isChatUploadsWorkerEnqueuedFlow(): Flow<Boolean>
/**
* @return true if the user can choose download's destination. False means downloads will be saved to default destination. See [settingsRepository.setDefaultStorageDownloadLocation()]
*/
suspend fun allowUserToSetDownloadDestination(): Boolean
/**
* Monitors ask resume transfers.
*/
fun monitorAskedResumeTransfers(): StateFlow<Boolean>
/**
* Set ask resume transfers.
*/
suspend fun setAskedResumeTransfers()
/**
* Starts the uploads worker to monitor the uploads transfers as a foreground service
*/
suspend fun startUploadsWorker()
/**
* @return a flow that emits true if UploadsWorker is enqueued. false otherwise
*/
fun isUploadsWorkerEnqueuedFlow(): Flow<Boolean>
/**
* Updates or adds a new transfer to the in progress transfers list.
*/
suspend fun updateInProgressTransfer(transfer: Transfer)
/**
* Updates or adds a list of transfers to the in progress transfers list.
*/
suspend fun updateInProgressTransfers(transfers: List<Transfer>)
/**
* Monitor in progress transfers flow.
*/
fun monitorInProgressTransfers(): Flow<Map<Int, InProgressTransfer>>
/**
* Remove in progress transfer by tag.
*/
suspend fun removeInProgressTransfer(tag: Int)
/**
* Remove a list of in progress transfers by tag.
*/
suspend fun removeInProgressTransfers(tags: Set<Int>)
}
```
|
Onobara () was a town of ancient Lycia, which per the Stadiasmus Patarensis was the destination of a road from Trabenna.
Its site is located near Göderler, Asiatic Turkey.
References
Populated places in ancient Lycia
Former populated places in Turkey
|
Louise Stephenson (born 9 July 1995) is an Australian rules footballer playing for the Hawthorn Football Club in the AFL Women's competition. Stephenson was recruited by Greater Western Sydney as a priority player in September 2016. She made her debut in the five point win against at Blacktown ISP Oval in round five of the 2017 season. She played three matches in her debut season.
Statistics
Updated to the end of round 7, 2023
|-
| 2017 || || 12
| 3 || 0 || 0 || 10 || 6 || 16 || 4 || 1 || 0.0 || 0.0 || 3.3 || 2.0 || 5.3 || 1.3 || 0.3 || 2
|-
| 2018 || || 12
| 2 || 0 || 0 || 5 || 1 || 6 || 1 || 3 || 0.0 || 0.0 || 2.5 || 0.5 || 3.0 || 0.5 || 1.5 || 0
|-
| 2019 || || 12
| 7 || 1 || 0 || 30 || 37 || 67 || 10 || 13 || 0.1 || 0.0 || 4.3 || 5.3 || 9.6 || 1.4 || 1.9 || 0
|-
| 2020 || || 12
| 7 || 0 || 0 || 37 || 23 || 60 || 8 || 15 || 0.0 || 0.0 || 5.3 || 3.3 || 8.6 || 1.1 || 2.1 || 0
|-
| 2021 || || 12
| 7 || 0 || 0 || 45 || 17 || 62 || 15 || 14 || 0.0 || 0.0 || 6.4 || 2.4 || 8.9 || 2.1 || 2.0 || 0
|-
| 2022 (S6) || || 12
| 7 || 3 || 0 || 33 || 19 || 52 || 15 || 17 || 0.4 || 0.0 || 4.7 || 2.7 || 7.4 || 2.1 || 2.4 || 0
|-
| 2022 (S7) || || 12
| 3 || 0 || 0 || 7 || 13 || 20 || 3 || 10 || 0.0 || 0.0 || 2.3 || 4.3 || 6.7 || 1.0 || 3.3 || 0
|-
| 2023 || || 12
| 6 || 0 || 0 || 32 || 16 || 48 || 15 || 13 || 0.0 || 0.0 || 5.3 || 2.7 || 8.0 || 2.5 || 2.2 ||
|- class="sortbottom"
! colspan=3| Career
! 42 !! 4 !! 0 !! 199 !! 132 !! 331 !! 71 !! 86 !! 0.1 !! 0.0 !! 4.7 !! 3.1 !! 7.9 !! 1.7 !! 2.0 !! 2
|}
References
External links
1995 births
Living people
Greater Western Sydney Giants (AFLW) players
Australian rules footballers from Victoria (state)
Melbourne University Football Club (VFLW) players
|
```yaml
{{- /*
*/}}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ include "pytorch.master.name" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: master
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: 1
{{- if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: master
template:
metadata:
{{- if .Values.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }}
app.kubernetes.io/component: master
spec:
{{- include "pytorch.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "pytorch.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset "component" "master" "customLabels" $podLabels "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "master" "customLabels" $podLabels "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" .) | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
{{- if .Values.schedulerName }}
schedulerName: {{ .Values.schedulerName | quote }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }}
{{- end }}
{{- include "pytorch.securityContext" . }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
{{- if or .Values.cloneFilesFromGit.enabled (and .Values.volumePermissions.enabled .Values.persistence.enabled) }}
initContainers:
{{- if .Values.cloneFilesFromGit.enabled }}
- name: git-clone-repository
image: {{ include "git.image" . }}
imagePullPolicy: {{ .Values.git.pullPolicy | quote }}
command:
- /bin/bash
- -c
- |
[[ -f "/opt/bitnami/scripts/git/entrypoint.sh" ]] && source "/opt/bitnami/scripts/git/entrypoint.sh"
git clone {{ .Values.cloneFilesFromGit.repository }} --branch {{ .Values.cloneFilesFromGit.revision }} /app
volumeMounts:
- name: empty-dir
mountPath: /app
subPath: app-dir
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
{{- if .Values.cloneFilesFromGit.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.cloneFilesFromGit.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- end }}
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
- name: volume-permissions
image: "{{ template "mxnet.volumePermissions.image" . }}"
imagePullPolicy: {{ default "" .Values.volumePermissions.image.pullPolicy | quote }}
command:
- /bin/bash
- -ec
- |
chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} {{ .Values.persistence.mountPath }}
securityContext:
runAsUser: 0
{{- if .Values.volumePermissions.resources }}
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
{{- else if ne .Values.volumePermissions.resourcesPreset "none" }}
resources: {{- include "common.resources.preset" (dict "type" .Values.volumePermissions.resourcesPreset) | nindent 12 }}
{{- end }}
volumeMounts:
- name: data
mountPath: {{ .Values.persistence.mountPath }}
{{- end }}
{{- end }}
containers:
- name: master
image: {{ include "pytorch.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.containerSecurityContext.enabled }}
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }}
{{- else if .Values.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.command "context" $) | nindent 12 }}
{{- else }}
command:
- bash
- -c
- |
{{- if .Values.entrypoint.file }}
python {{ .Values.entrypoint.file }} {{ if .Values.entrypoint.args }}{{ .Values.entrypoint.args }}{{ end }}
{{- end }}
sleep infinity
{{- end }}
env:
{{- $architecture := coalesce .Values.mode .Values.architecture }}
{{- if eq $architecture "distributed" }}
- name: MASTER_ADDR
value: "127.0.0.1"
- name: MASTER_PORT
value: {{ coalesce .Values.port .Values.containerPorts.pytorch | quote }}
- name: WORLD_SIZE
value: {{ .Values.worldSize | quote }}
- name: RANK
value: "0"
{{- end }}
{{- if .Values.extraEnvVars }}
{{- toYaml .Values.extraEnvVars | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
- configMapRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsCM "context" $) }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }}
{{- end }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- else if ne .Values.resourcesPreset "none" }}
resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }}
{{- end }}
ports:
- name: pytorch
containerPort: {{ coalesce .Values.port .Values.containerPorts.pytorch }}
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- python
- -c
- import torchvision; print(torchvision.__version__)
{{- end }}
{{- if .Values.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
{{- else if .Values.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.readinessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- python
- -c
- import torch; print(torch.__config__.show())
{{- end }}
{{- if .Values.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.startupProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- python
- -c
- import torch; print(torch.__config__.show())
{{- end }}
{{- end }}
{{- if .Values.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.configMap }}
- name: ext-files
mountPath: /app
{{- else if .Files.Glob "files/*" }}
- name: local-files
mountPath: /app
{{- else }}
- name: empty-dir
mountPath: /app
subPath: app-dir
{{- end }}
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" ( dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
- name: data
mountPath: {{ .Values.persistence.mountPath }}
volumes:
- name: empty-dir
emptyDir: {}
{{- if .Values.configMap }}
- name: ext-files
configMap:
name: {{ .Values.configMap }}
{{- else if .Files.Glob "files/*" }}
- name: local-files
configMap:
name: {{ printf "%s-files" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
{{- end }}
- name: data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "pytorch.master.name" . }}
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" ( dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
```
|
Belsyre Court is a listed early 20th-century block of flats in Oxford, England.
The building is located on the south side at the east end of St Bernard's Road, the west side of Woodstock Road, and the north side at the east end of Observatory Street in North Oxford. There is a small row of shops in a colonnade with a parking area on the Woodstock Road side.
The site, part of the St John's College North Oxford estate, was first considered for a theatre. In 1932, a mixed-development scheme of shops, offices, and flats, was selected. An initial design by J. C. Leeds was rejected. The final block was designed by Ernest R. Barrow and built in 1936. Belsyre Court was the first large block of flats in Oxford. It was built of brick in a Jacobethan style. An Inland Revenue office was located here from 1936 until the early 1990s.
The building was Grade II listed in 2008.
References
External links
Buildings and structures completed in 1936
Grade II listed buildings in Oxford
Shops in Oxford
Apartment buildings in England
1936 establishments in England
St John's College, Oxford
|
```java
package com.airbnb.android.react.navigation;
import android.annotation.TargetApi;
import android.os.Build.VERSION_CODES;
import android.transition.Transition;
import android.transition.Transition.TransitionListener;
@TargetApi(VERSION_CODES.KITKAT)
public class SimpleTransitionListener implements TransitionListener {
@Override public void onTransitionStart(Transition transition) {
}
@Override public void onTransitionEnd(Transition transition) {
}
@Override public void onTransitionCancel(Transition transition) {
}
@Override public void onTransitionPause(Transition transition) {
}
@Override public void onTransitionResume(Transition transition) {
}
}
```
|
```javascript
'use strict';
import { h, Component } from 'preact';
import * as numbers from '../lib/numbers.js';
import Client from '../lib/client.js';
import { bind } from 'decko';
import classNames from 'classnames';
import { runInNewContext } from 'vm';
const dayInSeconds = 60 * 60 * 24;
class Table extends Component {
constructor(props) {
super(props)
this.state = {
records: [],
offset: 0,
limit: 15,
loading: true,
total: 0,
}
}
componentWillReceiveProps(newProps, newState) {
if(!this.paramsChanged(this.props, newProps)) {
return;
}
this.fetchData(newProps)
}
paramsChanged(o, n) {
return o.siteId !== n.siteId || o.dateRange[0] != n.dateRange[0] || o.dateRange[1] != n.dateRange[1];
}
@bind
fetchData(props) {
this.setState({ loading: true });
let before = props.dateRange[1]/1000;
let after = props.dateRange[0]/1000;
Client.request(`/sites/${props.siteId}/stats/${props.endpoint}/agg?before=${before}&after=${after}&offset=${this.state.offset}&limit=${this.state.limit}`)
.then((d) => {
// request finished; check if timestamp range is still the one user wants to see
if( this.paramsChanged(props, this.props) ) {
return;
}
this.setState({
loading: false,
records: d,
});
});
// fetch totals too
Client.request(`/sites/${props.siteId}/stats/${props.endpoint}/agg/pageviews?before=${before}&after=${after}`)
.then((d) => {
this.setState({
total: d
});
});
}
@bind
paginateNext() {
this.setState({ offset: this.state.offset + this.state.limit })
this.fetchData(this.props)
}
@bind
paginatePrev() {
if(this.state.offset == 0) {
return;
}
this.setState({ offset: Math.max(0, this.state.offset - this.state.limit) })
this.fetchData(this.props)
}
render(props, state) {
const tableRows = state.records !== null && state.records.length > 0 ? state.records.map((p, i) => {
let href = (p.Hostname + p.Pathname) || p.URL;
let widthClass = "";
if(state.total > 0) {
widthClass = "w" + ("" + Math.min(98, Math.round(p.Pageviews / state.total * 100 * 2.5))).padStart(2, '0');
}
let label = p.Pathname
if( props.showHostname ) {
if( p.Group) {
label = p.Group
} else {
label = p.Hostname.replace('www.', '').replace('path_to_url '').replace('path_to_url '') + (p.Pathname.length > 1 ? p.Pathname : '')
}
}
return(
<div class={classNames("table-row", widthClass)}>
<div class="cell main-col"><a href={href}>{label}</a></div>
<div class="cell">{numbers.formatPretty(p.Pageviews)}</div>
<div class="cell">{numbers.formatPretty(p.Visitors)||"-"}</div>
</div>
)}) : <div class="table-row"><div class="cell main-col">Nothing here, yet.</div></div>;
// pagination row: only show when total # of results doesn't fit in one table page
const pagination = tableRows.length == state.limit || state.offset >= state.limit ? (
<div class="row pag">
<a href="javascript:void(0)" onClick={this.paginatePrev} class="back"></a>
<a href="javascript:void(0)" onClick={this.paginateNext} class="next right"></a>
</div>) : '';
return (
<div class={classNames({ loading: state.loading })}>
<div class="table-row header">
{props.headers.map((header, i) => {
return <div class={classNames("cell", { "main-col": i === 0 })}>{header}</div>
})}
</div>
<div>
{tableRows}
{pagination}
</div>
</div>
)
}
}
export default Table
```
|
```c
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
struct obj_t {
const char * hello;
};
static struct obj_t * obj;
int main(void) {
obj = malloc(sizeof(*obj));
assert(obj != NULL);
obj->hello = "World";
printf("{ ");
printf("hello: \"%s\"", obj->hello);
printf(" }\n");
free(obj);
return 0;
}
```
|
Grdovići () is a village in the municipality of Bar, Montenegro. It is located in the Skadarska Krajina region, by Lake Skadar.
Demographics
According to the 2011 census, its population was 175.
References
Populated places in Bar Municipality
|
(1553–1572) was a Japanese samurai of the Sengoku period, and an officer under the Oda clan.
During the battle of Mikatagahara, Hirohide was sent by Oda Nobunaga under Sakuma Nobumori to provide reinforcement to Tokugawa Ieyasu. When he was attacked by Takeda Shingen's vanguard, he was killed during the battle.
References
1553 births
1572 deaths
Samurai
Japanese warriors killed in battle
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. path_to_url
#ifndef CORE_FPDFAPI_PAGE_CPDF_SHADINGPATTERN_H_
#define CORE_FPDFAPI_PAGE_CPDF_SHADINGPATTERN_H_
#include <memory>
#include <vector>
#include "core/fpdfapi/page/cpdf_colorspace.h"
#include "core/fpdfapi/page/cpdf_pattern.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/unowned_ptr.h"
enum ShadingType {
kInvalidShading = 0,
kFunctionBasedShading = 1,
kAxialShading = 2,
kRadialShading = 3,
kFreeFormGouraudTriangleMeshShading = 4,
kLatticeFormGouraudTriangleMeshShading = 5,
kCoonsPatchMeshShading = 6,
kTensorProductPatchMeshShading = 7,
kMaxShading = 8
};
class CFX_Matrix;
class CPDF_ColorSpace;
class CPDF_Document;
class CPDF_Function;
class CPDF_Object;
class CPDF_ShadingPattern final : public CPDF_Pattern {
public:
CPDF_ShadingPattern(CPDF_Document* pDoc,
CPDF_Object* pPatternObj,
bool bShading,
const CFX_Matrix& parentMatrix);
~CPDF_ShadingPattern() override;
CPDF_TilingPattern* AsTilingPattern() override;
CPDF_ShadingPattern* AsShadingPattern() override;
bool IsMeshShading() const {
return m_ShadingType == kFreeFormGouraudTriangleMeshShading ||
m_ShadingType == kLatticeFormGouraudTriangleMeshShading ||
m_ShadingType == kCoonsPatchMeshShading ||
m_ShadingType == kTensorProductPatchMeshShading;
}
bool Load();
ShadingType GetShadingType() const { return m_ShadingType; }
bool IsShadingObject() const { return m_bShadingObj; }
const CPDF_Object* GetShadingObject() const { return m_pShadingObj.Get(); }
const CPDF_ColorSpace* GetCS() const { return m_pCS.Get(); }
const std::vector<std::unique_ptr<CPDF_Function>>& GetFuncs() const {
return m_pFunctions;
}
private:
// Constraints in PDF 1.7 spec, 4.6.3 Shading Patterns, pages 308-331.
bool Validate() const;
bool ValidateFunctions(uint32_t nExpectedNumFunctions,
uint32_t nExpectedNumInputs,
uint32_t nExpectedNumOutputs) const;
ShadingType m_ShadingType = kInvalidShading;
const bool m_bShadingObj;
UnownedPtr<const CPDF_Object> m_pShadingObj;
// Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed
// as counted objects. Refer to CPDF_DocPageData::GetColorSpace.
UnownedPtr<const CPDF_ColorSpace> m_pCS;
UnownedPtr<const CPDF_CountedColorSpace> m_pCountedCS;
std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions;
};
#endif // CORE_FPDFAPI_PAGE_CPDF_SHADINGPATTERN_H_
```
|
```c
/*++
version 3. Alternative licensing terms are available. Contact
info@minocacorp.com for details. See the LICENSE file at the root of this
project for complete licensing information.
Module Name:
int.c
Abstract:
This module contains the builtin primitive functions for the integer class.
Author:
Evan Green 12-Jul-2016
Environment:
C
--*/
//
// your_sha256_hash--- Includes
//
#include <stdio.h>
#include <stdlib.h>
#include "chalkp.h"
//
// your_sha256_hash----- Macros
//
//
// your_sha256_hash Definitions
//
//
// ------------------------------------------------------ Data Type Definitions
//
//
// ----------------------------------------------- Internal Function Prototypes
//
BOOL
CkpIntFromString (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntAdd (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntSubtract (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntMultiply (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntDivide (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntModulo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntAnd (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntOr (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntXor (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntLeftShift (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntRightShift (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntLessThan (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntLessOrEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntGreaterThan (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntGreaterOrEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntNotEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntInclusiveRange (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntExclusiveRange (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntNegative (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntLogicalNot (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntComplement (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntIncrement (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntDecrement (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntToString (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpIntToBaseString (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeFrom (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeTo (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeMin (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeMax (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeIsInclusive (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeIterate (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeIteratorValue (
PCK_VM Vm,
PCK_VALUE Arguments
);
BOOL
CkpRangeToString (
PCK_VM Vm,
PCK_VALUE Arguments
);
CK_VALUE
CkpIntegerToString (
PCK_VM Vm,
CK_INTEGER Integer,
ULONG Base,
BOOL Capitals
);
VOID
CkpStringReverse (
PSTR String,
PSTR StringEnd
);
//
// your_sha256_hash---- Globals
//
CK_PRIMITIVE_DESCRIPTION CkIntPrimitives[] = {
{"__add@1", 1, CkpIntAdd},
{"__sub@1", 1, CkpIntSubtract},
{"__mul@1", 1, CkpIntMultiply},
{"__div@1", 1, CkpIntDivide},
{"__mod@1", 1, CkpIntModulo},
{"__and@1", 1, CkpIntAnd},
{"__or@1", 1, CkpIntOr},
{"__xor@1", 1, CkpIntXor},
{"__leftShift@1", 1, CkpIntLeftShift},
{"__rightShift@1", 1, CkpIntRightShift},
{"__lt@1", 1, CkpIntLessThan},
{"__le@1", 1, CkpIntLessOrEqualTo},
{"__gt@1", 1, CkpIntGreaterThan},
{"__ge@1", 1, CkpIntGreaterOrEqualTo},
{"__eq@1", 1, CkpIntEqualTo},
{"__ne@1", 1, CkpIntNotEqualTo},
{"__rangeInclusive@1", 1, CkpIntInclusiveRange},
{"__rangeExclusive@1", 1, CkpIntExclusiveRange},
{"__neg@0", 0, CkpIntNegative},
{"__lnot@0", 0, CkpIntLogicalNot},
{"__compl@0", 0, CkpIntComplement},
{"__inc@0", 0, CkpIntIncrement},
{"__dec@0", 0, CkpIntDecrement},
{"__str@0", 0, CkpIntToString},
{"__repr@0", 0, CkpIntToString},
{"base@2", 2, CkpIntToBaseString},
{NULL, 0, NULL}
};
CK_PRIMITIVE_DESCRIPTION CkIntStaticPrimitives[] = {
{"fromString@1", 1, CkpIntFromString},
{NULL, 0, NULL}
};
CK_PRIMITIVE_DESCRIPTION CkRangePrimitives[] = {
{"from@0", 0, CkpRangeFrom},
{"to@0", 0, CkpRangeTo},
{"min@0", 0, CkpRangeMin},
{"max@0", 0, CkpRangeMax},
{"isInclusive@0", 0, CkpRangeIsInclusive},
{"iterate@1", 1, CkpRangeIterate},
{"iteratorValue@1", 1, CkpRangeIteratorValue},
{"__repr@0", 0, CkpRangeToString},
{NULL, 0, NULL}
};
//
// your_sha256_hash-- Functions
//
CK_VALUE
CkpRangeCreate (
PCK_VM Vm,
CK_INTEGER From,
CK_INTEGER To,
BOOL Inclusive
)
/*++
Routine Description:
This routine creates a range object.
Arguments:
Vm - Supplies a pointer to the virtual machine.
From - Supplies the starting value.
To - Supplies the ending value.
Inclusive - Supplies a boolean indicating whether the range is inclusive
or exclusive.
Return Value:
Returns the range value on success.
CK_NULL_VALUE on allocation failure.
--*/
{
PCK_RANGE Range;
CK_VALUE Value;
Range = CkAllocate(Vm, sizeof(CK_RANGE));
if (Range == NULL) {
return CkNullValue;
}
CkpInitializeObject(Vm, &(Range->Header), CkObjectRange, Vm->Class.Range);
Range->Inclusive = Inclusive;
Range->From = From;
Range->To = To;
CK_OBJECT_VALUE(Value, Range);
return Value;
}
BOOL
CkpIntFromString (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine converts a string into an integer.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PSTR AfterScan;
CK_INTEGER Integer;
PCK_STRING StringObject;
if (!CK_IS_STRING(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected a string");
return FALSE;
}
StringObject = CK_AS_STRING(Arguments[1]);
Integer = strtoll(StringObject->Value, &AfterScan, 0);
if (AfterScan != StringObject->Value + StringObject->Length) {
CkpRuntimeError(Vm, "ValueError", "Cannot convert string to integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0], Integer);
return TRUE;
}
BOOL
CkpIntAdd (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine adds two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) + CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntSubtract (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine subtract two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer.");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) - CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntMultiply (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine multiplies two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) * CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntDivide (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine divides two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) / CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntModulo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine computes the modulus of an integer.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) % CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntAnd (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine ANDs two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) & CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntOr (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine ORs two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) | CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntXor (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine XORx two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) ^ CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntLeftShift (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine shifts an integer left.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) << CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntRightShift (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine shifts an integer right.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) >> CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntLessThan (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is less than the
second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) < CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntLessOrEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is less than or
equal to the second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) <= CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntGreaterThan (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is greater than
the second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) > CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntGreaterOrEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is greater than
or equal to the second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) >= CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is equal to the
second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
Arguments[0] = CkZeroValue;
return TRUE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) == CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntNotEqualTo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine evaluates to non-zero if the first argument is not equal to
the second.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
if (!CK_IS_INTEGER(Arguments[1])) {
Arguments[0] = CkOneValue;
return TRUE;
}
CK_INT_VALUE(Arguments[0],
CK_AS_INTEGER(Arguments[0]) != CK_AS_INTEGER(Arguments[1]));
return TRUE;
}
BOOL
CkpIntInclusiveRange (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine creates an inclusive range object from the given two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_VALUE RangeValue;
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
RangeValue = CkpRangeCreate(Vm,
CK_AS_INTEGER(Arguments[0]),
CK_AS_INTEGER(Arguments[1]),
TRUE);
Arguments[0] = RangeValue;
return TRUE;
}
BOOL
CkpIntExclusiveRange (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine creates an exclusive range object from the given two integers.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_VALUE RangeValue;
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
RangeValue = CkpRangeCreate(Vm,
CK_AS_INTEGER(Arguments[0]),
CK_AS_INTEGER(Arguments[1]),
FALSE);
Arguments[0] = RangeValue;
return TRUE;
}
BOOL
CkpIntNegative (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the negative of the given value.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INT_VALUE(Arguments[0], -CK_AS_INTEGER(Arguments[0]));
return TRUE;
}
BOOL
CkpIntLogicalNot (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the logical NOT of the given value.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INT_VALUE(Arguments[0], !CK_AS_INTEGER(Arguments[0]));
return TRUE;
}
BOOL
CkpIntComplement (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the bitwise NOT of the given value.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INT_VALUE(Arguments[0], ~CK_AS_INTEGER(Arguments[0]));
return TRUE;
}
BOOL
CkpIntIncrement (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine increments the given value.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INT_VALUE(Arguments[0], CK_AS_INTEGER(Arguments[0]) + 1);
return TRUE;
}
BOOL
CkpIntDecrement (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine decrements the given value.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INT_VALUE(Arguments[0], CK_AS_INTEGER(Arguments[0]) - 1);
return TRUE;
}
BOOL
CkpIntToString (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine converts the given integer into a string.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_VALUE Value;
Value = CkpIntegerToString(Vm, CK_AS_INTEGER(Arguments[0]), 10, FALSE);
Arguments[0] = Value;
return TRUE;
}
BOOL
CkpIntToBaseString (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine converts the given integer into a string of the requested
base.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INTEGER Base;
CK_INTEGER Capitals;
CK_VALUE Value;
if ((!CK_IS_INTEGER(Arguments[1])) || (!CK_IS_INTEGER(Arguments[2]))) {
CkpRuntimeError(Vm, "TypeError", "Integer expected");
return FALSE;
}
Base = CK_AS_INTEGER(Arguments[1]);
if ((Base < 2) || (Base > 36)) {
CkpRuntimeError(Vm, "ValueError", "Invalid base");
return FALSE;
}
Capitals = CK_AS_INTEGER(Arguments[2]);
Value = CkpIntegerToString(Vm, CK_AS_INTEGER(Arguments[0]), Base, Capitals);
Arguments[0] = Value;
return TRUE;
}
BOOL
CkpRangeFrom (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the left boundary of the given range.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
CK_INT_VALUE(Arguments[0], Range->From);
return TRUE;
}
BOOL
CkpRangeTo (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the right boundary of the given range, which may be
inclusive or exclusive.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
CK_INT_VALUE(Arguments[0], Range->To);
return TRUE;
}
BOOL
CkpRangeMin (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the lower of the from or to values of the range.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
if (Range->From < Range->To) {
CK_INT_VALUE(Arguments[0], Range->From);
} else {
CK_INT_VALUE(Arguments[0], Range->To);
}
return TRUE;
}
BOOL
CkpRangeMax (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the greater of the from or to values of the range.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
if (Range->From > Range->To) {
CK_INT_VALUE(Arguments[0], Range->From);
} else {
CK_INT_VALUE(Arguments[0], Range->To);
}
return TRUE;
}
BOOL
CkpRangeIsInclusive (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns whether or not the given range is inclusive.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
CK_INT_VALUE(Arguments[0], Range->Inclusive);
return TRUE;
}
BOOL
CkpRangeIterate (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine creates or advances a range iterator.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
CK_INTEGER Integer;
PCK_RANGE Range;
Range = CK_AS_RANGE(Arguments[0]);
if ((Range->From == Range->To) && (Range->Inclusive == FALSE)) {
Arguments[0] = CkNullValue;
return TRUE;
}
//
// If null was passed in, return the initial iterator.
//
if (CK_IS_NULL(Arguments[1])) {
CK_INT_VALUE(Arguments[0], Range->From);
return TRUE;
}
if (!CK_IS_INTEGER(Arguments[1])) {
CkpRuntimeError(Vm, "TypeError", "Expected an integer");
return FALSE;
}
//
// Advance the iterator value.
//
Integer = CK_AS_INTEGER(Arguments[1]);
if (Range->From < Range->To) {
Integer += 1;
if (Integer > Range->To) {
Arguments[0] = CkNullValue;
return TRUE;
}
} else {
Integer -= 1;
if (Integer < Range->To) {
Arguments[0] = CkNullValue;
return TRUE;
}
}
//
// If it's at the destination, whether it's returned depends on the
// inclusiveness.
//
if ((Integer == Range->To) && (Range->Inclusive == FALSE)) {
Arguments[0] = CkNullValue;
return TRUE;
}
CK_INT_VALUE(Arguments[0], Integer);
return TRUE;
}
BOOL
CkpRangeIteratorValue (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine returns the actual iterator value for the particular iterator
position.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
//
// The iterator is just the number itself, so simply return it.
//
Arguments[0] = Arguments[1];
return TRUE;
}
BOOL
CkpRangeToString (
PCK_VM Vm,
PCK_VALUE Arguments
)
/*++
Routine Description:
This routine converts a range to a string.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Arguments - Supplies the function arguments.
Return Value:
TRUE on success.
FALSE if execution caused a runtime error.
--*/
{
PSTR Dots;
CK_VALUE From;
PCK_RANGE Range;
CK_VALUE To;
Range = CK_AS_RANGE(Arguments[0]);
From = CkpIntegerToString(Vm, Range->From, 10, FALSE);
if (!CK_IS_OBJECT(From)) {
return FALSE;
}
CkpPushRoot(Vm, CK_AS_OBJECT(From));
To = CkpIntegerToString(Vm, Range->To, 10, FALSE);
if (!CK_IS_OBJECT(To)) {
CkpPopRoot(Vm);
return FALSE;
}
CkpPushRoot(Vm, CK_AS_OBJECT(To));
Dots = "..";
if (Range->Inclusive != FALSE) {
Dots = "...";
}
Arguments[0] = CkpStringFormat(Vm, "@$@", From, Dots, To);
CkpPopRoot(Vm);
CkpPopRoot(Vm);
return TRUE;
}
//
// --------------------------------------------------------- Internal Functions
//
CK_VALUE
CkpIntegerToString (
PCK_VM Vm,
CK_INTEGER Integer,
ULONG Base,
BOOL Capitals
)
/*++
Routine Description:
This routine converts an integer to a string.
Arguments:
Vm - Supplies a pointer to the virtual machine.
Integer - Supplies the integer to convert.
Base - Supplies the radix to convert with.
Capitals - Supplies whether or not to use capital letters when converting
digits greater than 9.
Return Value:
Returns the string value on success.
CK_NULL_VALUE on allocation failure.
--*/
{
CHAR Buffer[70];
PSTR Current;
ULONG Digit;
PSTR Start;
ULONGLONG Value;
Current = Buffer;
Value = Integer;
CK_ASSERT((Base > 1) && (Base <= 36));
//
// Currently only base 10 can be negative, everything else is unsigned.
//
if ((Base == 10) && (Integer < 0)) {
*Current = '-';
Current += 1;
Value = -Integer;
}
if (Value == 0) {
*Current = '0';
Current += 1;
}
Start = Current;
//
// Convert the value backwards because it's easier.
//
while (Value != 0) {
Digit = Value % Base;
Value /= Base;
if (Digit < 10) {
*Current = '0' + Digit;
} else {
if (Capitals != FALSE) {
*Current = 'A' + Digit - 0xA;
} else {
*Current = 'a' + Digit - 0xA;
}
}
Current += 1;
}
//
// Now reverse the string.
//
if (Current > Start + 1) {
CkpStringReverse(Start, Current);
}
return CkpStringCreate(Vm, Buffer, Current - Buffer);
}
VOID
CkpStringReverse (
PSTR String,
PSTR StringEnd
)
/*++
Routine Description:
This routine reverses the contents of a string inline. For example, the
string "abcd" would get reversed to "dcba".
Arguments:
String - Supplies a pointer to the beginning of the string to reverse.
StringEnd - Supplies a pointer to one beyond the end of the string. That is,
this pointer points to the first byte *not* in the string.
Return Value:
None.
--*/
{
UINTN Length;
UINTN Position;
UCHAR SwapSpace;
Length = StringEnd - String;
//
// Work from the left towards the middle, swapping characters with their
// positions on the other extreme. The truncation of Length / 2 is okay
// because odd length strings do not need their middle byte swapped.
//
for (Position = 0; Position < (Length / 2); Position += 1) {
SwapSpace = String[Position];
String[Position] = String[Length - Position - 1];
String[Length - Position - 1] = SwapSpace;
}
return;
}
```
|
Argyll's Bowling Green ( meaning "sunny hamlet" or "sunny cattle fold") is an area on the Ardgoil estate in Argyll and Bute, Scotland. It is also known as the Ardgoil peninsula and is the most southerly part of the Arrochar Alps and lies between Loch Goil and Loch Long. It is part of the Argyll Forest Park and is within the Loch Lomond and the Trossachs National Park.
The name is marked on James Dorret's 1750 General Map of Scotland and Islands thereto belonging. In the 1834-45 account by Rev John McDougal, minister of the area, he describes how people going to the low country (south) had to climb the “Duke of Argyle’s bowling green”. This was part of a route called the “Duke's Path” which started on the shore of Loch Goil and ended at a place called Mark on the shore of Loch Long where you crossed the loch by boat.
The name is an anglicisation of the Gaelic, which may be consciously humorous, as there is very little flat land. The name originally referred to a small grazing ground on the south east side of the peninsula above Mark () but is sometimes used to describe the peninsula.
The mountains of the peninsula include:
Ben Donich 847m
The Brack 787m
Cnoc Coinnich 761m
Beinn Reithe 653m
The Saddle 521m
Clach Bheinn 437m
Tom Molach 370m
Càrn Glas 502m
Tom nan Gamhna 389m
The Steeple 390m
References
Murray, W.H. (1977) The Companion Guide to the West Highlands of Scotland. London. Collins.
Statistical Account of the United Parishes of Lochgoilhead & Kilmorich (1791–99) by Rev. Dugal McDougal
Statistical Account of the United Parishes of Lochgoilhead & Kilmorich (1834–45) by Rev. John McDougal
Notes
Peninsulas of Scotland
Landforms of Argyll and Bute
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
namespace base {
FileEnumerator::FileInfo::~FileInfo()
{
}
bool FileEnumerator::ShouldSkip(const FilePath& path)
{
FilePath::StringType basename = path.BaseName().value();
return basename == FILE_PATH_LITERAL(".") || (basename == FILE_PATH_LITERAL("..") && !(INCLUDE_DOT_DOT & file_type_));
}
} // namespace base
```
|
is a town located in Kasuya District, Fukuoka Prefecture, Japan.
As of April 30, 2017, the town has an estimated population of 46,709 and a density of 3,300 persons per km². The total area is 14.12 km².
The district is served by the Kashii Line and the Sasaguri Line.
References
External links
Kasuya official website
Towns in Fukuoka Prefecture
|
The Xavier Musketeers women's basketball team represents Xavier University in Cincinnati, Ohio, United States. The school's team currently competes in the Big East after moving from the Atlantic 10 following the 2012–13 season. The Musketeers are currently coached by Billi Chambers.
History
The Musketeers previously competed in the Midwestern Collegiate Conference after spending the first three years of Division I play in the North Star Conference, beginning in the 1983–1984 season. The women's basketball team began competing in the 1971–72 season under coach Tony Brueneman and had their first winning season two years later, obtaining a 7–6 record.
Yearly records
NCAA tournament results
References
External links
|
HSwMS Wale (3) was a destroyer of the Swedish Navy. Wale was built by Kockums Shipyard and launched on September 21, 1907 and delivered to the fleet on 11 April 1908. The vessel was based on the two former British-built destroyers and . Wale was the first destroyer to be built in Sweden and was influential in the development of the destroyers in that nation. After Wale, in the years 1907–1911, another five destroyers followed with essentially the same design. These were two ships of the and three ships of the . Wale was decommissioned on 18 November 1940. She was sunk as a target outside Fårösund by the Swedish Coastal Artillery and the on 26 September 1946.
References
Notes
Print
Destroyers of the Swedish Navy
1907 ships
Ships built in Malmö
Shipwrecks of Sweden
Shipwrecks in the Baltic Sea
Ships sunk as targets
|
```java
package com.didispace;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTests {
@Autowired
private PersonRepository personRepository;
@Test
public void findAll() throws Exception {
personRepository.findAll().forEach(p -> {
System.out.println(p);
});
}
@Test
public void save() throws Exception {
Person person = new Person();
person.setUid("uid:1");
person.setSuerName("AAA");
person.setCommonName("aaa");
person.setUserPassword("123456");
personRepository.save(person);
personRepository.findAll().forEach(p -> {
System.out.println(p);
});
}
}
```
|
Scopula serratilinea is a moth of the family Geometridae. It is found in Peru.
References
Moths described in 1907
serratilinea
Moths of South America
|
```objective-c
/*
* This file is part of libsidplayfp, a SID player engine.
*
*
* This program is free software; you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef INTEGRATOR8580_H
#define INTEGRATOR8580_H
#include "FilterModelConfig8580.h"
#include <stdint.h>
#include <cassert>
#include "siddefs-fp.h"
namespace reSIDfp
{
/**
* 8580 integrator
*
* +---C---+
* | |
* vi -----Rfc---o--[A>--o-- vo
* vx
*
* IRfc + ICr = 0
* IRfc + C*(vc - vc0)/dt = 0
* dt/C*(IRfc) + vc - vc0 = 0
* vc = vc0 - n*(IRfc(vi,vx))
* vc = vc0 - n*(IRfc(vi,g(vc)))
*
* IRfc = K*W/L*(Vgst^2 - Vgdt^2) = n*((Vddt - vx)^2 - (Vddt - vi)^2)
*
* Rfc gate voltage is generated by an OP Amp and depends on chip temperature.
*/
class Integrator8580
{
private:
mutable int vx;
mutable int vc;
unsigned short nVgt;
unsigned short n_dac;
const FilterModelConfig8580* fmc;
public:
Integrator8580(const FilterModelConfig8580* fmc) :
vx(0),
vc(0),
fmc(fmc)
{
setV(1.5);
}
/**
* Set Filter Cutoff resistor ratio.
*/
void setFc(double wl)
{
// Normalized current factor, 1 cycle at 1MHz.
// Fit in 5 bits.
n_dac = fmc->getNormalizedCurrentFactor(wl);
}
/**
* Set FC gate voltage multiplier.
*/
void setV(double v)
{
// Gate voltage is controlled by the switched capacitor voltage divider
// Ua = Ue * v = 4.76v 1<v<2
assert(v > 1.0 && v < 2.0);
const double Vg = 4.76 * v;
const double Vgt = Vg - fmc->getVth();
// Vg - Vth, normalized so that translated values can be subtracted:
// Vgt - x = (Vgt - t) - (x - t)
nVgt = fmc->getNormalizedValue(Vgt);
}
int solve(int vi) const;
};
} // namespace reSIDfp
#if RESID_INLINING || defined(INTEGRATOR8580_CPP)
namespace reSIDfp
{
RESID_INLINE
int Integrator8580::solve(int vi) const
{
// Make sure we're not in subthreshold mode
assert(vx < nVgt);
// DAC voltages
const unsigned int Vgst = nVgt - vx;
const unsigned int Vgdt = (vi < nVgt) ? nVgt - vi : 0; // triode/saturation mode
const unsigned int Vgst_2 = Vgst * Vgst;
const unsigned int Vgdt_2 = Vgdt * Vgdt;
// DAC current, scaled by (1/m)*2^13*m*2^16*m*2^16*2^-15 = m*2^30
const int n_I_dac = n_dac * (static_cast<int>(Vgst_2 - Vgdt_2) >> 15);
// Change in capacitor charge.
vc += n_I_dac;
// vx = g(vc)
const int tmp = (vc >> 15) + (1 << 15);
assert(tmp < (1 << 16));
vx = fmc->getOpampRev(tmp);
// Return vo.
return vx - (vc >> 14);
}
} // namespace reSIDfp
#endif
#endif
```
|
```c#
@{
ViewData["Title"] = "Privacy Policy";
}
<h2>@ViewData["Title"]</h2>
<p>Use this page to detail your site's privacy policy.</p>
```
|
```shell
#!/bin/sh
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2019-02-15 12:51:17 +0000 (Fri, 15 Feb 2019)
#
# path_to_url
#
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# path_to_url
#
# cannot -set -o pipefail because some docker images version of 'sh' do not support it, namely debian and ubuntu
set -eu
[ -n "${DEBUG:-}" ] && set -x
# cannot allow set -e because it will cause an exit before the exec to interactive
(
exec "${SHELL:-sh}" -i 3<<EOF 4<&0 <&3
set +e
$@
exec 3>&- <&4
EOF
)
```
|
```css
/** Styles that follow the corporate branding guidelines, and which give a web/bootstrap look'n'feel */
.root-pane {
-fx-font-family: sans-serif;
-fx-font-size: 14pt;
-db-grey: #ddd;
}
.button {
-fx-padding: 12px;
-fx-border-radius: 4px;
}
.info-button {
-fx-base: #5bc0de;
-fx-text-fill: white;
-fx-border-color: #298dff;
-fx-background-color: linear-gradient(to bottom, #70b3ff 0%, #3392ff 100%);
}
.info-button:hover {
-fx-background-color: #3392ff;
}
.tab-pane:top > .tab-header-area > .tab-header-background {
-fx-background-color: white;
-fx-border-color: -db-grey;
-fx-border-width: 0 0 1 0;
}
.tab-pane:top > .tab-header-area {
-fx-padding: 0.816667em 0 0 8em;
}
.tab .focus-indicator {
-fx-border-width: 0, 0, 0;
}
.tab, .tab:selected:hover {
-fx-background-color: white;
-fx-background-radius: 0;
-fx-border-radius: 4px 4px 0 0;
-fx-padding: 10px 15px;
}
.tab:selected {
-fx-border-width: 1;
-fx-border-color: -db-grey -db-grey white -db-grey;
}
.tab:hover {
-fx-background-color: -db-grey;
-fx-background-radius: 4px 4px 0 0;
-fx-cursor: hand;
}
```
|
```c
/* vi:set et sw=2 sts=2 cin cino=t0,f0,(0,{s,>2s,n-s,^-s,e-s:
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library 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
*
* Authors:
* Alexander Larsson <alexl@redhat.com>
*/
#include "config.h"
#include <locale.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <glib/gi18n.h>
#include "libglnx.h"
#include "flatpak-builtins.h"
#include "flatpak-repo-utils-private.h"
#include "flatpak-utils-private.h"
static char *opt_arch;
static gboolean opt_runtime;
static char **opt_gpg_key_ids;
static char *opt_gpg_homedir;
static GOptionEntry options[] = {
{ "arch", 0, 0, G_OPTION_ARG_STRING, &opt_arch, N_("Arch to install for"), N_("ARCH") },
{ "runtime", 0, 0, G_OPTION_ARG_NONE, &opt_runtime, N_("Look for runtime with the specified name"), NULL },
{ "gpg-sign", 0, 0, G_OPTION_ARG_STRING_ARRAY, &opt_gpg_key_ids, N_("GPG Key ID to sign the commit with"), N_("KEY-ID") },
{ "gpg-homedir", 0, 0, G_OPTION_ARG_STRING, &opt_gpg_homedir, N_("GPG Homedir to use when looking for keyrings"), N_("HOMEDIR") },
{ NULL }
};
gboolean
flatpak_builtin_build_sign (int argc, char **argv, GCancellable *cancellable, GError **error)
{
g_autoptr(GOptionContext) context = NULL;
g_autoptr(GFile) repofile = NULL;
g_autoptr(OstreeRepo) repo = NULL;
g_autoptr(GError) my_error = NULL;
const char *location;
const char *branch;
const char *id = NULL;
g_autofree char *commit_checksum = NULL;
int i;
char **iter;
g_autoptr(GPtrArray) refs = g_ptr_array_new_with_free_func (g_free);
const char *collection_id;
context = g_option_context_new (_("LOCATION [ID [BRANCH]] - Sign an application or runtime"));
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
if (!flatpak_option_context_parse (context, options, &argc, &argv, FLATPAK_BUILTIN_FLAG_NO_DIR, NULL, cancellable, error))
return FALSE;
if (argc < 2)
return usage_error (context, _("LOCATION must be specified"), error);
if (argc > 4)
return usage_error (context, _("Too many arguments"), error);
location = argv[1];
if (argc >= 3)
id = argv[2];
if (argc >= 4)
branch = argv[3];
else
branch = "master";
if (id != NULL && !flatpak_is_valid_name (id, -1, &my_error))
return flatpak_fail (error, _("'%s' is not a valid name: %s"), id, my_error->message);
if (!flatpak_is_valid_branch (branch, -1, &my_error))
return flatpak_fail (error, _("'%s' is not a valid branch name: %s"), branch, my_error->message);
if (opt_gpg_key_ids == NULL)
return flatpak_fail (error, _("No gpg key ids specified"));
repofile = g_file_new_for_commandline_arg (location);
repo = ostree_repo_new (repofile);
if (!ostree_repo_open (repo, cancellable, error))
return FALSE;
collection_id = ostree_repo_get_collection_id (repo);
if (id)
{
g_autofree char *ref = NULL;
if (opt_runtime)
ref = flatpak_build_runtime_ref (id, branch, opt_arch);
else
ref = flatpak_build_app_ref (id, branch, opt_arch);
g_ptr_array_add (refs, g_steal_pointer (&ref));
}
else
{
g_autoptr(GHashTable) all_refs = NULL;
GHashTableIter hashiter;
gpointer key, value;
if (!ostree_repo_list_refs_ext (repo, NULL, &all_refs,
OSTREE_REPO_LIST_REFS_EXT_NONE,
cancellable, error))
return FALSE;
/* Merge the prefix refs to the full refs table */
g_hash_table_iter_init (&hashiter, all_refs);
while (g_hash_table_iter_next (&hashiter, &key, &value))
{
if (g_str_has_prefix (key, "app/") ||
g_str_has_prefix (key, "runtime/"))
g_ptr_array_add (refs, g_strdup (key));
}
}
for (i = 0; i < refs->len; i++)
{
const char *ref = g_ptr_array_index (refs, i);
if (!flatpak_repo_resolve_rev (repo, collection_id, NULL, ref, FALSE,
&commit_checksum, cancellable, error))
return FALSE;
for (iter = opt_gpg_key_ids; iter && *iter; iter++)
{
const char *keyid = *iter;
g_autoptr(GError) local_error = NULL;
if (!ostree_repo_sign_commit (repo,
commit_checksum,
keyid,
opt_gpg_homedir,
cancellable,
&local_error))
{
if (!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_EXISTS))
{
g_propagate_error (error, g_steal_pointer (&local_error));
return FALSE;
}
}
}
}
return TRUE;
}
gboolean
flatpak_complete_build_sign (FlatpakCompletion *completion)
{
g_autoptr(GOptionContext) context = NULL;
context = g_option_context_new ("");
if (!flatpak_option_context_parse (context, options, &completion->argc, &completion->argv,
FLATPAK_BUILTIN_FLAG_NO_DIR, NULL, NULL, NULL))
return FALSE;
switch (completion->argc)
{
case 0:
case 1: /* LOCATION */
flatpak_complete_options (completion, global_entries);
flatpak_complete_options (completion, options);
flatpak_complete_dir (completion);
break;
case 2: /* ID */
break;
case 3: /* BRANCH */
break;
}
return TRUE;
}
```
|
```objective-c
/*******************************************************************************
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
/*!
* @header Pair.h
* @copyright (c) 2017, Jean-David Gadina - www.xs-labs.com
*/
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface Pair< __covariant FirstType, __covariant SecondType >: NSObject
@property( atomic, readwrite, strong, nullable ) FirstType first;
@property( atomic, readwrite, strong, nullable ) SecondType second;
- ( instancetype )initWithFirstValue: ( nullable FirstType )v1 secondValue: ( nullable SecondType )v2 NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END
```
|
```yaml
# UTF-8
# YAML #
# name
name:
# other_names ...
# YAML
# other_names: {"":"", "":"", "":"Tom"}
#
other_names: {"":""}
# sex M/F /
sex: M
# birth 4 N/A
birth: 1977
# death 4 N/A
death:
# desc YAML
# desc
desc: |
# links YAML list
#
#
links:
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.graalvm.visualvm.modules.saplugin;
import org.graalvm.visualvm.application.Application;
import org.graalvm.visualvm.core.datasource.DataSource;
import org.graalvm.visualvm.core.snapshot.Snapshot;
import org.graalvm.visualvm.core.ui.DataSourceView;
import org.graalvm.visualvm.core.ui.DataSourceViewsManager;
import org.graalvm.visualvm.core.ui.DataSourceViewProvider;
import org.graalvm.visualvm.coredump.CoreDump;
import org.graalvm.visualvm.host.Host;
import org.graalvm.visualvm.tools.jvmstat.JvmJvmstatModel;
import org.graalvm.visualvm.tools.jvmstat.JvmJvmstatModelFactory;
import java.io.File;
/**
*
* @author poonam
*/
class SAViewProvider extends DataSourceViewProvider<DataSource> {
private static DataSourceViewProvider<DataSource> instance = new SAViewProvider();
private SAView saview = null;
@Override
public boolean supportsViewFor(DataSource ds) {
if (ds == Application.CURRENT_APPLICATION)
return false;
if (ds instanceof Application) {
if (Host.LOCALHOST.equals(((Application) ds).getHost())) {
JvmJvmstatModel jvmstat = JvmJvmstatModelFactory.getJvmstatModelFor((Application) ds);
if (jvmstat == null) {
return false;
}
File jdkHome = new File(jvmstat.getJavaHome());
if ("jre".equals(jdkHome.getName())) {
jdkHome = jdkHome.getParentFile();
}
File saJar = SAModelProvider.getSaJar(jdkHome);
if (saJar == null) {
return false;
} else {
return true;
}
}
} else if (ds instanceof CoreDump) {
CoreDump coredump = (CoreDump) ds;
File executable = new File(coredump.getExecutable());
File coreFile = coredump.getFile();
if (executable.exists() && coreFile.exists()) {
File jdkHome = executable.getParentFile().getParentFile();
File saJar = SAModelProvider.getSaJar(jdkHome);
if (saJar == null) {
return false;
} else {
return true;
}
}
}
return false;
}
@Override
public synchronized DataSourceView createView(final DataSource ds) {
saview = new SAView(ds);
return saview;
}
//@Override
public boolean supportsSaveViewsFor(DataSource arg0) {
return false;
}
// @Override
public void saveViews(DataSource arg0, Snapshot arg1) {
}
void initialize() {
DataSourceViewsManager.sharedInstance().addViewProvider(instance, DataSource.class);
}
static void unregister() {
DataSourceViewsManager.sharedInstance().removeViewProvider(instance);
}
}
```
|
Krusdorf is a former municipality in the district of Südoststeiermark in the Austrian state of Styria. Since the 2015 Styria municipal structural reform, it is part of the municipality Straden.
Population
References
Cities and towns in Südoststeiermark District
|
```objective-c
#ifndef SYNCTHINGCONNECTION_STATUS_H
#define SYNCTHINGCONNECTION_STATUS_H
#include "./global.h"
#include <QObject>
namespace Data {
#undef Q_NAMESPACE
#define Q_NAMESPACE
Q_NAMESPACE
extern LIB_SYNCTHING_CONNECTOR_EXPORT const QMetaObject staticMetaObject;
QT_ANNOTATE_CLASS(qt_qnamespace, "") /*end*/
/*!
* \brief The SyncthingStatus enum specifies the overall status of the connection to Syncthing via its REST-API.
*
* Scanning, paused and (remote) synchronizing are only computed if the SyncthingStatusComputionFlags are set for
* these.
*
* This is *not* a flag enum even though the "connected" states are not exclusive. That's because only one icon can be
* shown at the same time anyway. Checkout SyncthingConnection::setStatus() for the precedence.
*/
enum class SyncthingStatus {
Disconnected = 0, /**< disconnected, possibly currently connecting */
Reconnecting = 1, /**< disconnected, currently re-connnecting */
BeingDestroyed = 7, /**< status is unknown; the SyncthingConnnection object is being destroyed anyway */
Idle = 2, /**< connected, no special status information available/determined */
Scanning = 3, /**< connected, at least one directory is scanning */
Paused = 4, /**< connected, at least one device is paused */
Synchronizing = 5, /**< connected, at least one local directory is waiting to sync, preparing to sync or synchronizing */
RemoteNotInSync = 8, /**< connected, at least one directory of a connected remote device is not in sync (still synchronizing, error, ) */
};
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
Q_ENUM_NS(SyncthingStatus)
#endif
/*!
* \brief The SyncthingErrorCategory enum classifies different errors related to the SyncthingConnection class.
*/
enum class SyncthingErrorCategory {
OverallConnection, /**< an error affecting the overall connection */
SpecificRequest, /**< an error only affecting a specific request */
Parsing, /**< an error when parsing Syncthing's response as a JSON document */
TLS, /**< a TLS error occurred */
};
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
Q_ENUM_NS(SyncthingErrorCategory)
#endif
} // namespace Data
#endif // SYNCTHINGCONNECTION_STATUS_H
```
|
```php
<?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license path_to_url MIT
*/
declare(strict_types=1);
namespace Ramsey\Uuid\Type;
use JsonSerializable;
use Serializable;
/**
* TypeInterface ensures consistency in typed values returned by ramsey/uuid
*
* @psalm-immutable
*/
interface TypeInterface extends JsonSerializable, Serializable
{
public function toString(): string;
public function __toString(): string;
}
```
|
```go
// Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the high-level patch state of one or more managed nodes.
func (c *Client) DescribeInstancePatchStates(ctx context.Context, params *DescribeInstancePatchStatesInput, optFns ...func(*Options)) (*DescribeInstancePatchStatesOutput, error) {
if params == nil {
params = &DescribeInstancePatchStatesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeInstancePatchStates", params, optFns, c.addOperationDescribeInstancePatchStatesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeInstancePatchStatesOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeInstancePatchStatesInput struct {
// The ID of the managed node for which patch state information should be
// retrieved.
//
// This member is required.
InstanceIds []string
// The maximum number of managed nodes to return (per page).
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribeInstancePatchStatesOutput struct {
// The high-level patch state for the requested managed nodes.
InstancePatchStates []types.InstancePatchState
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeInstancePatchStatesMiddlewares(stack *middleware.Stack, options Options) (err error) {
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
return err
}
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeInstancePatchStates{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeInstancePatchStates{}, middleware.After)
if err != nil {
return err
}
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstancePatchStates"); err != nil {
return fmt.Errorf("add protocol finalizers: %v", err)
}
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = addClientRequestID(stack); err != nil {
return err
}
if err = addComputeContentLength(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = addComputePayloadSHA256(stack); err != nil {
return err
}
if err = addRetry(stack, options); err != nil {
return err
}
if err = addRawResponseToMetadata(stack); err != nil {
return err
}
if err = addRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack, options); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
return err
}
if err = addTimeOffsetBuild(stack, c); err != nil {
return err
}
if err = addUserAgentRetryMode(stack, options); err != nil {
return err
}
if err = addOpDescribeInstancePatchStatesValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstancePatchStates(options.Region), middleware.Before); err != nil {
return err
}
if err = addRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
return err
}
return nil
}
// DescribeInstancePatchStatesPaginatorOptions is the paginator options for
// DescribeInstancePatchStates
type DescribeInstancePatchStatesPaginatorOptions struct {
// The maximum number of managed nodes to return (per page).
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// DescribeInstancePatchStatesPaginator is a paginator for
// DescribeInstancePatchStates
type DescribeInstancePatchStatesPaginator struct {
options DescribeInstancePatchStatesPaginatorOptions
client DescribeInstancePatchStatesAPIClient
params *DescribeInstancePatchStatesInput
nextToken *string
firstPage bool
}
// NewDescribeInstancePatchStatesPaginator returns a new
// DescribeInstancePatchStatesPaginator
func NewDescribeInstancePatchStatesPaginator(client DescribeInstancePatchStatesAPIClient, params *DescribeInstancePatchStatesInput, optFns ...func(*DescribeInstancePatchStatesPaginatorOptions)) *DescribeInstancePatchStatesPaginator {
if params == nil {
params = &DescribeInstancePatchStatesInput{}
}
options := DescribeInstancePatchStatesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeInstancePatchStatesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeInstancePatchStatesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeInstancePatchStates page.
func (p *DescribeInstancePatchStatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstancePatchStatesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
optFns = append([]func(*Options){
addIsPaginatorUserAgent,
}, optFns...)
result, err := p.client.DescribeInstancePatchStates(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
// DescribeInstancePatchStatesAPIClient is a client that implements the
// DescribeInstancePatchStates operation.
type DescribeInstancePatchStatesAPIClient interface {
DescribeInstancePatchStates(context.Context, *DescribeInstancePatchStatesInput, ...func(*Options)) (*DescribeInstancePatchStatesOutput, error)
}
var _ DescribeInstancePatchStatesAPIClient = (*Client)(nil)
func newServiceMetadataMiddleware_opDescribeInstancePatchStates(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
OperationName: "DescribeInstancePatchStates",
}
}
```
|
P-Rock TV was a UK-based music channel which played mostly music videos in the Punk and Ska genres. It also featured underground rap and hardcore artists. It was first set up in November 2002 by two South London-based businessmen on a marketing budget of £2,500, with no previous TV experience. The channel continued into 2003 when it was cancelled.
Audience
The channel provided an alternative to the other rock-orientated music video channels around at the time. P-Rock played videos almost constantly, in contrast to channels such as MTV2 which often features interview segments in the form of talk shows and other such programming. Also, P-Rock provided an alternative to the other channels of similar nature, in the manner of the type of music that was played. The channel played lesser-known underground bands, as well as more popular acts. Also, there was much more focus on contemporary and classic punk rock than the metal and rock that Kerrang! featured heavily in its programming.
Playlist
The channel's popularity relied partially upon the inclusion of popular artists among its track list. However, the playlist also featured a number of bands that rarely, if ever, had any time devoted to them on other channels, such as Farse. It mainly played US bands, but also included some UK bands, particularly more underground acts. Over the Christmas 2002 period, the channel notably played videos by Rancid, Lars Frederiksen and the Bastards, The Distillers, The Vandals, The Offspring, Tsunami Bomb, Jimmy Eat World and Reel Big Fish, as well as a number of artists on Drive Thru Records such as Allister and Homegrown. They later extended to underground rap-rock bands such as Cypress Hill and N.E.R.D. The channel also branched out and introduced less well known bands such as Good Riddance, Bouncing Souls, No Use for a Name and King Prawn.
Programming
The channel managed a near non-stop stream of viewer-selected videos filled on the schedule, while there were features such as the Top 10 at weekends, or late at night. The channel also allowed itself to show some of the less savoury music videos at night that were banned from daytime showing, such as the gory video to the Misfits song "Scream".
Complaints
Technical problems were rife during the channel's run, some of which being satellite failure and glitches in the videos.
Cancellation
P-Rock's co-founder and financial backer Mark Shipman, has stated that lack of commitment by advertisers led to the decision to close the channel down, when in fact the channel was cartelled by both Viacom and E-map who, at the time, were the owners of all the other music channels on the Sky platform. Although it was receiving over 600,000 viewers a week around the time of closure, the reluctance of advertisers to risk losing spots on the other music channels meant p-rock.tv without adverts was no longer financially secure.
After its original cancellation, the channel resumed playing in May 2003 for a brief while but was later cancelled a second time. Before its final cancellation, the channel was put on a permanent technical failure notice, before being closed down for the final time.
References
Music video networks in the United Kingdom
Defunct television channels in the United Kingdom
|
```c
/* $OpenBSD: zopenbsd.c,v 1.10 2021/07/22 16:40:20 tb Exp $ */
/*
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/types.h>
#include <sys/malloc.h>
/*
* Space allocation and freeing routines for use by zlib routines.
*/
void *
zcalloc(void *notused, u_int items, u_int size)
{
return mallocarray(items, size, M_DEVBUF, M_NOWAIT);
}
void
zcfree(void *notused, void *ptr, u_int size)
{
free(ptr, M_DEVBUF, size);
}
```
|
```javascript
import amqp from 'amqplib'
import config from '../config'
export const AMBAR_PIPELINE_QUEUE = "AMBAR_PIPELINE_QUEUE"
export const AMBAR_PIPELINE_QUEUE_MAX_PRIORITY = 2
export const AMBAR_PIPELINE_EXCHANGE = "AMBAR_PIPELINE_EXCHANGE"
export const AMBAR_PIPELINE_WAITING_QUEUE = "AMBAR_PIPELINE_WAITING_QUEUE"
export const AMBAR_PIPELINE_WAITING_EXCHANGE = "AMBAR_PIPELINE_WAITING_EXCHANGE"
export const AMBAR_PIPELINE_WAITING_QUEUE_TTL = 60 * 60 * 1000
const getPipelineMessagePriority = (storage, fileName) => new Promise((resolve) => {
const regex = /(\.jp[e]*g$)|(\.png$)|(\.bmp$)|(\.tif[f]*$)|(\.pdf$)/i
const priority = regex.test(fileName) ? 1 : 2
resolve(priority)
})
export const enqueuePipelineMessage = (storage, message) => new Promise((resolve, reject) => {
const fileName = message.meta.short_name
storage.rabbit.createConfirmChannel()
.then(channel => {
return getPipelineMessagePriority(storage, fileName)
.then(priority => {
channel.publish(AMBAR_PIPELINE_EXCHANGE, '', Buffer.from(JSON.stringify(message)), { priority: priority })
return channel.waitForConfirms()
.then(() => channel.close())
})
})
.then(() => resolve())
.catch(err => reject(err))
})
export const initRabbit = new Promise((resolve, reject) => {
amqp.connect(`${config.rabbitHost}?heartbeat=0`)
.then((conn) => {
conn.on('error', (err) => {
//eslint-disable-next-line no-console
console.error('Rabbit error!')
throw err
})
return conn.createChannel()
.then((channel) => channel.assertExchange(AMBAR_PIPELINE_EXCHANGE, 'fanout', { durable: false })
.then(() => channel.assertExchange(AMBAR_PIPELINE_WAITING_EXCHANGE,
'fanout', { durable: false }))
.then(() => channel.assertQueue(AMBAR_PIPELINE_QUEUE,
{ durable: false, arguments: { 'x-queue-mode': 'lazy', 'x-dead-letter-exchange': AMBAR_PIPELINE_WAITING_EXCHANGE, 'x-max-priority': AMBAR_PIPELINE_QUEUE_MAX_PRIORITY } }))
.then(() => channel.assertQueue(AMBAR_PIPELINE_WAITING_QUEUE,
{ durable: false, arguments: { 'x-queue-mode': 'lazy', 'x-dead-letter-exchange': AMBAR_PIPELINE_EXCHANGE, 'x-message-ttl': AMBAR_PIPELINE_WAITING_QUEUE_TTL } }))
.then(() => channel.bindQueue(AMBAR_PIPELINE_QUEUE,
AMBAR_PIPELINE_EXCHANGE))
.then(() => channel.bindQueue(AMBAR_PIPELINE_WAITING_QUEUE,
AMBAR_PIPELINE_WAITING_EXCHANGE))
.then(() => channel.close())
)
.then(() => resolve(conn))
})
.catch(err => reject(err))
})
```
|
Carmen Esme Munroe, (born 12 November 1932) is a British actress who was born in Berbice, British Guiana (now Guyana), and has been a resident of the UK since the early 1950s. Munroe made her West End stage debut in 1962 and has played an instrumental role in the development of black British theatre and representation on small screen. She has had high-profile roles on stage and television, perhaps best known from the British TV sitcom Desmond's as Shirley, wife of the eponymous barber played by Norman Beaton.
Early life and career
Born Carmen Esme Steele in New Amsterdam, Berbice, British Guiana, where she was educated at Enterprise High School. She emigrated to Britain in 1951, and after studying ophthalmic optics for a year then working as a librarian in Tooting, south London, in 1957 she began studying drama with a group based at the West Indian Students' Centre in Collingham Gardens, south-west London.
Munroe first appeared on the West End stage in 1962 at Wyndham's Theatre in Tennessee Williams’s Period of Adjustment, and had leading roles in later West End productions, such as Alun Owen’s There’ll Be Some Changes Made (1969), Jean Genet’s The Blacks (1970), and as Orinthia in George Bernard Shaw’s The Apple Cart (1970). She also acted in such plays as Lorraine Hansberry's A Raisin in the Sun, Alice Childress's Trouble in Mind and James Baldwin's The Amen Corner. She directed James Saunders' play Alas, Poor Fred for the Umoja Theatre, and also the British premiere of Remembrance, by Derek Walcott at London's Arts Theatre in 1987.
Her work for television has encompassed being for a time a presenter of Play School as well as the BBC's lunchtime children's programme How Do You Do, and a wide variety of acting appearances. These include a part in the 1967 Doctor Who story The Enemy of the World; a part in General Hospital, in The Persuaders (1971), Barry Reckord's In the Beautiful Caribbean (BBC 1972), Alfred Fagon's Shakespeare Country (BBC 1973), The Fosters (LWT, 1976–77), Michael Abbensetts' Black Christmas (BBC, 1977), Mixed Blessings (1978–80), Horace Ové's A Hole in Babylon (BBC, 1979), and Caryl Phillips' The Hope and the Glory (BBC, 1984). Munroe became best known, however, for her regular appearances between 1989 and 1994 in the Channel 4 sitcom Desmond's (written by Trix Worrell) as Shirley, wife of the eponymous barber Desmond Ambrose, played by Norman Beaton.
Her film career included roles in Naked Evil (1966), All Neat in Black Stockings (1968) and The Chain (1984).
She is one of the founders of Talawa, the UK's leading black theatre company, which she established in 1985 together with Mona Hammond, Inigo Espegel and Yvonne Brewster.
In 1992, Munroe "gave an outstanding performance as Essie Robeson in a BBC play called A Song at Twilight".
In 2005/06, Munroe acted in a series of three African American plays at the Tricycle Theatre, Kilburn. The plays were Walk Hard, written by Abram Hill and directed by Nicolas Kent, followed by Gem of the Ocean, written by August Wilson and directed by Paulette Randall, in which Munroe acted in the role of Aunt Esther Tyler, and finally Lynn Nottage's Fabulation, directed by Indhu Rubasingham. In 2007, she acted in Allister Bain's play Catalysta at the Ovalhouse, directed by Robert Icke, receiving rave reviews for her performance as Eartha. In 2013, Munroe appeared in the CBBC children's comedy/drama show The Dumping Ground (sequel to Tracy Beaker Returns) as Gina's mother Hattie. In 2020, she made a guest appearance on Holby City as a therapist for Jac Naylor (Rosie Marcel)
Awards
Munroe was appointed an Officer of the Order of the British Empire (OBE) in the 2007 Birthday Honours for services to drama.
Further reading
Stephen Bourne, "Carmen Munroe: Standing in the Light" (interview with Brenda Emmanus), in Black in the British Frame: The Black Experience in British Film and Television, Continuum, 2001, pp. 132–141.
Jim Pines (ed.), Black and White in Colour - Black People in British Television Since 1936, London: British Film Institute, 1992.
Carole Woddis, Sheer Bloody Magic – Conversations With Actresses (London: Virago Press, 1991).
References
External links
1932 births
Living people
British television actresses
Guyanese emigrants to England
Officers of the Order of the British Empire
Black British actresses
BBC television presenters
People from New Amsterdam, Guyana
Guyanese actresses
|
```shell
#!/bin/bash
shopt -s extglob
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"/..
RESOURCES_PATH=$SCRIPTS_PATH/../../resources
INSTALL_PATH=$SCRIPTS_PATH/../../install
QT_DIR=""
#checking for parameters
for i in "$@"
do
case $i in
-i=*|--install_path=*)
INSTALL_PATH="${i#*=}"
shift # past argument=value
;;
-qt=*|--qt_dir=*)
QT_DIR=${i#*=}
shift # past argument=value
;;
*)
# unknown option
;;
esac
done
if [ ! -z "$QT_DIR" ]
then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QT_DIR/lib
export QMAKE=$QT_DIR/bin/qmake
fi
# Make sure that deploy succeeds before we start deleting files
if $RESOURCES_PATH/linux/linuxdeploy --appdir=$INSTALL_PATH --plugin qt; then
# after deploy, all required libraries are placed into usr/lib, therefore we can remove the ones in
# usr/lib/meshlab (except for the ones that are loaded at runtime)
cd $INSTALL_PATH/usr/lib/meshlab
rm -v !("libIFXCore.so"|"libIFXExporting.so"|"libIFXScheduling.so")
echo "$INSTALL_PATH is now a self contained meshlab application"
else
echo "linuxdeploy failed with error code $?. Script was not completed successfully."
exit 1
fi
```
|
The File menu is a graphical control element formerly common to most file-handling computer programs, but more recently often replaced by a toolbar or ribbon. It often appears as the first item in the menu bar, and contains commands relating to the handling of files, such as open, save, print, etc. It may also contain a list of recently edited files.
In some operating systems, the file menu also offers commands for closing windows and exiting the current program.
References
Graphical control elements
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Numerics;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Brushes;
using Microsoft.Graphics.Canvas.Geometry;
using Windows.Foundation;
using Windows.UI;
namespace Microsoft.Toolkit.Uwp.UI.Media.Geometry
{
/// <summary>
/// Extension methods for CanvasDrawingSession.
/// </summary>
public static class CanvasDrawingSessionExtensions
{
/// <summary>
/// Draws a circle of at the given center, having the specified radius, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="centerPoint">Center of the Circle</param>
/// <param name="radius">Radius of the Circle</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawCircle(this CanvasDrawingSession session, Vector2 centerPoint, float radius, ICanvasStroke stroke)
{
session.DrawCircle(centerPoint, radius, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a circle of at the given center, having the specified radius, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the Center in x axis</param>
/// <param name="y">Ordinate of the Center in the y axis</param>
/// <param name="radius">Radius of the Circle</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawCircle(this CanvasDrawingSession session, float x, float y, float radius, ICanvasStroke stroke)
{
session.DrawCircle(x, y, radius, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws an Ellipse of at the given center, having the specified radius, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="centerPoint">Center of the Circle</param>
/// <param name="radiusX">Radius in the X axis</param>
/// <param name="radiusY">Radius in the Y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawEllipse(this CanvasDrawingSession session, Vector2 centerPoint, float radiusX, float radiusY, ICanvasStroke stroke)
{
session.DrawEllipse(centerPoint, radiusX, radiusY, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws an Ellipse of at the given center, having the specified radius, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the Center on the x axis</param>
/// <param name="y">Offset of the Center on the y axis</param>
/// <param name="radiusX">Radius in the X axis</param>
/// <param name="radiusY">Radius in the Y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawEllipse(this CanvasDrawingSession session, float x, float y, float radiusX, float radiusY, ICanvasStroke stroke)
{
session.DrawEllipse(x, y, radiusX, radiusY, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a geometry relative to the origin, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="geometry">CanvasGeometry to render</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawGeometry(this CanvasDrawingSession session, CanvasGeometry geometry, ICanvasStroke stroke)
{
session.DrawGeometry(geometry, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a geometry relative to the specified position, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="geometry">CanvasGeometry to render</param>
/// <param name="offset">Offset</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawGeometry(this CanvasDrawingSession session, CanvasGeometry geometry, Vector2 offset, ICanvasStroke stroke)
{
session.DrawGeometry(geometry, offset, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a geometry relative to the specified position, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="geometry">CanvasGeometry to render</param>
/// <param name="x">Offset on the x axis</param>
/// <param name="y">Offset on the y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawGeometry(this CanvasDrawingSession session, CanvasGeometry geometry, float x, float y, ICanvasStroke stroke)
{
session.DrawGeometry(geometry, x, y, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a line between the specified positions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="point0">Starting position of the line</param>
/// <param name="point1">Ending position of the line</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawLine(this CanvasDrawingSession session, Vector2 point0, Vector2 point1, ICanvasStroke stroke)
{
session.DrawLine(point0, point1, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a line between the specified positions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x0">Offset of Starting position of the line on x-axis</param>
/// <param name="y0">Offset of Starting position of the line on y-axis</param>
/// <param name="x1">Offset of Ending position of the line on x-axis</param>
/// <param name="y1">Offset of Ending position of the line on y-axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawLine(this CanvasDrawingSession session, float x0, float y0, float x1, float y1, ICanvasStroke stroke)
{
session.DrawLine(x0, y0, x1, y1, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a Rectangle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="rect">Rectangle dimensions</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawRectangle(this CanvasDrawingSession session, Rect rect, ICanvasStroke stroke)
{
session.DrawRectangle(rect, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a Rectangle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Rectangle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Rectangle on the y-axis</param>
/// <param name="w">Width of the Rectangle</param>
/// <param name="h">Height of the Rectangle</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawRectangle(this CanvasDrawingSession session, float x, float y, float w, float h, ICanvasStroke stroke)
{
session.DrawRectangle(x, y, w, h, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a Rounded Rectangle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="rect">Rectangle dimensions</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawRoundedRectangle(this CanvasDrawingSession session, Rect rect, float radiusX, float radiusY, ICanvasStroke stroke)
{
session.DrawRoundedRectangle(rect, radiusX, radiusY, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a Rounded Rectangle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Rounded Rectangle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Rounded Rectangle on the y-axis</param>
/// <param name="w">Width of the Rounded Rectangle</param>
/// <param name="h">Height of the Rounded Rectangle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawRoundedRectangle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, ICanvasStroke stroke)
{
session.DrawRoundedRectangle(x, y, w, h, radiusX, radiusY, stroke.Brush, stroke.Width, stroke.Style);
}
/// <summary>
/// Draws a Squircle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, ICanvasStroke stroke)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.DrawGeometry(geometry, stroke);
}
/// <summary>
/// Draws a Squircle of the specified dimensions, using a CanvasStroke to define the stroke width, the stroke color and stroke style.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="offset">Offset of the Squircle from the origin.</param>
/// <param name="stroke">CanvasStroke defining the stroke width, the stroke
/// color and stroke style.</param>
public static void DrawSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, Vector2 offset, ICanvasStroke stroke)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.DrawGeometry(geometry, offset, stroke);
}
/// <summary>
/// Fills a Squircle of the specified dimensions, using the given color.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="color">Color to fill the Squircle.</param>
public static void FillSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, Color color)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.FillGeometry(geometry, color);
}
/// <summary>
/// Fills a Squircle of the specified dimensions, using the given brush.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="brush">Brush to fill the Squircle.</param>
public static void FillSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, ICanvasBrush brush)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.FillGeometry(geometry, brush);
}
/// <summary>
/// Fills a Squircle of the specified dimensions, using the given color at specified offset.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="offset">Offset of the Squircle from the origin.</param>
/// <param name="color">Color to fill the Squircle.</param>
public static void FillSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, Vector2 offset, Color color)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.FillGeometry(geometry, offset, color);
}
/// <summary>
/// Fills a Squircle of the specified dimensions, using the given brush at specified offset.
/// </summary>
/// <param name="session">CanvasDrawingSession</param>
/// <param name="x">Offset of the top left corner of the Squircle on the x-axis</param>
/// <param name="y">Offset of the top left corner of the Squircle on the y-axis</param>
/// <param name="w">Width of the Squircle</param>
/// <param name="h">Height of the Squircle</param>
/// <param name="radiusX">Corner Radius on the x axis</param>
/// <param name="radiusY">Corner Radius on the y axis</param>
/// <param name="offset">Offset of the Squircle from the origin.</param>
/// <param name="brush">Brush to fill the Squircle.</param>
public static void FillSquircle(this CanvasDrawingSession session, float x, float y, float w, float h, float radiusX, float radiusY, Vector2 offset, ICanvasBrush brush)
{
using var geometry = CanvasPathGeometry.CreateSquircle(session.Device, x, y, w, h, radiusX, radiusY);
session.FillGeometry(geometry, offset, brush);
}
}
}
```
|
```javascript
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
let S = {};
let b1 = "Two";
let b2 = {
TAG: "One",
_0: true,
_1: "Bar"
};
let c = {
TAG: "Five",
_0: 2
};
let ddd = "Six";
let q = {
TAG: "One",
name: "hello"
};
exports.S = S;
exports.b1 = b1;
exports.b2 = b2;
exports.c = c;
exports.ddd = ddd;
exports.q = q;
/* No side effect */
```
|
Lieutenant Colonel Kishen Singh was a former national polo player from India. He was a member of the Indian polo team that won the World Cup in 1954 at Deauville France. He was awarded Arjuna Award in 1963. He is from Jodhpur in Rajasthan. He later converted his residence into a heritage hotel called Polo Heritage, which is currently run by his family. His two sons have also played polo for India.
References
Polo in India
Indian polo players
Polo players from Rajasthan
Recipients of the Arjuna Award
People from Jodhpur
Rajasthani people
Military personnel from Rajasthan
|
```xml
import { CodedError } from 'expo-modules-core';
import { ActionCrop } from '../../ImageManipulator.types';
import { getContext } from '../utils.web';
export default (canvas: HTMLCanvasElement, options: ActionCrop['crop']) => {
// ensure values are defined.
let { originX = 0, originY = 0, width = 0, height = 0 } = options;
const clamp = (value, max) => Math.max(0, Math.min(max, value));
// lock within bounds.
width = clamp(width, canvas.width);
height = clamp(height, canvas.height);
originX = clamp(originX, canvas.width);
originY = clamp(originY, canvas.height);
// lock sum of crop.
width = Math.min(originX + width, canvas.width) - originX;
height = Math.min(originY + height, canvas.height) - originY;
if (width === 0 || height === 0) {
throw new CodedError(
'ERR_IMAGE_MANIPULATOR_CROP',
'Crop size must be greater than 0: ' + JSON.stringify(options, null, 2)
);
}
const result = document.createElement('canvas');
result.width = width;
result.height = height;
const context = getContext(result);
context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
return result;
};
```
|
```c
/* $OpenBSD: rasops1.c,v 1.13 2023/01/18 11:08:49 nicm Exp $ */
/* $NetBSD: rasops1.c,v 1.11 2000/04/12 14:22:29 pk Exp $ */
/*-
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Andrew Doran.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 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 <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
#include <sys/endian.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
#include <dev/rasops/rasops.h>
#include <dev/rasops/rasops_masks.h>
int rasops1_copycols(void *, int, int, int, int);
int rasops1_erasecols(void *, int, int, int, uint32_t);
int rasops1_do_cursor(struct rasops_info *);
int rasops1_putchar(void *, int, int col, u_int, uint32_t);
#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN
int rasops1_putchar8(void *, int, int col, u_int, uint32_t);
int rasops1_putchar16(void *, int, int col, u_int, uint32_t);
#endif
/*
* Initialize rasops_info struct for this colordepth.
*/
void
rasops1_init(struct rasops_info *ri)
{
rasops_masks_init();
switch (ri->ri_font->fontwidth) {
#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN
case 8:
ri->ri_ops.putchar = rasops1_putchar8;
break;
case 16:
ri->ri_ops.putchar = rasops1_putchar16;
break;
#endif
default:
ri->ri_ops.putchar = rasops1_putchar;
break;
}
if ((ri->ri_font->fontwidth & 7) != 0) {
ri->ri_ops.erasecols = rasops1_erasecols;
ri->ri_ops.copycols = rasops1_copycols;
ri->ri_do_cursor = rasops1_do_cursor;
}
}
/*
* Paint a single character. This is the generic version, this is ugly.
*/
int
rasops1_putchar(void *cookie, int row, int col, u_int uc, uint32_t attr)
{
u_int fs, rs, fb, bg, fg, lmask, rmask;
u_int32_t height, width;
struct rasops_info *ri;
int32_t *rp;
u_char *fr;
ri = (struct rasops_info *)cookie;
#ifdef RASOPS_CLIPPING
/* Catches 'row < 0' case too */
if ((unsigned)row >= (unsigned)ri->ri_rows)
return 0;
if ((unsigned)col >= (unsigned)ri->ri_cols)
return 0;
#endif
col *= ri->ri_font->fontwidth;
rp = (int32_t *)(ri->ri_bits + row * ri->ri_yscale + ((col >> 3) & ~3));
height = ri->ri_font->fontheight;
width = ri->ri_font->fontwidth;
col = col & 31;
rs = ri->ri_stride;
bg = (attr & 0x000f0000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
fg = (attr & 0x0f000000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
/* If fg and bg match this becomes a space character */
if (fg == bg || uc == ' ') {
uc = (u_int)-1;
fr = 0; /* shutup gcc */
fs = 0; /* shutup gcc */
} else {
uc -= ri->ri_font->firstchar;
fr = (u_char *)ri->ri_font->data + uc * ri->ri_fontscale;
fs = ri->ri_font->stride;
}
/* Single word, one mask */
if ((col + width) <= 32) {
rmask = rasops_pmask[col][width];
lmask = ~rmask;
if (uc == (u_int)-1) {
bg &= rmask;
while (height--) {
*rp = (*rp & lmask) | bg;
DELTA(rp, rs, int32_t *);
}
} else {
/* NOT fontbits if bg is white */
if (bg) {
while (height--) {
fb = ~(fr[3] | (fr[2] << 8) |
(fr[1] << 16) | (fr[0] << 24));
*rp = (*rp & lmask)
| (MBE(fb >> col) & rmask);
fr += fs;
DELTA(rp, rs, int32_t *);
}
} else {
while (height--) {
fb = (fr[3] | (fr[2] << 8) |
(fr[1] << 16) | (fr[0] << 24));
*rp = (*rp & lmask)
| (MBE(fb >> col) & rmask);
fr += fs;
DELTA(rp, rs, int32_t *);
}
}
}
/* Do underline */
if ((attr & WSATTR_UNDERLINE) != 0) {
DELTA(rp, -(ri->ri_stride << 1), int32_t *);
*rp = (*rp & lmask) | (fg & rmask);
}
} else {
lmask = ~rasops_lmask[col];
rmask = ~rasops_rmask[(col + width) & 31];
if (uc == (u_int)-1) {
width = bg & ~rmask;
bg = bg & ~lmask;
while (height--) {
rp[0] = (rp[0] & lmask) | bg;
rp[1] = (rp[1] & rmask) | width;
DELTA(rp, rs, int32_t *);
}
} else {
width = 32 - col;
/* NOT fontbits if bg is white */
if (bg) {
while (height--) {
fb = ~(fr[3] | (fr[2] << 8) |
(fr[1] << 16) | (fr[0] << 24));
rp[0] = (rp[0] & lmask)
| MBE((u_int)fb >> col);
rp[1] = (rp[1] & rmask)
| (MBE((u_int)fb << width) & ~rmask);
fr += fs;
DELTA(rp, rs, int32_t *);
}
} else {
while (height--) {
fb = (fr[3] | (fr[2] << 8) |
(fr[1] << 16) | (fr[0] << 24));
rp[0] = (rp[0] & lmask)
| MBE(fb >> col);
rp[1] = (rp[1] & rmask)
| (MBE(fb << width) & ~rmask);
fr += fs;
DELTA(rp, rs, int32_t *);
}
}
}
/* Do underline */
if ((attr & WSATTR_UNDERLINE) != 0) {
DELTA(rp, -(ri->ri_stride << 1), int32_t *);
rp[0] = (rp[0] & lmask) | (fg & ~lmask);
rp[1] = (rp[1] & rmask) | (fg & ~rmask);
}
}
return 0;
}
#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN
/*
* Paint a single character. This is for 8-pixel wide fonts.
*/
int
rasops1_putchar8(void *cookie, int row, int col, u_int uc, uint32_t attr)
{
int height, fs, rs, bg, fg;
struct rasops_info *ri;
u_char *fr, *rp;
ri = (struct rasops_info *)cookie;
#ifdef RASOPS_CLIPPING
/* Catches 'row < 0' case too */
if ((unsigned)row >= (unsigned)ri->ri_rows)
return 0;
if ((unsigned)col >= (unsigned)ri->ri_cols)
return 0;
#endif
rp = ri->ri_bits + row * ri->ri_yscale + col * ri->ri_xscale;
height = ri->ri_font->fontheight;
rs = ri->ri_stride;
bg = (attr & 0x000f0000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
fg = (attr & 0x0f000000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
/* If fg and bg match this becomes a space character */
if (fg == bg || uc == ' ') {
while (height--) {
*rp = bg;
rp += rs;
}
} else {
uc -= ri->ri_font->firstchar;
fr = (u_char *)ri->ri_font->data + uc * ri->ri_fontscale;
fs = ri->ri_font->stride;
/* NOT fontbits if bg is white */
if (bg) {
while (height--) {
*rp = ~*fr;
fr += fs;
rp += rs;
}
} else {
while (height--) {
*rp = *fr;
fr += fs;
rp += rs;
}
}
}
/* Do underline */
if ((attr & WSATTR_UNDERLINE) != 0)
rp[-(ri->ri_stride << 1)] = fg;
return 0;
}
/*
* Paint a single character. This is for 16-pixel wide fonts.
*/
int
rasops1_putchar16(void *cookie, int row, int col, u_int uc, uint32_t attr)
{
int height, fs, rs, bg, fg;
struct rasops_info *ri;
u_char *fr, *rp;
ri = (struct rasops_info *)cookie;
#ifdef RASOPS_CLIPPING
/* Catches 'row < 0' case too */
if ((unsigned)row >= (unsigned)ri->ri_rows)
return 0;
if ((unsigned)col >= (unsigned)ri->ri_cols)
return 0;
#endif
rp = ri->ri_bits + row * ri->ri_yscale + col * ri->ri_xscale;
height = ri->ri_font->fontheight;
rs = ri->ri_stride;
bg = (attr & 0x000f0000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
fg = (attr & 0x0f000000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
/* If fg and bg match this becomes a space character */
if (fg == bg || uc == ' ') {
while (height--) {
*(int16_t *)rp = bg;
rp += rs;
}
} else {
uc -= ri->ri_font->firstchar;
fr = (u_char *)ri->ri_font->data + uc * ri->ri_fontscale;
fs = ri->ri_font->stride;
/* NOT fontbits if bg is white */
if (bg) {
while (height--) {
rp[0] = ~fr[0];
rp[1] = ~fr[1];
fr += fs;
rp += rs;
}
} else {
while (height--) {
rp[0] = fr[0];
rp[1] = fr[1];
fr += fs;
rp += rs;
}
}
}
/* Do underline */
if ((attr & WSATTR_UNDERLINE) != 0)
*(int16_t *)(rp - (ri->ri_stride << 1)) = fg;
return 0;
}
#endif /* !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN */
/*
* Grab routines common to depths where (bpp < 8)
*/
#define NAME(ident) rasops1_##ident
#define PIXEL_SHIFT 0
#include <dev/rasops/rasops_bitops.h>
```
|
Tallac Village is an unincorporated community in El Dorado County, California. It lies at an elevation of 6263 feet (1909 m).
References
Unincorporated communities in California
Unincorporated communities in El Dorado County, California
South Lake Tahoe, California
|
Lonate Pozzolo is a town and comune located in the province of Varese, in the Lombardy region of northern Italy. It is served by Ferno-Lonate Pozzolo railway station.
The airline Cargoitalia had its head office in the Avioport Logistics Park in Lonate Pozzolo.
Twin towns
San Rafael, California, Unites States
References
External links
Comune of Lonate Pozzolo
Cities and towns in Lombardy
|
```javascript
Use hosted scripts to increase performance
Modify a website's URL
Permission API
Vibration API
`Window.localStorage`
```
|
```yaml
nodes:
schema_validator:
needs:
importer: __importer__
uses: rasa.graph_components.validators.default_recipe_validator.DefaultV1RecipeValidator
constructor_name: create
fn: validate
config: {}
eager: false
is_target: false
is_input: true
resource: null
finetuning_validator:
needs:
importer: schema_validator
uses: rasa.graph_components.validators.finetuning_validator.FinetuningValidator
constructor_name: create
fn: validate
config:
validate_core: false
validate_nlu: true
eager: false
is_target: false
is_input: true
resource: null
nlu_training_data_provider:
needs:
importer: finetuning_validator
uses: rasa.graph_components.providers.nlu_training_data_provider.NLUTrainingDataProvider
constructor_name: create
fn: provide
config:
language: null
persist: false
eager: false
is_target: false
is_input: true
resource: null
train_KeywordIntentClassifier0:
needs:
training_data: nlu_training_data_provider
uses: rasa.nlu.classifiers.keyword_intent_classifier.KeywordIntentClassifier
constructor_name: create
fn: train
config: {}
eager: False
is_target: True
is_input: False
resource: null
```
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/api/core/v1"
intstr "k8s.io/apimachinery/pkg/util/intstr"
)
// NetworkPolicyPortApplyConfiguration represents a declarative configuration of the NetworkPolicyPort type for use
// with apply.
type NetworkPolicyPortApplyConfiguration struct {
Protocol *v1.Protocol `json:"protocol,omitempty"`
Port *intstr.IntOrString `json:"port,omitempty"`
EndPort *int32 `json:"endPort,omitempty"`
}
// NetworkPolicyPortApplyConfiguration constructs a declarative configuration of the NetworkPolicyPort type for use with
// apply.
func NetworkPolicyPort() *NetworkPolicyPortApplyConfiguration {
return &NetworkPolicyPortApplyConfiguration{}
}
// WithProtocol sets the Protocol field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Protocol field is set to the value of the last call.
func (b *NetworkPolicyPortApplyConfiguration) WithProtocol(value v1.Protocol) *NetworkPolicyPortApplyConfiguration {
b.Protocol = &value
return b
}
// WithPort sets the Port field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Port field is set to the value of the last call.
func (b *NetworkPolicyPortApplyConfiguration) WithPort(value intstr.IntOrString) *NetworkPolicyPortApplyConfiguration {
b.Port = &value
return b
}
// WithEndPort sets the EndPort field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the EndPort field is set to the value of the last call.
func (b *NetworkPolicyPortApplyConfiguration) WithEndPort(value int32) *NetworkPolicyPortApplyConfiguration {
b.EndPort = &value
return b
}
```
|
The Charles Schwab Cup Championship is the final event of the season on the U.S.-based PGA Tour Champions, the world's leading golf tour for male professionals aged 50 and above. Played in late October or early November each year, it is PGA Tour Champions' equivalent of the PGA Tour's Tour Championship, and was formerly known as the Senior Tour Championship. Like the Tour Championship, it has a small field (30 from 1990 through 2015, and 36 from 2016 forward) and no half-way cut.
Through 2015, the top 30 money winners made up the field. Since 2016, 36 golfers have competed, and the event is the final stage of a three-tournament playoff similar to that used by the regular PGA Tour for its FedEx Cup. Through 2015, the tournament had another distinction that made it unique on PGA Tour Champions – it was the only event, other than the tour's five majors, contested over four rounds. In 2016 and 2017, it returned to being held over three rounds. In 2018, it returns to being held over four rounds. Since 2013, the purse has been $2,500,000, with $440,000 going to the winner.
Tournament hosts
Winners
References
External links
Coverage on PGA Tour Champions' official site
Charles Schwab Cup points list
PGA Tour Champions events
Recurring sporting events established in 1990
Golf tournaments in Puerto Rico
Golf in South Carolina
Golf in Oklahoma
Golf in California
Golf in Arizona
Sports competitions in Oklahoma City
Sports competitions in San Francisco
Sports competitions in Scottsdale, Arizona
1990 establishments in Puerto Rico
Sports competitions in Maricopa County, Arizona
|
People
Dave Lattin (born 1943), American basketball player
Don Lattin, American journalist and author
Susannah Lattin (1848–1868), American woman whose death led to regulation of maternity clinics in New York City
Vernon Lattin (born 1938), American president of Brooklyn College
Places
Lattin, County Tipperary, a village in County Tipperary, Ireland
Lattin, West Virginia, U.S.
Lattingtown, a village on Long Island, New York
See also
Latin
|
Dioryctria abietivorella, the fir coneworm, is a species of snout moth in the genus Dioryctria. It was described by Augustus Radcliffe Grote in 1878, and is found in North America from southern Canada south to California in the west and North Carolina in the east.
References
Moths described in 1878
abietivorella
|
Jasper Swift (died 20 January 1620) was the archdeacon of Cornwall and Archdeacon of Totnes.
Educated at Christ Church, Oxford, he matriculated in 1590/1, graduating B.A. in 1594 and M.A. in 1599/1600. He was awarded B.D. and D.D. in 1615/16 and became rector of St. Erme, Cornwall in 1603 and of Powderham, Devon in 1612. He became prebendary of Exeter cathedral in 1613, archdeacon of Cornwall July–October 1616, and archdeacon of Totnes from 1616, until his death on 20 January 1619/20.
References
Archdeacons of Totnes
Archdeacons of Cornwall
1620 deaths
Year of birth unknown
|
```go
package log
import (
"bytes"
"io"
"log"
"regexp"
"strings"
)
// StdlibWriter implements io.Writer by invoking the stdlib log.Print. It's
// designed to be passed to a Go kit logger as the writer, for cases where
// it's necessary to redirect all Go kit log output to the stdlib logger.
//
// If you have any choice in the matter, you shouldn't use this. Prefer to
// redirect the stdlib log to the Go kit logger via NewStdlibAdapter.
type StdlibWriter struct{}
// Write implements io.Writer.
func (w StdlibWriter) Write(p []byte) (int, error) {
log.Print(strings.TrimSpace(string(p)))
return len(p), nil
}
// StdlibAdapter wraps a Logger and allows it to be passed to the stdlib
// logger's SetOutput. It will extract date/timestamps, filenames, and
// messages, and place them under relevant keys.
type StdlibAdapter struct {
Logger
timestampKey string
fileKey string
messageKey string
prefix string
joinPrefixToMsg bool
}
// StdlibAdapterOption sets a parameter for the StdlibAdapter.
type StdlibAdapterOption func(*StdlibAdapter)
// TimestampKey sets the key for the timestamp field. By default, it's "ts".
func TimestampKey(key string) StdlibAdapterOption {
return func(a *StdlibAdapter) { a.timestampKey = key }
}
// FileKey sets the key for the file and line field. By default, it's "caller".
func FileKey(key string) StdlibAdapterOption {
return func(a *StdlibAdapter) { a.fileKey = key }
}
// MessageKey sets the key for the actual log message. By default, it's "msg".
func MessageKey(key string) StdlibAdapterOption {
return func(a *StdlibAdapter) { a.messageKey = key }
}
// Prefix configures the adapter to parse a prefix from stdlib log events. If
// you provide a non-empty prefix to the stdlib logger, then your should provide
// that same prefix to the adapter via this option.
//
// By default, the prefix isn't included in the msg key. Set joinPrefixToMsg to
// true if you want to include the parsed prefix in the msg.
func Prefix(prefix string, joinPrefixToMsg bool) StdlibAdapterOption {
return func(a *StdlibAdapter) { a.prefix = prefix; a.joinPrefixToMsg = joinPrefixToMsg }
}
// NewStdlibAdapter returns a new StdlibAdapter wrapper around the passed
// logger. It's designed to be passed to log.SetOutput.
func NewStdlibAdapter(logger Logger, options ...StdlibAdapterOption) io.Writer {
a := StdlibAdapter{
Logger: logger,
timestampKey: "ts",
fileKey: "caller",
messageKey: "msg",
}
for _, option := range options {
option(&a)
}
return a
}
func (a StdlibAdapter) Write(p []byte) (int, error) {
p = a.handlePrefix(p)
result := subexps(p)
keyvals := []interface{}{}
var timestamp string
if date, ok := result["date"]; ok && date != "" {
timestamp = date
}
if time, ok := result["time"]; ok && time != "" {
if timestamp != "" {
timestamp += " "
}
timestamp += time
}
if timestamp != "" {
keyvals = append(keyvals, a.timestampKey, timestamp)
}
if file, ok := result["file"]; ok && file != "" {
keyvals = append(keyvals, a.fileKey, file)
}
if msg, ok := result["msg"]; ok {
msg = a.handleMessagePrefix(msg)
keyvals = append(keyvals, a.messageKey, msg)
}
if err := a.Logger.Log(keyvals...); err != nil {
return 0, err
}
return len(p), nil
}
func (a StdlibAdapter) handlePrefix(p []byte) []byte {
if a.prefix != "" {
p = bytes.TrimPrefix(p, []byte(a.prefix))
}
return p
}
func (a StdlibAdapter) handleMessagePrefix(msg string) string {
if a.prefix == "" {
return msg
}
msg = strings.TrimPrefix(msg, a.prefix)
if a.joinPrefixToMsg {
msg = a.prefix + msg
}
return msg
}
const (
logRegexpDate = `(?P<date>[0-9]{4}/[0-9]{2}/[0-9]{2})?[ ]?`
logRegexpTime = `(?P<time>[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?)?[ ]?`
logRegexpFile = `(?P<file>.+?:[0-9]+)?`
logRegexpMsg = `(: )?(?P<msg>(?s:.*))`
)
var (
logRegexp = regexp.MustCompile(logRegexpDate + logRegexpTime + logRegexpFile + logRegexpMsg)
)
func subexps(line []byte) map[string]string {
m := logRegexp.FindSubmatch(line)
if len(m) < len(logRegexp.SubexpNames()) {
return map[string]string{}
}
result := map[string]string{}
for i, name := range logRegexp.SubexpNames() {
result[name] = strings.TrimRight(string(m[i]), "\n")
}
return result
}
```
|
Luis Ricardo Llontop Godeau (born 2 October 1985) is a Peruvian footballer who plays as a goalkeeper for Universitario de Deportes in the Torneo Descentralizado.
He is currently studying Business Administration in a Peruvian university.
Honours
Club
Universitario de Deportes
Apertura: 2008
Torneo Descentralizado (2): 2009, 2013
References
External links
1985 births
Living people
Footballers from Lima
Peruvian men's footballers
Club Universitario de Deportes footballers
Peruvian Primera División players
Men's association football goalkeepers
|
Bald Mountain is a name given to over fifty summits in California.
In Sugarloaf Ridge State Park there is a Bald Mountain summit located on the Sonoma-Napa County border at , and rising to an elevation of . Sonoma Creek rises from its southeastern flank, the source of Bear Creek is on its northern flank, and its northeastern flank drains to the Napa River.
Located on the Sonoma-Napa County border just south of Sugarloaf Ridge State Park, there is a Bald Mountain summit at , rising to an elevation of .
In Los Angeles County there is a Bald Mountain at that rises to an elevation of .
In Humboldt County there is a Bald Mountain at west of McKinleyville that rises to an elevation of .
In San Benito County there is a Bald Mountain at that rises to an elevation of .
In Santa Cruz County there is a Bald Mountain at that rises to an elevation of .
In Fresno County there are four:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Santa Clara County there is a Bald Mountain at that rises to an elevation of .
In San Joaquin County there is a Bald Mountain at that rises to an elevation of .
In Calaveras County there are three:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Tuolumne County there are three:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Yolo County there is a Bald Mountain at that rises to an elevation of .
In El Dorado County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Lake County there is a Bald Mountain at that rises to an elevation of .
In Placer County there is a Bald Mountain at that rises to an elevation of .
In Mendocino County there are six:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Shasta County there are three:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Modoc County there are three:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Lassen County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Riverside County there is a Bald Mountain at that rises to an elevation of .
In Santa Barbara County there are two:
at that rises to an elevation of .
at that rises to an elevation of .
In Tulare County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Sierra County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Mono County there is a Bald Mountain at that rises to an elevation of .
In Nevada County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In San Luis Obispo County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Monterey County there is a Bald Mountain at that rises to an elevation of .
In Mariposa County there is a Bald Mountain at that rises to an elevation of .
In Siskiyou County there are two:
a Bald Mountain at that rises to an elevation of .
a Bald Mountain at that rises to an elevation of .
In Butte County there is a Bald Mountain at that rises to an elevation of .
See also
List of summits of the San Francisco Bay Area
Bald Mountain, other mountains with the name
References
Lists of landforms of California
Mountains of the San Francisco Bay Area
Mountains of Southern California
Mountains of Los Angeles County, California
Mountains of Santa Barbara County, California
Mountains of Butte County, California
Mountains of Siskiyou County, California
Mountains of San Luis Obispo County, California
Mountains of Monterey County, California
Mountains of Mendocino County, California
Mountains of Nevada County, California
Mountains of Santa Clara County, California
Mountains of Napa County, California
Mountains of Sonoma County, California
|
```java
Use meaningful names
Use strings in a `switch` statement
There is no such thing as *pass-by-reference* in Java
How range operations work
Supply `toString()` in all classes
```
|
```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';
var logEach = require( '@stdlib/console/log-each' );
var discreteUniform = require( './../lib' );
// Create a function for generating random arrays originating from the same state:
var random = discreteUniform.factory( -10, 10, {
'state': discreteUniform.state,
'copy': true
});
// Generate 3 arrays:
var x1 = random( 5 );
var x2 = random( 5 );
var x3 = random( 5 );
// Print the contents:
logEach( '%f, %f, %f', x1, x2, x3 );
// Create another function for generating random arrays with the original state:
random = discreteUniform.factory( -10, 10, {
'state': discreteUniform.state,
'copy': true
});
// Generate a single array which replicates the above pseudorandom number generation sequence:
var x4 = random( 15 );
// Print the contents:
logEach( '%f', x4 );
```
|
```xml
<?xml version="1.0"?>
<rss>
</rss>
```
|
```c++
/*
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing,
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* specific language governing permissions and limitations
*/
#pragma once
#include <glib.h>
#include <arrow/api.h>
static inline std::shared_ptr<arrow::KeyValueMetadata>
garrow_internal_hash_table_to_metadata(GHashTable *metadata)
{
auto arrow_metadata = std::make_shared<arrow::KeyValueMetadata>();
g_hash_table_foreach(
metadata,
[](gpointer key, gpointer value, gpointer user_data) {
auto arrow_metadata =
static_cast<std::shared_ptr<arrow::KeyValueMetadata> *>(user_data);
(*arrow_metadata)->Append(static_cast<gchar *>(key), static_cast<gchar *>(value));
},
&arrow_metadata);
return arrow_metadata;
}
```
|
```go
package msdns
import (
"bytes"
"encoding/json"
"fmt"
"log"
"os"
"github.com/StackExchange/dnscontrol/v4/models"
ps "github.com/StackExchange/dnscontrol/v4/pkg/powershell"
"github.com/StackExchange/dnscontrol/v4/pkg/powershell/backend"
"github.com/StackExchange/dnscontrol/v4/pkg/powershell/middleware"
"github.com/StackExchange/dnscontrol/v4/pkg/printer"
"github.com/TomOnTime/utfutil"
)
type psHandle struct {
shell ps.Shell
}
func eLog(s string) {
f, _ := os.OpenFile("powershell.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
f.WriteString(s)
f.WriteString("\n")
f.Close()
}
func newPowerShell(config map[string]string) (*psHandle, error) {
back := &backend.Local{}
sh, err := ps.New(back)
if err != nil {
return nil, err
}
shell := sh
pssession := config["pssession"]
if pssession != "" {
printer.Printf("INFO: PowerShell commands will run on %q\n", pssession)
// create a remote shell by wrapping the existing one in the session middleware
mconfig := middleware.NewSessionConfig()
mconfig.ComputerName = pssession
cred := &middleware.UserPasswordCredential{
Username: config["psusername"],
Password: config["pspassword"],
}
if cred.Password != "" && cred.Username != "" {
mconfig.Credential = cred
}
session, err := middleware.NewSession(sh, mconfig)
if err != nil {
panic(err)
}
shell = session
}
psh := &psHandle{
shell: shell,
}
return psh, nil
}
func (psh *psHandle) Exit() {
psh.shell.Exit()
}
type dnsZone map[string]interface{}
func (psh *psHandle) GetDNSServerZoneAll(dnsserver string) ([]string, error) {
stdout, stderr, err := psh.shell.Execute("\n\r" + generatePSZoneAll(dnsserver) + "\n\r")
if err != nil {
return nil, err
}
if stderr != "" {
printer.Printf("STDERROR = %q\n", stderr)
return nil, fmt.Errorf("unexpected stderr from Get-DnsServerZones: %q", stderr)
}
var zones []dnsZone
err = json.Unmarshal([]byte(stdout), &zones)
if err != nil {
return nil, err
}
var result []string
for _, z := range zones {
zonename := z["ZoneName"].(string)
result = append(result, zonename)
}
return result, nil
}
// powerShellDump runs a PowerShell command to get a dump of all records in a DNS zone.
func generatePSZoneAll(dnsserver string) string {
var b bytes.Buffer
fmt.Fprintf(&b, `Get-DnsServerZone`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%v"`, dnsserver)
}
fmt.Fprintf(&b, ` | `)
fmt.Fprintf(&b, `ConvertTo-Json`)
return b.String()
}
func (psh *psHandle) GetDNSZoneRecords(dnsserver, domain string) ([]nativeRecord, error) {
tmpfile, err := os.CreateTemp("", "zonerecords.*.json")
if err != nil {
log.Fatal(err)
}
filename := tmpfile.Name()
tmpfile.Close()
stdout, stderr, err := psh.shell.Execute(
"\n\r" + generatePSZoneDump(dnsserver, domain, filename) + "\n\r")
if err != nil {
return nil, err
}
if stderr != "" {
printer.Printf("STDERROR GetDNSZR = %q\n", stderr)
return nil, fmt.Errorf("unexpected stderr from PSZoneDump: %q", stderr)
}
if stdout != "" {
printer.Printf("STDOUT GetDNSZR = %q\n", stdout)
}
contents, err := utfutil.ReadFile(filename, utfutil.UTF8)
if err != nil {
return nil, err
}
os.Remove(filename) // TODO(tlim): There should be a debug flag that leaves the tmp file around.
//printer.Printf("CONTENTS = %s\n", contents)
//printer.Printf("CONTENTS STR = %q\n", contents[:10])
//printer.Printf("CONTENTS HEX = %v\n", []byte(contents)[:10])
//os.WriteFile("/temp/list.json", contents, 0777)
var records []nativeRecord
err = json.Unmarshal(contents, &records)
if err != nil {
// PowerShell generates bad JSON if there is only one record. Therefore, if there
// is an error we try decoding the bad format before completing erroring out.
// The "bad JSON" is that they generate a single record instead of a list of length 1.
records = append(records, nativeRecord{})
err2 := json.Unmarshal(contents, &(records[0]))
if err2 != nil {
return nil, fmt.Errorf("PSZoneDump json error: %w", err)
}
}
return records, nil
}
// powerShellDump runs a PowerShell command to get a dump of all records in a DNS zone.
func generatePSZoneDump(dnsserver, domainname, filename string) string {
// @dnsserver: Hostname of the DNS server.
// @domainname: Name of the domain.
// @filename: Where to write the resulting JSON file.
// NB(tlim): On Windows PowerShell, the JSON file will be UTF8 with
// a BOM. A UTF-8 file shouldn't have a BOM, but Microsoft messed up.
// When we switch to PowerShell Core, the BOM will disappear.
var b bytes.Buffer
// Set the output to be UTF8. Previously we didn't do that and the
// output was twice as large, plus it required an extra conversion
// step. Windows PowerShell is native UTF16 but PowerShell Core is
// native UTF8, thus this may not be needed if we move to Core.
fmt.Fprintf(&b, `$OutputEncoding = [Text.UTF8Encoding]::UTF8 ; `)
// Output everything we know about the zone.
fmt.Fprintf(&b, `Get-DnsServerResourceRecord`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%v"`, dnsserver)
}
fmt.Fprintf(&b, ` -ZoneName "%v"`, domainname)
// Strip out the `Cim*` properties at the root. This shrinks one
// zone from 99M to 11M. We don't need the Cim* properties (at
// least the ones at the root) and decocding 99M of JSON was slow
// (30+ minutes).
// NB(tlim): Windows PowerShell requires the `-Property *` but
// Windows PowerShell Core makes that optional.
fmt.Fprintf(&b, ` | `)
fmt.Fprintf(&b, `Select-Object -Property * -ExcludeProperty Cim*`)
fmt.Fprintf(&b, ` | `)
fmt.Fprintf(&b, `ConvertTo-Json -depth 4`) // Tested with 3 (causes errors). 4 and larger work.
fmt.Fprintf(&b, ` | `)
// Prevously we captured stdout. Now we write it to a file. This is
// safer since there is no chance of junk accidentally being mixed
// into stdout.
fmt.Fprintf(&b, `Out-File "%s" -Encoding utf8`, filename)
return b.String()
}
// Functions for record manipulation
func (psh *psHandle) RecordDelete(dnsserver, domain string, rec *models.RecordConfig) error {
var c string
if rec.Type == "NAPTR" {
c = generatePSDeleteNaptr(dnsserver, domain, rec)
//printer.Printf("DEBUG: deleteNAPTR: %s\n", c)
} else {
c = generatePSDelete(dnsserver, domain, rec)
}
eLog(c)
_, stderr, err := psh.shell.Execute("\n\r" + c + "\n\r")
if err != nil {
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return err
}
if stderr != "" {
printer.Printf("STDERROR = %q\n", stderr)
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return fmt.Errorf("unexpected stderr from PSDelete: %q", stderr)
}
return nil
}
func generatePSDelete(dnsserver, domain string, rec *models.RecordConfig) string {
var b bytes.Buffer
fmt.Fprintf(&b, `echo DELETE "%s" "%s" %q`, rec.Type, rec.Name, rec.GetTargetCombined())
fmt.Fprintf(&b, " ; ")
if rec.Type == "NAPTR" {
x := b.String() + generatePSDeleteNaptr(dnsserver, domain, rec)
//printer.Printf("NAPTR DELETE: %s\n", x)
return x
}
fmt.Fprintf(&b, `Remove-DnsServerResourceRecord`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%s"`, dnsserver)
}
fmt.Fprintf(&b, ` -Force`)
fmt.Fprintf(&b, ` -ZoneName %q`, domain)
fmt.Fprintf(&b, ` -Name %q`, rec.Name)
fmt.Fprintf(&b, ` -RRType "%s"`, rec.Type)
if rec.Type == "MX" {
fmt.Fprintf(&b, ` -RecordData %d,%q`, rec.MxPreference, rec.GetTargetField())
} else if rec.Type == "TXT" {
fmt.Fprintf(&b, ` -RecordData %q`, rec.GetTargetTXTJoined())
} else if rec.Type == "SRV" {
// path_to_url
fmt.Fprintf(&b, ` -RecordData %d,%d,%d,"%s"`, rec.SrvPriority, rec.SrvWeight, rec.SrvPort, rec.GetTargetField())
} else {
fmt.Fprintf(&b, ` -RecordData %q`, rec.GetTargetField())
}
//printer.Printf("DEBUG PSDelete CMD = (\n%s\n)\n", b.String())
return b.String()
}
func (psh *psHandle) RecordCreate(dnsserver, domain string, rec *models.RecordConfig) error {
var c string
if rec.Type == "NAPTR" {
c = generatePSCreateNaptr(dnsserver, domain, rec)
//printer.Printf("DEBUG: createNAPTR: %s\n", c)
} else {
c = generatePSCreate(dnsserver, domain, rec)
//printer.Printf("DEBUG: PScreate\n")
}
eLog(c)
stdout, stderr, err := psh.shell.Execute("\n\r" + c + "\n\r")
if err != nil {
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return err
}
if stderr != "" {
printer.Printf("STDOUT RecordCreate = %s\n", stdout)
printer.Printf("STDERROR RecordCreate = %q\n", stderr)
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return fmt.Errorf("unexpected stderr from PSCreate: %q", stderr)
}
return nil
}
func generatePSCreate(dnsserver, domain string, rec *models.RecordConfig) string {
var b bytes.Buffer
fmt.Fprintf(&b, `echo CREATE "%s" "%s" %q`, rec.Type, rec.Name, rec.GetTargetCombined())
fmt.Fprintf(&b, " ; ")
if rec.Type == "NAPTR" {
return b.String() + generatePSCreateNaptr(dnsserver, domain, rec)
}
fmt.Fprint(&b, `Add-DnsServerResourceRecord`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%s"`, dnsserver)
}
fmt.Fprintf(&b, ` -ZoneName "%s"`, domain)
fmt.Fprintf(&b, ` -Name "%s"`, rec.GetLabel())
fmt.Fprintf(&b, ` -TimeToLive $(New-TimeSpan -Seconds %d)`, rec.TTL)
switch rec.Type {
case "A":
fmt.Fprintf(&b, ` -A -IPv4Address "%s"`, rec.GetTargetIP())
case "AAAA":
fmt.Fprintf(&b, ` -AAAA -IPv6Address "%s"`, rec.GetTargetIP())
//case "ATMA":
// fmt.Fprintf(&b, ` -Atma -Address <String> -AddressType {E164 | AESA}`, rec.GetTargetField())
//case "AFSDB":
// fmt.Fprintf(&b, ` -Afsdb -ServerName <String> -SubType <UInt16>`, rec.GetTargetField())
case "SRV":
fmt.Fprintf(&b, ` -Srv -DomainName "%s" -Port %d -Priority %d -Weight %d`, rec.GetTargetField(), rec.SrvPort, rec.SrvPriority, rec.SrvWeight)
case "CNAME":
fmt.Fprintf(&b, ` -CName -HostNameAlias "%s"`, rec.GetTargetField())
//case "X25":
// fmt.Fprintf(&b, ` -X25 -PsdnAddress <String>`, rec.GetTargetField())
//case "WKS":
// fmt.Fprintf(&b, ` -Wks -InternetAddress <IPAddress> -InternetProtocol {UDP | TCP} -Service <String[]>`, rec.GetTargetField())
case "TXT":
//printer.Printf("DEBUG TXT len = %v\n", rec.GetTargetTXTSegmentCount())
//printer.Printf("DEBUG TXT target = %q\n", rec.GetTargetField())
fmt.Fprintf(&b, ` -Txt -DescriptiveText %q`, rec.GetTargetTXTJoined())
//case "RT":
// fmt.Fprintf(&b, ` -RT -IntermediateHost <String> -Preference <UInt16>`, rec.GetTargetField())
//case "RP":
// fmt.Fprintf(&b, ` -RP -Description <String> -ResponsiblePerson <String>`, rec.GetTargetField())
case "PTR":
fmt.Fprintf(&b, ` -Ptr -PtrDomainName "%s"`, rec.GetTargetField())
case "NS":
fmt.Fprintf(&b, ` -NS -NameServer "%s"`, rec.GetTargetField())
case "MX":
fmt.Fprintf(&b, ` -MX -MailExchange "%s" -Preference %d`, rec.GetTargetField(), rec.MxPreference)
//case "ISDN":
// fmt.Fprintf(&b, ` -Isdn -IsdnNumber <String> -IsdnSubAddress <String>`, rec.GetTargetField())
//case "HINFO":
// fmt.Fprintf(&b, ` -HInfo -Cpu <String> -OperatingSystem <String>`, rec.GetTargetField())
//case "DNAME":
// fmt.Fprintf(&b, ` -DName -DomainNameAlias <String>`, rec.GetTargetField())
//case "DHCID":
// fmt.Fprintf(&b, ` -DhcId -DhcpIdentifier <String>`, rec.GetTargetField())
//case "TLSA":
// fmt.Fprintf(&b, ` -TLSA -CertificateAssociationData <System.String> -CertificateUsage {CAConstraint | ServiceCertificateConstraint | TrustAnchorAssertion | DomainIssuedCertificate} -MatchingType {ExactMatch | Sha256Hash | Sha512Hash} -Selector {FullCertificate | SubjectPublicKeyInfo}`, rec.GetTargetField())
default:
panic(fmt.Errorf("generatePSCreate() has not implemented recType=%s recName=%#v content=%#v)",
rec.Type, rec.GetLabel(), rec.GetTargetField()))
// We panic so that we quickly find any switch statements
// that have not been updated for a new RR type.
}
//printer.Printf("DEBUG PSCreate CMD = (DEBUG-START\n%s\nDEBUG-END)\n", b.String())
return b.String()
}
func (psh *psHandle) RecordModify(dnsserver, domain string, old, rec *models.RecordConfig) error {
c := generatePSModify(dnsserver, domain, old, rec)
eLog(c)
_, stderr, err := psh.shell.Execute("\n\r" + c + "\n\r")
if err != nil {
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return err
}
if stderr != "" {
printer.Printf("STDERROR = %q\n", stderr)
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return fmt.Errorf("unexpected stderr from PSModify: %q", stderr)
}
return nil
}
func generatePSModify(dnsserver, domain string, old, rec *models.RecordConfig) string {
// The simple way is to just remove the old record and insert the new record.
return "\n\r" + generatePSDelete(dnsserver, domain, old) + " ; " + generatePSCreate(dnsserver, domain, rec) + "\n\r"
// NB: SOA records can't be deleted. When we implement them, we'll
// need to special case them and generate an in-place modification
// command.
}
func (psh *psHandle) RecordModifyTTL(dnsserver, domain string, old *models.RecordConfig, newTTL uint32) error {
c := generatePSModifyTTL(dnsserver, domain, old, newTTL)
eLog(c)
_, stderr, err := psh.shell.Execute("\n\r" + c + "\n\r")
if err != nil {
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return err
}
if stderr != "" {
printer.Printf("STDERROR = %q\n", stderr)
printer.Printf("PowerShell code was:\nSTART\n%s\nEND\n", c)
return fmt.Errorf("unexpected stderr from PSModify: %q", stderr)
}
return nil
}
func generatePSModifyTTL(dnsserver, domain string, rec *models.RecordConfig, newTTL uint32) string {
var b bytes.Buffer
fmt.Fprintf(&b, `echo MODIFY-TTL "%s" "%s" %q ttl=%d->%d`, rec.Name, rec.Type, rec.GetTargetCombined(), rec.TTL, newTTL)
fmt.Fprintf(&b, " ; ")
fmt.Fprint(&b, `Get-DnsServerResourceRecord`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%s"`, dnsserver)
}
fmt.Fprintf(&b, ` -ZoneName "%s"`, domain)
fmt.Fprintf(&b, ` -Name "%s"`, rec.GetLabel())
fmt.Fprintf(&b, ` -RRType %s`, rec.Type)
fmt.Fprint(&b, ` | ForEach-Object { $NewRecord = $_.Clone() ;`)
fmt.Fprintf(&b, `$NewRecord.TimeToLive = New-TimeSpan -Seconds %d`, newTTL)
fmt.Fprintf(&b, " ; ")
fmt.Fprintf(&b, `Set-DnsServerResourceRecord`)
if dnsserver != "" {
fmt.Fprintf(&b, ` -ComputerName "%s"`, dnsserver)
}
fmt.Fprint(&b, ` -NewInputObject $NewRecord -OldInputObject $_`)
fmt.Fprintf(&b, ` -ZoneName "%s"`, domain)
return b.String()
}
// Note about the old generatePSModify:
//
// The old method is to generate PowerShell code that extracts the resource
// record, clones it, makes modifications to the clone, and replaces the old
// object with the modified clone. In theory this is cleaner.
//
// Sadly that technique is considerably slower (PowerShell seems to take a
// long time doing it) and it is more brittle (each new rType seems to be a
// new adventure).
//
// The other benefit of the Delete/Create method is that it more heavily
// exercises existing code that is known to work.
//
// Sadly I can't bring myself to erase the code yet. I still hope this can
// be fixed. Deep down I know we should just accept that Del/Create is better.
// if old.GetLabel() != rec.GetLabel() {
// panic(fmt.Sprintf("generatePSModify assertion failed: %q != %q", old.GetLabel(), rec.GetLabel()))
// }
//
// var b bytes.Buffer
// fmt.Fprintf(&b, `echo "MODIFY %s %s %s old=(%s) new=(%s):"`, rec.GetLabel(), domain, rec.Type, old.GetTargetCombined(), rec.GetTargetCombined())
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, "$OldObj = Get-DnsServerResourceRecord")
// fmt.Fprintf(&b, ` -ZoneName "%s"`, domain)
// fmt.Fprintf(&b, ` -Name "%s"`, old.GetLabel())
// fmt.Fprintf(&b, ` -RRType "%s"`, old.Type)
// fmt.Fprintf(&b, ` | Where-Object {$_.HostName eq "%s" -and -RRType -eq "%s" -and `, old.GetLabel(), rec.Type)
// switch old.Type {
// case "A":
// fmt.Fprintf(&b, `$_.RecordData.IPv4Address -eq "%s"`, old.GetTargetIP())
// case "AAAA":
// fmt.Fprintf(&b, `$_.RecordData.IPv6Address -eq "%s"`, old.GetTargetIP())
// //case "ATMA":
// // fmt.Fprintf(&b, ` -Atma -Address <String> -AddressType {E164 | AESA}`, old.GetTargetField())
// //case "AFSDB":
// // fmt.Fprintf(&b, ` -Afsdb -ServerName <String> -SubType <UInt16>`, old.GetTargetField())
// case "SRV":
// fmt.Fprintf(&b, `$_.RecordData.DomainName -eq "%s" -and $_.RecordData.Port -eq %d -and $_.RecordData.Priority -eq %d -and $_.RecordData.Weight -eq %d`, old.GetTargetField(), old.SrvPort, old.SrvPriority, old.SrvWeight)
// case "CNAME":
// fmt.Fprintf(&b, `$_.RecordData.HostNameAlias -eq "%s"`, old.GetTargetField())
// //case "X25":
// // fmt.Fprintf(&b, ` -X25 -PsdnAddress <String>`, old.GetTargetField())
// //case "WKS":
// // fmt.Fprintf(&b, ` -Wks -InternetAddress <IPAddress> -InternetProtocol {UDP | TCP} -Service <String[]>`, old.GetTargetField())
// case "TXT":
// fmt.Fprintf(&b, `$_.RecordData.DescriptiveText -eq "%s"`, old.GetTargetField())
// //case "RT":
// // fmt.Fprintf(&b, ` -RT -IntermediateHost <String> -Preference <UInt16>`, old.GetTargetField())
// //case "RP":
// // fmt.Fprintf(&b, ` -RP -Description <String> -ResponsiblePerson <String>`, old.GetTargetField())
// case "PTR":
// fmt.Fprintf(&b, `$_.RecordData.PtrDomainName -eq "%s"`, old.GetTargetField())
// case "NS":
// fmt.Fprintf(&b, `$_.RecordData.NameServer -eq "%s"`, old.GetTargetField())
// case "MX":
// fmt.Fprintf(&b, `$_.RecordData.MailExchange -eq "%s" -and $_.RecordData.Preference -eq %d`, old.GetTargetField(), old.MxPreference)
// //case "ISDN":
// // fmt.Fprintf(&b, ` -Isdn -IsdnNumber <String> -IsdnSubAddress <String>`, old.GetTargetField())
// //case "HINFO":
// // fmt.Fprintf(&b, ` -HInfo -Cpu <String> -OperatingSystem <String>`, old.GetTargetField())
// //case "DNAME":
// // fmt.Fprintf(&b, ` -DName -DomainNameAlias <String>`, old.GetTargetField())
// //case "DHCID":
// // fmt.Fprintf(&b, ` -DhcId -DhcpIdentifier <String>`, old.GetTargetField())
// //case "TLSA":
// // fmt.Fprintf(&b, ` -TLSA -CertificateAssociationData <System.String> -CertificateUsage {CAConstraint | ServiceCertificateConstraint | TrustAnchorAssertion | DomainIssuedCertificate} -MatchingType {ExactMatch | Sha256Hash | Sha512Hash} -Selector {FullCertificate | SubjectPublicKeyInfo}`, rec.GetTargetField())
// default:
// panic(fmt.Errorf("generatePSModify() has not implemented recType=%q recName=%q content=(%s))",
// rec.Type, rec.GetLabel(), rec.GetTargetCombined()))
// // We panic so that we quickly find any switch statements
// // that have not been updated for a new RR type.
// }
// fmt.Fprintf(&b, "}")
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, `if($OldObj.Length -ne 1){ throw "Error, multiple results for Get-DnsServerResourceRecord" }`)
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, "$NewObj = $OldObj.Clone()")
// fmt.Fprintf(&b, " ; ")
//
// if old.TTL != rec.TTL {
// fmt.Fprintf(&b, `$NewObj.TimeToLive = New-TimeSpan -Seconds %d`, rec.TTL)
// fmt.Fprintf(&b, " ; ")
// }
// switch rec.Type {
// case "A":
// fmt.Fprintf(&b, `$NewObj.RecordData.IPv4Address = "%s"`, rec.GetTargetIP())
// case "AAAA":
// fmt.Fprintf(&b, `$NewObj.RecordData.IPv6Address = "%s"`, rec.GetTargetIP())
// //case "ATMA":
// // fmt.Fprintf(&b, ` -Atma -Address <String> -AddressType {E164 | AESA}`, rec.GetTargetField())
// //case "AFSDB":
// // fmt.Fprintf(&b, ` -Afsdb -ServerName <String> -SubType <UInt16>`, rec.GetTargetField())
// case "SRV":
// fmt.Fprintf(&b, ` -Srv -DomainName "%s" -Port %d -Priority %d -Weight %d`, rec.GetTargetField(), rec.SrvPort, rec.SrvPriority, rec.SrvWeight)
// fmt.Fprintf(&b, `$NewObj.RecordData.DomainName = "%s"`, rec.GetTargetField())
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, `$NewObj.RecordData.Port = %d`, rec.SrvPort)
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, `$NewObj.RecordData.Priority = %d`, rec.SrvPriority)
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, `$NewObj.RecordData.Weight = "%d"`, rec.SrvWeight)
// case "CNAME":
// fmt.Fprintf(&b, `$NewObj.RecordData.HostNameAlias = "%s"`, rec.GetTargetField())
// //case "X25":
// // fmt.Fprintf(&b, ` -X25 -PsdnAddress <String>`, rec.GetTargetField())
// //case "WKS":
// // fmt.Fprintf(&b, ` -Wks -InternetAddress <IPAddress> -InternetProtocol {UDP | TCP} -Service <String[]>`, rec.GetTargetField())
// case "TXT":
// fmt.Fprintf(&b, `$NewObj.RecordData.DescriptiveText = "%s"`, rec.GetTargetField())
// //case "RT":
// // fmt.Fprintf(&b, ` -RT -IntermediateHost <String> -Preference <UInt16>`, rec.GetTargetField())
// //case "RP":
// // fmt.Fprintf(&b, ` -RP -Description <String> -ResponsiblePerson <String>`, rec.GetTargetField())
// case "PTR":
// fmt.Fprintf(&b, `$NewObj.RecordData.PtrDomainName = "%s"`, rec.GetTargetField())
// case "NS":
// fmt.Fprintf(&b, `$NewObj.RecordData.NameServer = "%s"`, rec.GetTargetField())
// case "MX":
// fmt.Fprintf(&b, `$NewObj.RecordData.MailExchange = "%s"`, rec.GetTargetField())
// fmt.Fprintf(&b, " ; ")
// fmt.Fprintf(&b, `$NewObj.RecordData.Preference = "%d"`, rec.MxPreference)
// //case "ISDN":
// // fmt.Fprintf(&b, ` -Isdn -IsdnNumber <String> -IsdnSubAddress <String>`, rec.GetTargetField())
// //case "HINFO":
// // fmt.Fprintf(&b, ` -HInfo -Cpu <String> -OperatingSystem <String>`, rec.GetTargetField())
// //case "DNAME":
// // fmt.Fprintf(&b, ` -DName -DomainNameAlias <String>`, rec.GetTargetField())
// //case "DHCID":
// // fmt.Fprintf(&b, ` -DhcId -DhcpIdentifier <String>`, rec.GetTargetField())
// //case "TLSA":
// // fmt.Fprintf(&b, ` -TLSA -CertificateAssociationData <System.String> -CertificateUsage {CAConstraint | ServiceCertificateConstraint | TrustAnchorAssertion | DomainIssuedCertificate} -MatchingType {ExactMatch | Sha256Hash | Sha512Hash} -Selector {FullCertificate | SubjectPublicKeyInfo}`, rec.GetTargetField())
// default:
// panic(fmt.Errorf("generatePSModify() update has not implemented recType=%q recName=%q content=(%s))",
// rec.Type, rec.GetLabel(), rec.GetTargetCombined()))
// // We panic so that we quickly find any switch statements
// // that have not been updated for a new RR type.
// }
// fmt.Fprintf(&b, " ; ")
// //printer.Printf("DEBUG CCMD: %s\n", b.String())
//
// fmt.Fprintf(&b, "Set-DnsServerResourceRecord")
// fmt.Fprintf(&b, ` -ZoneName "%s"`, domain)
// fmt.Fprintf(&b, ` -NewInputObject $NewObj -OldInputObject $OldObj`)
//
// printer.Printf("DEBUG MCMD: %s", b.String())
// return b.String()
```
|
```java
package com.hitherejoe.bourboncorecommon.data.remote;
import com.google.gson.Gson;
import com.hitherejoe.bourboncorecommon.BuildConfig;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Provide "make" methods to create instances of {@link BourbonService}
* and its related dependencies, such as OkHttpClient, Gson, etc.
*/
public class BourbonServiceFactory {
public static BourbonService makeBourbonService() {
OkHttpClient okHttpClient = makeOkHttpClient(makeLoggingInterceptor());
return makeBourbonService(okHttpClient);
}
public static BourbonService makeBourbonService(OkHttpClient okHttpClient) {
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BuildConfig.DRIBBBLE_API_URL)
.client(okHttpClient)
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create(new Gson()))
.build();
return retrofit.create(BourbonService.class);
}
public static OkHttpClient makeOkHttpClient(HttpLoggingInterceptor httpLoggingInterceptor) {
return new OkHttpClient.Builder()
.addInterceptor(httpLoggingInterceptor)
.build();
}
public static HttpLoggingInterceptor makeLoggingInterceptor() {
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.setLevel(BuildConfig.DEBUG ? HttpLoggingInterceptor.Level.BODY
: HttpLoggingInterceptor.Level.NONE);
return logging;
}
}
```
|
```swift
//
// RefCountDisposable.swift
// RxSwift
//
// Created by Junior B. on 10/29/15.
//
/// Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
public final class RefCountDisposable : DisposeBase, Cancelable {
private var _lock = SpinLock()
private var _disposable = nil as Disposable?
private var _primaryDisposed = false
private var _count = 0
/// - returns: Was resource disposed.
public var isDisposed: Bool {
self._lock.lock(); defer { self._lock.unlock() }
return self._disposable == nil
}
/// Initializes a new instance of the `RefCountDisposable`.
public init(disposable: Disposable) {
self._disposable = disposable
super.init()
}
/**
Holds a dependent disposable that when disposed decreases the refcount on the underlying disposable.
When getter is called, a dependent disposable contributing to the reference count that manages the underlying disposable's lifetime is returned.
*/
public func retain() -> Disposable {
return self._lock.calculateLocked {
if self._disposable != nil {
do {
_ = try incrementChecked(&self._count)
} catch {
rxFatalError("RefCountDisposable increment failed")
}
return RefCountInnerDisposable(self)
} else {
return Disposables.create()
}
}
}
/// Disposes the underlying disposable only when all dependent disposables have been disposed.
public func dispose() {
let oldDisposable: Disposable? = self._lock.calculateLocked {
if let oldDisposable = self._disposable, !self._primaryDisposed {
self._primaryDisposed = true
if self._count == 0 {
self._disposable = nil
return oldDisposable
}
}
return nil
}
if let disposable = oldDisposable {
disposable.dispose()
}
}
fileprivate func release() {
let oldDisposable: Disposable? = self._lock.calculateLocked {
if let oldDisposable = self._disposable {
do {
_ = try decrementChecked(&self._count)
} catch {
rxFatalError("RefCountDisposable decrement on release failed")
}
guard self._count >= 0 else {
rxFatalError("RefCountDisposable counter is lower than 0")
}
if self._primaryDisposed && self._count == 0 {
self._disposable = nil
return oldDisposable
}
}
return nil
}
if let disposable = oldDisposable {
disposable.dispose()
}
}
}
internal final class RefCountInnerDisposable: DisposeBase, Disposable
{
private let _parent: RefCountDisposable
private let _isDisposed = AtomicInt(0)
init(_ parent: RefCountDisposable) {
self._parent = parent
super.init()
}
internal func dispose()
{
if fetchOr(self._isDisposed, 1) == 0 {
self._parent.release()
}
}
}
```
|
```shell
#! /usr/bin/env bats
load '/bats-support/load.bash'
load '/bats-assert/load.bash'
load '/getssl/test/test_helper.bash'
# This is run for every test
setup() {
[ ! -f $BATS_RUN_TMPDIR/failed.skip ] || skip "skipping tests after first failure"
GETSSL_CMD_HOST=${GETSSL_IDN_HOST}
# use the test description to move tools we don't want to test out of the way
DNS_TOOL=${BATS_TEST_DESCRIPTION##*:}
for tool in dig drill host nslookup
do
if [[ "$tool" != "$DNS_TOOL" && -f /usr/bin/$tool ]]; then
mv /usr/bin/$tool /usr/bin/${tool}.getssl
fi
done
}
teardown() {
[ -n "$BATS_TEST_COMPLETED" ] || touch $BATS_RUN_TMPDIR/failed.skip
# use the test description to move tools we didn't want to test back
DNS_TOOL=${BATS_TEST_DESCRIPTION##*-}
for tool in dig drill host nslookup
do
if [[ "$tool" != "$DNS_TOOL" && -f /usr/bin/${tool}.getssl ]]; then
mv /usr/bin/${tool}.getssl /usr/bin/${tool}
fi
done
}
setup_file() {
if [ -z "$STAGING" ]; then
export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt
curl --silent -X POST -d '{"host":"'$GETSSL_IDN_HOST'", "addresses":["'$GETSSL_IP'"]}' path_to_url
fi
}
teardown_file() {
if [ -z "$STAGING" ]; then
curl --silent -X POST -d '{"host":"'$GETSSL_IDN_HOST'", "addresses":["'$GETSSL_IP'"]}' path_to_url
fi
}
@test "Check that DNS-01 verification works if the domain is idn:dig" {
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
CONFIG_FILE="getssl-dns01.cfg"
setup_environment
init_getssl
create_certificate
assert_success
assert_output --partial "dig"
check_output_for_errors
}
@test "Check that DNS-01 verification works if the domain is idn:drill" {
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
if [ ! -f /usr/bin/drill ]; then
# Can't find drill package for centos8 / rockylinux8
skip "Drill not installed on this system"
fi
CONFIG_FILE="getssl-dns01.cfg"
setup_environment
init_getssl
create_certificate
assert_success
assert_output --partial "drill"
check_output_for_errors
}
```
|
Diorio is a surname. Notable people with the surname include:
Derek Diorio, Canadian writer and actor
Jerry Diorio, American football player
Joe Diorio, American jazz guitarist
Nicholas DiOrio, American soccer player
Ron Diorio, American baseball player
Tyce Diorio, American dancer
Verónica Diorio, fictional character from Graduados
See also
Diorios, village in Cyprus
|
The Aquarius 24 Pilot Cutter, also called the Aquarius Pilot Cutter 24, Aquarius 24 Cutter and the Topsail Pilot Cutter, is an American trailerable sailboat that was designed by Frank Parish as a cruiser and first built in 1979.
Production
The design was built by Top Sail Yachts in Portsmouth, Rhode Island, United States. The company built 33 of the boats from 1979 to 1984, but it is now out of production.
Design
The Aquarius 24 Pilot Cutter was intended as a limited production ocean cruising boat and was inspired by 19th century working boat designs. The design goals were ease of handling, comfort and safety.
The design is a recreational keelboat, built predominantly of hand-laid solid fiberglass with polyester resin, with wood trim. The deck and coach house are made from fiberglass cored marine plywood. It has a cutter rig with a Gunter topsail gaff rig optional. Spars are all aluminum. It has a spooned plumb stem, an angled transom, a keel-mounted rudder controlled by a tiller, a wooden bowsprit, a "V" shaped boomkin and a fixed long keel. Although described as a trailerable boat, it displaces and carries of lead encapsulated ballast. The trailering weight is estimated to be .
Even though the hull length is , with the bowsprit the length overall is or for the gaff-rigged model, as it has a longer bowsprit.
The boat has a draft of with the standard keel.
The boat is fitted with a Swedish Volvo MD 7 diesel engine of for docking and maneuvering. It could also be fitted with a small outboard motor and at least some were so equipped.
The design was factory delivered with a choice of at least four different interior arrangements and each boat was custom finished. Each of these layouts has sleeping accommodation for six people, with a double slant berth in the bow cabin, a "U"-shaped settee or aft berth on the port side in the main cabin and an aft cabin with a double berth on the starboard side. The galley is located amidships on the starboard side. The head is located just aft of the bow cabin on the starboard side. Cabin headroom is and the fresh water tank has a capacity of .
The design was sold as a "character boat", with features that were reminiscent of the late 19th century, such as ten opening bronze ports as well as bronze turnbuckles, chainplates and winches, as well as tanbark sails. For sailing the design is equipped with lazyjacks, with all lines led to the cockpit.
The design has a PHRF racing average handicap of 258 and a hull speed of .
Operational history
The boat is supported by an active class club, the Aquarius Pilot Cutters Owners Group.
In a 2010 review Steve Henkel wrote, "this is a compact character boat conceived in the 1970s, but designed to look like something from the 1920s or 1930s, and having the same general characteristics: heavy scantlings, lots of bronze hardware ... and tanbark sails ... Her displacement of 8,900 lbs. is more than any of her comp[etitor]s by over 10 percent and stretches the limit of practicality for a 24-foot boat, so her comp[etitor]s are probably all better performers in light air."
A review in Blue Water Boats noted that the boats are "overbuilt", "with a hull thickness varying from 3/8” at the minimum to 5/8" at the turn of the bilge and as much as 3/4" in the keel sections".
See also
List of sailing boat types
References
Keelboats
1970s sailboat type designs
Sailing yachts
Trailer sailers
Sailboat types built by Top Sail Yachts
Sailboat type designs by Frank Parish
|
```c
/*
*
* in the file LICENSE in the source distribution or at
* path_to_url
*/
/* Adapted from the public domain code by D. Bernstein from SUPERCOP. */
#include <string.h>
#include "internal/endian.h"
#include "crypto/chacha.h"
#include "crypto/ctype.h"
typedef unsigned int u32;
typedef unsigned char u8;
typedef union {
u32 u[16];
u8 c[64];
} chacha_buf;
# define ROTATE(v, n) (((v) << (n)) | ((v) >> (32 - (n))))
# ifndef PEDANTIC
# if defined(__GNUC__) && __GNUC__>=2 && \
!defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
# if defined(__riscv_zbb) || defined(__riscv_zbkb)
# if __riscv_xlen == 64
# undef ROTATE
# define ROTATE(x, n) ({ u32 ret; \
asm ("roriw %0, %1, %2" \
: "=r"(ret) \
: "r"(x), "i"(32 - (n))); ret;})
# endif
# if __riscv_xlen == 32
# undef ROTATE
# define ROTATE(x, n) ({ u32 ret; \
asm ("rori %0, %1, %2" \
: "=r"(ret) \
: "r"(x), "i"(32 - (n))); ret;})
# endif
# endif
# endif
# endif
# define U32TO8_LITTLE(p, v) do { \
(p)[0] = (u8)(v >> 0); \
(p)[1] = (u8)(v >> 8); \
(p)[2] = (u8)(v >> 16); \
(p)[3] = (u8)(v >> 24); \
} while(0)
/* QUARTERROUND updates a, b, c, d with a ChaCha "quarter" round. */
# define QUARTERROUND(a,b,c,d) ( \
x[a] += x[b], x[d] = ROTATE((x[d] ^ x[a]),16), \
x[c] += x[d], x[b] = ROTATE((x[b] ^ x[c]),12), \
x[a] += x[b], x[d] = ROTATE((x[d] ^ x[a]), 8), \
x[c] += x[d], x[b] = ROTATE((x[b] ^ x[c]), 7) )
/* chacha_core performs 20 rounds of ChaCha on the input words in
* |input| and writes the 64 output bytes to |output|. */
static void chacha20_core(chacha_buf *output, const u32 input[16])
{
u32 x[16];
int i;
DECLARE_IS_ENDIAN;
memcpy(x, input, sizeof(x));
for (i = 20; i > 0; i -= 2) {
QUARTERROUND(0, 4, 8, 12);
QUARTERROUND(1, 5, 9, 13);
QUARTERROUND(2, 6, 10, 14);
QUARTERROUND(3, 7, 11, 15);
QUARTERROUND(0, 5, 10, 15);
QUARTERROUND(1, 6, 11, 12);
QUARTERROUND(2, 7, 8, 13);
QUARTERROUND(3, 4, 9, 14);
}
if (IS_LITTLE_ENDIAN) {
for (i = 0; i < 16; ++i)
output->u[i] = x[i] + input[i];
} else {
for (i = 0; i < 16; ++i)
U32TO8_LITTLE(output->c + 4 * i, (x[i] + input[i]));
}
}
void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp,
size_t len, const unsigned int key[8],
const unsigned int counter[4])
{
u32 input[16];
chacha_buf buf;
size_t todo, i;
/* sigma constant "expand 32-byte k" in little-endian encoding */
input[0] = ((u32)ossl_toascii('e')) | ((u32)ossl_toascii('x') << 8)
| ((u32)ossl_toascii('p') << 16)
| ((u32)ossl_toascii('a') << 24);
input[1] = ((u32)ossl_toascii('n')) | ((u32)ossl_toascii('d') << 8)
| ((u32)ossl_toascii(' ') << 16)
| ((u32)ossl_toascii('3') << 24);
input[2] = ((u32)ossl_toascii('2')) | ((u32)ossl_toascii('-') << 8)
| ((u32)ossl_toascii('b') << 16)
| ((u32)ossl_toascii('y') << 24);
input[3] = ((u32)ossl_toascii('t')) | ((u32)ossl_toascii('e') << 8)
| ((u32)ossl_toascii(' ') << 16)
| ((u32)ossl_toascii('k') << 24);
input[4] = key[0];
input[5] = key[1];
input[6] = key[2];
input[7] = key[3];
input[8] = key[4];
input[9] = key[5];
input[10] = key[6];
input[11] = key[7];
input[12] = counter[0];
input[13] = counter[1];
input[14] = counter[2];
input[15] = counter[3];
while (len > 0) {
todo = sizeof(buf);
if (len < todo)
todo = len;
chacha20_core(&buf, input);
for (i = 0; i < todo; i++)
out[i] = inp[i] ^ buf.c[i];
out += todo;
inp += todo;
len -= todo;
/*
* Advance 32-bit counter. Note that as subroutine is so to
* say nonce-agnostic, this limited counter width doesn't
* prevent caller from implementing wider counter. It would
* simply take two calls split on counter overflow...
*/
input[12]++;
}
}
```
|
Acrodon deminutus, also known as the Malgas tiptoothfig, is a species of mesemb from South Africa.
Description
This spreading succulent grows up to tall. It has a diameter of up to . It has a tap root and only rarely has adventitious roots. The internodes are red when young, turning ochre with age. They do not have roots and grow up to long. The tringualar leaves are free almost to the base and grow long and borad and thick. They are green, blue-green or grey-green in colour and have toothed margins. The keel has two or three teeth and each margin has four or five teeth. It is the only species in the genus to also have teeth over the flat sides of the leaf in some leaves. The epidermal bladder cells are completely flattened.
Single flowers are borne on the ends of branches in September. The calyx has five lobes. The bracts grow closely around the short stem holding the flower, embracing the base of the flower. The petals are magenta at the tips and bases and white in between. They have a diameter of . The filaments holding the stamens are white at the base and magenta at the tips.
The fruit is a 5-locular capsule that has a diameter. It is dark grey in colour. It has a flat top and shallow base with raised rimes. The closing body is lens shaped. The fruit opens through short keels becoming erect, causin the closing body to move from the base. The D-shaped seeds are brown. The testa cells are arraned in concentric rows. They are up to long and have an average mass of .
Distribution and habitat
This species is endemic to the Western Cape of South Africa. It grows in the Renosterveld biome between Swellendam and Bredasdorp. It grows on stony quartz outcrops on clay. It prefers gently sloping hills.
Etymology
The species name comes from the Latin deminutus , which means reduced or diminutive. This refers to the small size of the leaves of this species.
Conservation
This species is considered to be vulnerable by the South African National Biodiversity Institute. The Swellendam area is highly cultivated, and the plants are potentially at risk of being trampled by or grazed on by livestock in the four locations that they are known from.
References
Endemic flora of the Cape Provinces
deminutus
Renosterveld
|
Luke Christopher Carlin (born December 20, 1980) is an American Canadian former professional baseball catcher. He played in Major League Baseball (MLB) for the San Diego Padres, Arizona Diamondbacks and Cleveland Indians.
Early life
Born in Silver Spring, Maryland, United States, Carlin's family moved to Aylmer, Quebec when he was very young and he played baseball in the province of Quebec, notably for the Quebec Diamants of the Ligue de Baseball Elite du Quebec in 1999, before obtaining a scholarship from Northeastern University, where he played college baseball for the Huskies. In 2001, he played collegiate summer baseball with the Chatham A's of the Cape Cod Baseball League. He was named to the All-Tournament Team at the 2002 America East Tournament, in which the Huskies finished second.
Professional career
Detroit Tigers
He was drafted by the Detroit Tigers in the 10th round of the 2002 Major League Baseball draft and signed his first pro contract on June 18 of the same year and played for the Oneonta Tigers in the New York–Penn League before being released by the Tigers in March 2003.
San Diego Padres
He signed as a free agent with the San Diego Padres in April 2003 and played in their organization for six years with stops with the Eugene Emeralds of the Northwest League (A-) and the Fort Wayne Wizards of the Midwest League (A) in 2003, Fort Wayne and the Lake Elsinore Storm of the California League (A+) in 2004, the Mobile Bay Bears of the Southern League (AA) in 2005, Mobile and the Portland Beavers of the Pacific Coast League (AAA) in 2006 and Portland in 2007 and 2008.
On May 10, , Carlin made his MLB debut for the San Diego Padres. On May 16, 2008, he came through with his first MLB hit, which was a double against the Colorado Rockies. He became a free agent at the end of the season and signed a minor league contract with the Arizona Diamondbacks in January .
Pittsburgh Pirates
On January 12, 2010, Carlin signed a minor league contract with the Pittsburgh Pirates with an invitation to spring training.
Cleveland Indians
On August 10, 2010, Carlin was traded to the Cleveland Indians for a player to be named later. His contract was purchased by the Indians from Triple-A Columbus on September 23. Carlin was outrighted to Triple-A Columbus on October 31, removing him from the 40-man roster. Carlin refused his minor league assignment and subsequently filed for free agency. On November 29, 2010, Carlin signed a minor league contract with the Indians; his deal included a non-roster invitation to the Indians' 2011 spring training camp.
Carlin began 2012 with Columbus, hitting .227 in 20 games with 10 RBI before he was called up to Cleveland on May 26 to replace Carlos Santana, who was placed on the 7-day DL.
He was designated for assignment on June 12, and sent to Triple A on June 15.
Coaching career
In January 2018, Carlin was named manager of the Lake County Captains, the single A affiliate of the Cleveland Indians.
References
External links
1980 births
Living people
Águilas Cibaeñas players
American expatriate baseball players in the Dominican Republic
American emigrants to Canada
Arizona Diamondbacks players
Baseball players from Maryland
Baseball people from Quebec
Chatham Anglers players
Cleveland Indians players
Columbus Clippers players
Estrellas Orientales players
Eugene Emeralds players
Fort Wayne Wizards players
Gigantes del Cibao players
Indianapolis Indians players
Iowa Cubs players
Lake Elsinore Storm players
Major League Baseball catchers
Minor league baseball managers
Mobile BayBears players
Nashville Sounds players
Northeastern Huskies baseball players
Oneonta Tigers players
Sportspeople from Silver Spring, Maryland
Portland Beavers players
Reno Aces players
Salt Lake Bees players
San Diego Padres players
World Baseball Classic players of Canada
2009 World Baseball Classic players
|
```go
package server
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/weaveworks/common/instrument"
"github.com/weaveworks/common/middleware"
"time"
)
type Metrics struct {
TcpConnections *prometheus.GaugeVec
TcpConnectionsLimit *prometheus.GaugeVec
RequestDuration *prometheus.HistogramVec
ReceivedMessageSize *prometheus.HistogramVec
SentMessageSize *prometheus.HistogramVec
InflightRequests *prometheus.GaugeVec
}
func NewServerMetrics(cfg Config) *Metrics {
return &Metrics{
TcpConnections: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: cfg.MetricsNamespace,
Name: "tcp_connections",
Help: "Current number of accepted TCP connections.",
}, []string{"protocol"}),
TcpConnectionsLimit: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: cfg.MetricsNamespace,
Name: "tcp_connections_limit",
Help: "The max number of TCP connections that can be accepted (0 means no limit).",
}, []string{"protocol"}),
RequestDuration: prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: cfg.MetricsNamespace,
Name: "request_duration_seconds",
Help: "Time (in seconds) spent serving HTTP requests.",
Buckets: instrument.DefBuckets,
NativeHistogramBucketFactor: cfg.MetricsNativeHistogramFactor,
NativeHistogramMaxBucketNumber: 100,
NativeHistogramMinResetDuration: time.Hour,
}, []string{"method", "route", "status_code", "ws"}),
ReceivedMessageSize: prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: cfg.MetricsNamespace,
Name: "request_message_bytes",
Help: "Size (in bytes) of messages received in the request.",
Buckets: middleware.BodySizeBuckets,
}, []string{"method", "route"}),
SentMessageSize: prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: cfg.MetricsNamespace,
Name: "response_message_bytes",
Help: "Size (in bytes) of messages sent in response.",
Buckets: middleware.BodySizeBuckets,
}, []string{"method", "route"}),
InflightRequests: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: cfg.MetricsNamespace,
Name: "inflight_requests",
Help: "Current number of inflight requests.",
}, []string{"method", "route"}),
}
}
func (s *Metrics) MustRegister(registerer prometheus.Registerer) {
registerer.MustRegister(
s.TcpConnections,
s.TcpConnectionsLimit,
s.RequestDuration,
s.ReceivedMessageSize,
s.SentMessageSize,
s.InflightRequests,
)
}
```
|
```xml
import { jest } from '@jest/globals';
import { render, Screen, screen } from '@testing-library/react';
import fs from 'fs-extra';
import path from 'path';
import { fileURLToPath } from 'url';
import { DiffBlock } from '.';
const dirname = path.dirname(fileURLToPath(import.meta.url));
const DIFF_PATH = '/static/diffs/expo-ios.diff';
const DIFF_CONTENT = fs.readFileSync(path.join(dirname, '../../../public', DIFF_PATH)).toString();
const validateDiffContent = (screen: Screen) => {
expect(screen.getByText('ios/myapp/AppDelegate.h')).toBeInTheDocument();
expect(screen.getByText('ios/Podfile')).toBeInTheDocument();
expect(screen.getByText('#import <UIKit/UIKit.h>')).toBeInTheDocument();
expect(screen.getByText('#import <Expo/Expo.h>')).toBeInTheDocument();
};
describe(DiffBlock, () => {
it('renders diff from file correctly', async () => {
global.fetch = jest.fn(() =>
Promise.resolve({
text: async () => DIFF_CONTENT,
} as Response)
);
render(<DiffBlock source={DIFF_PATH} />);
await screen.findByText('ios/myapp/AppDelegate.h');
validateDiffContent(screen);
});
it('renders raw diff correctly on first render', () => {
render(<DiffBlock raw={DIFF_CONTENT} />);
validateDiffContent(screen);
});
it('renders diff correctly when no commit data', () => {
const noCommitDataDiff = DIFF_CONTENT.replaceAll(/\s+index.+/g, '');
expect(noCommitDataDiff.includes('index ')).toBe(false);
render(<DiffBlock raw={noCommitDataDiff} />);
validateDiffContent(screen);
});
it('Shows the operation in header when showOperation is true', () => {
render(<DiffBlock raw={DIFF_CONTENT} showOperation />);
expect(screen.getAllByText('MODIFIED')).toBeTruthy();
});
it('Collapses deleted files when collapseDeletedFiles is true', () => {
const diffWithDelete = `
diff --git a/templates/expo-template-bare-minimum/__tests__/App.js b/templates/expo-template-bare-minimum/__tests__/App.js
deleted file mode 100644
index fa45c70206..0000000000
--- a/templates/expo-template-bare-minimum/__tests__/App.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import 'react-native';
-import React from 'react';
-import App from '../App';
-
-// Note: test renderer must be required after react-native.
-import renderer from 'react-test-renderer';
-
-it('renders correctly', () => {
- renderer.create(<App />);
-});`;
render(<DiffBlock raw={diffWithDelete} collapseDeletedFiles />);
expect(screen.queryByText(`import 'react-native';`)).not.toBeInTheDocument();
});
});
```
|
```smalltalk
using System.Threading.Tasks;
using Roslynator.Testing.CSharp;
using Xunit;
namespace Roslynator.CSharp.Refactorings.Tests;
public class RR0194SplitLocalDeclarationAndAssignmentTests : AbstractCSharpRefactoringVerifier
{
public override string RefactoringId { get; } = RefactoringIdentifiers.SplitLocalDeclarationAndAssignment;
[Fact, Trait(Traits.Refactoring, RefactoringIdentifiers.SplitLocalDeclarationAndAssignment)]
public async Task TestRefactoring()
{
await VerifyRefactoringAsync(@"
class C
{
void M()
{
var s [||]= new string(' ', 1);
}
}
", @"
class C
{
void M()
{
string s;
s = new string(' ', 1);
}
}
", equivalenceKey: EquivalenceKey.Create(RefactoringId));
}
}
```
|
```javascript
"use strict";
/*
*
* 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. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS 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.
*/
/**
* @param {!string} id
*/
function $(id) {
return document.getElementById(id);
}
/**
* @param {!string} tagName
* @param {string=} opt_class
* @param {string=} opt_text
* @return {!Element}
*/
function createElement(tagName, opt_class, opt_text) {
var element = document.createElement(tagName);
if (opt_class)
element.setAttribute("class", opt_class);
if (opt_text)
element.appendChild(document.createTextNode(opt_text));
return element;
}
/**
* @constructor
* @param {!number|Rectangle|Object} xOrRect
* @param {!number} y
* @param {!number} width
* @param {!number} height
*/
function Rectangle(xOrRect, y, width, height) {
if (typeof xOrRect === "object") {
y = xOrRect.y;
width = xOrRect.width;
height = xOrRect.height;
xOrRect = xOrRect.x;
}
this.x = xOrRect;
this.y = y;
this.width = width;
this.height = height;
}
Rectangle.prototype = {
get maxX() { return this.x + this.width; },
get maxY() { return this.y + this.height; },
toString: function() { return "Rectangle(" + this.x + "," + this.y + "," + this.width + "," + this.height + ")"; }
};
/**
* @param {!Rectangle} rect1
* @param {!Rectangle} rect2
* @return {?Rectangle}
*/
Rectangle.intersection = function(rect1, rect2) {
var x = Math.max(rect1.x, rect2.x);
var maxX = Math.min(rect1.maxX, rect2.maxX);
var y = Math.max(rect1.y, rect2.y);
var maxY = Math.min(rect1.maxY, rect2.maxY);
var width = maxX - x;
var height = maxY - y;
if (width < 0 || height < 0)
return null;
return new Rectangle(x, y, width, height);
};
/**
* @param {!number} width
* @param {!number} height
*/
function resizeWindow(width, height) {
setWindowRect(adjustWindowRect(width, height, width, height));
}
/**
* @param {!number} width
* @param {!number} height
* @param {?number} minWidth
* @param {?number} minHeight
* @return {!Rectangle}
*/
function adjustWindowRect(width, height, minWidth, minHeight) {
if (typeof minWidth !== "number")
minWidth = 0;
if (typeof minHeight !== "number")
minHeight = 0;
var windowRect = new Rectangle(0, 0, width, height);
if (!global.params.anchorRectInScreen)
return windowRect;
var anchorRect = new Rectangle(global.params.anchorRectInScreen);
var availRect = new Rectangle(window.screen.availLeft, window.screen.availTop, window.screen.availWidth, window.screen.availHeight);
window.pagePopupController.log("anchorRect.y:" + anchorRect.y + ", anchorRect.height:" + anchorRect.height);
_adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeight);
_adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWidth);
return windowRect;
}
function _adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeight) {
var availableSpaceAbove = anchorRect.y - availRect.y;
availableSpaceAbove = Math.max(0, Math.min(availRect.height, availableSpaceAbove));
var availableSpaceBelow = availRect.maxY - anchorRect.maxY;
availableSpaceBelow = Math.max(0, Math.min(availRect.height, availableSpaceBelow));
window.pagePopupController.log("availRect.height:" + availRect.height + ", availableSpaceAbove:" + availableSpaceAbove);
window.pagePopupController.log("windowRect.height:" + windowRect.height + ", availableSpaceBelow:" + availableSpaceBelow);
if (windowRect.height > availableSpaceBelow && availableSpaceBelow < availableSpaceAbove) {
windowRect.height = Math.min(windowRect.height, availableSpaceAbove);
windowRect.height = Math.max(windowRect.height, minHeight);
windowRect.y = anchorRect.y - windowRect.height;
window.pagePopupController.log("_adjustWindowRectVertically 1");
} else {
windowRect.height = Math.min(windowRect.height, availableSpaceBelow);
windowRect.height = Math.max(windowRect.height, minHeight);
windowRect.y = anchorRect.maxY;
window.pagePopupController.log("_adjustWindowRectVertically 2");
}
}
function _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWidth) {
windowRect.width = Math.min(windowRect.width, availRect.width);
windowRect.width = Math.max(windowRect.width, minWidth);
windowRect.x = anchorRect.x;
// If we are getting clipped, we want to switch alignment to the right side
// of the anchor rect as long as doing so will make the popup not clipped.
var rightAlignedX = windowRect.x + anchorRect.width - windowRect.width;
if (rightAlignedX >= availRect.x && (windowRect.maxX > availRect.maxX || global.params.isRTL))
windowRect.x = rightAlignedX;
}
/**
* @param {!Rectangle} rect
*/
function setWindowRect(rect) {
if (window.frameElement) {
window.frameElement.style.width = rect.width + "px";
window.frameElement.style.height = rect.height + "px";
} else {
window.pagePopupController.setWindowRect(rect.x, rect.y, rect.width, rect.height);
}
}
function hideWindow() {
resizeWindow(1, 1);
}
/**
* @return {!boolean}
*/
function isWindowHidden() {
return window.innerWidth === 1 && window.innerHeight === 1;
}
window.addEventListener("resize", function() {
if (isWindowHidden())
window.dispatchEvent(new CustomEvent("didHide"));
else
window.dispatchEvent(new CustomEvent("didOpenPicker"));
}, false);
/**
* @return {!number}
*/
function getScrollbarWidth() {
if (typeof window.scrollbarWidth === "undefined") {
var scrollDiv = document.createElement("div");
scrollDiv.style.opacity = "0";
scrollDiv.style.overflow = "scroll";
scrollDiv.style.width = "50px";
scrollDiv.style.height = "50px";
document.body.appendChild(scrollDiv);
window.scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
scrollDiv.parentNode.removeChild(scrollDiv);
}
return window.scrollbarWidth;
}
/**
* @param {!string} className
* @return {?Element}
*/
function enclosingNodeOrSelfWithClass(selfNode, className)
{
for (var node = selfNode; node && node !== selfNode.ownerDocument; node = node.parentNode) {
if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains(className))
return node;
}
return null;
}
/**
* @constructor
*/
function EventEmitter() {
};
/**
* @param {!string} type
* @param {!function({...*})} callback
*/
EventEmitter.prototype.on = function(type, callback) {
console.assert(callback instanceof Function);
if (!this._callbacks)
this._callbacks = {};
if (!this._callbacks[type])
this._callbacks[type] = [];
this._callbacks[type].push(callback);
};
EventEmitter.prototype.hasListener = function(type) {
if (!this._callbacks)
return false;
var callbacksForType = this._callbacks[type];
if (!callbacksForType)
return false;
return callbacksForType.length > 0;
};
/**
* @param {!string} type
* @param {!function(Object)} callback
*/
EventEmitter.prototype.removeListener = function(type, callback) {
if (!this._callbacks)
return;
var callbacksForType = this._callbacks[type];
if (!callbacksForType)
return;
callbacksForType.splice(callbacksForType.indexOf(callback), 1);
if (callbacksForType.length === 0)
delete this._callbacks[type];
};
/**
* @param {!string} type
* @param {...*} var_args
*/
EventEmitter.prototype.dispatchEvent = function(type) {
if (!this._callbacks)
return;
var callbacksForType = this._callbacks[type];
if (!callbacksForType)
return;
callbacksForType = callbacksForType.slice(0);
for (var i = 0; i < callbacksForType.length; ++i) {
callbacksForType[i].apply(this, Array.prototype.slice.call(arguments, 1));
}
};
/**
* @constructor
* @extends EventEmitter
* @param {!Element} element
* @param {!Object} config
*/
function Picker(element, config) {
this._element = element;
this._config = config;
}
Picker.prototype = Object.create(EventEmitter.prototype);
/**
* @enum {number}
*/
Picker.Actions = {
SetValue: 0,
Cancel: -1,
ChooseOtherColor: -2
};
/**
* @param {!string} value
*/
Picker.prototype.submitValue = function(value) {
window.pagePopupController.setValue(value);
window.pagePopupController.closePopup();
};
Picker.prototype.handleCancel = function() {
window.pagePopupController.closePopup();
};
Picker.prototype.chooseOtherColor = function() {
window.pagePopupController.setValueAndClosePopup(Picker.Actions.ChooseOtherColor, "");
};
Picker.prototype.cleanup = function() {};
window.addEventListener("keyup", function(event) {
// JAWS dispatches extra Alt events and unless we handle them they move the
// focus and close the popup.
if (event.keyIdentifier === "Alt")
event.preventDefault();
}, true);
```
|
Barrow upon Humber is a village and civil parish in North Lincolnshire, England. The population (including Barrow Hann) at the 2011 census was 3,022.
The village is situated near the Humber, about east from Barton-upon-Humber. The small port of Barrow Haven, north, on the railway line from Cleethorpes and Grimsby to Barton-upon-Humber handles timber from Latvia and Estonia.
History
Barrow contains the site of a late Anglo-Saxon monastery, which has been fully excavated. The location is now built over, but is marked by a plaque in the village. King Wulfhere gave land to Caedda (Saint Chad) in the 7th century at Ad Barvae (at the wood).
It was on this site that the monastery was developed. The street adjacent to the monastery site is still known as St. Chad.
A windmill, known as Rigg's Mill, was located on the western side of the village but was largely demolished in 1928.
A limestone quarry existed on the south side of the village. Limestone was baked in retorts during the preparation of slaked lime. Remains of the retorts can be found on private property close to the quarry.
The village was bombed during the Second World War. Names of civilians killed are recorded on the cenotaph on the church grounds. Several unexploded bombs were removed from the village by military bomb disposal experts. It is possible that a German bomber dumped its bombs on the village instead of the intended nearby heavily defended target of Hull.
Culture and community
According to the 2001 census Barrow upon Humber had a population of 2,745.
For many years the village supported a mummers troupe known as the Plough-Jags. Such troupes were associated with the festivities of Plough Monday which marked the opening of the agricultural year.
There is one public house: the Royal Oak . The second: the Six Bells closed ~2019. A third public house, the Red Lion, situated on the lower High Street, reverted to a residence in the early 20th century.
John Harrison Church of England Primary School is situated on North Street. Built in the last decade of the 19th century and formerly named Barrow upon Humber Church of England Primary School, it was renamed in honour of John Harrison, designer of maritime chronometers, who lived in the village until 1736.
The village is the home of Barton-upon-Humber Rugby Union Football Club, whose clubhouse is on Mill Lane.
Barrow Bowls Club is a small but friendly lawn bowls club, playing in three leagues from May to September. The club house is located at the end of Thorngarth Lane and is closely associated with Barrow Sports and Fitness Centre, which includes squash courts, snooker tables and a bar.
Landmarks
Many of the buildings in the centre of the village are of 18th- and 19th-century origin. A number of buildings of note include Down Hall, Barrow Hall, Papist Hall, Forester's Hall and West Cote Farm.
Church
The Norman church, with parts that appear to be of earlier origin, is situated on a hilltop to the north of the village and known as the Church of Holy Trinity. When the grounds of the church were landscaped during the 1960s, many graves were lost and the remains were reburied in a communal grave site close to the northern wall of the church. There was much controversy about the disturbing of graves at the time.
A sundial designed by James Harrison, younger brother of John Harrison, stood on the south side of the church near the cenotaph but this has now been removed and replaced by a replica. The church lytch gate was removed circa 1960 but there are still lich-stones on the right hand side when entering the church proper. The churchwarden's house that was located immediately to the east of the church path was condemned and demolished at about the same time. The church has a full peal of bells used frequently by local and visiting campanologists.
Thornton Abbey
Thornton Abbey is situated about 2 miles south from Barrow. On 5 October 1541 Henry VIII, after visiting Hull with the Privy Council, crossed the river in a naval vessel and disembarked at Barrow Haven and rode through Barrow en route to the abbey. Whilst the main part of the abbey has largely disappeared, the gatehouse remains and is open to the public.
Market Place
The market place is identified by the stump of a medieval cross. The gas lamp, installed during the Victorian period and which topped the stones, was removed in the first half of the 20th century. The marketplace has been remodelled to accommodate car parking but the original shape and size can be determined from the alignment of the houses on the northern and eastern sides. The space is used for a number of village events including the annual Wheelbarrow Weekend and the Christmas Fair. Recently trees have been planted to replace those removed in the early years of this century. New seating has been installed bearing motifs celebrating the life and work of John Harrison.
Village hall
The village hall is on the eastern side of the lower High Street and was once used as a cinema. A projection room was situated above the main entrance doorway. Access to hidden rooms could be attained through a trapdoor accessible through the ceiling of the projection room.
Blow wells and the Beck
Fresh water was available from the many springs in the area via two blow wells known as the Caedda Wells. Later this name was contracted; however the blow wells are still known by the locals as the Cadwells. Due to the limestone strata, there are many freshwater springs in the area. One such spring is the source of the local stream known as the Beck. It flows through the village in roughly a south-west/north-east direction. Where it passes beneath Beck Lane, there is a restored hand-operated pump which originally drew water up into the barrels on horse-drawn carts. These carts would then deliver the water to houses in the village that had no water source of their own.
Once clear of the village, the Beck is known as the Leden and passes through sluice gates to flow to Barrow Haven, and then flows into the Humber. The original sluice gates were of wooden construction and situated beneath the small stone bridge at Ferry Road, Barrow Haven. The gates were two opposing, free-swinging, vertically-hinged doors and closed with the pressure of incoming tidal water, thus preventing salt water and, more importantly, flood water from flowing into the Leden and possibly flooding the low-lying farmlands at Barrow Hann, which lies between Barrow Haven and Barrow upon Humber. New sluice gates have been constructed since the 1960s approximately 50 yards downstream of Ferry Road.
Notable people
St Chad was given land to found a monastery at Barrow, by King Wulfhere of Mercia.
Barrow was the birthplace of John Sergeant, the Roman Catholic priest, controversialist and theologian (1623–1707).
Barrow upon Humber was the home of John Harrison, the pioneer of a fail-safe way of establishing longitude at sea. A copy of Harrison's 1759 marine chronometer, H4, made by Larcum Kendall, and referred to as K1, travelled in 1772 with Captain Cook on his second Pacific voyage. Captain Cook grew to trust and rely on the timekeeper, which helped contribute to timekeepers being accepted as the way forward in the practical method of determining longitude at sea. Harrison was the subject of the 2000 film Longitude starring Michael Gambon. In television, the premise of the discovery of Harrison's clock was used in the plot of several episodes of the BBC situation-comedy Only Fools and Horses in which the main characters, the Trotter brothers, became overnight millionaires following the auction of such an item.
Admiral Nigel Malim was born at Barrow in 1919.
Richard Duffill, a long-time resident of the village, is featured in the travel books The Great Railway Bazaar and The Kingdom by the Sea by the American writer Paul Theroux.
Other
The German Honorary Consul, covering the East Riding of Yorkshire, Kingston upon Hull, North Lincolnshire, North East Lincolnshire, Humberside, Lincolnshire and Nottinghamshire as well as Nottingham resides in Barrow upon Humber.
References
External links
Village website
Villages in the Borough of North Lincolnshire
Civil parishes in Lincolnshire
|
```java
package com.brianway.learning.java.base.generics;
public class InstantiateGenericType {
public static void main(String[] args) {
ClassAsFactory<Employee> fe =
new ClassAsFactory<Employee>(Employee.class);
System.out.println("ClassAsFactory<Employee> succeeded");
try {
ClassAsFactory<Integer> fi =
new ClassAsFactory<Integer>(Integer.class);
} catch (Exception e) {
System.out.println("ClassAsFactory<Integer> failed");
}
}
}
class ClassAsFactory<T> {
T x;
public ClassAsFactory(Class<T> kind) {
try {
x = kind.newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
class Employee {
}
/* Output:
ClassAsFactory<Employee> succeeded
ClassAsFactory<Integer> failed
*///:~
```
|
Charles Gough may refer to:
Charles Gough (artist) (1784–1805), artist of the romantic period
Charles John Stanley Gough (1832–1912), soldier who won the Victoria Cross during the Sepoy mutiny
Frederick Gough (MP for Horsham) (Charles Frederick Howard Gough, 1901–1977), soldier and MP for Horsham
Charlie Gough (1939–2015), footballer
Charlie Gough (programmer), one of the creators of Halo
|
```css
/*
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing,
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* specific language governing permissions and limitations
*/
.history-unavailable div.recent-connections {
display: none;
}
div.recent-connections,
div.clipboardDiv,
div.settings,
div.all-connections {
margin: 1em;
padding: 0;
}
.all-connections .list-buttons {
text-align: center;
padding: 0;
}
div.recent-connections {
text-align: center;
}
div.recent-connections div.connection {
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-khtml-border-radius: 0.5em;
border-radius: 0.5em;
display: inline-block;
padding: 1em;
margin: 1em;
text-align: center;
max-width: 75%;
overflow: hidden;
position: relative;
}
a.home-connection, .empty.balancer a.home-connection-group {
display: block;
}
/* Show only expand/collapse icon for connection groups on home screen ... */
.all-connections .connection-group > .caption .icon {
display: none;
}
.all-connections .connection-group > .caption .icon.expand {
display: inline-block;
}
/* ... except for empty balancing groups, which should be rendered as if they
* are connections. */
.all-connections .connection-group.empty.balancer > .caption .icon {
display: inline-block;
}
.all-connections .connection-group.empty.balancer > .caption .icon.expand {
display: none;
}
.header-app-name {
font-size: 0.85em;
box-shadow: none;
}
.recent-connections .connection .remove-recent::after {
content: '';
display: block;
height: 100%;
width: 100%;
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
background-image: url('images/x.svg');
}
.recent-connections .connection .remove-recent {
background-color: red;
height: 1em;
width: 1em;
position: absolute;
top: 10px;
z-index: 10;
float: right;
right: 10px;
opacity: .2;
}
.recent-connections .connection .remove-recent:hover {
opacity: 1.0;
}
```
|
```objective-c
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*
COPYING CONDITIONS NOTICE:
This program is free software; you can redistribute it and/or modify
published by the Free Software Foundation, and provided that the
following conditions are met:
* Redistributions of source code must retain this COPYING
CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
PATENT MARKING NOTICE (below), and the PATENT RIGHTS
GRANT (below).
* Redistributions in binary form must reproduce this COPYING
CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
PATENT MARKING NOTICE (below), and the PATENT RIGHTS
GRANT (below) in the documentation and/or other materials
provided with the distribution.
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
COPYRIGHT NOTICE:
TokuFT, Tokutek Fractal Tree Indexing Library.
DISCLAIMER:
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
UNIVERSITY PATENT NOTICE:
The technology is licensed by the Massachusetts Institute of
Technology, Rutgers State University of New Jersey, and the Research
Foundation of State University of New York at Stony Brook under
United States of America Serial No. 11/760379 and to the patents
and/or patent applications resulting from it.
PATENT MARKING NOTICE:
This software is covered by US Patent No. 8,185,551.
This software is covered by US Patent No. 8,489,638.
PATENT RIGHTS GRANT:
"THIS IMPLEMENTATION" means the copyrightable works distributed by
Tokutek as part of the Fractal Tree project.
"PATENT CLAIMS" means the claims of patents that are owned or
licensable by Tokutek, both currently or in the future; and that in
the absence of this license would be infringed by THIS
IMPLEMENTATION or by using or running THIS IMPLEMENTATION.
"PATENT CHALLENGE" shall mean a challenge to the validity,
patentability, enforceability and/or non-infringement of any of the
PATENT CLAIMS or otherwise opposing any of the PATENT CLAIMS.
Tokutek hereby grants to you, for the term and geographical scope of
the PATENT CLAIMS, a non-exclusive, no-charge, royalty-free,
irrevocable (except as stated in this section) patent license to
make, have made, use, offer to sell, sell, import, transfer, and
otherwise run, modify, and propagate the contents of THIS
IMPLEMENTATION, where such license applies only to the PATENT
CLAIMS. This grant does not include claims that would be infringed
only as a consequence of further modifications of THIS
IMPLEMENTATION. If you or your agent or licensee institute or order
or agree to the institution of patent litigation against any entity
(including a cross-claim or counterclaim in a lawsuit) alleging that
THIS IMPLEMENTATION constitutes direct or contributory patent
infringement, or inducement of patent infringement, then any rights
such litigation is filed. If you or your agent or exclusive
licensee institute or order or agree to the institution of a PATENT
CHALLENGE, then Tokutek may terminate any rights granted to you
*/
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#include <stdlib.h>
#include <toku_portability.h>
#include <toku_assert.h>
#include <util/partitioned_counter.h>
#include <string.h>
#define CKERR(r) ({ int __r = r; if (__r!=0) fprintf(stderr, "%s:%d error %d %s\n", __FILE__, __LINE__, __r, strerror(r)); assert(__r==0); })
#define CKERR2(r,r2) do { if (r!=r2) fprintf(stderr, "%s:%d error %d %s, expected %d\n", __FILE__, __LINE__, r, strerror(r), r2); assert(r==r2); } while (0)
#define CKERR2s(r,r2,r3) do { if (r!=r2 && r!=r3) fprintf(stderr, "%s:%d error %d %s, expected %d or %d\n", __FILE__, __LINE__, r, strerror(r), r2,r3); assert(r==r2||r==r3); } while (0)
#define DEBUG_LINE do { \
fprintf(stderr, "%s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
fflush(stderr); \
} while (0)
static int verbose;
static inline void
default_parse_args (int argc, const char *argv[]) {
const char *progname=argv[0];
argc--; argv++;
while (argc>0) {
if (strcmp(argv[0],"-v")==0) {
++verbose;
} else if (strcmp(argv[0],"-q")==0) {
verbose=0;
} else {
fprintf(stderr, "Usage:\n %s [-v] [-q]\n", progname);
exit(1);
}
argc--; argv++;
}
}
int test_main(int argc, const char *argv[]);
int
main(int argc, const char *argv[]) {
int ri = toku_portability_init();
assert(ri==0);
partitioned_counters_init();
int r = test_main(argc, argv);
partitioned_counters_destroy();
toku_portability_destroy();
return r;
}
```
|
Driving licence in Iran () is a document issued by the relevant government agency, regional or local security force, confirming the rights of the holder to drive motor vehicles.
There are five types of driver's license in Iran: Motorcycles Permit, Third Grade Driver's license, Second Grade Driver's license, First Grade Driver's license and Specific Driver's license. The minimum age for driving in Iran is 18 years old.
Requirements for Iranian citizens
In order to get a licence, applicant must fulfill these requirements:
Postal Code
Original and photocopy of national identity card and birth certificate
Finger print
Blood group document
Biometric photo
Driver's licence card fees
Health Report (usually eye check)
Criminal record certificate (for first grade)
Age Requirements for licenses
Motorcycles Permit - Must be at least 18 years old.
Third Grade - Must be at least 18 years old.
Second Grade - Must be at least 23 years old.
First Grade - Must be at least 25 years old.
Specific - Must be at least 23 years old.
Requirements for foreigners
The required for international driving license application:
Valid driving license of I.R.Iran with at least 40 days validity
Photo copies 3x4 cm full-faced pictures with white background (In case If the picture on the driving license is with glasses these pictures should also be with glasses)
Previous international driving license (if valid)
A printed copy of the first page of passport (if holding one)
Filled-in application form (Persian and English; the English birth date should be stated in A.D.)
4200000 Rial cash payment per license
Restrictions
Motorcycles Permit - Motorcycles/Motorized Tricycles
Third Grade –Motor vehicles with a seating capacity for not more than 9 passengers and vehicle up to 3500 kg Gross Vehicle Weight (private)
Second Grade - Motor vehicles with a seating capacity up to 26 passengers and vehicle up to 6000 kg Gross Vehicle Weight (transportation)
First Grade - Buses and trucks with a capacity over 6000 kg Gross Vehicle Weight
Specific - for Crane and similar
See also
Vehicle registration plates of Iran
Iranian national identity card
Iranian passport
Identity documents in Iran
References
External links
Iran Police + 10 Website
Touring & Automobile Club Of Iran Website
Iran
Road transport in Iran
Identity documents of Iran
|
Balfour may refer to:
People
Earls of Balfour
Arthur James Balfour, 1st Earl of Balfour (1848–1930), British Conservative politician, Prime Minister of the UK (1902-1905), made the public statement of Balfour Declaration
Gerald Balfour, 2nd Earl of Balfour (1853–1945), British Conservative politician
Robert Balfour, 3rd Earl of Balfour (1902–1968)
Gerald Arthur James Balfour, 4th Earl of Balfour (1925–2003)
Roderick Balfour, 5th Earl of Balfour (born 1948)
Other people
Balfour (surname), a Scottish family name
Lord Balfour of Burleigh
Baron Balfour of Glenawley
Sir Graham Balfour (1858–1929), Victorian statistician and member of Florence Nightingale's inner circle
Sir Isaac Bayley Balfour (1853–1922), a Scottish botanist and son of John Hutton Balfour
John Hutton Balfour (1808–1884), a Scottish botanist and father of Sir Isaac Bayley Balfour
Places
Canada
Balfour, British Columbia (aka Balfour Bay)
Rayside-Balfour, Ontario
Balfour Building
New Zealand
Balfour, New Zealand
Balfour River
Scotland
Balfour, Aberdeenshire
Balfour, Orkney
Balfour Castle, Orkney
South Africa
Balfour, Eastern Cape
Balfour, Mpumalanga
Turks and Caicos Islands
Balfour Town, Salt Cay, Turks Islands
United States
Balfour, North Dakota
Balfour, North Carolina
Other uses
Beit Aghion, residence of the Israeli prime minister
Gymnasia Balfour
Balfour v. Balfour, English contract law case
Balfour Beatty
L.G. Balfour Company
See also
Balfour Declaration (disambiguation)
|
```objective-c
#pragma once
#include "tensor_attribute.h"
#include <vespa/searchlib/attribute/attributesaver.h>
#include <vespa/searchlib/attribute/save_utils.h>
namespace search { class BufferWriter; }
namespace search::tensor {
class TensorStore;
class NearestNeighborIndexSaver;
/**
* Class for saving a tensor attribute.
* Will also save the nearest neighbor index if existing.
*/
class TensorAttributeSaver : public AttributeSaver {
using GenerationHandler = vespalib::GenerationHandler;
using IndexSaverUP = std::unique_ptr<NearestNeighborIndexSaver>;
attribute::EntryRefVector _refs;
const TensorStore& _tensor_store;
IndexSaverUP _index_saver;
bool onSave(IAttributeSaveTarget &saveTarget) override;
void save_dense_tensor_store(BufferWriter& writer, const DenseTensorStore& dense_tensor_store) const;
void save_tensor_store(BufferWriter& writer) const;
public:
TensorAttributeSaver(GenerationHandler::Guard &&guard,
const attribute::AttributeHeader &header,
attribute::EntryRefVector&& refs,
const TensorStore &tensor_store,
IndexSaverUP index_saver);
~TensorAttributeSaver() override;
static std::string index_file_suffix();
};
}
```
|
```javascript
Using the double tilde `~~`
Counting the months from zero
Hoisting applies only to variable declarations, not initializations
NaN === NaN?
Detect an error type
```
|
```stylus
.show-detail-container
display flex
position fixed
width 100%
padding-top 67px
background $BgColor1
flex-direction column
.show-header
width 100vw
min-height 215px
.sh-backdrop
.shb-img
position absolute
min-height 100%
margin-top -35px
width 100vw
background-repeat no-repeat
background-size cover
background-position center
-webkit-filter blur(60px) brightness(0.7)
background-color $ShowBgColor1
opacity 0
&.fadein
transition opacity .3s ease-in
opacity 1
.sh-poster
float left
width 198px
height 100%
z-index 20
position relative
pointer-events none
transition transform 0.05s ease-out
.shp-img
position relative
margin-left 32px
margin-top 10px
width 134px
height 197px
box-shadow 0px 0px 10px
background-size 100% 100%
background-position center
background-repeat no-repeat
border-radius 4px
opacity 0
background-color $ShowBgColor1
pointer-events auto
cursor pointer
&.fadein
transition opacity .3s ease-in
opacity 1
.sh-poster.active
transition transform 0.12s ease-out
.shp-img
border-radius 2px
.sh-metadata
float left
position relative
height 194px
width calc(100% - 198px)
padding-top 10px
padding-right 45px
.shm-title
color #fff
font-family $Font
-webkit-font-smoothing antialiased
font-size 28px
margin-bottom 8px
margin-top 5px
.shm-infos
div
float left
font-size 11px
font-family $MainFontBold
color #fff
-webkit-font-smoothing antialiased
&:not(.shmi-tmdb-link)
&:hover ~ div.shmi-tmdb-link
opacity 0.4
transition-delay .8s
div.shmi-year
cursor pointer
div.shmi-tmdb-link
padding-left 12px
padding-right 6px
cursor pointer
opacity 0
transition opacity .3s ease-in
transition-delay .2s
&:hover
opacity 1
transition-delay 0s
&.disabled
&:hover
cursor default
opacity 0.4
div.shmi-imdb
cursor pointer
background url(../images/icons/imdb.png) no-repeat
width 27px
height 16px
position relative
top -2px
div.shmi-rating
cursor pointer
.hidden
display none
.number-container-tv
position relative
font-size 12px
font-family $MainFontBold
color #FFF
em
font-size 0.8em
.star-container-tv
position relative
opacity 1
.rating-star
color #ffc900
font-size 11px
padding-right 3px
.rating-star-half
color #ffc900
font-size 11px
margin-left -4px
padding-right 3px
.rating-star-half-empty
color #a3a5a7
font-size 11px
margin-left -4px
.rating-star-empty
color #a3a5a7
font-size 11px
padding-right 3px
.rating-star-half-container
width 1em
height 1em
line-height 1em
margin-top -3px
margin-left 4px
span.dot
margin 4.5px 15px 0 15px
float left
width 3px
height 3px
border-radius 2px
background-clip padding-box
background-color #dbdbdd
cursor default
.shm-synopsis
color #fff
float left
width 100%
text-align justify
font-family $MainFont
-webkit-font-smoothing antialiased
font-size 12px
line-height 22px
max-height 107px
padding-right 8px
margin-top 8px
overflow hidden
scrollable()
.sh-metadata.active
filter blur(4px)
pointer-events none
.sh-actions
float left
position relative
width calc(100% - 198px)
height 35px
margin-top -15px
padding-right 45px
display flex
flex-direction row
justify-content space-between
white-space nowrap
.dropdowns-container
margin -10px -30px 0 0
#audio-dropdown .lang-dropdown
background none
.sha-bookmark
float left
cursor pointer
padding-left 24px
color #FFF
position relative
font-family $MainFont
font-smoothing antialiased
font-size 12px
line-height 37px
margin-top -2px
&:before
content "\f004"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 18px
color #FFF
top 0
left 0
bottom 0
right 0
opacity 1
transition opacity 0.5s
&:after
content "\f004"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 18px
color $ButtonBgActive
top 0
left 0
bottom 0
right 0
opacity 0
transition opacity 0.5s
&:hover
&:before
opacity 0
&:after
opacity 1
&.selected
height 18px
width 200px
&:before
content "\f004"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 18px
color $FavoriteColor
top 0
left 0
bottom 0
right 0
opacity 1
transition opacity 0.5s
&:after
content "\f004"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 18px
color #FFF
top 0
left 0
bottom 0
right 0
opacity 0
transition opacity 0.5s
&:hover
&:before
opacity 0
&:after
opacity 1
.sha-watched
float left
cursor pointer
padding-left 28px
margin-left 20px
color #FFF
position relative
font-family $MainFont
font-smoothing antialiased
font-size 12px
line-height 37px
margin-top -2px
display none
&:before
content "\f070"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 18px
color #FFF
left 0
opacity 1
transform scaleY(0.9)
transition opacity 0.5s
&:after
content "\f00c"
font-family "Font Awesome 6 Free"
font-weight 900
position absolute
font-size 20px
color #299000
left 0
opacity 0
transition opacity 0.5s
&:hover, &.selected
&:before
opacity 0
&:after
opacity 1
.sh-actions.active
filter blur(4px)
pointer-events none
.show-details
width 100vw
z-index 1
background rgba($ShowBgColor1, 0.7)
height calc(100vh - 282px)
display grid
padding-left 20px
gap 10px
grid-template-columns fit-content(165px) 2fr minmax(480px, 1fr)
grid-template-rows 2fr auto
grid-template-areas "seasons episodes overview" "torrents torrents overview"
&.transpOff
background $ShowBgColor1
&.transpVLow
background rgba($ShowBgColor1, 0.9)
&.transpLow
background rgba($ShowBgColor1, 0.8)
&.transpHigh
background rgba($ShowBgColor1, 0.6)
&.transpVHigh
background rgba($ShowBgColor1, 0.5)
.sd-seasons ul, .sd-episodes ul
position absolute
top 45px
bottom 0
cursor pointer
direction rtl
white-space nowrap
scrollable()
li
padding 0px 15px
margin 1px 0px 1px 1px
float left
width calc(100% - 7px)
.watched
padding 9px 0
color $ShowWatchedIcon_false
transition color .5s
&:hover
color $ShowWatchedIcon_hover
&.true
color $ShowWatchedIcon_true
li:nth-child(odd)
background-color rgba($ShowOddHighlight, $ShowOddHighlightOp)
&:not(.active).transpOff
background-color $ShowBgColor2
&:hover
background-color $EpisodeSelectorHover
li:hover
background rgba($EpisodeSelectorHoverTran,20%)
li:not(.active).transpOff:hover
background $EpisodeSelectorHover
li.active
background-color $EpisodeSelectorBg
position relative
&:after
content ""
position absolute
top 0px
right -12px
width 0
height 0
border-color rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) $EpisodeSelectorBg
border-style solid
border-width 16px 6px 17px 6px
a
text-decoration none
font-size 15px
line-height 34px
font-weight normal
float left
flex-direction row
direction ltr
span
float left
margin 0px 15px 0px 5px
div
white-space nowrap
border-left 1px solid $ShowBgColor1
padding-left 30px
text-align left
overflow hidden
text-overflow ellipsis
.sd-seasons, .sd-episodes
position relative
height 100%
.sds-title, .sde-title
font-size 24px
overflow hidden
text-overflow ellipsis
white-space nowrap
margin-bottom 15px
margin-top 2px
color $ShowText1
.sd-seasons
min-width 165px
padding 10px
.sds-list ul a
color $SaisonListText
white-space nowrap
.sds-list ul li.active a
color $EpisodeSelectorText
.sd-episodes
grid-area episodes
padding 10px
.sde-list ul
width calc(100% - 10px)
.sde-list ul li a
color $EpisodeListText
font-family $MainFont
min-width 70px
max-width calc(60vw - 290px)
.sde-list ul li.active a
color $EpisodeSelectorText
.sd-overview
background rgba($ShowBgColor1, 0.3)
grid-area overview
padding 10px 30px 10px 18px
display grid
grid-template-rows auto 2fr
&.transpOff
background $ShowBgColor2
.sdo-infos
height fit-content
overflow-x hidden
.sdoi-title
overflow hidden
white-space nowrap
text-overflow ellipsis
font-size 24px
margin-top 2px
padding-bottom 6px
color $ShowText1
.sdoi-links
position absolute
right 42px
margin-top -6px
&>div
padding 5px 3px
border-radius 50%
cursor pointer
position relative
.health-icon
font-size 14px
color #737577
transition all .3s ease-in
&.Bad
color #d53f3f
&.Medium
color #ece523
&.Good
color #a3e147
&.Excellent
color #2ad942
.magnet-icon
font-size 13px
color #DDD
margin-right 2px
&:hover
color #FFF
transition all .5s
.source-icon
display inline-block
font-size 13px
color #DDD
margin-right 0px
top 3px
&:hover
color #FFF
transition all .5s
img
height 16px
.sdoi-aired
font-size 12px
line-height 15px
margin-bottom 10px
color $ShowText2
.sdoi-date
overflow hidden
white-space nowrap
text-overflow ellipsis
.sdoi-synopsis
color $ShowText1
font-size 13px
line-height 18px
text-align justify
margin-top 10px
padding 2px 15px 5px 0
height fit-content
scrollable()
#torrent-list
height auto
margin 10px -10px 10px -5px
.sdo-watch
height 60px
padding 5px 0px 15px 0px
margin-bottom -5px
&.disabled
margin-bottom 50px
.play-selector
position relative
float right
margin-top 6px
&.disabled
position absolute
right 5px
margin-top -5px
cursor pointer
opacity 1
filter none
.show-all-torrents
float left
font-family $MainFont
-webkit-font-smoothing antialiased
font-size 11px
color $ShowText1
transition all .2s ease-in, margin 0s
padding 0 6px
margin 13px 6px 0 0
border-radius 10px
height 19px
line-height 19px
cursor pointer
&:hover, &.active
color $QualitySelectorText
background $QualitySelectorBg
&.fa-spinner
font-family "Font Awesome 6 Free"
transition none
margin-left 6px
color $ShowText1
&:hover, &.active
background none
.sdow-quality
margin-top 13px
float left
div
cursor pointer
float left
font-family $MainFont
-webkit-font-smoothing antialiased
font-size 11px
color $ShowText1
transition all .2s ease-in
padding 4px
margin-right 6px
.disabled
opacity .3
cursor default
.active
cursor pointer
opacity 1
color $QualitySelectorText
background $QualitySelectorBg
border-radius 10px
font-family $MainFontBold
.sdow-watchnow
margin-top 6px
float right
&.disabled
visibility hidden
#player-chooser
.button
margin-right 0px
.sd-torrents
grid-area torrents
max-height 300px
.action
color rgba(0,0,0,0) !important
width 0px !important
padding 0px !important
pointer-events none
.item-download
font-family $Font, $AlternateFont
> .spinner
position fixed
width 100%
height 100%
background rgba(0, 0, 0, 0.5) center center no-repeat
pointer-events all
z-index 1
.loading-container
margin 180px auto 0px
opacity .8
.show-details.active
filter brightness(50%) blur(4px)
pointer-events none
```
|
```java
package org.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.web3j.abi.datatypes.Int;
/**
* Auto generated code.
* <p><strong>Do not modifiy!</strong>
* <p>Please use org.web3j.codegen.AbiTypesGenerator in the
* <a href="path_to_url">codegen module</a> to update.
*/
public class Int176 extends Int {
public static final Int176 DEFAULT = new Int176(BigInteger.ZERO);
public Int176(BigInteger value) {
super(176, value);
}
public Int176(long value) {
this(BigInteger.valueOf(value));
}
}
```
|
Artillery refers to any engine used for the discharge of large projectiles during war.
Artillery may also refer to:
Military
Naval artillery, referring to any engine used for the discharge of large projectiles from ships
Artillery Command (Italy)
Artillery Corps (Egypt)
Artillery Corps (Israel)
Artillery Corps (Ireland)
Royal Artillery
Arts and entertainment
Artillery game, a subgenre of computer and video games
Music
Artillery (band), a Danish thrash metal band
"Artillery", a song by Infected Mushroom
Fine arts
Artillery (magazine), an American contemporary art magazine
Artillery (Roger de la Fresnaye), a 1911 painting
Sports
Artilleryman (horse), Australian thoroughbred racehorse
See also
List of artillery
List of artillery by name
|
Geoffrey Michael Petrie (born April 17, 1948) is an American former professional basketball player. A native of Pennsylvania, he played professional basketball in the National Basketball Association (NBA) for the Portland Trail Blazers where he won NBA Rookie of the Year in 1971. After retirement as a player he entered management, and was the President of Basketball Operations for the Sacramento Kings in the NBA until June 2013.
Early life
Geoff Petrie was born in Darby, Pennsylvania, on April 17, 1948. He attended Springfield High School, in Springfield, Pennsylvania, and played collegiate ball at Princeton University.
In Petrie's sophomore season at Princeton, the team was co-champion of the Ivy League with a 20–6 (12-3 Ivy) record. Despite the fact that Princeton had three of the five first-team All-Ivy team members, including Petrie plus second-team member John Hummer, they lost the one-game league playoff to the Jim McMillian–led 1968 Columbia Lions men's basketball team. That year, the team rose as high as eighth in the AP Poll. The following season, Petrie led the Ivy League in scoring (23.9 points/game in conference games), and the team accumulated a 19–7 (14–0) record, including an appearance in the 1969 NCAA Men's Division I Basketball Tournament. They lost to St. John's in the tournament, but Petrie was again on the first-team All-Ivy squad. As a senior, Petrie was second-team All-Ivy, but the Tigers placed third in the conference to the undefeated (in Ivy League games) Corky Calhoun-led Penn Quakers men's basketball team and McMillian's Lions. Although Princeton did not appear in the 1970 NCAA Men's Division I Basketball Tournament, they hosted Penn's game. All three of his varsity years were spent under head coach Pete Carril. Petrie was co-captain of the 1969–70 team with classmate Hummer. Petrie was All-East both as a junior and a senior.
Petrie scored 1,321 points in college, third in school history at the end of his career in 1970 and still seventh after the 2009–10 season. His 541 in 1968–69 was fourth, behind each of Bill Bradley's single-season totals, until Brian Taylor moved him down to sixth, where he still stands. Petrie continued to rank fourth in school history with an 18.3 points/game average through the 2009–10 season. His 1969–70 single season average of 22.3 is sixth, behind only Bradley and Taylor and his 20.8 average the prior year stands eighth. Petrie's 530 career field goal stands fourth on the school list behind Bradley Kit Mueller and Craig Robinson. 216 field goals in 1968–69 ranks fifth behind Bradley and Taylor, while his 189 the following year ranks eighth. Seventeen made against Fordham, January 26, 1970, trails only Bradley's three best nights.
Professional career
Player
At 6'4", Petrie could play either the guard or forward positions and was a long range shooter. He played in two All-Star games and in 1971, the Trail Blazers' first year in existence, was named co-Rookie of the Year with the Boston Celtics' Dave Cowens after averaging 24.8 points per game. The Associated Press reported Petrie's salary during his rookie season was approximately $80,000.
Until Damon Stoudamire's 54 point performance in 2005, Petrie held the Trail Blazers' individual scoring record for one game at 51 — a feat he accomplished twice. His jersey number, 45, was retired by the Trail Blazers. Following the 1975–76 NBA season, he was traded to the Atlanta Hawks in a transaction that landed Portland Maurice Lucas. Petrie did not play any games for the Hawks after suffering a career-ending knee injury.
Petrie is credited as the first NBA player to switch from Converse brand athletic shoe, which were popular in the 1970s, to Nike brand.
Post-playing career
Petrie worked in the private sector for several years after leaving the NBA, and in 1985 began working for the Trail Blazers. He worked as a commentator for Blazer radio broadcasts and several other positions before being hired as senior vice president for operations. He left Portland in 1994 and was hired by the Sacramento Kings as president of basketball operations. As an executive he won the NBA Executive of the Year Award twice with the Kings, first in 1999 and again in 2001.
On December 29, 2009, Petrie received a three-year extension as team president through the 2012–13 season. On June 17, 2013, Petrie was replaced as team president of the Kings by Pete D'Alessandro.
NBA career statistics
Regular season
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 82 || – || 37.0 || .443 || – || .722 || 3.4 || 4.8 || – || – || 24.8
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 60 || – || 35.9 || .417 || – || .789 || 2.2 || 4.1 || – || – || 18.9
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 79 || – || 39.7 || .464 || – || .778 || 3.5 || 4.4 || – || – || 24.9
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 73 || – || 38.4 || .481 || – || .853 || 2.8 || 4.3 || 1.2 || 0.2 || 24.3
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 80 || – || 38.9 || .456 || – || .839 || 2.6 || 5.3 || 1.0 || 0.2 || 18.3
|-
| style="text-align:left;"|
| style="text-align:left;"|Portland
| 72 || – || 35.5 || .461 || – || .829 || 2.3 || 4.6 || 1.1 || 0.1 || 18.9
|- class="sortbottom"
| style="text-align:center;" colspan="2"|Career
| 446 || – || 37.6 || .455 || – || .805 || 2.8 || 4.6 || 1.1 || 0.1 || 21.8
|- class="sortbottom"
| style="text-align:center;" colspan="2"|All-Star
| 2 || 1 || 15.5 || .214 || – || 1.000 || 1.0 || 2.5 || 0.5 || 0.0 || 4.0
References
External links
1948 births
Living people
American men's basketball players
National Basketball Association All-Stars
National Basketball Association general managers
National Basketball Association players with retired numbers
People from Darby, Pennsylvania
People from Springfield Township, Delaware County, Pennsylvania
Point guards
Portland Trail Blazers draft picks
Portland Trail Blazers executives
Portland Trail Blazers players
Princeton Tigers men's basketball players
Sacramento Kings executives
Shooting guards
Basketball players from Delaware County, Pennsylvania
|
```php
<?php
/**
* FecShop file.
*
* @link path_to_url
* @license path_to_url
*/
namespace fecshop\app\appadmin\modules\Config\block\appfrontcatalog;
use fec\helpers\CUrl;
use fec\helpers\CRequest;
use fecshop\app\appadmin\interfaces\base\AppadminbaseBlockEditInterface;
use fecshop\app\appadmin\modules\AppadminbaseBlockEdit;
use Yii;
/**
* block cms\staticblock.
* @author Terry Zhao <2358269014@qq.com>
* @since 1.0
*/
class Manager extends AppadminbaseBlockEdit implements AppadminbaseBlockEditInterface
{
public $_saveUrl;
//
public $_key = 'appfront_catalog';
public $_type;
protected $_attrArr = [
'category_breadcrumbs',
'product_breadcrumbs',
'category_filter_attr',
'category_filter_category',
'category_filter_price',
'category_query_numPerPage',
'category_query_priceRange',
'category_productSpuShowOnlyOneSku',
'product_small_img_width',
'product_small_img_height',
'product_middle_img_width',
'productImgMagnifier',
'review_add_captcha',
'review_productPageReviewCount',
'review_reviewPageReviewCount',
'review_addReviewOnlyLogin',
//'review_ifShowCurrentUserNoAuditReview',
'review_filterByLang',
'review_OnlyOrderedProduct',
'review_MonthLimit',
'favorite_addSuccessRedirectFavoriteList',
];
public function init()
{
//
$this->_saveUrl = CUrl::getUrl('config/appfrontcatalog/managersave');
$this->_editFormData = 'editFormData';
$this->setService();
$this->_param = CRequest::param();
$this->_one = $this->_service->getByKey([
'key' => $this->_key,
]);
if ($this->_one['value']) {
$this->_one['value'] = unserialize($this->_one['value']);
}
}
// form
public function getLastData()
{
$id = '';
if (isset($this->_one['id'])) {
$id = $this->_one['id'];
}
return [
'id' => $id,
'editBar' => $this->getEditBar(),
'textareas' => $this->_textareas,
'lang_attr' => $this->_lang_attr,
'saveUrl' => $this->_saveUrl,
];
}
public function setService()
{
$this->_service = Yii::$service->storeBaseConfig;
}
public function getEditArr()
{
$deleteStatus = Yii::$service->customer->getStatusDeleted();
$activeStatus = Yii::$service->customer->getStatusActive();
return [
//
[
'label' => Yii::$service->page->translate->__('Category Show Breadcrumbs'),
'name' => 'category_breadcrumbs',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
[
'label' => Yii::$service->page->translate->__('Category Filter Attr'),
'name' => 'category_filter_attr',
'display' => [
'type' => 'inputString',
],
'remark' => '1.ServiceMongodb(services) 2.selecteditSelect',
],
[
'label' => Yii::$service->page->translate->__('Category Filter Category'),
'name' => 'category_filter_category',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
[
'label' => Yii::$service->page->translate->__('Category Filter Price'),
'name' => 'category_filter_price',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
[
'label' => Yii::$service->page->translate->__('Category NumPerPage'),
'name' => 'category_query_numPerPage',
'display' => [
'type' => 'inputString',
],
'remark' => '',
],
[
'label' => Yii::$service->page->translate->__('Category Filter PriceRange'),
'name' => 'category_query_priceRange',
'display' => [
'type' => 'inputString',
],
'remark' => '',
],
[
'label' => Yii::$service->page->translate->__('Category SpuShowOnlyOneSku'),
'name' => 'category_productSpuShowOnlyOneSku',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => 'spusku,YesskuscoreSku,No'
],
[
'label' => Yii::$service->page->translate->__('Product Breadcrumbs'),
'name' => 'product_breadcrumbs',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
[
'label' => Yii::$service->page->translate->__('Product Small Img Width'),
'name' => 'product_small_img_width',
'display' => [
'type' => 'inputString',
],
'remark' => 'px',
],
[
'label' => Yii::$service->page->translate->__('Product Small Img Height'),
'name' => 'product_small_img_height',
'display' => [
'type' => 'inputString',
],
'remark' => 'px',
],
[
'label' => Yii::$service->page->translate->__('Product Middle Img Width'),
'name' => 'product_middle_img_width',
'display' => [
'type' => 'inputString',
],
'remark' => 'px',
],
[
'label' => Yii::$service->page->translate->__('productImgMagnifier'),
'name' => 'productImgMagnifier',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' =>'',
],
[
'label' => Yii::$service->page->translate->__('Review Show Captcha'),
'name' => 'review_add_captcha',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => 'Review',
],
[
'label' => Yii::$service->page->translate->__('Review Rroduct Page ReviewCount'),
'name' => 'review_productPageReviewCount',
'display' => [
'type' => 'inputString',
],
'remark' => 'review',
],
[
'label' => Yii::$service->page->translate->__('Review Page ReviewCount'),
'name' => 'review_reviewPageReviewCount',
'display' => [
'type' => 'inputString',
],
'remark' => 'reviewreview',
],
[
'label' => Yii::$service->page->translate->__('Review AddReviewOnlyLogin'),
'name' => 'review_addReviewOnlyLogin',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
/*
[
'label' => Yii::$service->page->translate->__('Review ShowCurrentUserNoAudit'),
'name' => 'review_ifShowCurrentUserNoAuditReview',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => 'ip'
],
*/
[
'label' => Yii::$service->page->translate->__('Review FilterByLang'),
'name' => 'review_filterByLang',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => 'No'
],
[
'label' => Yii::$service->page->translate->__('Review MonthLimit'),
'name' => 'review_MonthLimit',
'display' => [
'type' => 'inputString',
],
'remark' => ', reviewOnlyOrderedProduct true',
],
[
'label' => Yii::$service->page->translate->__('Review OnlyOrderedProduct'),
'name' => 'review_OnlyOrderedProduct',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ' YesNo'
],
[
'label' => Yii::$service->page->translate->__('Favorite SuccessRedirectFavoriteList'),
'name' => 'favorite_addSuccessRedirectFavoriteList',
'display' => [
'type' => 'select',
'data' => [
Yii::$app->store->enable => 'Yes',
Yii::$app->store->disable => 'No',
],
],
'remark' => ''
],
];
}
public function getArrParam(){
$request_param = CRequest::param();
$this->_param = $request_param[$this->_editFormData];
$param = [];
$attrVals = [];
foreach($this->_param as $attr => $val) {
if (in_array($attr, $this->_attrArr)) {
$attrVals[$attr] = $val;
} else {
$param[$attr] = $val;
}
}
$param['value'] = $attrVals;
$param['key'] = $this->_key;
return $param;
}
/**
* save article data, get rewrite url and save to article url key.
*/
public function save()
{
/*
* if attribute is date or date time , db storage format is int ,by frontend pass param is int ,
* you must convert string datetime to time , use strtotime function.
*/
// bdmin_user_id user_id
$this->_service->saveConfig($this->getArrParam());
$errors = Yii::$service->helper->errors->get();
if (!$errors) {
echo json_encode([
'statusCode' => '200',
'message' => Yii::$service->page->translate->__('Save Success'),
]);
exit;
} else {
echo json_encode([
'statusCode' => '300',
'message' => $errors,
]);
exit;
}
}
public function getVal($name, $column){
if (is_object($this->_one) && property_exists($this->_one, $name) && $this->_one[$name]) {
return $this->_one[$name];
}
$content = $this->_one['value'];
if (is_array($content) && !empty($content) && isset($content[$name])) {
return $content[$name];
}
return '';
}
}
```
|
```java
/**
* Classes to store actions that correspond to QuPath's main menus.
* <p>
* Representing the menus in this way is intended to make it easier to find core functionality.
*/
package qupath.lib.gui.actions.menus;
```
|
Sally Artz is a British cartoonist and illustrator, whose work has been featured in many publications including Punch, Private Eye, Reader’s Digest, The Spectator, the Mail on Sunday, The Oldie and the Daily Mirror. She is a founder member of the Cartoonists' Club of Great Britain. In addition, she is the former vice-president of the British Cartoonists' Association.
Artz studied at the Saint Martin's School of Art and began work as a professional cartoonist in 1956.
In 2017 she was awarded The Pont Cup for drawing The British Character at the 21st Cartoon Art Trust Awards.
References
External links
Sally Artz at Official Pro Cartoonists site
English cartoonists
Alumni of Saint Martin's School of Art
Living people
Punch (magazine) cartoonists
1935 births
|
The National Asset Management Agency (NAMA; ) is a body created by the government of Ireland in late 2009 in response to the Irish financial crisis and the deflation of the Irish property bubble.
NAMA functions as a bad bank, acquiring property development loans from Irish banks in return for government purple debts bonds, ostensibly with a view to improving the availability of credit in the Irish economy. The original book value of these loans was €77 billion (comprising €68bn for the original loans and €9bn rolled up interest), and the original asset values to which the loans related was €88bn, with there being an average Loan To Value of 77% and the current market value is estimated at €47 billion.
NAMA is controversial, with politicians (who were in opposition at the time of its formation)
and some economists criticising the approach, including Nobel Prize-winning economist Joseph Stiglitz who has said that the Irish government is "squandering" public money with its plan to bail out the banks.
One year after NAMA's establishment, the Irish government was compelled for other but similar reasons to seek a European Union-International Monetary Fund bailout in November 2010, the outcome of which will have considerable effects on NAMA's future operations.
Despite this early criticism, as of year end 2018, NAMA had recovered €37.4bn from its owned assets and projected that it would eventually generate a net surplus of €4bn. And as of September 2021, NAMA had delivered a total surplus of €2.75bn to the Department of Finance, and projected that its final net surplus would be €4.65bn.
Background
As a result of the collapse of the Irish property market, Irish banks have property development loan assets secured on property with a market value significantly below the amount owed. Many loans are now non-performing due to debtors experiencing acute financial difficulties. Both factors have led to a sharp drop in the value of these loan assets.
If the banks were to recognise the true value of these loans on their balance sheets, they would no longer meet their statutory capital requirements. The banks, therefore, need to raise further capital; however, given the uncertainty around the true value of their assets, their stock is in too little demand for a general share issuance to be a viable option.
The banks are also suffering a liquidity crisis due, in part, to their lack of suitable collateral for European Central Bank repo loans. Along with their capital requirement problems, this is limiting the banks' ability to offer credit to their customers and, in turn, contributing to the lack of growth in the Irish economy.
NAMA's operations
The National Asset Management Agency Bill, in its current format, applies to the six financial institutions which were covered by the Irish government's deposit guarantee scheme. Those institutions were Bank of Ireland, Allied Irish Banks, Anglo Irish Bank, EBS, Permanent TSB and Irish Nationwide. Other institutions, such as Ulster Bank, which are not covered, had the option to join the scheme. Ulster Bank eventually decided not to do so; its parent company Royal Bank of Scotland having joined the analogous UK scheme earlier in 2009.
Then-Minister for Finance, Brian Lenihan said the banks would have to assume significant losses when the loans, largely made to property developers, are removed from their books. If such losses resulted in the banks needing more capital, then the government would insist on taking an equity stake in the lenders. Economist Peter Bacon, who was appointed by the government to advise on solutions to the banking crisis, said the new agency had potential to bring a better economic solution to the banking crisis and was preferable to nationalising the banks.
The assets were to be purchased by using government bonds, which led to a significant increase in Ireland's gross national debt.
The Bill provided for NAMA to be established on a statutory basis as a separate body corporate with its own Board appointed by the Minister for Finance and with management services provided by the National Treasury Management Agency.
The Bill envisaged that NAMA would arrange and supervise the identification and valuation of property-backed loans on the books of qualifying financial institutions in Ireland, but would delegate the purchase and management of these loans to a separately created Special Purpose Vehicle (SPV).
Master Special Purpose Vehicle
In a letter from the Central Statistics Office of Ireland (CSO) to Eurostat, dated 22 September 2009, details are provided on the suggested creation by NAMA of a Master Special Purpose Vehicle (SPV) known as National Asset Management Ltd and controlled by the holding company National Asset Management Agency Investment Ltd. The CSO sought guidance from Eurostat on how NAMA and the SPV would be classified in national accounts.
NAMA arranged and supervised the identification and valuation of property-backed loans on the books of qualifying financial institutions in Ireland, but the purchase and management of these loans were the responsibility of the SPV. The SPV has a majority of private equity. It funds the purchase of the loan books from financial institutions by issuing securities, most of which are backed by a guarantee from the Irish Government.
According to the details provided to Eurostat, the Master SPV is a separate legal entity and is jointly owned by private investors, who would own 51% of its equity and therefore have the majority vote, and by NAMA, which would hold the remaining 49%. The subscribed capital of the Master SPV would be €100m. Although the SPV has its own Board, NAMA retains a veto over all decisions of the Board that could affect the interests of NAMA or of the Irish government. The Master SPV is run with the objective of making a profit on the purchase and management of the assets it purchases.
The private investors in the Master SPV are entitled to the following economic return: the equity investors will receive an annual dividend linked to the performance of the Master SPV; On winding up of the Master SPV, the equity investors would only be repaid their capital if the Master SPV has the resources; they would receive a further equity bonus of 10% of the capital if the Master SPV makes a profit; All other profits and gains of the Master SPV would accrue to NAMA.
Former Finance Minister, the late Brian Lenihan believed that pension funds could be the most appropriate investors in the SPV. The annual dividend, should one be paid, is to be capped at the 10-year Irish Government bond yield at the time the dividend is declared. Lenihan said he was confident that the €51m could be found from suitable investors because of the similarity of the SPV investment to a government bond.
In its analysis, the Central Statistics Office (CSO) requested that NAMA be classified as a Government Entity and the Master SPV as a Financial Institution; the likely impact of this classification could be that the debt issued by the SPV, guaranteed by the Irish government, would not be classified as part of the national debt of Ireland by Eurostat.
In a letter dated 16 October 2009, Eurostat gave a preliminary view. The letter stated that NAMA is to be treated as part of the government sector, the type of assets to be purchased cannot be expanded without the approval of the European Commission, that it be a temporary scheme and that the size of potential losses be small relative to the total liabilities. Eurostat noted that the Minister for Finance will examine at the end of 2012 whether NAMA has met its objectives and decide if its continuation is justified. It suggested that a detailed analysis has to be carried out, especially of the guarantee arrangements. It made no judgement on the draft NAMA business plan but stated that the presence of market investors is reassuring to it (those providing 51% of the equity in the SPV). Their preliminary conclusion is that the Master SPV may be classified as a financial corporation. However, this is a preliminary view and is subject to revision.
NAMA's private investors
The three investors owning 51% of the SPV were revealed by the Minister of Finance in April 2010, and in NAMA's June 2010 business plan:
Irish Life Investment Managers, a part of Permanent TSB;
New Ireland Assurance, a part of Bank of Ireland;
Clients of Allied Irish Banks Investment Managers, a part of Allied Irish Banks
Each provided €17m for a total of €51m of NAMA's initial capital of €100m. NAMA then geared up way above typical EU banking limits, taking on debt 35 times its paid-up capital. The reason given for this is that the loans are temporary; they have bought other loans at a discount (see below); will be repaid on property sales; and are subject to continuous review. They are similar in function to bridging loans.
The purpose of NAMA's quasi-independent legal status is to remove its debts from general Irish government debt. This is the position of the government, the International Monetary Fund and Eurostat.
But, as the three private investors are bank-run pension fund managers, whose parent or major-shareholder companies had been all but nationalised by 2011, and as the 2010 Credit Institutions (Stabilisation) Act allows the government powers to apply to the courts to restructure any financial body in any way in secret at any time, and as a general guarantee to protect the parent banks remains in place (see the covered institutions below), the international rating agencies consider NAMA's debts to be a part of Irish government debt. Besides, NAMA's directors on the SPV board "will maintain a veto over all decisions of the Board that could affect the interests of NAMA or of the Irish government."
Sale of AIB and Irish Life Investment Managers' stakes
Following the acquisition of Allied Irish Banks by the Irish government the SPV stakeholding was sold to South African investor Prestige. In April 2012, the stakeholding in the SPV belonging to Irish Life Investment Managers was sold on the order of the minister for finance, Michael Noonan, to an undisclosed investor. These sales are necessitated by each nationalisation raising the government's stake from a minority 49 percent to a majority to 66 percent.
Timetable
The National Treasury Management Agency published details on NAMA in a press release dated 8 April 2009. The draft bill was published on 30 July 2009 for public consultation. Following the consultation process, the National Asset Management Agency (NAMA) Bill 2009 was published on 10 September 2009. The bill was debated in the Dáil and Seanad, and passed, on 15 October 2009 by 77 votes to 73. The committee stage of the bill started on 22 October 2009. Following the passing of the bill in both houses of the Oireachtas, President Mary McAleese decided to sign the bill into law on 22 November 2009, despite calls from the Labour Party to seek advice from the Council of State regarding its constitutionality.
Defining "long-term economic value"
The assets will be taken on at a discount, referred to as a haircut, estimated at 30% of book value, and in exchange the banks will be given bonds to sell to raise cash. The 30% discount to the €77bn book value outlined by NAMA includes circa €9bn of unpaid interest. The current value of the assets will not be based on their estimated market value, but on a higher notional "long-term economic value". This higher value is ultimately based on the share prices of Irish banks, which were low in March 2009 but have risen since.
Critics say that this is a circular argument; were the expected discount 50% or more, the banks' share prices would have collapsed. In early September 2009 Minister Lenihan pointed to this rise in share prices as positive news: "... markets have assessed that information in the context of their current share price and rating agencies have used it in their assessment of these institutions." Should an independent NAMA valuation be too low, Lenihan said: "I can give directions to NAMA to have a valuation reconsidered."
In addition, critics also pointed out that the use of the term, often capitalised, Long Term Economic Value which was popular in the press around the time of the establishment of NAMA, often as the acronym LTEV, gave the impression that it was a well-known or accepted term in economics. It was pointed out that, in fact, the acronym did not appear on any internet page before 2009, with the full term appearing only shortly before, with the concept of LTEV being invented primarily to give political cover for paying from taxpayers' funds, a price in excess of the market value of assets.
Problems relating to paying the notional long-term economic value (rather than market value) for the loans to be transferred to NAMA were highlighted by the difficulties of Liam Carroll's Zoe Developments. In July 2009, Zoe Developments, a large property development company, made an application to court seeking the appointment of an examiner. The appointment of an examiner would have allowed it protection from its creditors. Zoe Developments was estimated to have €1.2bn of loans with a likely deficit of €900m in a liquidation scenario. The €1.2bn of loans included debts of €489m to AIB and €113m to Bank of Ireland. In addition to Zoe Developments, Carroll's overall liabilities, including other businesses are estimated to total €2.8bn. On 10 September 2009, High Court judge Frank Clarke refused to appoint an examiner to Zoe Developments despite the support of AIB and Bank of Ireland for such an appointment. Receivers have been appointed after a Supreme Court appeal failed. A deficit of €900m versus loans of €1.2bn if realised would imply a market value of 25% of loan value for Zoe Developments.
On 9 September 2009, economist Philip Lane of Trinity College Dublin published a paper on Estimating Long Term Economic Value. Using economic theory and formulae, Lane describes the long-term economic value being a function of both nominal price levels and the real (inflation-adjusted) economic value of property. The real economic value of property is further defined as a function of numerous factors including, but not limited to: real disposable income per capita; the level of long-term interest rates; the size of the population, and; the demographic structure of the population. On implementation of long-term economic value, Lane highlights the concerns over price levels. In particular, given the debate on domestic competitiveness versus other countries, Ireland may experience real-exchange rate depreciation, which could have a drag effect of nominal property value. He said, "it is important that the NAMA process to recognise the inevitability of such uncertainty in the determining of long-term economic values". As a result, he favours a two-part payment system.
In his speech to the Dáil on 16 September 2009, the Minister of Finance Brian Lenihan indicated that alternatives to NAMA that did not use long-term economic value would lead to the need for fresh equity to be injected by the government into the financial sector of between €4 and 7 billion. Coincidentally, the upper end of this figures is equal to the difference between the €54 billion estimated "long-term economic value" and the €47 billion "current market value". Lenihan noted that the additional €4-7 billion would be an incremental investment in the banks rather than a higher payment for the loans.
Academic and political criticism
The agency has been the subject of major criticism in both politics and academia. At the time of its establishment, then-Fine Gael Enterprise, Trade and Employment spokesperson, Leo Varadkar, said of NAMA: "(Fianna Fáil and government minister) Willie O'Dea and Peter Bacon, the architect of NAMA, both accept that this is a massive gamble. Taxpayers are right to ask why Fianna Fáil is so keen to gamble with their money without asking the banks, bondholders and institutional investors to take their fair share of the pain. In dealing with the banking crisis, the objective must be to minimise the risk to taxpayers and to get credit flowing to businesses and homebuyers. NAMA achieves neither of these objectives. It won't get credit flowing and it exposes taxpayers to all of the risk." Fine Gael instead proposed a 'national recovery bank'.
Then-Labour Party Enterprise spokesperson and former Finance Minister Ruairi Quinn accused the Government of "proposing to establish the biggest property company in the world and asking taxpayers to foot the bill and bear all the risk." He stated that "this Bill will be one of the most important pieces of legislation ever to have come before Dáil Éireann. There will be enormous consequences for the taxpayer if the government get it wrong." Labour instead has proposed the temporary nationalisation of the banks.
A commentary signed by leading academics also questioned the NAMA strategy. They wrote in The Irish Times that they saw
The criticisms were disputed by the Government. Then-Tánaiste and Minister for Enterprise, Trade and Employment Mary Coughlan defended the creation of the agency saying it was not a bailout for the banks, one of the charges made against it.
On 7 October 2009, Professor Joseph Stiglitz, winner of the Nobel Prize in economics and former chief economist of the World Bank, speaking at Trinity College Dublin criticised NAMA. He said, "Countries which allow banks to go under by following the ordinary rules of capitalism have done fine. The US has let 100 banks go this year alone, as did Sweden and Norway in their crises." As well as commenting that in Ireland, "this bank bailout is a simple transfer from taxpayers to bondholders, and it will saddle generations to come. The only thing that might give you solace is that, as chief economist of the World Bank, we see this type of thing happening in banana republics all over the world. Whenever a banking crisis happens, the financial sector uses the turmoil as a mechanism to transfer wealth from the general population to themselves. I've been very disappointed to see that it has happened, not only in banana republics, but in advanced industrialised countries."
On 21 October 2009, ahead of the International Financial Services Summit (IFSS) in Dublin on 5 November 2009, two leading economists expressed caution on NAMA. Professor Nouriel Roubini, Professor at New York University Stern School of Business said that: It is essential that the bad assets are taken off the balance sheets of the financial institutions and that the Government separates the good assets from the bad assets to
clean up the financial system.... But if it does it in such a way that implies it is buying these assets at overpriced prices that does not reflect the underlying value, then it is giving a big subsidy to the bank shareholders and the unsecured creditors." Professor Willem Buiter, Professor of political economy at the London School of Economics and former member of the UK Monetary Policy Committee, said: the Irish Government should have, in principle, gone for a good bank, not a bad bank.... The bad bank is always a bad idea because it means that the Government underwrites all the creditors and creates moral hazard." Other participants at the IFSS include Martin Wolf, Chief Economics Commentator, Financial Times and Philip Lane, Professor of International Macroeconomics at Trinity College Dublin.
In February 2010 Brian Cowen defended his claim that the NAMA would increase the supply of credit into the economy despite the International Monetary Fund (IMF) saying it would not lead to any significant increase. "People should contemplate what level of credit accessibility we'd have in this economy without NAMA," he said. "It's not just sufficient in itself obviously for credit flow, it's certainly an important and necessary part of restructuring our banking system, of that there's no doubt, in terms of improving as a location for funding of banking operations," said Mr Cowen. He previously said that the Government's objective in restructuring the banks through NAMA was to "generate more access to credit for Irish business at this critical time". In September 2009, Lenihan expressed a similar view, saying it would lead to more lending for business and households. Cowen was responding to reports published on 8 February that the IMF had told Lenihan in April 2009 that the NAMA would not lead to a significant increase in lending by the banks.
The comments, which appear in internal Department of Finance documents released under the Freedom of Information Act, were made by senior IMF official Steven Seelig who joined the board of NAMA in May 2010. Minutes of a private meeting at the department between Brian Lenihan and IMF officials on 29 April 2009 last state that the "IMF (Mr Seelig) do not believe that Nama will result in significant increase in bank lending in Ireland". The Government has maintained that NAMA's purchase of bad loans from the banks with State bonds would increase the flow of credit in the economy since the plan was unveiled April 2009. Speaking at the publication of the NAMA legislation in September 2009, Mr Lenihan said it would "strengthen and improve" the funding positions of the banks "so that they can lend to viable businesses and households". The IMF estimated in their published report the domestic banks would face losses of up to €35 billion, though the department pointed out this would be partly funded from operating profits and provisions already taken against some loan losses.
Supplementary Data and Draft Business Plan
On 16 September 2009, NAMA published Supplementary Data Document that contained high level statistic on NAMA, data on property yields, and information on the six covered institutions. The supplemental data indicated the book-value of the loans expected to be transferred to NAMA by the six covered institutions (Bank of Ireland, Allied Irish Banks, Anglo Irish Bank, EBS, Permanent TSB, Irish Nationwide) was €68bn. The suggested transfer value was €54bn, with the estimated market value at €47bn.
In addition to the supplementary data document, the Department of Finance published incremental data on 13 October 2009 in a Draft NAMA Business Plan.
Within the Supplementary Data Document there is data on the financial ratios of the six covered banks. Adding up the Tier 1 capital of the six covered institutions, as reported in the Supplemental Data document leads to total Tier 1 capital of €29bn. This compares to combined risk-weighted-assets of €363bn, and a Tier 1 capital ratio of 7.9%. Basel II recommends a minimum ratio of 4% capital requirement.
According to the Supplementary Data Document, the long-term-economic value of the loans transferred to NAMA was 15% higher than the market value. NAMA applied statutory adjustment factors to estimate the valuation of €54bn. The document also noted that asset prices would need to increase from current market values by 10%, for the government and taxpayers to avoid any loss, taking into account subordinated debt. The difference between the 15% uplift to get to €54bn and the need for a 10% uplift for the taxpayer to avoid a loss, was explained in the Draft NAMA Business Plan. This analysis took into account the expected part payment in subordinate debt to the six covered institutions of €2.7bn (circa 5% of the €54bn transfer value). This subordinated debt holders may receive none of the proceeds in a scenario where the taxpayers are exposed to a loss.
Market response
On Thursday 17 September 2009, the day after the estimated cost of NAMA was announced, shares in AIB and Bank of Ireland rose in value. On the ISEQ Index, shares in AIB rose by 30% and shares in Bank of Ireland rose by 17%. Shares for both banks were also up on the U.S. stock markets.
Analysis of the data
Based on the information presented in the Supplementary Data Document, if the €68bn book value was transferred at €54bn to NAMA, the covered institutions could be a write-down of both their Tier 1 capital and Risk-weighted assets of €14bn in aggregate. Assuming a 1-for-1 write-down of €14bn in the risk weighted assets and the same of the Tier 1 capital, the new ratio would be 4.2% with risk weighted assets of €349bn and Tier 1 capital of €15bn.
Assuming the transfer value was at the market-value estimate of €47bn, not €54bn, then Tier 1 capital could fall by €21bn not €14bn. Risk weighted assets could be €342bn and Tier 1 capital €8bn, with a ratio of 2.2%.
However, this analysis looks at the aggregate data provided in the Supplemental Data Document. For a clearer picture, NAMA would need to give a breakdown of the loans to be transferred, by institution, as well as the book value and market value of each. Some additional information was provided on 13 October 2009 in the Draft NAMA Business Plan, indicates that the six covered institutions have taken €7bn of provisions in the last year against loan impairments and giving the split of the €77bn of prospective loans for transfer to NAMA. However, the data point of the current net book value of the loan portfolios and the prospective transfer price for the portfolios by each of the 6 covered institutions was omitted.
Transfer of derivatives portfolio to NAMA
In addition to the potential loan book transfer to NAMA, the Draft NAMA Business Plan outlined the existence of over 1,000 derivative positions attached to the commercial loans. These loans were transferred to NAMA as well. The nominal value of this derivative portfolio was €14.7 billion. Developers and other borrowers in real-estate transactions are often required by lenders to enter into derivative transactions as part of a loan agreement, as a mechanism to fix the interest rate on the loan. Typically, interest rate swap agreements are used. If interest rates fall, the borrower does not benefit, as he/she must pay the saving to the counter-party of the swap agreement. Given the decline in interest rates over the last 2 years (e.g. the US Federal Funds Rate was 0.25% in late September 2009 versus 5.25% in August 2007), there may be a significant liability relating to the €14.7bn derivative portfolio. The Draft NAMA Business Plan does not elaborate on the magnitude of this liability, however, it states: "These derivatives change the interest rate structure of the underlying loans and their mark-to-market value will be incorporated into the valuation of the loans".
Post transfer
The information provided in the Supplementary Data Document also included analysis of the total loan books of the covered institutions. In particular it identified, €27bn of watch loans (low quality), €31bn of vulnerable loans (past due) and €29bn of impaired loans. That was a total of €86bn of loans, at net book value. This was in excess of the loans expected to be transferred to NAMA. Following the potential transfer of loans with a book value of €68bn to NAMA, the six covered institutions would still have an aggregate of €18bn of loans that were watch loans, vulnerable, and/or impaired. This exceeded the €15bn of Tier 1 Capital within the six banks, after the NAMA transfer.
The Draft NAMA Business Plan indicated that the potential loans for transfer to NAMA of €77bn book value (including rolled-up interest) was divided into €24.1 billion from AIB, €28.4 billion from Anglo-Irish Bank, €15.5 billion from Bank of Ireland, €0.8 billion from EBS, and €8.3 billion from Irish Nationwide.
The document stated "that about 40% of the loans are estimated to be cash-generating". This indicated that €46 billion of the loans were not paying interest. Of the €31 billion that were cash-generating, there was no indication in the document if they were paying the full requirements under the terms of the loan agreements. The €31 billion was divided into €28 billion of commercial loans and €3 billion of land and development loans. This compared to a breakdown of the €77 billion of €28 billion of commercial loans, €21 billion of land and development loans, and €28 billion of associated loans.
Additional data on the size of the underlying loans was also provided in the Draft Business Plan. Of particular note was that the 10 largest underlying loans had a projected book value of €16 billion (i.e. 20% of the overall €77 billion), with an average loan size of €1.6 billion each. The top 100 underlying loans totalled €38 billion, equivalent to 49% of the overall.
In July 2010 after the a revised business plan was published it was revealed that it was then predicting a possible profit of €1bn, with the possibility of losses of up to €800m, after an initially projection of more than €4bn in profit. The plan published then updated and revised the interim business plan published in October of the previous year which was prepared on the basis of information supplied at that time by the five participating institutions (Anglo Irish Bank, AIB, Bank of Ireland, EBS and Irish Nationwide) and in advance of the detailed examination of any of the key loans by NAMA. Then-Finance Minister Brian Lenihan denied that the Government got its sums wrong on NAMA.
The original business plan estimated a profit of €4.8bn based on a rise in assets value of 10%. The revised figures said that if they recovered the full value of the loans plus 10% it would result in a profit of €3.9bn.
NAMA chairman Frank Daly said the plan confirmed that the five institutions covered by NAMA had not disclosed or had been unaware of the extent of the financial crisis afflicting their borrowers. He said the banks had shown 'remarkable generosity' towards their borrowers, adding that NAMA had no intention of maintaining that approach. 'To say the least we are extremely disappointed and disturbed to find that, only months after being led to believe that 40% of loans were income producing, the real figure is actually 25%.
Raising new equity capital
If there are further substantial write-downs within the Irish banking industry post-NAMA this could lead to further financial difficulties. Patrick Honohan, a professor of International Financial Economics and Development at Trinity College Dublin, and shortly afterwards to be appointed head of the Central Bank of Ireland, stated on 21 July 2009 that "Unless the loans are valued at unrealistically high prices, the NAMA process will leave the banks with insufficient capital. This is especially true considering the additional loan losses in non-property lending that are inevitable given the depth of the recession and which will have to be provided for." Professor Honohan was appointed Governor of the Central Bank of Ireland and Financial Services Authority by the Minister of Finance in late September 2009.
On 5 October 2009, the Irish Independent reported that European banks needed to raise substantial equity capital, including AIB and BOI. The article quoted a report by the bank JP Morgan which estimated that the AIB and BoI needed to raise a combined €11bn, €7bn for AIB and €4bn for BoI.
On 8 October 2009, Brian Lenihan, then-Minister of Finance, said that even after selling real-estate loans to the government's NAMA, that the country's biggest banks may need further money. Additional funding from the Irish government was highlighted, with Lenihan recognising that it would be difficult to raise funds on the stock market.
On 10 October 2009, the Irish Times reported that Bank of Ireland and AIB could need to raise a combined €9bn as a result of write-downs associated with the transfer of assets to NAMA. The article quotes a Merrion Capital report that estimates that AIB and BoI's equity Tier 1 Capital ratios would fall to 3.3% and 3.5% in 2010/11.
In the Draft NAMA Business Plan published on 13 October 2009, it stated that: "After the transfer of their L&D and associated loans to NAMA, it is likely that some institutions will require additional capital in order to absorb the consequent write-downs on the book value of their assets. The Government indicated that it expected institutions to seek private sector capital in the first place but to the extent that sufficient capital cannot be raised independently or generated internally, it remained committed to providing institutions with an appropriate level of capital to continue to meet their requirement."
Capital from a debt-for-equity swap
The August 2009 open letter by 46 academics reported in the Irish Times, suggests that the Government is in a strong position, if it chooses, to negotiate with bondholders to engage in some debt for equity swaps. The information provided in the Supplementary Data Document shows an aggregate of €20bn of sub-ordinate debt at the six covered institutions. Assuming all or part of this sub-ordinate debt is converted into equity could play a role in improving the Tier 1 ratio of the industry.
The concept of subordinated debt holders receiving no return on their loans, is raised in the Draft NAMA Business Plan, where the subordinated debt issued to the covered institutions, could receive nothing in a scenario where the Irish taxpayer incurs a loss on its investment in NAMA. 5% of the €54 billion purchase price is forecast to be paid in sub-ordinated loans.
The Draft Business Plan
The Draft Business plan assumed a life of 11 years for NAMA from 2010 to 2020 with full repayment of the €54 billion loans issued by NAMA/Irish Government by the end of 2020. Cumulative interest on the loans is forecast at €16 billion, using the forward Swap rate for the euro. Given a percentage of the loans are cash-generative this €16 billion may be partially offset by an estimated €12 billion of interest received. The Draft business plan expects a default rate of 20% on the €77 billion of principal, and repayment of €62 billion. The €15 billion of defaulted loans is forecast to be sold for €4 billion (i.e. circa 27% of loan value). Fees and running costs of NAMA are estimated at €240m per annum, i.e. circa €3 billion over 11 years. Taking all of these cash-flows together leads to a cumulative positive cash flow of €5 billion.
The Draft Business Plan looks at sensitivity analysis, indicating that if short and/or long-term interest rates rise, there would be an erosion of the €5 billion positive cash flow to NAMA. Similarly, if the default rate increases, this cash flow would be eroded. The document states that an increase of the default rate to 31% would erode in full the net present value of the positive cash flow.
The Draft Business Plan does not attempt to match the €62 billion of principal repayments and €4 billion of asset recovery (of the estimated €15 billion of defaulting loans) to the €54 billion "long-term-economic value" expected to be paid for the NAMA loan portfolio. Nor is there any analysis comparing the forecast €15 billion of defaults relative to the estimates 60% of loans, i.e. €46 billion, that are not cash-generative.
A part of the Draft Business Plan that is mentioned but not modeled in the document, is the ability of the NAMA to borrow an incremental €5 billion to pursue its "asset development/enhancement objectives". In particular, NAMA may invest in projects that are deemed commercially viable. NAMA shall inherit with the loans, undrawn commitments of €6.5bn to the borrowers.
Risk-sharing v ex post levy
On 6 May 2009, Professor Honohan, presented his views on NAMA to a committee of the Irish parliament. In particular, he raised the idea of a two-part payment to the banks, part debt & part equity, as a mechanism to reduce the risk to the taxpayer of overpaying for the loans. He specifically identified this mechanism as being superior to an ex-post levy on the banks. An additional advantage of paying part-equity for the loans, that Professor Honohan mentions in his paper of 6 May 2009, is the benefit of having some private shareholders within NAMA, given "the extensive international evidence showing that Government-owned banking systems serve their economies poorly."
On 9 October 2009, the two parties of the Irish government at the time, Fianna Fáil and the Green Party agreed a "Renewed Programme for Government". In this agreement, it stated "Should NAMA make a loss over time, a levy would be imposed to recoup the cost to taxpayers". This proposal is not in line with the preferred option that Professor Honohan highlighted in May 2009.
In the letter from Eurostat to the CSO dated 16 October 2009, it is noted that in addition to the 5% of the purchase price paid in subordinate bonds, that reduces the potential losses of the Irish taxpayer, that an amendment to the legislation that shall be introduced means that the participating banks shall have to pay a tax surcharge on their operating profits until the loss of the Master SPV, related to NAMA, is recouped.
Operations in 2010-11
NAMA published its 2010 accounts and summarised its more recent achievements in July 2011. In round figures it had acquired loans of €72 billion for €30 billion. To buy these it had issued bonds worth €30 billion that buyers could sell to the European Central Bank (ECB). The banks' losses of €42 billion written off on these sales, and their other losses, were met by Irish government cash or loans that were advanced or ultimately guaranteed by the ECB. €3.9 billion-worth of sales both in and outside Ireland had been approved by NAMA in a difficult market, given the scale of the Great Recession.
In that the main purpose of NAMA was to remove bad debts from the six banks and to recapitalize them, it was hard to see how it had made a difference in the short term. The plan relied upon an early worldwide recovery from recession, which did not occur. Government support for the banks continued separately from NAMA and had risen to 32% of GDP by September 2010.
In turn, the government's support for NAMA itself was quantified in July 2010 by the IMF as "more than 25% of GDP in 2010". The financial markets concluded that Ireland could not support the cost of the banks as well as NAMA, and run a budget deficit, and they sold Irish bonds at the time of the renewal of the two-year state bank guarantee in September 2010, causing yields to rise. It became impossible for the government itself to borrow from the bond markets. The drop in value of Irish bonds also had an immediate effect on the balance sheets of Irish and foreign banks' capital requirements.
As a result, in November 2010 the Irish government was itself obliged to seek a €67 billion net "bailout" from the ECB and IMF and undertook in return that the sale of the six banks' remaining assets outside NAMA would be "expedited"; part of the money was to cover future losses incurred by buyers of those assets. By early 2011 the six banks' liquidity needs were being supported by a further €150 billion from the ECB. Despite all the efforts to save them, in April 2011 the six banks' credit ratings were reduced to junk status by Moody's.
Recent developments
In February 2011, the Supreme Court delivered judgment in an appeal taken by Paddy McKillen against a purported decision to acquire loans taken out by Mr. McKillen and companies controlled by him. The court found that the decision had been taken by a group of senior managers before NAMA had been formed and accordingly there was no decision of NAMA to acquire the loans.
In April 2011 NAMA announced that it would commence selling home mortgages to private investors on the basis that the investor pays equity of 30% of the asking price of the loan, with NAMA providing financing for the balance.
Status as a public authority
Following an appeal from journalist Gavin Sheridan the Irish Office of the Commissioner for Environmental Information determined in September 2011 that NAMA was a public authority for the purposes of the Access to Information on the Environment (AIE) Regulations 2007, and was therefore obliged to answer AIE requests from applicants. The Regulations in question were the Irish transposition of European Directive 2003/4/EC, an implementation of one element of the Aarhus Convention into EU law.
NAMA disagreed with this decision and appealed to the High Court on a point of law. In February 2013 High Court judge Colm Mac Eochaidh ruled in favour of the Commissioner for Environmental Information. The case centred on the statutory interpretation of the term "and includes" in Irish law. The case cost a total of €121,350 to the Irish taxpayer up to that point.
NAMA appealed the High Court's decision to the Supreme Court, and the case was first heard on 7 April 2014 before Chief Justice Susan Denham, Mr Justice Murray, Mr Justice Hardiman, Mr Justice O'Donnell and Ms Justice Dunne. On 23 June 2015 the Supreme Court dismissed NAMA's appeal and ruled that it was in fact subject to the AIE Regulations. The court relied on an earlier ruling of the European Court of Justice in Fish Legal, where the court ruled that, "entities which, organically, are administrative authorities, namely those which form part of the public administration or the executive of the State at whatever level, are public authorities for the purposes of Article 2(2)(a) of Directive 2003/4. This first category includes all legal persons governed by public law which have been set up by the State and which it alone can decide to dissolve".
Geoghegan Review
In December 2011 the Agency published the Geoghegan Review, a report on NAMA's functional organisation, skills and delegation arrangements produced by the former Group Chief Executive of HSBC Holdings Plc, Michael Geoghegan. The Review includes a number of non-binding recommendations for the Agency's Board, including the need to be more entrepreneurial in focus and proposing a greater delegation of authorities from the Board to the Executive.
In February 2012, Paddy McKillen won the latest hearing on a preliminary issue in his UK legal battle with the Barclay brothers for control of the five-star Maybourne Hotel Group in London. The latest ruling strengthens his case against the Barclays to argue that Ireland's National Asset Management Agency unlawfully transferred €800 million of debt on the hotels to the brothers last September.
NAMA to Nature
In March 2012 a group called NAMA to Nature began planting trees on NAMA sites in a symbolic protest against the failure of the government agency to address the enduring presence of ghost estates and the failure of developers to clear unfinished construction sites. This action was reported in thejournal.ie. It was also reported in the Irish Times. Two of the participants were interviewed on The John Murray Radio Show
Northern Ireland loan sale
In early April 2014, NAMA sold a portfolio of Northern Ireland loans for £4.5bn (€5.4bn). The deal brokered was NAMA's single biggest transaction to date and followed an extensive sales process involving bidders from both the US and Europe. The loan book (aka Project Eagle) included a portfolio of various commercial properties in the North.
It was reported to have been initially acquired by NAMA for £1bn (€1.2bn).
The Northern Ireland Assembly's Committee for Finance and Personnel launched an inquiry into the sale after concerns were raised by Mick Wallace TD in the Dáil. The inquiry, led by Daithí McKay MLA, uncovered the fact that a meeting took place between DUP Ministers and potential bidders for the portfolio.
"Project Albion" portfolio sale
In 2015, under "Project Albion", NAMA sold a portfolio of United Kingdom commercial assets to Oaktree Capital Management for £115m that had had a book value of £226m.
Section 110 tax avoidance
In June 2016 Irish media outlets started noting that US distressed debt funds (known by the pejorative term "vulture funds") were filing Irish company accounts with large profits on their Irish investments (bought from NAMA) but no Irish tax payments. They could see the equity of these companies was "owned" by Irish registered Charities some of which were run by IFSC law firms.
It emerged these US "vulture funds" were using orphaned Section 110 SPVs (discovered because most Irish SPVs must file public accounts), structured by IFSC law and accounting firms, to export untaxed income and capital gains earned on domestic Irish assets to offshore locations (via the PPN interest payments) such as the Cayman Islands.
Stephen Donnelly TD called for a Dáil investigation and produced detailed calculations based on the scale of asset disposals by NAMA to US funds showing that the loss of Irish taxes could reach €20bn. The affair escalated during 2016 and was covered in the international media and in several Irish RTÉ Prime Time Investigates programs.
There was confusion when Dáil deputy Stephen Donnelly asked whether NAMA had knowingly sold assets to bidders with Section 110 SPVs. However, in later disclosures, Finance Minister Noonan stated that NAMA were users of the Section 110 SPVs, and would incur a €158m tax charge as a result of changes Noonan made to Section 110 legislation in the 2016 Finance Act.
The affair focused Irish public attention on the scale and speed at which funds had profited from NAMA sales, and led to some concern that NAMA had sold too quickly (and on a tax-free basis).
Garrett Kelleher Litigation
NAMA is the subject of US$1.2 billion lawsuit from former Irish property developer, Garrett Kelleher. The case, formally brought by Kelleher's company, Shelbourne North Water Street Corporation, concerns the financial collapse of Kelleher's 'Chicago Spire' development in Chicago, Illinois, USA; and seeks damages of $1.2bn against Nama, alleging that the agency destroyed the developer's chances of building the Chicago Spire through a combination of "sheer spite" and "consistent incompetence". The case, if it reaches court, would be the first time NAMA has faced a jury trial. The case is just one of a number of lawsuits Kelleher has brought, not always successfully, against NAMA.
See also
Post-2008 Irish banking crisis
Irish emergency budget, 2009
National Treasury Management Agency
Toxic asset
European sovereign-debt crisis: List of acronyms
Irish Section 110 SPVs
References
External links
Official website
National Asset Management
Post-2008 Irish economic downturn
2009 in Irish politics
State-sponsored bodies of the Republic of Ireland
Banking in Ireland
Bad banks
2009 establishments in Ireland
Organizations established in 2009
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.