text
stringlengths 1
22.8M
|
|---|
Jacco Eltingh was the defending champion, but lost in the first round to Richey Reneberg.
Michael Chang won the title by defeating Todd Martin 6–7(4–7), 7–6(7–4), 6–0 in the final.
Seeds
Draw
Finals
Top half
Bottom half
References
External links
Official results archive (ATP)
Official results archive (ITF)
Singles
1994 Singles
|
"Heatwave" is a single from British grime artist Wiley, featuring vocals from Ms D – known for singing on the Chipmunk song "Oopsy Daisy". It was released as the lead single from his ninth studio album The Ascent on 27 July 2012 for digital download in the United Kingdom. It was written by Wiley, Dayo Olatunji and produced by Rymez, who is unofficially credited as a featured artist. "Heatwave" received major radio airplay, while managing to enter on BBC Radio 1's A-list. The song debuted at number 1 on the UK Singles Chart on 5 August 2012, selling over 114,000 copies, while becoming Wiley's first ever solo number 1.
Music video
A music video to accompany the release of "Heatwave" was first released onto YouTube on 29 June 2012 at a total length of three minutes and twenty-one seconds.
Critical reception
Lewis Corner of Digital Spy gave the song a neutral review, calling it "a suitably cool summer jam, but if Wiley really wants to make an impact like his peers, he's going to have to dial the temperature up just a little bit higher yet. ."
Chart performance
"Heatwave" was number 1 on the Wednesday and Friday UK midweek chart. As predicted, the song entered the UK Singles Chart on 5 August 2012 at number 1, spending two weeks there (holding off "We'll Be Coming Back" by Calvin Harris and Example). "Heatwave" sold over 114,000 copies in its first week of release and became Wiley's first ever solo number 1 single. In the second week of release, Wiley remained at number 1, selling another 66,000. The song has sold 416,000 copies in the UK as of December 2012, and was the 38th best-selling single of 2012.
Track listings
Credits and personnel
Vocals – Wiley and Ms D
Producer – Rymez
Lyrics – Richard Cowie
Label: Warner Music Group
Charts
Weekly charts
Year-end charts
Certifications
Release history
References
2012 singles
Wiley (musician) songs
Dyo (singer) songs
Number-one singles in Scotland
UK Singles Chart number-one singles
2012 songs
Songs written by Wiley (musician)
|
Bishop Hall is an academic, administrative, and residence building, housing co-ed upperclassmen residents of Miami University in Oxford, Ohio.
Development
Before the erection of Bishop Hall, the original system of living for the women of Miami University consisted of two cottages. The women affiliated with sororities attempted to live off campus in order to provide more living space for unaffiliated women, but returned to the cottages after one year. There was a “pressing need for more accommodations for women” and many “inconveniences of the cottage system”.
In her annual reports, Elizabeth Hamilton, the Dean of Women, pressed the need for an additional women's dormitory. The enactment of the appropriation granted for the construction of Bishop Hall is attributed to Guy Potter Benton.
The appropriation amount granted by the Board of Trustees House of Representatives for the construction of Bishop Hall was $37,500. There was a small wait for the concurrence of the Senate, but also an expression of the need for a “rapid completion”, indicating the urgency of the construction and need of the new residence hall. The hall was to accommodate 104 women. There was encouragement for the new building to be used for the women of the present university and not for the addition of more women. The expected completion date was projected to be January 1912.
Structure
The address of Bishop Hall, abbreviated BIS, is 300 East Spring Street, Oxford, Ohio 45056.
The cost to construct Bishop Hall was $75,000.
Bishop Hall is 26,289 square feet.
The residence hall houses 102 occupants in 55 rooms.
Bishop Hall is actually the second dormitory for women.
Today, Bishop Hall is used as an academic, administrative, and residence building, specifically housing co-ed upperclass residents.
It was designed by Frank L. Packard, contracted with Vesta Construction, and was built in 1912.
Although there was no cornerstone or dedication ceremony, the building was named after Robert Hamilton Bishop.
Robert Hamilton Bishop was the first President of Miami University (1824-1841). He also served as a Professor of Logic and Moral Philosophy and History. Bishop was admired by the students, but fell into much disagreement over many issues with the trustees, faculty, and public which led him to resign. Bishop remained on campus as a professor, but, as turmoil continued, was removed from campus entirely in 1844.
Bishop Hall was utilized as a dining hall too.
Until a university infirmary was erected in 1923, the second floor of Bishop Hall was also used as a hospital and was entirely taken over during the influenza epidemic of 1918 for this purpose.
Shortly following the construction of Bishop Hall, the proposition of the need for a college infirmary was expressed by many prominent figures of the university, including the president. The current circumstances did not allow for proper care of students who were ill. There was also a need to handle potential epidemics that are common among small college towns. This created much irony as Bishop Hall was utilized as an infirmary, especially during the influenza epidemic of 1918.
There was a dismissal of the women of the college in order to accomplish the transition of Bishop Hall into a hospital that would allow treatment for patients. Over 100 cases were treated in the hospital of Bishop Hall. The first floor was reserved for the fifteen nurses and the second and third floors were occupied by patients. The primary care for all cases was accredited to Dr. MacMillan, after who the first infirmary was named. The transformation of Bishop Hall from an infirmary back to a residence hall followed the erection of Wade MacMillan Hospital.
References
Buildings and structures of Miami University
Frank Packard buildings
|
The College of International Security Affairs (CISA), formerly known as the School for National Security Executive Education (SNSEE), is one of five colleges at the National Defense University. It is considered the flagship U.S. Department of Defense institution for education in combating terrorism and irregular warfare at the strategic level. According to a Joint Chief of Staff document, the mission of CIS is to "educate joint warfighters and national security leaders in creative and critical thinking for the strategic challenges of winning strategies for the contemporary security environment."
CISA offers a Master of Arts in Strategic Security Studies and two certificate programs. It also offers a Joint Special Operations Master of Arts Program at Fort Liberty in partnership with the U.S. Army John F. Kennedy Special Warfare Center and School.
History
In 2003, the School for National Security Executive Education (SNSEE) began offering an International Counterterrorism Fellowship certificate. That same year, SNSEE was designated as the flagship of the U.S. government's Combating Terrorism Fellowship Program (CTFP), receiving 10 students in its inaugural class. The program was later expanded into a Master of Arts in Strategic Security Studies.
CISA figures from the 2022–2023 academic year showed that out of the 69 students on its main Fort McNair campus, 58% were overseas fellows.
In 2010, CISA established an additional location at Ft. Liberty, North Carolina, and developed the Joint Special Operations Master of Arts Program in partnership with the U.S. Army. The first graduating class at Ft. Bragg consisted of 20 special operators.
On June 25, 2014, the Joint Staff Joint Force Development J-7 granted the College of International Security Affairs authority to award Joint Professional Military Education (JPME II) credit.
References
Military education and training in the United States
National Defense University
|
Wilhelmina "Willy" de Beer (later Vel, born 5 September 1942) is a retired Dutch speed skater. She competed in the 1000, 1500 and 3000 m events at the 1964 Winter Olympics with the best result of 16th place in the 1500 m.
References
External links
1942 births
Living people
Dutch female speed skaters
Olympic speed skaters for the Netherlands
Speed skaters at the 1964 Winter Olympics
People from Medemblik
Sportspeople from North Holland
20th-century Dutch women
20th-century Dutch people
21st-century Dutch women
|
Fares Mohamed Dessouky (born September 29, 1994 in Alexandria) is a professional squash player who represented Egypt. He reached a career-high world ranking of World No. 11 in March 2017.
He made his first big splash on the PSA World Series during the 2014 British Open where he reached the quarter-finals. He beat Karim Abdel Gawad 3-2 in the first round, Karim Darwish 3-2 in the second round and lost out to Nick Matthew 0-3 in the quarter-final match.
He won his largest PSA title in December 2020 at the CIB Black Ball Open in Egypt defeating Ali Farag in five games.
Titles and Finals
Major Finals (1)
Major tournaments include:
PSA World Championships
PSA World Tour Finals
Top-tier PSA World Tour tournaments (Platinum/World Series/Super Series)
References
External links
Egyptian male squash players
Living people
1994 births
21st-century Egyptian people
|
```java
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.flowable.cmmn.rest.service.api.runtime.caze;
import java.util.HashMap;
import java.util.Map;
import org.flowable.common.engine.api.query.QueryProperty;
import org.flowable.eventsubscription.service.impl.EventSubscriptionQueryProperty;
/**
* @author Tijs Rademakers
*/
public class EventSubscriptionQueryProperties {
public static Map<String, QueryProperty> PROPERTIES;
static {
PROPERTIES = new HashMap<>();
PROPERTIES.put("id", EventSubscriptionQueryProperty.ID);
PROPERTIES.put("created", EventSubscriptionQueryProperty.CREATED);
PROPERTIES.put("tenantId", EventSubscriptionQueryProperty.TENANT_ID);
}
}
```
|
```python
import inc_sip as sip
import inc_sdp as sdp
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
"--realm=python --user=username --password=password " + \
"--auto-update-nat=0"
# 423 Response without Min-Expires header
req1 = sip.RecvfromTransaction("Initial request", 423,
include=["REGISTER sip"],
exclude=[],
resp_hdr=[]
)
# Client should retry with Expires header containing special value (pjsip specific)
req2 = sip.RecvfromTransaction("REGISTER retry after 423 response without Min-Expires header", 423,
include=["REGISTER sip", "Expires: 3601"],
exclude=[],
resp_hdr=["Min-Expires: 3612"]
)
# Client should retry with proper Expires header now
req3 = sip.RecvfromTransaction("REGISTER retry after proper 423", 200,
include=["Expires: 3612"],
exclude=[],
expect="registration success"
)
recvfrom_cfg = sip.RecvfromCfg("Reregistration after 423 response",
pjsua, [req1, req2, req3])
```
|
```asciidoc
[[tls-and-ssl]]
= TLS and SSL
The gateway can listen for requests on HTTPS by following the usual Spring server configuration.
The following example shows how to do so:
.application.yml
[source,yaml]
----
server:
ssl:
enabled: true
key-alias: scg
key-store-password: scg1234
key-store: classpath:scg-keystore.p12
key-store-type: PKCS12
----
You can route gateway routes to both HTTP and HTTPS backends.
If you are routing to an HTTPS backend, you can configure the gateway to trust all downstream certificates with the following configuration:
.application.yml
[source,yaml]
----
spring:
cloud:
gateway:
httpclient:
ssl:
useInsecureTrustManager: true
----
Using an insecure trust manager is not suitable for production.
For a production deployment, you can configure the gateway with a set of known certificates that it can trust with the following configuration:
.application.yml
[source,yaml]
----
spring:
cloud:
gateway:
httpclient:
ssl:
trustedX509Certificates:
- cert1.pem
- cert2.pem
----
If the Spring Cloud Gateway is not provisioned with trusted certificates, the default trust store is used (which you can override by setting the `javax.net.ssl.trustStore` system property).
[[tls-handshake]]
== TLS Handshake
The gateway maintains a client pool that it uses to route to backends.
When communicating over HTTPS, the client initiates a TLS handshake.
A number of timeouts are associated with this handshake.
You can configure these timeouts can be configured (defaults shown) as follows:
.application.yml
[source,yaml]
----
spring:
cloud:
gateway:
httpclient:
ssl:
handshake-timeout-millis: 10000
close-notify-flush-timeout-millis: 3000
close-notify-read-timeout-millis: 0
----
```
|
```makefile
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := NativeImageProcessor
LOCAL_LDFLAGS := -Wl,--build-id
LOCAL_SRC_FILES := \
Android.mk \
Application.mk \
NativeImageProcessor.cpp \
LOCAL_C_INCLUDES += src/debug/jni
LOCAL_C_INCLUDES += src/main/jni
include $(BUILD_SHARED_LIBRARY)
```
|
```objective-c
/* $OpenBSD: ucred.h,v 1.14 2022/03/17 14:23:34 visa Exp $ */
/* $NetBSD: ucred.h,v 1.12 1995/06/01 22:44:50 jtc Exp $ */
/*
* The Regents of the University of California. All rights reserved.
*
* 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.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
*
* @(#)ucred.h 8.2 (Berkeley) 1/4/94
*/
#ifndef _SYS_UCRED_H_
#define _SYS_UCRED_H_
#include <sys/refcnt.h>
#include <sys/syslimits.h>
/*
* Credentials.
*/
struct ucred {
struct refcnt cr_refcnt; /* reference count */
/* The following fields are all copied by crset() */
#define cr_startcopy cr_uid
uid_t cr_uid; /* effective user id */
uid_t cr_ruid; /* Real user id. */
uid_t cr_svuid; /* Saved effective user id. */
gid_t cr_gid; /* effective group id */
gid_t cr_rgid; /* Real group id. */
gid_t cr_svgid; /* Saved effective group id. */
short cr_ngroups; /* number of groups */
gid_t cr_groups[NGROUPS_MAX]; /* groups */
};
#define NOCRED ((struct ucred *)-1) /* no credential available */
#define FSCRED ((struct ucred *)-2) /* filesystem credential */
/*
* Userspace version, for use in syscalls arguments
*/
struct xucred {
uid_t cr_uid; /* user id */
gid_t cr_gid; /* group id */
short cr_ngroups; /* number of groups */
gid_t cr_groups[NGROUPS_MAX]; /* groups */
};
#ifdef _KERNEL
int crfromxucred(struct ucred *, const struct xucred *);
void crset(struct ucred *, const struct ucred *);
struct ucred *crcopy(struct ucred *cr);
struct ucred *crdup(struct ucred *cr);
void crfree(struct ucred *cr);
struct ucred *crget(void);
struct ucred *crhold(struct ucred *);
int suser(struct proc *p);
int suser_ucred(struct ucred *cred);
#endif /* _KERNEL */
#endif /* !_SYS_UCRED_H_ */
```
|
Mr. Barnes of New York is a novel published in 1887 by American author Archibald Clavering Gunter, quite popular in its day, which was also adapted into a play in 1888, and later two silent film versions.
Novel
Although he already had success as a playwright, Gunter was unable to find a publisher for his first novel, which he had completed in 1885. He "submitted it to nearly every publisher in New York, and again and again it came back to him." He then tried a Boston publisher and more publishers in New York, and met another round of rejections. After shelving the manuscript for a time, he read a current popular novel, and decided that although his book "might be rubbish, it was surely as good as this book that seemed to have taken the fancy of the public." Gunter proceeded to publish the book himself, starting with 1,000 copies that bookstores would only take on consignment.
Within a few weeks, sales grew brisk and the book became quite popular. Scholar James D. Hart has written that although the book may not have sold a million copies as has been claimed, it and many of Gunter's successive novels were indeed popular. In 1910, a profile of this "best seller of yesterday" described "its success as instantaneous as it was astonishing. Everywhere−in railway trains and in the deck chairs of ocean liners−the paper covered yellow volume was to be seen." It also said "contemporary criticism was outspoken in its praise" of the book.
The plot revolves around the European travels and adventures of Burton H. Barnes, including a romance "with an English belle" and "involvement in a Corsican vendetta concerning his future brother-in-law."
In 1889, Gunter published the similarly named book (though not a sequel), Mr. Potter of Texas, which was also a best-seller. A sequel, entitled Mr. Barnes, American was published in 1907.
Dramatic adaptation
The book was adapted into a play and debuted at the Broadway Theatre in New York on October 15, 1888. The cast included John H. Gilmour as Mr. Barnes and Emily Rigl as Marina Paoli. The review of the play in the New York Times was quite negative:
The Times noted that the "audience was suspiciously ecstatic in its enthusiasm." And the review in Life said: "The play does not imperil Shakespeare's laurels, but it is thoroughly interesting and amusing." The play ran for seven weeks at the Broadway Theatre, closing on December 1, and saw performances far and wide over following years.
Films
The work was adapted to silent film twice, in 1914 and 1922. The 1914 version by Vitagraph Studios starred Maurice Costello as Mr. Barnes and Mary Charleson as Marina. The 1922 version featured Tom Moore, Anna Lehr, and Naomi Childers, and was directed by Victor Schertzinger.
References
External links
Mr. Barnes of New York full scan via archive.org
(1914 version)
(1922 version)
1887 American novels
Broadway plays
1888 plays
American novels adapted into films
Novels by Archibald Clavering Gunter
Plays by Archibald Clavering Gunter
|
```shell
Short intro to `grep`
Getting rid of duplicate lines
Using `lynx` to convert HTML to text
Image manipulation using `convert`
Wrap text with `fold`
```
|
```cmake
# MACRO_ENSURE_OUT_OF_SOURCE_BUILD(<errorMessage>)
macro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD _errorMessage )
string( COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" _insource )
if( _insource )
message( SEND_ERROR "${_errorMessage}" )
message( FATAL_ERROR
"In-source builds are not allowed.
CMake would overwrite the makefiles distributed with Compiler-RT.
Please create a directory and run cmake from there, passing the path
to this source directory as the last argument.
This process created the file `CMakeCache.txt' and the directory `CMakeFiles'.
Please delete them."
)
endif( _insource )
endmacro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD )
```
|
The Storey, formerly the Storey Institute, is a multi-purpose building located at the corner of Meeting House Lane and Castle Hill in Lancaster, Lancashire, England. Its main part is recorded in the National Heritage List for England as a designated Grade II listed building, with its back entrance being listed separately, also at Grade II.
History
The building was constructed between 1887 and 1891 as a replacement for the Lancaster Mechanic's Institute, to commemorate Queen Victoria's Golden Jubilee. It was paid for by Thomas Storey, a local businessman who had been mayor in the year of the Jubilee, and was renamed the Storey Institute in his honour in 1891. Its purpose was "the promotion of art, science, literature, and technical instruction". The building was designed by the architects Paley, Austin and Paley whose office stood nearby. It contained a reading room, a library, a lecture room, a laboratory, a music room, a picture gallery, a school of art, and accommodation for a caretaker. The building cost about £12,000 (equivalent to £ in ). In 1906–08 it was extended to commemorate the accession of Edward VII. This was designed by the successors in the architectural practice, Austin and Paley, to provide more rooms for teaching. Thomas Storey's son, Herbert, paid £10,000 towards the cost of the extension, which almost doubled the size of the building.
Over the years, the building has been housed the City Art Gallery, the public library, a girls’ grammar school, and from the 1950s to 1982, Lancaster College of Art.
The opening art exhibition, held in 1889, included paintings by Gainsborough, Constable, and Canaletto. The art collection included paintings by local artists including Samuel John "Lamorna" Birch and William Hoggatt. In the 1960s there were touring exhibitions of works by Picasso, Matisse, and Francis Bacon. The art collection was moved in 1968 to Lancaster City Museum.
By the 1980s the gallery was rarely used, but in 1991 a group of local artists re-established it as the Storey Gallery, and delivered a continuous programme of over 100 exhibitions of contemporary art until 2013. The exhibition programme included one-person shows by Andy Goldsworthy, Gillian Ayres, Basil Beattie, Michael Brennand-Wood, Simon Callery, Anthony Green, Albert Irvin, Michael Kenny, Sophie Ryder, and Richard Wilson, plus touring exhibitions from Japan, Spain, and Italy, and a variety of curated group shows. In 1998 the walled gardens behind the institute were laid out as an art work, The Tasting Garden, by Mark Dion.
In the early 21st century the institute was converted into a multi-use building by Lancaster City Council, and was renamed The Storey. It provided accommodation for small businesses, a café, galleries and exhibitions areas, workshops, and an information centre. The architects were Mason Gillibrand Architects of Caton.
Architecture
Main building
The building is constructed in sandstone ashlar with slate roofs, and is in Jacobean Revival style. It has façades on two fronts, with a turret on the corner. The turret is octagonal, with a lead dome surmounted by a spirelet. The building is in two storeys plus attics, above which are gables, some shaped and some segmental. Inside the building, on the first floor, is a curved window containing stained glass designed by Jowett of Shrigley and Hunt depicting representations of the arts. Also on this floor is a top-lit exhibition gallery.
Back entrance
This consists of a portico in Roman Doric style with two columns supporting a triglyph frieze and a cornice. At its summit is a pediment decorated with dentils. It contains its original wrought iron gates and overthrow. The structure was moved from an 18th-century house that was demolished in 1921, and rebuilt on the present site. The entrance leads to walled gardens behind the institute.
See also
Listed buildings in Lancaster, Lancashire
List of works by Paley, Austin and Paley
List of non-ecclesiastical works by Austin and Paley (1895–1914)
References
Bibliography
External links
The Storey - official site
Grade II listed buildings in Lancashire
Buildings and structures in Lancaster, Lancashire
Paley, Austin and Paley buildings
Austin and Paley buildings
Infrastructure completed in 1891
Event venues established in 1891
Educational institutions established in 1891
1891 establishments in England
Tourist attractions in Lancaster, Lancashire
|
National Indoor Soccer League has been the name of two different American professional indoor soccer leagues:
National Indoor Soccer League (2008–2014)
National Indoor Soccer League (2021-)
|
New Auburn is a village in Barron and Chippewa counties in the U.S. state of Wisconsin. The population was 548 at the 2010 census. Of this, 528 were in Chippewa County, and 20 were in Barron County. The village is located mostly within the Town of Auburn in Chippewa County. Small portions extend east into the adjacent Town of Bloomer, Chippewa County and north into the Town of Dovre in Barron County.
Geography
New Auburn is located at (45.203766, -91.561570).
According to the United States Census Bureau, the village has a total area of containing no bodies of water inside.
New Auburn is along U.S. Highway 53; and also County Roads AA, M, Q, and SS.
Demographics
2010 census
As of the census of 2010, there were 548 people, 217 households, and 139 families living in the village. The population density was . There were 235 housing units at an average density of . The racial makeup of the village was 97.3% White, 0.2% African American, 0.2% Native American, 0.4% Asian, and 2.0% from two or more races.
There were 217 households, of which 36.9% had children under the age of 18 living with them, 47.9% were married couples living together, 9.7% had a female householder with no husband present, 6.5% had a male householder with no wife present, and 35.9% were non-families. 30.4% of all households were made up of individuals, and 12.4% had someone living alone who was 65 years of age or older. The average household size was 2.53 and the average family size was 3.13.
The median age in the village was 34.6 years. 29% of residents were under the age of 18; 7.7% were between the ages of 18 and 24; 27.6% were from 25 to 44; 22.4% were from 45 to 64; and 13.3% were 65 years of age or older. The gender makeup of the village was 52.0% male and 48.0% female.
2000 census
As of the census of 2000, there were 562 people, 216 households, and 147 families living in the village. The population density was 165.8 people per square mile (64.0/km2). There were 222 housing units at an average density of 65.5 per square mile (25.3/km2). The racial makeup of the village was 99.11% White, 0.18% Native American, and 0.71% from two or more races. Hispanic or Latino of any race were 0.36% of the population.
There were 216 households, out of which 34.3% had children under the age of 18 living with them, 50.9% were married couples living together, 11.6% had a female householder with no husband present, and 31.9% were non-families. 26.9% of all households were made up of individuals, and 9.3% had someone living alone who was 65 years of age or older. The average household size was 2.60 and the average family size was 3.17.
In the village, the population was spread out, with 30.8% under the age of 18, 5.7% from 18 to 24, 28.1% from 25 to 44, 23.1% from 45 to 64, and 12.3% who were 65 years of age or older. The median age was 35 years. For every 100 females, there were 100.7 males. For every 100 females age 18 and over, there were 100.5 males.
The median income for a household in the village was $30,341, and the median income for a family was $36,250. Males had a median income of $26,683 versus $20,375 for females. The per capita income for the village was $13,444. 9.9% of the population and 9.6% of families were below the poverty line. Out of the total population, 9.9% of those under the age of 18 and 6.7% of those 65 and older were living below the poverty line.
Population: 485
New Auburn is the setting of Michael Perry's memoir, Population: 485: Meeting your Neighbors One Siren at a Time, in which he describes his experiences as a volunteer firefighter and EMT for the New Auburn Area Fire Department.
Notable people
Arnt Erickson, businessman and politician; village supervisor and resident of New Auburn (born in Norway)
Michael Perry, author, born and raised in New Auburn
References
External links
New Auburn Official Website
New Auburn School District
Villages in Wisconsin
Villages in Chippewa County, Wisconsin
Villages in Barron County, Wisconsin
Eau Claire–Chippewa Falls metropolitan area
|
Dust Bowl Ballads is an album by American folk singer Woody Guthrie. It was released by Victor Records, in 1940. All the songs on the album deal with the Dust Bowl and its effects on the country and its people. It is considered to be one of the first concept albums. It was Guthrie's first commercial recording and the most successful album of his career.
Dust Bowl Ballads was originally released as eleven songs on two simultaneously released three-disc set albums of 78 rpm records entitled Dust Bowl Ballads, Vol. 1 and Dust Bowl Ballads, Vol. 2. The twelve sides in total had one song each except for the double-sided "Tom Joad" which was too long to be pressed on a single side of a 78. However, two of the thirteen songs recorded on the sessions, "Pretty Boy Floyd" and "Dust Bowl Blues" were left out due to length. All of the tracks were recorded at Victor studios in Camden, New Jersey on April 26, 1940, except "Dust Cain't Kill Me" and "Dust Pneumonia Blues" which were recorded on May 3. In 1950, and in 1964 during the American folk music revival, reissues were released in LP format by Folkways Records after RCA refused Guthrie's request to re-issue the album. RCA Victor also re-released the album in 1964 but with the two previously unreleased tracks included, and in 2000 this was reissued by Buddha Records with an additional previously unreleased alternate version of one song. The complete Dust Bowl Ballads remains available on compact disc through Smithsonian Folkways.
Like many of Guthrie's later recordings, these songs contain an element of social activism, and would be an important influence on later musicians, including Pete Seeger, Bob Dylan, Bruce Springsteen, Phil Ochs and Joe Strummer.
Background
As Southern and Great Plains states became unlivable because of drought and the Depression, California came to seem like the land of milk and honey to desperate farmers. Guthrie spent this time hoboing with displaced farmers from Oklahoma to California. Guthrie learned their traditional folk and blues songs and discovered his own version of the blues, one on which he’d play endless variations, earning him the nickname the "Dust Bowl Troubadour"
At the time Victor Records was looking for an answer to rival Columbia Records folk singer Burl Ives, so they signed 27-year-old Guthrie and put him in a recording studio. This would be the only major label for which Guthrie ever recorded. He later went on to record more with Moses Asch of Folkways Records.
On the liner notes for the Folkways Records reissue Woody Guthrie said:
Songs and themes
Dust Bowl Ballads chronicles the 1930s Dust Bowl era during The Great Depression, where farmers were dispossessed of their land by a combination of weather conditions and bank foreclosures. The album is semi-autobiographical, mirroring both Guthrie’s own life and John Steinbeck’s 1939 novel The Grapes of Wrath, which had just been turned into a film. The album follows the exodus of Midwesterners headed for California. Hailing from Oklahoma, Guthrie had a detailed knowledge of the Dust Bowl conditions that had led to an exodus of Okies west to California, and witnessed the economic hardships there where they became poor migrant workers in often harsh conditions.
Guthrie alternates between reporting the story, commenting on it humorously, and embodying the characters of the Okies with whom he identifies in songs. The humorous talking blues song "Talkin' Dust Bowl Blues", starts off telling the story in the first person of a family who had an average life of a farmer in Nineteen Twenty-Seven, before the drought started and then have to migrate after losing their farm. “The black ol' dust storm filled the sky and I swapped my farm for a Ford machine” sings Guthrie. Although it is done comically and Guthrie himself chuckles at the absurdity, it does not hide the horrifying circumstances they go through in their travels and arrival. "Blowin' Down This Road" has a more defiant tone with the repetition of the line "I ain't a-gonna be treated this-a-way."
After arrival in California, the Okie migrants realize that California is not so welcoming and a rough place to settle if you do not have money, or "Do Re Mi". This is a cautionary tale to all those others traveling across the country who were dreaming of a promised land or “Garden of Eden” as Guthrie calls it in the song, telling them there’s so many people going to California it might be better to go back east. Guthrie captures the hopelessness of the crop and bank failures, the rigors of the journey west and the crushing disappointment that ensued when California offered a reality nearly as harsh as the land left behind. "Dust Cain't Kill Me" sets a darker tone, where Guthrie acknowledges the destruction wrought by the dust storms, killing his family, but still keeping a determined positive attitude that it would not kill him. The final song on Volume 1, split into two parts, tells the story of “Tom Joad", the leading character in Steinbeck's The Grapes of Wrath. "Wherever people ain’t free/Wherever men are fightin’ for their rights,” he sings, “That’s where I’m a-gonna be.”
Volume 2 starts out with the waltz "The Great Dust Storm", describing the catastrophe when a giant dust storm hits the Great Plains "On the fourteenth day of April of 1935", transforming the landscape and resulting in a diaspora of people heading west where they have been promised there is work aplenty picking fruit in the lush valleys of California. "Dusty Old Dust" follows, telling a similar story in a more humorous manner. The character says his farewell repeating “so long, it's been good to know yuh” in the chorus, which is what the song is now most commonly known as, as he has “got to be driftin' along”.
In "Dust Bowl Refugee", Guthrie tells a first-person story of the struggles and nomadic life of the travel out west. The comedic "Dust Pneumonia Blues" comments on the physical effects many experienced in the Dust Bowl. He notes the song was supposed to have yodeling in it, but he was unable to yodel because of the dust in his lungs. "I Ain't Got No Home in This World Anymore" uses a tune borrowed from the Christian hymn "Heaven Will Be My Home", the spiritual message is amended to one about the plight of the Okies. "Vigilante Man" is an attack on the hired thugs who harassed the Dust Bowl refugees, which contained a verse referring to Preacher Casey, a character in The Grapes of Wrath.
The 2000 Buddha Records reissue bonus track "Pretty Boy Floyd", tells the story of the famous outlaw Pretty Boy Floyd, an American bank robber who was pursued and killed by a group led by FBI Agent, Melvin Purvis. This song was written in March 1939, five years after Floyd’s death. Guthrie shows Floyd as a misunderstood Robin Hood who was adored by the people. “But a many a starvin' farmer The same old story told How the outlaw paid their mortgage and saved their little homes”
Track listing
1940 Victor Records
Release history
1950 Folkways Records Reissue
Victor eventually let the original sets go out of print. Guthrie wrote to the label asking for a reissue in LP format and got a negative response. Guthrie then authorized Folkways Records to copy the discs and, in October 1950, Folkways put out its own 10" LP version. This was called Talking Dust Bowl and contained just eight tracks with the two sides subtitled into two groups of songs:
1964 Folkways Records Reissue
RCA protested, but, in the face of Guthrie's go-ahead, backed off, giving Folkways tacit permission to do a second reissue as a 12" LP. Released in 1964, this re-created the original titles and full contents of the 1940 releases of 78s in their original running order, but combined the two parts of "Tom Joad" into one track:
1964 RCA Victor Records Reissue
RCA also re-released the album in 1964 in its RCA Victor Vintage Series, on a 12" LP with issue number LPV-502. Their re-release reshuffled the original order of tracks and took the opportunity to include the two extra songs recorded on the 1940 sessions and previously unreleased, being "Pretty Boy Floyd" and "Dust Bowl Blues":
2000 Buddha Records Reissue
Sixty years after the recordings were first released, Woody Guthrie's odes to the Dust Bowl were presented in their fourth different configuration for a CD edition digitally remastered by Doug Pomeroy. The running order of the tracks were again shuffled and a previously unreleased alternate take of "Talking Dust Bowl Blues" was added.
See also
Moe Asch
Alan Lomax
The Grapes of Wrath
Dust Bowl
1936 North American heat wave
Sources
Marsh, Dave. "Dust Bowl Ballads" liner notes. Buddha Records, 2000
Helfert, Manfred. Ballads from Deep Gap, North Carolina and Okemah, Oklahoma. 1997.
References
External links
Lyrics to Woody Guthrie's "Pretty Boy Floyd" and background information about the song.
1940 debut albums
Woody Guthrie albums
RCA Victor albums
Works about the Dust Bowl
Concept albums
Environmental songs
|
Anders Todal (18 March 1883 – 6 March 1956) was a Norwegian teacher, politician and farmer. He was born in Valsøyfjord. He served as mayor of Åsen from 1919 to 1922, and from 1925 to 1931. He was elected to the Storting from 1931 to 1933, representing the Liberal Party in Nord-Trøndelag. He chaired the organization Noregs Mållag from 1932 to 1936. He was appointed school director in Nidaros from 1933, until he was fired in 1942. In 1942 he was imprisoned and incarcerated in Vollan prison and the Falstad concentration camp.
References
1883 births
1956 deaths
People from Møre og Romsdal
Norwegian educators
Liberal Party (Norway) politicians
Mayors of places in Nord-Trøndelag
Members of the Storting
Vollan concentration camp survivors
Falstad concentration camp survivors
|
```go
// this source code is governed by the included BSD license.
// +build windows
package libkb
import (
"errors"
"net"
"path/filepath"
"strings"
"time"
"github.com/keybase/client/go/logger"
mspipe "github.com/keybase/go-winio"
)
func NewSocket(g *GlobalContext) (ret Socket, err error) {
var s string
s, err = g.Env.GetSocketBindFile()
if err != nil {
return
}
if len(s) == 0 {
err = errors.New("Empty SocketFile, can't make pipe")
return
}
s = `\\.\pipe\kbservice` + strings.TrimPrefix(s, filepath.VolumeName(s))
log := g.Log
if log == nil {
log = logger.NewNull()
}
// ownership tests fail when server is in same proces, as in tests
return SocketInfo{
log: log,
bindFile: s,
dialFiles: []string{s},
testOwner: g.Env.Test == nil,
}, nil
}
func NewSocketWithFiles(
log logger.Logger, bindFile string, _ []string) Socket {
s := `\\.\pipe\kbservice` +
strings.TrimPrefix(bindFile, filepath.VolumeName(bindFile))
return SocketInfo{
log: log,
bindFile: s,
dialFiles: []string{s},
}
}
func (s SocketInfo) BindToSocket() (ret net.Listener, err error) {
s.log.Info("Binding to pipe:%s", s.bindFile)
return mspipe.ListenPipe(s.bindFile, nil)
}
func (s SocketInfo) DialSocket() (ret net.Conn, err error) {
timeout := time.Duration(1) * time.Second
pipe, err := mspipe.DialPipe(s.dialFiles[0], &timeout)
if err != nil {
// Be sure to return a nil interface, and not a nil npipe.PipeConn
// See path_to_url for when this
// bit us.
return nil, err
}
// This can't happen right now, but in the future it might, so protect against ourselves
// so we don't get vexing (*foo)(nil)/interface{}(nil) bugs.
if pipe == nil {
return nil, errors.New("bad npipe result; nil npipe.PipeConn but no error")
}
// Test ownership
if s.testOwner {
owner, err := IsPipeowner(s.log, s.dialFiles[0])
if err != nil {
return nil, err
}
if !owner.IsOwner {
return nil, errors.New("failed to verify pipe ownership")
}
}
// Success case
return pipe, err
}
func IsSocketClosedError(e error) bool {
return e == mspipe.ErrPipeListenerClosed
}
```
|
```go
package awsfetch
import (
"context"
"strings"
)
func getBoolFromContext(ctx context.Context, key string) bool {
v, ok := ctx.Value(key).(bool)
return v && ok
}
func getUserFiltersFromContext(ctx context.Context) map[string]string {
out := make(map[string]string)
arr, ok := ctx.Value("filters").([]string)
if ok {
for _, keyval := range arr {
if splits := strings.SplitN(keyval, "=", 2); len(splits) == 2 {
out[strings.ToLower(splits[0])] = splits[1]
}
}
}
return out
}
func sliceOfSlice(in []string, maxLength int) (res [][]string) {
if maxLength <= 0 {
return
}
if len(in) == 0 {
return
}
for i := 0; i < len(in); i += maxLength {
if i+maxLength < len(in) {
res = append(res, in[i:i+maxLength])
} else {
res = append(res, in[i:])
}
}
return
}
func appendIfNotInSlice(slice []string, s string) []string {
var found bool
for _, e := range slice {
if e == s {
found = true
}
}
if !found {
return append(slice, s)
}
return slice
}
func arnToName(arn string) string {
splits := strings.Split(arn, "/")
if len(splits) > 1 {
return splits[len(splits)-1]
}
return arn
}
func pluralizeIfNeeded(str string, n uint) string {
if n > 1 {
return str + "s"
}
return str
}
```
|
Bragdon may refer to:
Surname:
Claude Fayette Bragdon (1866–1946), American architect, writer and stage designer
David Bragdon (born 1959), United States politician from Oregon
John Stewart Bragdon (1893–1964), United States Army major
Jonathan Bragdon, contemporary American landscape artist
Richard Bragdon, Canadian politician from New Brunswick
Peter Bragdon, United States politician from New Hampshire
Tarren Bragdon (born 1975), American former state legislator and think tank founder
Location:
Bragdon Formation, geologic formation in California
Bragdon Hall, Reed College hall of residence
Bragdon-Lipe House, historic home at Canajoharie, Montgomery County, New York
Bragdon Wood, key fictional location in the novel That Hideous Strength by C. S. Lewis
It may also refer to:
Bragdon v. Abbott, a Supreme Court of the United States case involving the Americans with Disabilities Act of 1990
|
The Roberts Case ( or ) is a 1933 German drama film directed by Erich Engels and starring Hermann Speelmans, Camilla Spira and Eduard von Winterstein. It was shot at the Johannisthal Studios in Berlin.
Cast
References
Bibliography
External links
1933 films
1933 drama films
Films of Nazi Germany
Films of the Weimar Republic
German drama films
1930s German-language films
Films directed by Erich Engels
German black-and-white films
1930s German films
Films shot at Johannisthal Studios
|
```go
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package policy
import "github.com/m3db/m3/src/x/pool"
// PoliciesPool provides a pool for variable-sized policy slices.
type PoliciesPool interface {
// Init initializes the pool.
Init()
// Get provides a policy slice from the pool.
Get(capacity int) []Policy
// Put returns a policy slice to the pool.
Put(value []Policy)
}
type policiesPool struct {
pool pool.BucketizedObjectPool
}
// NewPoliciesPool creates a new policies pool.
func NewPoliciesPool(sizes []pool.Bucket, opts pool.ObjectPoolOptions) PoliciesPool {
return &policiesPool{pool: pool.NewBucketizedObjectPool(sizes, opts)}
}
func (p *policiesPool) Init() {
p.pool.Init(func(capacity int) interface{} {
return make([]Policy, 0, capacity)
})
}
func (p *policiesPool) Get(capacity int) []Policy {
return p.pool.Get(capacity).([]Policy)
}
func (p *policiesPool) Put(value []Policy) {
value = value[:0]
p.pool.Put(value, cap(value))
}
```
|
```javascript
Drawing with HTML5 `Canvas` API
Allow an element to go fullscreen
Permission API
Navigation Timing API
Drag and Drop API
```
|
```ruby
describe :proc_compose, shared: true do
it "raises TypeError if passed not callable object" do
lhs = @object.call
not_callable = Object.new
-> {
lhs.send(@method, not_callable)
}.should raise_error(TypeError, "callable object is expected")
end
it "does not try to coerce argument with #to_proc" do
lhs = @object.call
succ = Object.new
def succ.to_proc(s); s.succ; end
-> {
lhs.send(@method, succ)
}.should raise_error(TypeError, "callable object is expected")
end
end
```
|
Landupita is a village in Sri Lanka. It is located within Central Province.
See also
List of towns in Central Province, Sri Lanka
External links
Populated places in Nuwara Eliya District
|
```kotlin
plugins {
id("org.jetbrains.kotlin.jvm")
alias(libs.plugins.apollo)
id("application")
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation(libs.kotlin.test.junit)
implementation(libs.apollo.api)
implementation(project(":node1"))
implementation(project(":node2"))
}
application {
mainClass.set("LeafKt")
}
apollo {
service("service") {
packageNamesFromFilePaths()
dependsOn(project(":node1"))
dependsOn(project(":node2"))
}
}
```
|
Mini Aodla Freeman is an Inuk playwright, writer, poet and essayist.
She was born in July 1936 on Cape Hope Island (Nunaaluk) in James Bay, Northwest Territories (now Nunavut), Canada.
Mini Aodla was taken by the authorities to Bishop Horden Memorial School, a Canadian Indian residential school, on Moose Factory Island, Ontario.
When her family learnt of plans to have her adopted by a non-Inuit family, they enrolled her in the Sainte-Thérèse-de-l'Enfant-Jésus Residential School in Fort George (now Chisasibi), Quebec which she attended until 1952.
Shortly after leaving school, she became a tuberculosis patient at Mountain Sanatorium in Hamilton, Ontario.
Training
Fluent in English, Inuktitut and the Cree language Freeman provided translation services as a patient in the Mountain Sanatorium in Hamilton. The staff encouraged her to take nurses training, which she had begun at the Sainte-Thérèse-de-l'Enfant-Jésus Residential School. When she was medically discharged, she chose to return home.
Career
Freeman found a job in Moose Factory and shortly after that was informed by the local Indian agent that there was a federal government job waiting for her in Ottawa. The Ottawa position was with the Welfare Division in the then-Department of Northern Affairs and National Resources (now Crown–Indigenous Relations and Northern Affairs Canada and Indigenous Services Canada) where in addition to translation work in Ottawa she visited Inuit patients in numerous hospitals and sanatoria in Alberta, Saskatchewan, Manitoba, Ontario, and Quebec. She was also posted to Frobisher Bay (now Iqaluit, Nunavut) to serve as translator for the federal welfare officer.
In 1963 she became the secretary of Eugène Rhéaume, the Member of Parliament for the Northwest Territories from 1963 to 1965. Between 1973 and 1976 Freeman was secretary and translator for the Inuit Land Use and Occupancy Project and from 1979-81 she was executive secretary of the Land Claims Secretariat at Inuit Tapirisat of Canada (now Inuit Tapiriit Kanatami). She was manager of the newly-established Inuit Broadcasting Corporation between 1981 and 1982.
From 1991 until 1998 Freeman was employed by Corrections Canada as a cultural counsellor for Inuit and First Nations inmates at the Bowden Institution in Alberta.
Writing
Freeman's work has included short stories, poems, and social commentary that have appeared in a wide range of publications, including the Canadian Children's Annual (1975 and 1976 editions), The Canadian Encyclopedia and the Proceedings of the Royal Society of Canada.
A play she wrote and produced, titled "Survival in the South", was performed at the 1971 Dominion Drama Festival and in 1973 at the National Arts Centre in Ottawa and published in a 1980 book.
Other published works include Inuit Women Artists: Voices from Cape Dorset, Leven in het noordpoolgebrie [Living in the Arctic] and the epilogue to a collection of scientific papers published in association with the opening of a permanent exhibition on arctic life at the Carnegie Museum of Natural History.
Her best-known work is Life Among the Qallunaat. First published in 1978, then translated into German, French and Greenlandic, this memoir details her life living in Inuit communities, her journey of learning while living outside those communities, and the rapid changes that Inuit faced during the 1940s and 1950s.
Life Among the Qallunaat was widely reviewed and was a finalist for the Governor General's Award for Nonfiction in 1978, but perhaps because copies were hard to find, the book was not widely known until the University of Manitoba Press republished it in 2016.
The 2015 edition was selected as one of the Association of Canadian Publishers' 49th Shelf's 2015 Books of the Year.
In 2016, Life Among the Qallunaat won the Electa Quinney Award for Published Stories and the Mary Scorer Award for Best Book by a Manitoba publisher.
Documentary filmmaker
In 1982, Freeman co-operated with Hugh Brody, a British-based award-winning documentary filmmaker, in filming an 80-minute film titled People of the Islands. The film was shot on Flaherty Island in the Belcher Islands, Northwest Territories (now Nunavut) where Robert J. Flaherty began his documentary film-making career in 1913-14 with the assistance of Freeman's maternal grandfather, George Weetaltuk.
In 2013, Freeman narrated a detailed oral history of the Cape Hope Island Inuit community in the film Nunaaluk – A Forgotten Story directed by Quebec film-maker Louise Abbott.
The Nunaaluk (Cape Hope Island) community in James Bay – where Freeman was born and grew up -- was established by her grandfather George Weetaltuk in the 1920s. In 1960 the entire community was forcibly relocated by the federal government to a large and unfamiliar Inuit Cree community on the coast of Hudson Bay, an event that as narrator, she poignantly chronicles.
Educator
Since 1969, Freeman has served as an Inuit language and cultural instructor in schools, colleges and universities in Alberta, Newfoundland and Labrador, Northwest Territories, Nunavut, and Ontario.
She has served as a cultural counsellor to Indigenous inmates in prison, and as a cultural adviser to the Canadian Broadcasting Corporation, the National Film Board of Canada, the Canadian National Museum of Civilization (now Canadian Museum of History), the Glenbow Museum (Calgary), the Carnegie Museum of Natural History (Pittsburgh), and in later years as an Elder at the University of Alberta, MacEwan University, and at the CFB Edmonton. She was also actively involved in the Truth and Reconciliation Commission of Canada from 2007 to 2015.
References
Canadian autobiographers
Canadian women non-fiction writers
Inuit from Quebec
Inuit writers
Living people
Women autobiographers
Year of birth missing (living people)
|
These are the results of the men's doubles competition in badminton at the 2004 Summer Olympics in Athens.
Medalists
Seeds
(second round)
(quarterfinals)
(gold medalist)
(quarterfinals)
(fourth place)
(quarterfinals)
(second round)
(bronze medalist)
Draw
Finals
Top half
Bottom half
References
tournamentsoftware.com
Badminton at the 2004 Summer Olympics
Men's events at the 2004 Summer Olympics
|
St Mary's Church, Patshull, is a redundant Anglican church in the parish of Pattingham and Patshull, Staffordshire, England, and is situated near Patshull Hall. It is recorded in the National Heritage List for England as a designated Grade II* listed building, and is under the care of the Churches Conservation Trust. The church stands in parkland beside a lake.
History
St Mary's was built in about 1743, and was designed by James Gibbs for Sir John Astley. It replaced an earlier medieval church on the site. Additions were made to it in 1874 by W. C. Banks. These included a north aisle, a bell tower, and a dome.
Architecture
Exterior
The church is constructed in sandstone, with lead roofs. Its plan consists of a three-bay nave with a north aisle, a single-bay chancel with a north vestry, and a west tower. At the corners of the church and the tower are rusticated quoins. The tower is in three stages, the lower and middle stages being separated by a string course, and between the middle and top stages is a cornice. It contains round-headed and circular windows, and in the top stage are round-headed louvred bell openings flanked by Tuscan pilasters. It is surmounted by a lead cupola. At the east end of the church is a Venetian window, above which is a pedimented gable. Along the sides of the church are round-headed windows and, in the nave between these, are circular windows. In the middle of the south side is a porch supported by Tuscan pillars.
Interior
Between the nave and the north aisle is an arcade of round arches supported on square piers. The font consists of a marble baluster. Between the nave and chancel is a gilded wrought iron screen added by Banks. In the church are memorials to members of the Astley family. These include one to an earlier Sir John Astley who died in 1532. It is in alabaster and consists of two recumbent figures on a chest tomb. Another is to Sir Richard Astley who died in 1687. This consists of a standing figure between two seated wives, and is joined to the other monument by a frieze. Another monument is to a Lord Pigot who died in 1795 and to Sir Robert Pigot, 2nd Baronet who died the following year. Against the south wall of the nave is a medieval coffin lid.
External features
Around the church are three structures, each of which has been listed at Grade II. These consist of the walls, gates and gate piers to the northeast and south of the churchyard, a gate, gate piers and adjoining walls to the east of the churchyard, and gate piers and gates to the northeast of the chancel. The churchyard contains the war graves of two soldiers of World War I.
See also
Grade II* listed buildings in South Staffordshire
Listed buildings in Pattingham and Patshull
List of churches preserved by the Churches Conservation Trust in the English Midlands
References
12th-century church buildings in England
Churches completed in 1874
19th-century Church of England church buildings
Grade II* listed churches in Staffordshire
Church of England church buildings in Staffordshire
Georgian architecture in England
Churches preserved by the Churches Conservation Trust
|
Clargia is a monotypic moth genus of the family Erebidae. Its only species, Clargia bonema, is found in French Guiana. Both the genus and the species were first described by Schaus in 1916.
References
Calpinae
Monotypic moth genera
|
Punk Rock Confidential is the sixth full-length album by pop punk band The Queers and their first album released on Hopeless Records.
Background and recording
After the 1996 album Don't Back Down, The Queers went through changes, including founding member Joe King getting clean from drugs and alcohol, drummer Hugh O'Neill leaving due to health issues and bassist B-Face moving over to the Groovie Ghoulies. The lineup change also caused their longtime label Lookout! Records to drop them. With new members Geoff Useless and Rick Respectable, the band released Everything's O.K. EP which became their first release on Hopeless Records. The band followed that up by recording Punk Rock Confidential in Big Sound Studios, in Westbrook, ME and Sonic Iguana in Lafayette, IN. The liner notes for the album list the band as Joe Queer on guitar and vocals, Jon Cougar Concentration Camp members Dangerous Dave and Chris Cougar Concentration Camp (aka Chris Field) on guitars and bass respectively and Steve Stress on drums. Additionally, it expresses gratitude in particular to bass guitarist Jeff Useless.
Punk Rock Confidential Revisited
Due to issues with royalties, the band decided to re-record the album as they didn't have the rights to re-issue it So in 2018, Punk Rock Confidential Revisited was released on vinyl by Asian Man Records and CD by Rad Girlfriend Records.
Track listing
"Tamara Is a Punk" – 2:03
"Everything's Okay" – 2:12
"I Didn't Puke" (Scott “Tulu” Gildersleeve) – 1:05
"Mrs. Brown, You've Got an Ugly Daughter" (Song Title inspired by The Herman’s Hermits) – 2:48
"The Sun Always Shines Around You" – 3:05
"Rancid Motherfucker" – 1:51
"Punk Rock Confidential" – 1:45
"Today I Fell in Love" – 3:11
"Pretty Flamingo" (Manfred Mann) – 2:10
"Motherfucker" – 1:55
"Like a Parasite" (Ben “Weasel” Foster & Joe “Queer” King) – 2:52
"Idiot Savant" – 2:39
"I Enjoy Being a Boy" (The Banana Splits) – 3:30
"Don't Mess It Up" – 3:28
"Sayonara Sucker" – 3:40
"Punk Rock Confidential Revisited (hidden track)" - 0:53
Album cover
The cover is a colorized production photo from the film "Santo el Enmascarado de Plata vs. La invasión de los marcianos (El Santo vs. The Martian Invasion)." This was a vehicle for Mexican professional wrestler 'El Santo'.
Personnel
Joe Queer – Guitar, Lead Vocals
Dangerous Dave – Guitar, Vocals
Geoff Useless – Bass
Chris Fields – Drums
NOTE – Due to a royalty issue, Hopeless Records lists Chris Fields on Bass and Steve Stress on Drums even though they never actually saw any sort of royalty.
References
The Queers albums
1998 albums
Hopeless Records albums
|
Mohammad Saukat (born 7 November 1997) is an Indian footballer who plays as a defensive midfielder for I-League club NEROCA.
Club career
Early years
Born in Malerkotla, Punjab, Saukat joined Pune FC Academy as a trainee, his performances in the Junior I-League caught the eyes of Mohun Bagan who made no hesitations in signing him in their youth rank. He was made the Captain of the U-19 Team in the 2013-14 season.
Fateh Hyderabad A.F.C.
Saukat's first experience of senior football was granted to him by the newly assigned Fateh Hyderabad A.F.C. side in the 2015–16 I-League 2nd Division. Despite the team not making it to the final round, Saukat's performances attracted the recruiters, he was then offered a contract by Mohammedan Sporting Club for the following season.
Mohammedan Sporting Club
For the 2016, Kolkata League, Saukat was signed as a player by Mohammedan Sporting Club. He played four matches in the League helping the team to be the Runners' Up.
Gokulam Kerala F.C.
Saukat's first taste in the I-League was provided by the debutant club from Kerala, Gokulam Kerala FC. He just made one appearance in the I-League and was one of the shortlisted players in the ISL Draft, 2017.
Tollygunge Agragami FC
In July, 2018, Saukat signed for the Sahara Kolkata Premier League club Tollygunge Agragami where he played all their matches in the League.
Brigade Boys Club
In 2019, he moved to Nepal and signed with Martyr's Memorial A-Division League outfit Brigade Boys Club on a season-long deal.
See also
List of Indian football players in foreign leagues
References
External links
1997 births
Living people
Footballers from Punjab, India
Men's association football midfielders
Indian men's footballers
Gokulam Kerala FC players
Expatriate men's footballers in Nepal
Tollygunge Agragami FC players
|
```javascript
Synchronous File Write/Read in Node.js
Use conventional property names for error handling in Node.js
`process.nextTick()` callback pattern
Automatic compilation for Node with **Nodemon**
Manage child processes in **Node**
```
|
```smalltalk
using System;
using System.Collections.Generic;
namespace Algorithms.Knapsack;
/// <summary>
/// Dynamic Programming Knapsack solver.
/// </summary>
/// <typeparam name="T">Type of items in knapsack.</typeparam>
public class DynamicProgrammingKnapsackSolver<T>
{
/// <summary>
/// Returns the knapsack containing the items that
/// maximize value while not exceeding weight capacity.
/// </summary>
/// <param name="items">The list of items from which we select ones to be in the knapsack.</param>
/// <param name="capacity">
/// The maximum weight capacity of the knapsack
/// to be filled. Only integer values of this capacity are tried. If
/// a greater resolution is needed, multiply the
/// weights/capacity by a factor of 10.
/// </param>
/// <param name="weightSelector">
/// A function that returns the value of the specified item
/// from the <paramref name="items">items</paramref> list.
/// </param>
/// <param name="valueSelector">
/// A function that returns the weight of the specified item
/// from the <paramref name="items">items</paramref> list.
/// </param>
/// <returns>
/// The array of items that provides the maximum value of the
/// knapsack without exceeding the specified weight <paramref name="capacity">capacity</paramref>.
/// </returns>
public T[] Solve(T[] items, int capacity, Func<T, int> weightSelector, Func<T, double> valueSelector)
{
var cache = Tabulate(items, weightSelector, valueSelector, capacity);
return GetOptimalItems(items, weightSelector, cache, capacity);
}
private static T[] GetOptimalItems(T[] items, Func<T, int> weightSelector, double[,] cache, int capacity)
{
var currentCapacity = capacity;
var result = new List<T>();
for (var i = items.Length - 1; i >= 0; i--)
{
if (cache[i + 1, currentCapacity] > cache[i, currentCapacity])
{
var item = items[i];
result.Add(item);
currentCapacity -= weightSelector(item);
}
}
result.Reverse(); // we added items back to front
return result.ToArray();
}
private static double[,] Tabulate(
T[] items,
Func<T, int> weightSelector,
Func<T, double> valueSelector,
int maxCapacity)
{
// Store the incremental results in a bottom up manner
var n = items.Length;
var results = new double[n + 1, maxCapacity + 1];
for (var i = 0; i <= n; i++)
{
for (var w = 0; w <= maxCapacity; w++)
{
if (i == 0 || w == 0)
{
// If we have no items to take, or
// if we have no capacity in our knapsack
// we cannot possibly have any value
results[i, w] = 0;
}
else if (weightSelector(items[i - 1]) <= w)
{
// Decide if it is better to take or not take this item
var iut = items[i - 1]; // iut = Item under test
var vut = valueSelector(iut); // vut = Value of item under test
var wut = weightSelector(iut); // wut = Weight of item under test
var valueIfTaken = vut + results[i - 1, w - wut];
var valueIfNotTaken = results[i - 1, w];
results[i, w] = Math.Max(valueIfTaken, valueIfNotTaken);
}
else
{
// There is not enough room to take this item
results[i, w] = results[i - 1, w];
}
}
}
return results;
}
}
```
|
Korea Sinhung Trading Corporation (Chosongul: 조선신흥무역총회사) is a trading company in Pyongyang, North Korea. It is involved in seafood export and is also involved in the import of household appliances and furniture.The company registered the trademark "chotnun(첫눈,meaning first snow)"at the World Intellectual Property Organization in 2019.
Names
Old korean names were Choson sinhungmuyok sangsa(조선신흥무역상사,朝鮮新興貿易商社,name in the early 2000s.), Choson sinhung muyok hoesa(조선신흥무역회사,朝鮮新興貿易會社), and many others.
Leadership
The company was led by Om Kyong Chol or Om Kwang Chol in the early 2010s, who is part of the North Korean secret police.
Address
Tongan-dong Chung-guyok,Pyongyang.
See also
List of North Korean companies
Economy of North Korea
References
External links
Sinhung Trading's Naenara page
Retail companies of North Korea
|
```smalltalk
using FluentFTP.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Xunit;
using Xunit.Sdk;
namespace FluentFTP.Tests.Unit {
public class TimeoutTests {
private const int timeoutMillis = 2500;
private void ValidateTime(DateTime callStart, string methodName) {
var maxElapsedMillis = (timeoutMillis + 500);
if ((DateTime.Now - callStart).TotalMilliseconds > maxElapsedMillis) {
Assert.True(false, $"ConnectTimeout is being ignored with {methodName}() method!");
}
else {
Assert.True(true);
}
}
[Fact]
public void ConnectTimeout() {
var client = new FtpClient("test.github.com", new NetworkCredential("wrong", "password"));
client.Config.DataConnectionType = FtpDataConnectionType.PASVEX;
client.Config.ConnectTimeout = timeoutMillis;
var start = DateTime.Now;
try {
client.Connect();
Assert.True(false, "Connect succeeded. Was supposed to time out.");
}
catch (TimeoutException) {
ValidateTime(start, "Connect");
}
}
[Fact]
public async Task ConnectTimeoutAsync() {
var client = new AsyncFtpClient("test.github.com", new NetworkCredential("wrong", "password"));
client.Config.DataConnectionType = FtpDataConnectionType.PASVEX;
client.Config.ConnectTimeout = timeoutMillis;
var start = DateTime.Now;
try {
await client.Connect();
Assert.True(false, "Connect succeeded. Was supposed to time out.");
}
catch (TimeoutException) {
ValidateTime(start, "ConnectAsync");
}
catch (SocketException sockEx) {
if (sockEx.Message?.Contains("Operation canceled", StringComparison.OrdinalIgnoreCase) == true) {
ValidateTime(start, "ConnectAsync");
}
throw;
}
}
}
}
```
|
EP3 may refer to:
EP3 (Basement Jaxx EP)
EP3 (Kleptones EP)
EP3 (Pixies EP)
EP3 (Ringo Starr EP)
EP03, a Swedish electric locomotive used by the Polish railway operator PKP
Lockheed EP-3, an electronic surveillance turboprop aircraft
Milwaukee Road class EP-3, a U.S. electric locomotive used by the railway operator Milwaukee Road 1919-1957
Procyclin EP3, a trypanosome procyclin protein
Prostaglandin receptor EP3
The chassis code for the 2001-2005 Civic Si and Type R
See also
Episode III (disambiguation)
III (Orbital EP)
|
```ruby
require_relative "empty_directory"
class Bundler::Thor
module Actions
# Copies recursively the files from source directory to root directory.
# If any of the files finishes with .tt, it's considered to be a template
# and is placed in the destination without the extension .tt. If any
# empty directory is found, it's copied and all .empty_directory files are
# ignored. If any file name is wrapped within % signs, the text within
# the % signs will be executed as a method and replaced with the returned
# value. Let's suppose a doc directory with the following files:
#
# doc/
# components/.empty_directory
# README
# rdoc.rb.tt
# %app_name%.rb
#
# When invoked as:
#
# directory "doc"
#
# It will create a doc directory in the destination with the following
# files (assuming that the `app_name` method returns the value "blog"):
#
# doc/
# components/
# README
# rdoc.rb
# blog.rb
#
# <b>Encoded path note:</b> Since Bundler::Thor internals use Object#respond_to? to check if it can
# expand %something%, this `something` should be a public method in the class calling
# #directory. If a method is private, Bundler::Thor stack raises PrivateMethodEncodedError.
#
# ==== Parameters
# source<String>:: the relative path to the source root.
# destination<String>:: the relative path to the destination root.
# config<Hash>:: give :verbose => false to not log the status.
# If :recursive => false, does not look for paths recursively.
# If :mode => :preserve, preserve the file mode from the source.
# If :exclude_pattern => /regexp/, prevents copying files that match that regexp.
#
# ==== Examples
#
# directory "doc"
# directory "doc", "docs", :recursive => false
#
def directory(source, *args, &block)
config = args.last.is_a?(Hash) ? args.pop : {}
destination = args.first || source
action Directory.new(self, source, destination || source, config, &block)
end
class Directory < EmptyDirectory #:nodoc:
attr_reader :source
def initialize(base, source, destination = nil, config = {}, &block)
@source = File.expand_path(Dir[Util.escape_globs(base.find_in_source_paths(source.to_s))].first)
@block = block
super(base, destination, {:recursive => true}.merge(config))
end
def invoke!
base.empty_directory given_destination, config
execute!
end
def revoke!
execute!
end
protected
def execute!
lookup = Util.escape_globs(source)
lookup = config[:recursive] ? File.join(lookup, "**") : lookup
lookup = file_level_lookup(lookup)
files(lookup).sort.each do |file_source|
next if File.directory?(file_source)
next if config[:exclude_pattern] && file_source.match(config[:exclude_pattern])
file_destination = File.join(given_destination, file_source.gsub(source, "."))
file_destination.gsub!("/./", "/")
case file_source
when /\.empty_directory$/
dirname = File.dirname(file_destination).gsub(%r{/\.$}, "")
next if dirname == given_destination
base.empty_directory(dirname, config)
when /#{TEMPLATE_EXTNAME}$/
base.template(file_source, file_destination[0..-4], config, &@block)
else
base.copy_file(file_source, file_destination, config, &@block)
end
end
end
def file_level_lookup(previous_lookup)
File.join(previous_lookup, "*")
end
def files(lookup)
Dir.glob(lookup, File::FNM_DOTMATCH)
end
end
end
end
```
|
Cumidava (also Comidava, Komidava, ) was originally a Dacian settlement, and later a Roman military camp on the site of the modern city of Râşnov (15 km from Braşov) in Romania.
Etymology
After the Roman conquest of Dacia, the Dacian name Comidava was modified by the Latin writers to Cumidava. (It is common in the Late Latin inscriptions to express the letter "o" by "u", e.g. patrunus instead of patronus 'protector', and Latin rumpia instead of Greek ρομφαια (Rhomphaia) 'Thracian claymore / sword'.)
The name Comidava is a compound of dava 'town' and "comi". Scholars' opinions about the meaning of the Dacian word "Comi/Cumi" include:
'Desire, love'—a word explained by the ancient Iranian Kamya, with an obscure pronunciation of the "a". The term "Comi" is also contained in the name of the Dacian prince and priest Como-sicus
'Lovely' (Romanian Drăgăneşti)
Another town named Comidava / Cumidava was situated in the Remesiana's territory
History
Early references
Early references to Cumidava are made by the geographer Ptolemy in his Geographia, in the form Komidava ().
An inscription on stone dedicated to Julia Avita Mamaea, the mother of the Roman Emperor Alexander Severus (dated 222-235 AD), allows the localization of the Dacian settlement Cumidava in the area of present-day Râşnov.
The archaeological research at Râșnov was initiated in 1856 by Johann Michael Ackner and continued in 1939 by Macrea Mihail who also recorded the presence of Dacian pottery during the digs at the Rasnov Roman camp
The inscription found in 1939:
After Roman conquest, a part of the kingdom of Dacia was included in the Roman Empire. Septimius Severus (Roman emperor from 193 to 211 AD) pushed Dacia's eastern frontier approximately east of the Olt River (Limes Transalutanus), constructing a series of 14 camps, over a distance of cca. , beginning at Flămânda on the Danube and stretching northward to Cumidava (now Râșnov).
Cumidava had a military road link with Angustia (now Brețcu), the farthest east of the Roman campus in Dacia.
From a Dacian town to a Roman military castrum
The Roman military castrum Cumidava was identified at 4 km northwest of the city Râşnov, at the common border with the city of Vulcan.
Sinaia lead plates
Cumidava is mentioned also on the controversial Sinaia lead plates in the form Comidava, which is used as example to debunk the myth about them. According to the director of the Romanian Institute of Archaeology, Alexandru Vulpe, the tablets include only what was known before 1900, for example, the form Comidava from Ptolemy, although now it's known that the correct spelling is Cumidava, as found in 1942 in an inscription.
See also
Dacia
Roman Dacia
List of ancient cities in Dacia
Dacian davae
Notes
References
Further reading
External links
History of Rasnov/Cumidava
Dacian towns
Roman sites in Romania
Historic monuments in Brașov County
|
Ayoub Ouadrassi (Arabic:أيوب الودراسي) (born 23 May 1991) is a Qatari born-Moroccan footballer. He currently played for Muaither .
References
External links
Moroccan men's footballers
Qatari men's footballers
1991 births
Living people
Wydad AC players
Al-Gharafa SC players
Muaither SC players
Qatar Stars League players
Qatari Second Division players
Men's association football wingers
Moroccan emigrants to Qatar
Naturalised citizens of Qatar
Qatari people of Moroccan descent
|
Arnold Tartu (1 August 1910 Haljala Parish, Virumaa – 25 July 1986 Harku Selsoviet, Harju District) was an Estonian politician. He was a member of VI Riigikogu (its Chamber of Deputies).
References
1910 births
1986 deaths
Members of the Riigivolikogu
People from Haljala Parish
Burials at Pärnamäe Cemetery
|
```c++
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
==============================================================================*/
#include "tensorflow_serving/model_servers/test_util/server_core_test_util.h"
#include <memory>
#include <utility>
#include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow_serving/core/availability_preserving_policy.h"
#include "tensorflow_serving/core/test_util/fake_loader_source_adapter.h"
#include "tensorflow_serving/model_servers/model_platform_types.h"
#include "tensorflow_serving/model_servers/platform_config_util.h"
#include "tensorflow_serving/servables/tensorflow/saved_model_bundle_source_adapter.pb.h"
#include "tensorflow_serving/servables/tensorflow/session_bundle_config.pb.h"
#include "tensorflow_serving/test_util/test_util.h"
namespace tensorflow {
namespace serving {
namespace test_util {
namespace {
void AddSessionRunLoadThreadPool(SessionBundleConfig* const bundle_config) {
auto* const session_config = bundle_config->mutable_session_config();
session_config->add_session_inter_op_thread_pool();
// The second pool will be used for loading.
session_config->add_session_inter_op_thread_pool()->set_num_threads(4);
bundle_config->mutable_session_run_load_threadpool_index()->set_value(1);
}
} // namespace
Status CreateServerCore(const ModelServerConfig& config,
ServerCore::Options options,
std::unique_ptr<ServerCore>* server_core) {
options.model_server_config = config;
return ServerCore::Create(std::move(options), server_core);
}
Status CreateServerCore(const ModelServerConfig& config,
std::unique_ptr<ServerCore>* server_core) {
return CreateServerCore(config, ServerCoreTest::GetDefaultOptions(),
server_core);
}
ServerCore::Options ServerCoreTest::GetDefaultOptions() {
ServerCore::Options options;
options.file_system_poll_wait_seconds = 1;
// Reduce the number of initial load threads to be num_load_threads to avoid
// timing out in tests.
options.num_initial_load_threads = options.num_load_threads;
options.aspired_version_policy =
std::unique_ptr<AspiredVersionPolicy>(new AvailabilityPreservingPolicy);
options.custom_model_config_loader =
[](const ::google::protobuf::Any& any, EventBus<ServableState>* event_bus,
UniquePtrWithDeps<AspiredVersionsManager>* manager) -> Status {
return Status();
};
SessionBundleConfig bundle_config;
AddSessionRunLoadThreadPool(&bundle_config);
options.platform_config_map =
CreateTensorFlowPlatformConfigMap(bundle_config);
::google::protobuf::Any fake_source_adapter_config;
fake_source_adapter_config.PackFrom(
test_util::FakeLoaderSourceAdapterConfig());
(*(*options.platform_config_map.mutable_platform_configs())[kFakePlatform]
.mutable_source_adapter_config()) = fake_source_adapter_config;
return options;
}
ModelServerConfig ServerCoreTest::GetTestModelServerConfigForFakePlatform() {
ModelServerConfig config = GetTestModelServerConfigForTensorflowPlatform();
ModelConfig* model_config =
config.mutable_model_config_list()->mutable_config(0);
model_config->set_model_platform(kFakePlatform);
return config;
}
ModelServerConfig
ServerCoreTest::GetTestModelServerConfigForTensorflowPlatform() {
ModelServerConfig config;
auto model = config.mutable_model_config_list()->add_config();
model->set_name(kTestModelName);
if (GetTestType() == SAVED_MODEL) {
model->set_base_path(test_util::TensorflowTestSrcDirPath(
"/cc/saved_model/testdata/half_plus_two"));
} else {
model->set_base_path(test_util::TestSrcDirPath(
"/servables/tensorflow/google/testdata/half_plus_two"));
}
if (PrefixPathsWithURIScheme()) {
model->set_base_path(io::CreateURI("file", "", model->base_path()));
}
model->set_model_platform(kTensorFlowModelPlatform);
return config;
}
void ServerCoreTest::SwitchToHalfPlusTwoWith2Versions(
ModelServerConfig* config) {
CHECK_EQ(1, config->model_config_list().config().size());
auto model = config->mutable_model_config_list()->mutable_config(0);
if (GetTestType() == SAVED_MODEL) {
model->set_base_path(test_util::TestSrcDirPath(
"/servables/tensorflow/testdata/saved_model_half_plus_two_2_versions"));
} else {
model->set_base_path(test_util::TestSrcDirPath(
"/servables/tensorflow/google/testdata/half_plus_two_2_versions"));
}
// Request loading both versions simultaneously.
model->clear_model_version_policy();
model->mutable_model_version_policy()->mutable_all();
if (PrefixPathsWithURIScheme()) {
model->set_base_path(io::CreateURI("file", "", model->base_path()));
}
}
Status ServerCoreTest::CreateServerCore(
const ModelServerConfig& config, ServerCore::Options options,
std::unique_ptr<ServerCore>* server_core) {
return test_util::CreateServerCore(config, std::move(options), server_core);
}
} // namespace test_util
} // namespace serving
} // namespace tensorflow
```
|
The Desert Land Act is a United States federal law which was passed by the United States Congress on March 3, 1877, to encourage and promote the economic development of the arid and semiarid public lands within certain states of the Western states. Through the Act, United States citizens, or those declaring an intent to become a citizen, over the age of 21 may apply for a desert-land entry to irrigate and reclaim the land. This act amended the Homestead Act of 1862. Originally the act offered , although currently only 320 acres may be claimed.
A precursor act in 1875, called the Lassen County Act, was pushed by Representative John K. Luttrell of the northeastern district of California, who wanted to speed up privatization of land east of the Sierra. This act enlarged the maximum allowable purchase for settlers from 160 acres to 640 acres. With the backing of Land Commissioner J. A. Williamson, Luttrell and Senator Aaron A. Sargent co-sponsored the Desert act which extended the Lassen County Act to cover several arid states and other regions of California.
Intentions
The original intent of the Desert Land Act was to instigate growth in the West by incentivizing people to move out West in the late 19th century and develop irrigation systems that would transform the land into usable space. While it encouraged growth, it also played a large role in water rights of the era. While settlers decided to move West to spread irrigation, rather than use the land solely for farming or cattle, it created a new dilemma for settlers as to how to use and share the water, be it on a communal or an individual basis. While many irrigation systems were set up communally, that eventually led to private water companies that owned large irrigation systems, which were built independently without consulting proper engineers.
Outcomes
Although the Desert Land Act was partly based on the Homestead Act and the Preemption Act (1841), it did not contain a key provision of those acts, the residence requirement. While the claimant had to improve the land, the claimant did not need to live on the land while the improvements were made. In the end, that led to a significant amount of fraud, and land speculation companies acquired tens of thousands of acres of California land by hiring "dummy entrymen" to make false claims of settlement.
Well known areas that began as land patented under the Desert Land Act include the Salt River in Arizona, the Imperial Valley in California, the Snake River in Idaho, Gallatin, Montana, and Yakima, Washington. Many of these communities facilitated further growth through the help of the Reclamation Act of 1902.
The peak of growth of these areas can be tracked by three separate eras prior to the current era: 1877–1887, 1888–1893, and 1893–1910.
1877–1887
The first decade after the Desert Land Act was passed was well known for fraudulent activity, especially by cattle producers. The era saw its end after a decline in the cattle industry.
1888–1893
The second era of the Desert Land Act saw a significant drop in fraudulent activity after an amendment to the Act that included stricter regulations and checks for irrigation systems, however was not entirely absent of fraudulent land ownership. The settlers were then required to submit maps and plans of irrigation to prevent violation of the act. Other amendatory acts to the law included encouraging communal placement of irrigation systems, and defined the progress of reclamation in the amount spent on the systems. The time period ended with the Panic of 1893.
1893–1910
The last era of the Desert Land Act began as the interest in irrigation and migration increased following the prosperity after the Depression of 1893. The last year of the era marks the peak of Desert Land Act original entries, over 15,000 in one year.
After 1910
By 1920, nearly all present irrigation systems had been in place in all lands grown in the West from the act.
See also
Great American Desert
References
1877 in American law
44th United States Congress
United States federal public land legislation
Settlement schemes in the United States
History of the American West
|
Anna-Maria Sieklucka ( ; born 31 May 1992) is a Polish actress. She is known for her leading role in the erotic drama film 365 Days (2020).
Early life
Sieklucka was born in Lublin, the largest city in eastern Poland. Her father, Jerzy Antoni Sieklucki, is a lawyer. She studied at the Wrocław-based Faculty of Puppetry of AST National Academy of Theatre Arts and graduated in 2018. She is able to speak fluent Polish, English, French and German.
Career
In October 2019, she appeared in one episode of the Polish television series Na dobre i na złe, focused around the life of paramedics and hospital staff.
She made her film debut playing Laura Biel, opposite Michele Morrone, in the erotic drama film 365 Days (2020) and the sequel. She described filming as a challenge, and was initially hesitant to accept the role after reading the script. The movie was met with very negative critical reception but was popular in many countries all over the world, according to Newsweek it was the most-watched Netflix film in 2020. Sieklucka was nominated for a Golden Raspberry Award for Worst Actress for her performance.
Filmography
Film
Television
References
External links
21st-century Polish actresses
Polish film actresses
Polish television actresses
Living people
Actors from Lublin
1992 births
|
Anania lippensi is a moth in the family Crambidae. It was described by Koen V. N. Maes in 1997. It is found in Cameroon.
References
Moths described in 1997
Pyraustinae
Moths of Africa
|
```python
# coding: utf-8
"""
LINE Messaging API(Insight)
This document describes LINE Messaging API(Insight). # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (path_to_url
Do not edit the class manually.
"""
import io
import json
import logging
import re
import ssl
import aiohttp
from urllib.parse import urlencode, quote_plus
from linebot.v3.insight.exceptions import ApiException, ApiValueError
logger = logging.getLogger(__name__)
class RESTResponse(io.IOBase):
def __init__(self, resp, data):
self.aiohttp_response = resp
self.status = resp.status
self.reason = resp.reason
self.data = data
def getheaders(self):
"""Returns a CIMultiDictProxy of the response headers."""
return self.aiohttp_response.headers
def getheader(self, name, default=None):
"""Returns a given response header."""
return self.aiohttp_response.headers.get(name, default)
class RESTClientObject(object):
def __init__(self, configuration, pools_size=4, maxsize=None):
# maxsize is number of requests to host that are allowed in parallel
if maxsize is None:
maxsize = configuration.connection_pool_maxsize
ssl_context = ssl.create_default_context(cafile=configuration.ssl_ca_cert)
if configuration.cert_file:
ssl_context.load_cert_chain(
configuration.cert_file, keyfile=configuration.key_file
)
if not configuration.verify_ssl:
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
connector = aiohttp.TCPConnector(
limit=maxsize,
ssl=ssl_context
)
self.proxy = configuration.proxy
self.proxy_headers = configuration.proxy_headers
# https pool manager
self.pool_manager = aiohttp.ClientSession(
connector=connector,
trust_env=True
)
async def close(self):
await self.pool_manager.close()
async def request(self, method, url, query_params=None, headers=None,
body=None, post_params=None, _preload_content=True,
_request_timeout=None):
"""Execute request
:param method: http request method
:param url: http request url
:param query_params: query parameters in the url
:param headers: http request headers
:param body: request json body, for `application/json`
:param post_params: request post parameters,
`application/x-www-form-urlencoded`
and `multipart/form-data`
:param _preload_content: this is a non-applicable field for
the AiohttpClient.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
"""
method = method.upper()
assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
'PATCH', 'OPTIONS']
if post_params and body:
raise ApiValueError(
"body parameter cannot be used with post_params parameter."
)
post_params = post_params or {}
headers = headers or {}
# url already contains the URL query string
# so reset query_params to empty dict
query_params = {}
timeout = _request_timeout or 5 * 60
if 'Content-Type' not in headers:
headers['Content-Type'] = 'application/json'
args = {
"method": method,
"url": url,
"timeout": timeout,
"headers": headers
}
if self.proxy:
args["proxy"] = self.proxy
if self.proxy_headers:
args["proxy_headers"] = self.proxy_headers
if query_params:
args["url"] += '?' + urlencode(query_params)
# For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
if re.search('json', headers['Content-Type'], re.IGNORECASE):
if body is not None:
body = json.dumps(body)
args["data"] = body
elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
args["data"] = aiohttp.FormData(post_params)
elif headers['Content-Type'] == 'multipart/form-data':
# must del headers['Content-Type'], or the correct
# Content-Type which generated by aiohttp
del headers['Content-Type']
data = aiohttp.FormData()
for param in post_params:
k, v = param
if isinstance(v, tuple) and len(v) == 3:
data.add_field(k,
value=v[1],
filename=v[0],
content_type=v[2])
else:
data.add_field(k, v)
args["data"] = data
# Pass a `bytes` parameter directly in the body to support
# other content types than Json when `body` argument is provided
# in serialized form
elif isinstance(body, bytes):
args["data"] = body
else:
# Cannot generate the request from given parameters
msg = """Cannot prepare a request message for provided
arguments. Please check that your arguments match
declared content type."""
raise ApiException(status=0, reason=msg)
r = await self.pool_manager.request(**args)
if _preload_content:
data = await r.read()
r = RESTResponse(r, data)
# log response body
logger.debug("response body: %s", r.data)
if not 200 <= r.status <= 299:
raise ApiException(http_resp=r)
return r
async def get_request(self, url, headers=None, query_params=None,
_preload_content=True, _request_timeout=None):
return (await self.request("GET", url,
headers=headers,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
query_params=query_params))
async def head_request(self, url, headers=None, query_params=None,
_preload_content=True, _request_timeout=None):
return (await self.request("HEAD", url,
headers=headers,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
query_params=query_params))
async def options_request(self, url, headers=None, query_params=None,
post_params=None, body=None, _preload_content=True,
_request_timeout=None):
return (await self.request("OPTIONS", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body))
async def delete_request(self, url, headers=None, query_params=None, body=None,
_preload_content=True, _request_timeout=None):
return (await self.request("DELETE", url,
headers=headers,
query_params=query_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body))
async def post_request(self, url, headers=None, query_params=None,
post_params=None, body=None, _preload_content=True,
_request_timeout=None):
return (await self.request("POST", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body))
async def put_request(self, url, headers=None, query_params=None, post_params=None,
body=None, _preload_content=True, _request_timeout=None):
return (await self.request("PUT", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body))
async def patch_request(self, url, headers=None, query_params=None,
post_params=None, body=None, _preload_content=True,
_request_timeout=None):
return (await self.request("PATCH", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body))
```
|
```php
<?php
return [
'add_new_folder' => 'Afegir nova carpeta',
'audio_support' => 'El seu navegador no admet arxius d\'audio',
'create_new_folder' => 'Crear nova carpeta',
'delete_folder_question' => 'Eliminar una carpeta eliminar tots els arxius i carpetes de dins',
'destination_folder' => 'Carpeta de dest',
'drag_drop_info' => 'Arrossega i deixa anar arxius o faci clic a baix per a carregar',
'error_already_exists' => 'Ho sento, ja exiteix un arxiu/carpeta amb aquest nom',
'error_creating_dir' => 'Ho sento, alguna cosa sembla haver anat malament amb la creaci del directori, si us plau revisi els seus permisos',
'error_deleting_file' => 'Ho sento, alguna cosa sembla haver anat malament amb en l\'esborrat de l\'arxiu, si us plau revisi els seus permisos',
'error_deleting_folder' => 'Ho sento, alguna cosa sembla haver fallat en eliminar aquesta carpeta, si us plau revisi els seus permisos ',
'error_may_exist' => 'Pot ser que ja existeixi un arxiu o carpeta amb aquest nom. Si us plau, tria un altre nom o esborri l\'altre arxiu.',
'error_moving' => 'Ho sento, sembla que hi ha un problema en moure aquest arxivo/carpeta, si us plau assegura\'t de tenir els permisos correctes.',
'error_uploading' => 'Error desconegut',
'folder_exists_already' => 'Ho sento, la carpeta ja existeix, elimina la carpeta si la vols tornar a crear',
'image_does_not_exist' => 'La imatge no existeix',
'image_removed' => 'Imatge eliminada',
'library' => 'Mediateca',
'loading' => 'CARREGANT ARXIUS MULTIMEDIA',
'move_file_folder' => 'Moure Arxiu/Carpeta',
'new_file_folder' => 'Renombrar arxiu/carpeta',
'new_folder_name' => 'Nom de la nova carpeta',
'no_files_here' => 'No hi ha arxius aqu.',
'no_files_in_folder' => 'No hi ha arxius en aquesta carpeta.',
'nothing_selected' => 'No s\'ha seleccionat cap arxiu o carpeta',
'rename_file_folder' => 'Renombrar arxiu/carpeta',
'success_uploaded_file' => 'Nou arxiu pujat correctament!',
'success_uploading' => 'Imatge carregada exitosamente!',
'uploading_wrong_type' => 'Fallo de crrega: format de arxiu no soportat, o massa gran!',
'video_support' => 'El teu navegador no soporta la etiqueta de vdeo.',
'crop' => 'Tallar',
'crop_and_create' => 'Tallar & Crear',
'crop_override_confirm' => 'S\'anular la imatge original, estas segur?',
'crop_image' => 'Tallar imatge',
'success_crop_image' => 'Imatge tallada correctament',
'height' => 'Alt: ',
'width' => 'Ample: ',
];
```
|
Ditylus caeruleus is a species of false blister beetle in the family Oedemeridae. It is found in North America.
References
Further reading
Oedemeridae
Articles created by Qbugbot
Beetles described in 1838
|
Lou Dematteis is an American photographer and filmmaker whose work focuses on documenting social, environmental and political conflict and their consequences in the United States and around the world.
Biography
Born in Palo Alto, California, Dematteis grew up on the San Francisco Peninsula. He graduated in political science from the University of San Francisco and studied photography at the De Young Museum Art School, San Francisco.
Dematteis has spent much of the last thirty years working in Mexico, the Caribbean, Central and South America, Europe, and Asia. A former staff photographer with Reuters, Dematteis was based in Managua, Nicaragua, during the height of the Contra war. In 1986, his photographs of downed U.S. soldier-of-fortune Eugene Hasenfus received international recognition, including a citation from the World Press Photo competition and inclusion in the New York Times''' and National Press Photographers Association's Pictures of the Year. His photographic anthology, Nicaragua: A Decade of Revolution, was published by Norton in 1991. In 1993, he traveled to the Ecuadorian Amazon to document the damaging effects of Texaco's oil exploitation and resultant environmental pollution. He has returned several times to continue this documentation and has most recently focused on the health impacts on the people of the Amazon as a result of Texaco's toxic contamination. His work from Ecuador can be seen in the exhibit Crude Reflections: ChevronTexaco's Rainforest Legacy and online at Chevron Toxico.
Dematteis's photos have been widely exhibited in the United States and abroad, including showings at the Ansel Adams Center in San Francisco and the Photographers' Gallery in London. In 1992, he directed and participated in the first exhibit by U.S. photographers in Vietnam since the end of the war; and in fall 1994, he presented the first exhibit by Vietnamese photographers to show in the United States as well.
His work has been exhibited on four continents and in 2007 he received a grant from the Open Society Institute to exhibit his work from the Ecuadoran Amazon in the communities in Ecuador most affected by the contamination left in the region as a result of Texaco's oil extraction practices. His bilingual book on the subject, Crude Reflections/Cruda Realidad was published in 2008 by City Lights Books. Dematteis lives and works in San Francisco.
Dematteis works in film as well as still photography. His award-winning documentary Crimebuster: A Son's Search for His Father, which he produced and directed, was shown on Public Television nationwide beginning in June 2012. His latest film project, the film noir narrative feature The Other Barrio premiered as the Centerpiece Film at the San Francisco Indie Fest at the Brava Theater in San Francisco on February 8, 2015. Produced by Dematteis and Dante Betteo, The Other Barrio is a noir feature film directed by Betteo based on a story by San Francisco Poet Laureate Alejandro Murguia. It is set in San Francisco's Latino Mission District and addresses the timely issues of fires, gentrification and the displacement of low-income communities.
Major works
Nicaragua: A Decade of Revolution (Norton, 1991)
A Portrait of Viet Nam (Norton, 1996)
Crude Reflections (City Lights, 2008) Crimebuster: A Son's Search for His Father—Feature documentary film (2012).The Other Barrio—Narrative feature film, premiere February 2015
ExhibitionsWar on Nicaragua, Eye Gallery, San Francisco 1987; Alternative Museum, New York, 1988; Ansel Adams Center, San Francisco, 1990; The Photographers' Gallery, LondonA Portrait of Viet Nam, Gallery Saigon, Ho Chi Minh City, 1999; Foreign Correspondents Club of Thailand, Bangkok, 1999; Hemphill Gallery, Washington, D.C., 2002Crude Reflections: ChevronTexaco's Rainforest Legacy'', Mudd's Environmental Center, San Ramon, California, 2005; San Francisco Arts Commission Gallery, 2005; Bolívar House, Center for Latin America Studies, Stanford University, Palo Alto, California, 2006; St. Mary's College, Moraga, California, 2006
References
External links
Justicia Now! documentary on Chevron Texaco
American photojournalists
American documentary filmmakers
American film producers
Journalists from California
Filmmakers from California
Iran–Contra affair
University of San Francisco alumni
People from Palo Alto, California
Year of birth missing (living people)
Living people
|
```go
package migrations
import (
"strings"
"github.com/cozy/cozy-stack/model/account"
"github.com/cozy/cozy-stack/model/app"
"github.com/cozy/cozy-stack/model/bitwarden"
"github.com/cozy/cozy-stack/model/bitwarden/settings"
"github.com/cozy/cozy-stack/model/instance"
"github.com/cozy/cozy-stack/model/job"
"github.com/cozy/cozy-stack/pkg/config/config"
"github.com/cozy/cozy-stack/pkg/consts"
"github.com/cozy/cozy-stack/pkg/couchdb"
"github.com/cozy/cozy-stack/pkg/crypto"
"github.com/cozy/cozy-stack/pkg/logger"
"github.com/cozy/cozy-stack/pkg/metadata"
multierror "github.com/hashicorp/go-multierror"
)
type vaultReference struct {
ID string `json:"_id"`
Type string `json:"_type"`
Protocol string `json:"_protocol"`
}
func isAdditionalField(fieldName string) bool {
return !(fieldName == "login" ||
fieldName == "password" ||
fieldName == "advancedFields")
}
// Builds a cipher from an io.cozy.account
//
// A raw JSONDoc is used to be able to access auth.fields
func buildCipher(orgKey []byte, manifest *app.KonnManifest, account couchdb.JSONDoc, url string, log *logger.Entry) (*bitwarden.Cipher, error) {
log.Infof("Building ciphers...")
auth, _ := account.M["auth"].(map[string]interface{})
username, _ := auth["login"].(string)
password, _ := auth["password"].(string)
email, _ := auth["email"].(string)
// Special case if the email field is used instead of login
if username == "" && email != "" {
username = email
}
key := orgKey[:32]
hmac := orgKey[32:]
ivURL := crypto.GenerateRandomBytes(16)
encURL, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(url), ivURL)
if err != nil {
return nil, err
}
u := bitwarden.LoginURI{URI: encURL, Match: nil}
uris := []bitwarden.LoginURI{u}
ivName := crypto.GenerateRandomBytes(16)
encName, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(manifest.Name()), ivName)
if err != nil {
return nil, err
}
ivUsername := crypto.GenerateRandomBytes(16)
encUsername, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(username), ivUsername)
if err != nil {
return nil, err
}
ivPassword := crypto.GenerateRandomBytes(16)
encPassword, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(password), ivPassword)
if err != nil {
return nil, err
}
login := &bitwarden.LoginData{
Username: encUsername,
Password: encPassword,
URIs: uris,
}
md := metadata.New()
md.DocTypeVersion = bitwarden.DocTypeVersion
bitwardenFields := make([]bitwarden.Field, 0)
for name, rawValue := range auth {
value, ok := rawValue.(string)
if !ok {
continue
}
if !isAdditionalField(name) {
continue
}
ivName := crypto.GenerateRandomBytes(16)
encName, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(name), ivName)
if err != nil {
return nil, err
}
ivValue := crypto.GenerateRandomBytes(16)
encValue, err := crypto.EncryptWithAES256HMAC(key, hmac, []byte(value), ivValue)
if err != nil {
return nil, err
}
field := bitwarden.Field{
Name: encName,
Value: encValue,
Type: bitwarden.FieldTypeText,
}
bitwardenFields = append(bitwardenFields, field)
}
c := bitwarden.Cipher{
Type: bitwarden.LoginType,
Name: encName,
Login: login,
SharedWithCozy: true,
Metadata: md,
Fields: bitwardenFields,
}
return &c, nil
}
func getCipherLinkFromManifest(manifest *app.KonnManifest) (string, error) {
link, ok := manifest.VendorLink().(string)
if !ok {
return "", nil
}
link = strings.Trim(link, "'")
return link, nil
}
func updateSettings(inst *instance.Instance, attempt int, log *logger.Entry) error {
log.Infof("Updating bitwarden settings after migration...")
// Reload the setting in case the revision changed
setting, err := settings.Get(inst)
if err != nil {
return err
}
// This flag is checked at the extension pre-login to run the migration or not
setting.ExtensionInstalled = true
err = settings.UpdateRevisionDate(inst, setting)
if err != nil {
if couchdb.IsConflictError(err) && attempt < 2 {
return updateSettings(inst, attempt+1, log)
}
}
return nil
}
func addCipherRelationshipToAccount(acc couchdb.JSONDoc, cipher *bitwarden.Cipher) {
vRef := vaultReference{
ID: cipher.ID(),
Type: consts.BitwardenCiphers,
Protocol: consts.BitwardenProtocol,
}
relationships, ok := acc.M["relationships"].(map[string]interface{})
if !ok {
relationships = make(map[string]interface{})
}
rel := map[string]vaultReference{"data": vRef}
relationships[consts.BitwardenCipherRelationship] = rel
acc.M["relationships"] = relationships
}
// Migrates all the encrypted accounts to Bitwarden ciphers.
// It decrypts each account, reencrypt the fields with the organization key,
// and save it in the ciphers database.
func migrateAccountsToOrganization(domain string) error {
inst, err := instance.Get(domain)
if err != nil {
return err
}
mu := config.Lock().ReadWrite(inst, "migrate-accounts")
if err := mu.Lock(); err != nil {
return err
}
defer mu.Unlock()
log := inst.Logger().WithNamespace("migration")
setting, err := settings.Get(inst)
if err != nil {
return err
}
if setting.ExtensionInstalled {
// The migration has already been run
return nil
}
// Get org key
if err := setting.EnsureCozyOrganization(inst); err != nil {
return err
}
orgKey, err := setting.OrganizationKey()
if err != nil {
return err
}
// Iterate over all triggers to get the konnectors with the associated account
jobsSystem := job.System()
triggers, err := jobsSystem.GetAllTriggers(inst)
if err != nil {
return err
}
var msg struct {
Account string `json:"account"`
Slug string `json:"konnector"`
}
var errm error
for _, t := range triggers {
if t.Infos().WorkerType != "konnector" {
continue
}
err := t.Infos().Message.Unmarshal(&msg)
if err != nil || msg.Account == "" || msg.Slug == "" {
continue
}
manifest, err := app.GetKonnectorBySlug(inst, msg.Slug)
if err != nil {
log.Warnf("Could not get manifest for %s", msg.Slug)
continue
}
link, err := getCipherLinkFromManifest(manifest)
if err != nil {
errm = multierror.Append(errm, err)
continue
}
if link == "" {
log.Warnf("No vendor_link in manifest for %s", msg.Slug)
continue
}
var accJSON couchdb.JSONDoc
if err := couchdb.GetDoc(inst, consts.Accounts, msg.Account, &accJSON); err != nil {
errm = multierror.Append(errm, err)
continue
}
accJSON.Type = consts.Accounts
account.Decrypt(accJSON)
cipher, err := buildCipher(orgKey, manifest, accJSON, link, log)
if err != nil {
errm = multierror.Append(errm, err)
continue
}
if err := couchdb.CreateDoc(inst, cipher); err != nil {
errm = multierror.Append(errm, err)
continue
}
addCipherRelationshipToAccount(accJSON, cipher)
account.Encrypt(accJSON)
log.Infof("Updating doc %s", accJSON)
if err := couchdb.UpdateDoc(inst, &accJSON); err != nil {
errm = multierror.Append(errm, err)
continue
}
}
err = updateSettings(inst, 0, log)
if err != nil {
errm = multierror.Append(errm, err)
}
return errm
}
```
|
```sqlpl
--
--
-- 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.
--
-- Script to delete a user from the database.
-- Ignore warnings like :username is not a member of role readonly/write.
REVOKE readonly FROM :username;
REVOKE readwrite FROM :username;
DROP USER :username;
```
|
```html
<div ng-controller='StatisticsCtrl'>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<bar-chart
data="stats.hashtagDateFreq"
max="7"
title="Top Hashtags by day" >
</bar-chart>
</div>
</div>
<div class="row">
<div class="col-md-4 text-center">
</div>
<div class="col-md-4 text-center">
<a class="btn btn-primary btn-lg " ng-href="{{stats.userId}}/bubbles/{{stats.wallId}}" >
<svg xmlns="path_to_url" fill="#ffffff" height="15" viewBox="0 0 24 24" width="15">
<path d="M0 0h24v24H0z" fill="none"/>
<circle cx="7.2" cy="14.4" r="3.2"/>
<circle cx="14.8" cy="18" r="2"/>
<circle cx="15.2" cy="8.8" r="4.8"/>
</svg>
Go to Bubble Charts</a>
</div>
</div>
</div>
```
|
```c++
/*
* GLESProfileCaps.cpp
*
*/
#include "../GLRenderingCaps.h"
#include "../GLProfile.h"
#include "../GLTypes.h"
#include "../Ext/GLExtensions.h"
#include "../Ext/GLExtensionRegistry.h"
#include "../../../Core/CoreUtils.h"
#include <cstdint>
#include <limits>
namespace LLGL
{
static std::int32_t GLGetInt(GLenum param)
{
GLint attr = 0;
glGetIntegerv(param, &attr);
return attr;
}
static std::uint32_t GLGetUInt(GLenum param)
{
return static_cast<std::uint32_t>(GLGetInt(param));
};
static std::uint32_t GLGetUIntIndexed(GLenum param, GLuint index)
{
GLint attr = 0;
if (HasExtension(GLExt::EXT_draw_buffers2))
glGetIntegeri_v(param, index, &attr);
return static_cast<std::uint32_t>(attr);
};
static float GLGetFloat(GLenum param)
{
GLfloat attr = 0.0f;
glGetFloatv(param, &attr);
return attr;
}
// Returns the GLES version in the ESSL version format (e.g. 200 for GLES 2.0, 320 for GLES 3.2)
static GLint GetGLESVersion()
{
GLint major = 0, minor = 0;
glGetIntegerv(GL_MAJOR_VERSION, &major);
glGetIntegerv(GL_MINOR_VERSION, &minor);
return (major * 100 + minor * 10);
}
static std::vector<ShadingLanguage> GLQueryShadingLanguages(GLint version)
{
std::vector<ShadingLanguage> languages;
/* Add supported GLSL versions */
languages.push_back(ShadingLanguage::ESSL);
if (version >= 200) { languages.push_back(ShadingLanguage::ESSL_100); }
if (version >= 300) { languages.push_back(ShadingLanguage::ESSL_300); }
if (version >= 310) { languages.push_back(ShadingLanguage::ESSL_310); }
if (version >= 320) { languages.push_back(ShadingLanguage::ESSL_320); }
return languages;
}
//TODO
static std::vector<Format> GetDefaultSupportedGLTextureFormats()
{
return
{
Format::A8UNorm,
Format::R8UNorm, Format::R8SNorm, Format::R8UInt, Format::R8SInt,
Format::R16UNorm, Format::R16SNorm, Format::R16UInt, Format::R16SInt, Format::R16Float,
Format::R32UInt, Format::R32SInt, Format::R32Float,
Format::RG8UNorm, Format::RG8SNorm, Format::RG8UInt, Format::RG8SInt,
Format::RG16UNorm, Format::RG16SNorm, Format::RG16UInt, Format::RG16SInt, Format::RG16Float,
Format::RG32UInt, Format::RG32SInt, Format::RG32Float,
Format::RGB8UNorm, Format::RGB8SNorm, Format::RGB8UInt, Format::RGB8SInt,
Format::RGB16UNorm, Format::RGB16SNorm, Format::RGB16UInt, Format::RGB16SInt, Format::RGB16Float,
Format::RGB32UInt, Format::RGB32SInt, Format::RGB32Float,
Format::RGBA8UNorm, Format::RGBA8SNorm, Format::RGBA8UInt, Format::RGBA8SInt,
Format::RGBA16UNorm, Format::RGBA16SNorm, Format::RGBA16UInt, Format::RGBA16SInt, Format::RGBA16Float,
Format::RGBA32UInt, Format::RGBA32SInt, Format::RGBA32Float,
Format::BGRA8UNorm, Format::BGRA8UNorm_sRGB, Format::BGRA8SNorm, Format::BGRA8UInt, Format::BGRA8SInt,
Format::D16UNorm, Format::D32Float, Format::D24UNormS8UInt, Format::D32FloatS8X24UInt,
};
}
static void GLGetRenderingAttribs(RenderingCapabilities& caps, GLint version)
{
/* Set fixed states for this renderer */
caps.screenOrigin = ScreenOrigin::LowerLeft;
caps.clippingRange = ClippingRange::MinusOneToOne;
caps.shadingLanguages = GLQueryShadingLanguages(version);
}
static void GLGetSupportedTextureFormats(std::vector<Format>& textureFormats)
{
textureFormats = GetDefaultSupportedGLTextureFormats();
RemoveAllFromListIf(
textureFormats,
[](Format format) -> bool
{
if (auto internalformat = GLTypes::MapOrZero(format))
{
GLint supported = 0;
GLProfile::GetInternalformativ(GL_TEXTURE_2D, internalformat, GL_INTERNALFORMAT_SUPPORTED, 1, &supported);
return (supported == GL_FALSE);
}
return true;
}
);
const auto numCompressedTexFormats = GLGetUInt(GL_NUM_COMPRESSED_TEXTURE_FORMATS);
std::vector<GLint> compressedTexFormats(numCompressedTexFormats);
glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, compressedTexFormats.data());
for (GLint internalFormat : compressedTexFormats)
{
const Format format = GLTypes::UnmapFormat(internalFormat);
if (format != Format::Undefined)
textureFormats.push_back(format);
}
}
static void GLGetSupportedFeatures(RenderingFeatures& features, GLint version)
{
/* Query all boolean capabilies by their respective OpenGL extension */
features.hasRenderTargets = true; // GLES 2.0
features.has3DTextures = true; // GLES 2.0
features.hasCubeTextures = true; // GLES 2.0
features.hasArrayTextures = true; // GLES 2.0
features.hasCubeArrayTextures = (version >= 320); // GLES 3.2
features.hasMultiSampleTextures = (version >= 310); // GLES 3.1
features.hasTextureViews = false;
features.hasTextureViewSwizzle = false;
features.hasBufferViews = (version >= 300); // GLES 3.0
features.hasConstantBuffers = (version >= 300); // GLES 3.0
features.hasStorageBuffers = (version >= 300); // GLES 3.0
features.hasGeometryShaders = (version >= 320); // GLES 3.2
features.hasTessellationShaders = (version >= 320); // GLES 3.2
features.hasTessellatorStage = (version >= 320); // GLES 3.2
features.hasComputeShaders = (version >= 310); // GLES 3.1
features.hasInstancing = (version >= 300); // GLES 3.0
features.hasOffsetInstancing = false;
features.hasIndirectDrawing = (version >= 310); // GLES 3.1
features.hasViewportArrays = false;
features.hasConservativeRasterization = false;
features.hasStreamOutputs = (version >= 300); // GLES 3.0
features.hasLogicOp = false;
features.hasPipelineCaching = (version >= 300); // GLES 3.0
features.hasPipelineStatistics = false;
features.hasRenderCondition = false;
}
static void GLGetFeatureLimits(RenderingLimits& limits, GLint version)
{
/* Determine minimal line width range for both aliased and smooth lines */
GLfloat aliasedLineRange[2];
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, aliasedLineRange);
//limits.lineWidthRange[0] = ???
//limits.lineWidthRange[1] = ???
/* Query integral attributes */
limits.maxTextureArrayLayers = GLGetUInt(GL_MAX_ARRAY_TEXTURE_LAYERS);
limits.maxColorAttachments = GLGetUInt(GL_MAX_DRAW_BUFFERS);
//limits.maxPatchVertices = ???
//limits.maxAnisotropy = ???
#ifdef GL_ES_VERSION_3_1
limits.maxComputeShaderWorkGroups[0] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 0);
limits.maxComputeShaderWorkGroups[1] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 1);
limits.maxComputeShaderWorkGroups[2] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 2);
limits.maxComputeShaderWorkGroupSize[0] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 0);
limits.maxComputeShaderWorkGroupSize[1] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 1);
limits.maxComputeShaderWorkGroupSize[2] = GLGetUIntIndexed(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 2);
#endif
limits.minConstantBufferAlignment = GLGetUInt(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT);
#ifdef GL_ES_VERSION_3_1
limits.minSampledBufferAlignment = GLGetUInt(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT);
limits.minStorageBufferAlignment = limits.minSampledBufferAlignment; // Use SSBO for both sampled and storage buffers
#endif
/* Query viewport limits */
limits.maxViewports = 1;
GLint maxViewportDims[2];
glGetIntegerv(GL_MAX_VIEWPORT_DIMS, maxViewportDims);
limits.maxViewportSize[0] = static_cast<std::uint32_t>(maxViewportDims[0]);
limits.maxViewportSize[1] = static_cast<std::uint32_t>(maxViewportDims[1]);
/* Determine maximum buffer size to maximum value for <GLsizei> (used in 'glBufferData') */
limits.maxBufferSize = static_cast<std::uint64_t>(std::numeric_limits<GLsizeiptr>::max());
limits.maxConstantBufferSize = static_cast<std::uint64_t>(GLGetUInt(GL_MAX_UNIFORM_BLOCK_SIZE));
/* Presume that at least one stream-output is supported */
limits.maxStreamOutputs = 1u;
#ifdef GL_ES_VERSION_3_2
/* Determine tessellation limits */
limits.maxTessFactor = GLGetUInt(GL_MAX_TESS_GEN_LEVEL);
#endif
}
static void GLGetTextureLimits(const RenderingFeatures& features, RenderingLimits& limits, GLint version)
{
/* No proxy textures in GLES, so rely on glGet*() functions */
limits.max1DTextureSize = GLGetUInt(GL_MAX_TEXTURE_SIZE);
limits.max2DTextureSize = limits.max1DTextureSize;
limits.max3DTextureSize = GLGetUInt(GL_MAX_3D_TEXTURE_SIZE);
limits.maxCubeTextureSize = GLGetUInt(GL_MAX_CUBE_MAP_TEXTURE_SIZE);
}
void GLQueryRenderingCaps(RenderingCapabilities& caps)
{
const GLint version = GetGLESVersion();
GLGetRenderingAttribs(caps, version);
GLGetSupportedTextureFormats(caps.textureFormats);
GLGetSupportedFeatures(caps.features, version);
GLGetFeatureLimits(caps.limits, version);
GLGetTextureLimits(caps.features, caps.limits, version);
}
} // /namespace LLGL
// ================================================================================
```
|
Barnard is a town in Windsor County, Vermont. The population was 992 at the 2020 census.
The town has two unincorporated villages: Barnard and East Barnard, along with the hamlets of Newcombsville, Mountain Meadows, and Fort Defiance.
History
The town was chartered on July 17, 1761 by a New Hampshire Grant. It was named "Bernard" after one of the five grantees of the town, Sir Francis Bernard, 1st Baronet, who was governor of the Province of Massachusetts Bay from 1760 to 1769. The town's name was changed to Barnard some time before 1810.
In 1928, Nobel Prize–winning novelist Sinclair Lewis bought Connett Place with a total and adjacent Chase Farm. He named the property Twin Farms and used it as a vacation house during the 1930s and 1940s with his wife Dorothy Thompson.
In 1941, German playwright Carl Zuckmayer, a refugee from Nazi Germany whom Dorothy Thompson had helped to get into the US, rented Backwoods Farm, with its farmhouse from 1783 nowadays owned by Hannah Kahn and a total , from Joseph Ward (of Maynes & Ward hardware store on Main Street in Woodstock, Vermont) for 50 dollars a month. Zuckmayer worked this property as a farmer until 1946 and wrote the play Des Teufels General (The Devil's General) there. His autobiography A Part of Myself (1966) deals extensively with these years. Zuckmayer's wife Alice Herdan-Zuckmayer also wrote a memoir of their time in Barnard: The Farm in the Green Mountains (Die Farm in den grünen Bergen).
Geography
According to the United States Census Bureau, the town has a total area of , of which 48.7 are land and 0.2 is water.
Demographics
As of the census of 2000, there were 958 people, 383 households, and 276 families residing in the town. The population density was 19.7 people per square mile (7.6/km2). There were 629 housing units at an average density of 12.9 per square mile (5.0/km2). The racial makeup of the town was 98.43% White, 0.42% Hispanic or Latino, 0.31% Asian and 1.04% from two or more races.
There were 383 households, out of which 29.2% had children under the age of 18 living with them, 61.4% were married couples living together, 6.8% had a female householder with no husband present, and 27.7% were non-families. 21.1% of all households were made up of individuals, and 5.7% had someone living alone who was 65 years of age or older. The average household size was 2.50 and the average family size was 2.84.
In the town, the population was spread out, with 23.4% under the age of 18, 5.1% from 18 to 24, 26.4% from 25 to 44, 32.0% from 45 to 64, and 13.0% who were 65 years of age or older. The median age was 42 years. For every 100 females, there were 93.9 males. For every 100 females age 18 and over, there were 97.8 males.
The median income for a household in the town was $45,787, and the median income for a family was $48,125. Males had a median income of $29,485 versus $25,385 for females. The per capita income for the town was $25,354. About 4.7% of families and 6.3% of the population were below the poverty line, including 10.0% of those under age 18 and 2.4% of those age 65 or over.
Silver Lake State Park
Silver Lake State Park, encompassing the northern shoreline of Silver Lake, was established in 1955 when some land with shore frontage was donated to the state by John McDill of Woodstock, Margaret Crosby of Barnard, and Richard H. Field of Boston. Silver Lake had originally been called Stebbings' Pond after Benjamin Stebbings who owned land at the outlet where the village now stands. Later the lake became known as Barnard Pond. In 1869, it was renamed Silver Lake.
Education
Barnard Academy is a public elementary school located on Route 12. It has educational programs from pre-kindergarten through sixth grade. Barnard Academy is part of the Windsor Central Supervisory Union.
Notable people
Andrew J. Aikens, newspaper editor
Asa Aikens, Justice of the Vermont Supreme Court
Sinclair Lewis, Nobel Prize-winning novelist, short story writer, and playwright
Mark Mitchell, architect and politician
Susanne Hoeber Rudolph, American author, political thinker and educationist
Lloyd I. Rudolph, American author, political thinker and educationist
Dorothy Thompson, journalist
Carl Zuckmayer, German writer and playwright
See also
Aiken Stand Complex
Barnard General Store
References
External links
Towns in Vermont
Towns in Windsor County, Vermont
1761 establishments in the Thirteen Colonies
|
The Thyroid Feedback Quantile-based Index (TFQI) is a calculated parameter for thyrotropic pituitary function. It was defined to be more robust to distorted data than established markers including Jostel's TSH index (JTI) and the thyrotroph thyroid hormone sensitivity index (TTSI).
How to determine the TFQI
The TFQI can be calculated with
from quantiles of FT4 and TSH concentration (as determined based on cumulative distribution functions). Per definition the TFQI has a mean of 0 and a standard deviation of 0.37 in a reference population. This explains the reference range of –0.74 to + 0.74.
Reference range
Clinical significance
Higher values of TFQI are associated with obesity, metabolic syndrome, impaired renal function, diabetes, and diabetes-related mortality. In a large population of community-dwelling euthyroid subjects the thyroid feedback quantile-based index predicted all-cause mortality, even after adjustment for other established risk factors and comorbidities.
A cross-sectional study from Spain observed increased prevalence of type 2 diabetes, atrial fibrillation, ischemic heart disease and hypertension in persons with elevated PTFQI.
Serum Concentrations of Adipocyte Fatty Acid-Binding Protein (A-FABP) are significantly correlateted to TFQI, suggesting some form of cross-talk between adipose tissue and HPT axis.
TFQI results are also elevated in takotsubo syndrome, potentially reflecting type 2 allostatic load in the situation of psychosocial stress. Reductions have been observed in subjects with schizophrenia after initiation of therapy with oxcarbazepine and quetiapine, potentially reflecting declining allostatic load.
Despite positive association to metabolic syndrome and type 2 allostatic load a large population-based study failed to identify an association to risks of dyslipidemia and non-alcoholic fatty liver disease (NAFLD).
See also
Thyroid function tests
Thyroid's secretory capacity
Sum activity of peripheral deiodinases
Jostel's TSH index
Thyrotroph Thyroid Hormone Sensitivity Index
References
Chemical pathology
Blood tests
Endocrine procedures
Thyroidological methods
Thyroid homeostasis
Structure parameters of thyroid function
Static endocrine function tests
|
Jean-Louis Titon La Neuville, called Jean-Louis Laneuville (, 26 December 1756, Paris – 26 March 1826, Paris) was a French painter, art dealer and expert. He was a gifted portraitist who made portraits of eminent persons of the French Revolution in a style similar to that of his teacher Jacques-Louis David.
Life
Jean-Louis Laneuville was born in Paris as the natural son of J.B.M. Pierre Titon. His father was a prominent parliamentarian and rapporteur in the ‘’Affair of the Diamond Necklace". Little is known about his early training. He studied, at least briefly, with his contemporary Jacques-Louis David and exhibited at the open-air Exposition de la Jeunesse between 1783 and 1789. He started sending pictures to the official Salon after it was opened for non-academicians in 1791.
During the French Revolution (1789–95) Laneuville appears to have looked for patronage from the powerful political figures of his time. This is demonstrated by the fact that 8 of the 12 portraits he sent to the Salon of 1793 were politicians and in 1795 the numbers were four of the six. It is not clear whether he targeted these politicians because of his own political preferences or because he felt this was an untapped market.
Jean-Louis Laneuville resided and worked at the Hôtel de Longueville in central Paris from 1798 to 1804. Around this time Laneuville produced portraits of two young brothers: Pierre Robillard and Amedée-Selim Robillard, who were cousins of Théodore Géricault. Géricault was born in 1791, and was a year older than Amédée-Selim. Géricault's father worked at the family tobacco business at the Hôtel de Longueville from 1797 to 1806. Théodore Géricault's uncle, Jean-Baptiste Caruel, lived and worked at the Hôtel de Longueville from 1791 to 1804, allowing us to reliably date Théodore Géricault's first connection to Jean-Louis Laneuville to this period.
Laneuville portrayed deputies to the Convention, including Bertrand Barère de Vieuzac (1792-3; Kunsthalle Bremen), Pierre-François-Joseph Robert and Joseph Delaunay (1793; Palace of Versailles) and Jules-François Paré (1795; Carnavalet Museum). In 1791 he was elected a judge of the Prix d'Encouragement, and in 1796 signed a petition defending the acquisition of looted artworks.
Laneuville continued to receive private and official portrait commissions during the reign of Napoleon. He was also active as an expert art appraiser and possibly also as an art dealer since his estate included a large number of Old Masters and contemporary French art. Unlike his master David who was exiled in 1814 from France by Louis XVIII as a regicide, Laneuville exhibited work at the Salon until 1817. He may have worked for some time in Brussels as evidenced by the Portrait of Edouard Jean Joseph van de Velde, a member from an important family of Brussels merchants (Auctioned at Dorotheum on 6 October 2009 in Vienna, lot 163).
Work
Laneuville was exclusively active as a portrait painter. His works from the French Revolution era are invariably painted along a very strict formula: they show the single sitter strongly delineated against a neutral background and depict the physiognomy and materials with painstaking precision. He applied paint in such a polished manner that the brushwork is not visible and reduced his colors to simple contrasts of strong tones. The sitter is always looking at the viewer in an intense and level manner. Laneuville's style was so similar to that of David, that many of his works have been wrongly attributed to David.
An example of his style is the Portrait of Jean Antoine Joseph Debry (1793, Indiana University Art Museum). Debry was a deputy to the National Convention which was to draw up a constitution for France following the Revolution. Debry is shown in the portrait with a serious expression which invites the viewer to share in his exercise of Republican responsibility and virtues. This type of representation suited the revolutionary ideas of the politically engaged individual.
While Laneuville almost exclusively made portraits of men, he was able to gain a commission from Thérésa Tallien, a rising star in Paris social circles following the termination of the Reign of Terror. She had been imprisoned herself in the last days of the Terror as she was the mistress of Jean-Lambert Tallien, who had fallen in disgrace for his criticism of the bloody methods of the Terrorist regime. A letter she was able to slip to her lover Jean-Lambert Tallien from her cell prompted him to mount the conspiracy that terminated the Reign of Terror. After the Reign of Terror had ended and she was released, she asked Laneuville 1795 to make a portrait of her in her cell. In the portrait Laneuville combined the conventions of male portraiture, which emphasized physical and psychological immediacy with the conventions of female portraiture which emphasized passivity. The depiction of the cell is believed to have been based on Tallien’s own description of the conditions of her incarceration. She is shown holding a lock of hair in her hand, hair that had been cut off in anticipation of her upcoming execution by the guillotine. On the wall behind her there is a drawing in profile of a man but it is not known of whom. The portrait of Thérésa Tallien was exhibited at the Salon of 1796, where it caused a scandal. It was removed from public view after a few days. It is likely that the painful memories of the Terror it evoked (especially that famous lock of hair cut before proceeding to the guillotine) were still too fresh for the public. The scandal may also have been caused by the imagery of the portrait, which emphasized the increased visibility of women in political life, and may also have awoken the spectre of Marie Antoinette who stood accused of having brought the nation to the brink because of her sexual impulses and political ambitions. A few days before the closing of the 1796 Salon, the portrait of Thérésa Tallien was returned to the exhibition after Laneuville had made some changes to it.
Notes
External links
18th-century French painters
French male painters
19th-century French painters
Pupils of Jacques-Louis David
1748 births
1826 deaths
18th-century French male artists
|
Mohamed Sebany is a Malagasy politician. A member of the National Assembly of Madagascar, he was elected as a member of the Tiako I Madagasikara party in the 2007 Malagasy parliamentary elections. He was reelected in the 2013 Malagasy general elections. He represents the constituency of Ambilobe.
External links
Profile on National Assembly site
Year of birth missing (living people)
Living people
Members of the National Assembly (Madagascar)
Tiako I Madagasikara politicians
Place of birth missing (living people)
|
```html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>windows::stream_handle::async_write_some</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../windows__stream_handle.html" title="windows::stream_handle">
<link rel="prev" href="async_read_some.html" title="windows::stream_handle::async_read_some">
<link rel="next" href="cancel.html" title="windows::stream_handle::cancel">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_read_some.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../windows__stream_handle.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cancel.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.windows__stream_handle.async_write_some"></a><a class="link" href="async_write_some.html" title="windows::stream_handle::async_write_some">windows::stream_handle::async_write_some</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="boost_asio.indexterm.windows__stream_handle.async_write_some"></a>
Start
an asynchronous write.
</p>
<pre class="programlisting">template<
typename <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>,
typename <a class="link" href="../WriteHandler.html" title="Write handler requirements">WriteHandler</a>>
<a class="link" href="../asynchronous_operations/automatic_deduction_of_initiating_function_return_type.html" title="Automatic deduction of initiating function return type"><span class="emphasis"><em>DEDUCED</em></span></a> async_write_some(
const ConstBufferSequence & buffers,
WriteHandler && handler);
</pre>
<p>
This function is used to asynchronously write data to the stream handle.
The function call always returns immediately.
</p>
<h6>
<a name="boost_asio.reference.windows__stream_handle.async_write_some.h0"></a>
<span class="phrase"><a name="boost_asio.reference.windows__stream_handle.async_write_some.parameters"></a></span><a class="link" href="async_write_some.html#boost_asio.reference.windows__stream_handle.async_write_some.parameters">Parameters</a>
</h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl class="variablelist">
<dt><span class="term">buffers</span></dt>
<dd><p>
One or more data buffers to be written to the handle. Although the
buffers object may be copied as necessary, ownership of the underlying
memory blocks is retained by the caller, which must guarantee that
they remain valid until the handler is called.
</p></dd>
<dt><span class="term">handler</span></dt>
<dd>
<p>
The handler to be called when the write operation completes. Copies
will be made of the handler as required. The function signature of
the handler must be:
</p>
<pre class="programlisting">void handler(
const boost::system::error_code& error, // Result of operation.
std::size_t bytes_transferred // Number of bytes written.
);
</pre>
<p>
Regardless of whether the asynchronous operation completes immediately
or not, the handler will not be invoked from within this function.
Invocation of the handler will be performed in a manner equivalent
to using <code class="computeroutput">boost::asio::io_context::post()</code>.
</p>
</dd>
</dl>
</div>
<h6>
<a name="boost_asio.reference.windows__stream_handle.async_write_some.h1"></a>
<span class="phrase"><a name="boost_asio.reference.windows__stream_handle.async_write_some.remarks"></a></span><a class="link" href="async_write_some.html#boost_asio.reference.windows__stream_handle.async_write_some.remarks">Remarks</a>
</h6>
<p>
The write operation may not transmit all of the data to the peer. Consider
using the <a class="link" href="../async_write.html" title="async_write"><code class="computeroutput">async_write</code></a>
function if you need to ensure that all data is written before the asynchronous
operation completes.
</p>
<h6>
<a name="boost_asio.reference.windows__stream_handle.async_write_some.h2"></a>
<span class="phrase"><a name="boost_asio.reference.windows__stream_handle.async_write_some.example"></a></span><a class="link" href="async_write_some.html#boost_asio.reference.windows__stream_handle.async_write_some.example">Example</a>
</h6>
<p>
To write a single data buffer use the <a class="link" href="../buffer.html" title="buffer"><code class="computeroutput">buffer</code></a>
function as follows:
</p>
<pre class="programlisting">handle.async_write_some(boost::asio::buffer(data, size), handler);
</pre>
<p>
See the <a class="link" href="../buffer.html" title="buffer"><code class="computeroutput">buffer</code></a>
documentation for information on writing multiple buffers in one go, and
how to use it with arrays, boost::array or std::vector.
</p>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_read_some.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../windows__stream_handle.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cancel.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```css
* {
box-sizing: border-box;
}
html {
background-color: #8a8;
}
a {
color: blue;
}
h1 {
font-size: 50px;
margin: 8px 3px;
text-align: center;
}
.tweet {
margin: 5px;
border: 2px solid black;
background-color: #bbb;
}
.tweet a {
font-size: 20px;
}
.tweet p {
font-size: 18px;
margin: 10px 5px;
}
.tweet .submit-time {
color: #eee;
font-size: 12px;
margin: 3px;
}
```
|
```php
<?php
/**
* Unit tests covering WP_Widget_Media_Video functionality.
*
* @package WordPress
* @subpackage widgets
*/
/**
* Test wp-includes/widgets/class-wp-widget-media-video.php
*
* @group widgets
*/
class Tests_Widgets_wpWidgetMediaVideo extends WP_UnitTestCase {
/**
* Clean up global scope.
*
* @global WP_Scripts $wp_scripts
* @global WP_Styles $wp_styles
*/
public function clean_up_global_scope() {
global $wp_scripts, $wp_styles;
parent::clean_up_global_scope();
$wp_scripts = null;
$wp_styles = null;
}
/**
* Test get_instance_schema method.
*
* @covers WP_Widget_Media_Video::get_instance_schema
*/
public function test_get_instance_schema() {
$widget = new WP_Widget_Media_Video();
$schema = $widget->get_instance_schema();
$this->assertSameSets(
array_merge(
array(
'attachment_id',
'preload',
'loop',
'title',
'url',
'content',
),
wp_get_video_extensions()
),
array_keys( $schema )
);
}
/**
* Test schema filtering.
*
* @covers WP_Widget_Media_Video::get_instance_schema
*
* @ticket 45029
*/
public function test_get_instance_schema_filtering() {
$widget = new WP_Widget_Media_Video();
$schema = $widget->get_instance_schema();
add_filter( 'widget_media_video_instance_schema', array( $this, 'filter_instance_schema' ), 10, 2 );
$schema = $widget->get_instance_schema();
$this->assertTrue( $schema['loop']['default'] );
}
/**
* Filters instance schema.
*
* @since 5.2.0
*
* @param array $schema Schema.
* @param WP_Widget_Media_Video $widget Widget.
* @return array
*/
public function filter_instance_schema( $schema, $widget ) {
// Override the default loop value (false).
$schema['loop']['default'] = true;
return $schema;
}
/**
* Test constructor.
*
* @covers WP_Widget_Media_Video::__construct
*/
public function test_constructor() {
$widget = new WP_Widget_Media_Video();
$this->assertArrayHasKey( 'mime_type', $widget->widget_options );
$this->assertArrayHasKey( 'customize_selective_refresh', $widget->widget_options );
$this->assertArrayHasKey( 'description', $widget->widget_options );
$this->assertTrue( $widget->widget_options['customize_selective_refresh'] );
$this->assertSame( 'video', $widget->widget_options['mime_type'] );
$this->assertSameSets(
array(
'add_to_widget',
'replace_media',
'unsupported_file_type',
'edit_media',
'media_library_state_multi',
'media_library_state_single',
'missing_attachment',
'no_media_selected',
'add_media',
),
array_keys( $widget->l10n )
);
}
/**
* Test get_instance_schema method.
*
* @covers WP_Widget_Media_Video::update
*/
public function test_update() {
$widget = new WP_Widget_Media_Video();
$instance = array();
// Should return valid attachment ID.
$expected = array(
'attachment_id' => 1,
);
$result = $widget->update( $expected, $instance );
$this->assertSame( $expected, $result );
// Should filter invalid attachment ID.
$result = $widget->update(
array(
'attachment_id' => 'media',
),
$instance
);
$this->assertSame( $result, $instance );
// Should return valid attachment url.
$expected = array(
'url' => 'path_to_url
);
$result = $widget->update( $expected, $instance );
$this->assertSame( $expected, $result );
// Should filter invalid attachment url.
$result = $widget->update(
array(
'url' => 'not_a_url',
),
$instance
);
$this->assertNotSame( $result, $instance );
$this->assertStringStartsWith( 'path_to_url $result['url'] );
// Should return loop setting.
$expected = array(
'loop' => true,
);
$result = $widget->update( $expected, $instance );
$this->assertSame( $expected, $result );
// Should filter invalid loop setting.
$result = $widget->update(
array(
'loop' => 'not-boolean',
),
$instance
);
$this->assertSame( $result, $instance );
// Should return valid attachment title.
$expected = array(
'title' => 'A video of goats',
);
$result = $widget->update( $expected, $instance );
$this->assertSame( $expected, $result );
// Should filter invalid attachment title.
$result = $widget->update(
array(
'title' => '<h1>Cute Baby Goats</h1>',
),
$instance
);
$this->assertNotSame( $result, $instance );
// Should return valid preload setting.
$expected = array(
'preload' => 'none',
);
$result = $widget->update( $expected, $instance );
$this->assertSame( $expected, $result );
// Should filter invalid preload setting.
$result = $widget->update(
array(
'preload' => 'nope',
),
$instance
);
$this->assertSame( $result, $instance );
// Should filter invalid key.
$result = $widget->update(
array(
'h4x' => 'value',
),
$instance
);
$this->assertSame( $result, $instance );
}
/**
* Test render_media method.
*
* @covers WP_Widget_Media_Video::render_media
* @covers WP_Widget_Media_Video::inject_video_max_width_style
*/
public function test_render_media() {
$test_movie_file = __FILE__ . '../../data/uploads/small-video.m4v';
$widget = new WP_Widget_Media_Video();
$attachment_id = self::factory()->attachment->create_object(
array(
'file' => $test_movie_file,
'post_parent' => 0,
'post_mime_type' => 'video/mp4',
'post_title' => 'Test Video',
)
);
wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $test_movie_file ) );
// Should be empty when there is no attachment_id.
ob_start();
$widget->render_media( array() );
$output = ob_get_clean();
$this->assertEmpty( $output );
// Should be empty when there is an invalid attachment_id.
ob_start();
$widget->render_media(
array(
'attachment_id' => 777,
)
);
$output = ob_get_clean();
$this->assertEmpty( $output );
// Tests with video from library.
ob_start();
$widget->render_media(
array(
'attachment_id' => $attachment_id,
)
);
$output = ob_get_clean();
// Check default outputs.
$this->assertStringContainsString( 'preload="metadata"', $output );
$this->assertStringContainsString( 'class="wp-video"', $output );
$this->assertStringContainsString( 'width:100%', $output );
$this->assertStringNotContainsString( 'height=', $output );
$this->assertStringNotContainsString( 'width="', $output );
$this->assertStringContainsString( 'small-video.m4v', $output );// Auto parses dimensions.
ob_start();
$widget->render_media(
array(
'attachment_id' => $attachment_id,
'title' => 'Open Source Cartoon',
'preload' => 'metadata',
'loop' => true,
)
);
$output = ob_get_clean();
// Custom attributes.
$this->assertStringContainsString( 'preload="metadata"', $output );
$this->assertStringContainsString( 'loop="1"', $output );
// Externally hosted video.
ob_start();
$content = '<track srclang="en" label="English" kind="subtitles" src="path_to_url">';
$widget->render_media(
array(
'attachment_id' => null,
'loop' => false,
'url' => 'path_to_url
'content' => $content,
)
);
$output = ob_get_clean();
// Custom attributes.
$this->assertStringContainsString( 'preload="metadata"', $output );
$this->assertStringContainsString( 'src="path_to_url $output );
$this->assertStringContainsString( $content, $output );
}
/**
* Test enqueue_preview_scripts method.
*
* @global WP_Scripts $wp_scripts
* @global WP_Styles $wp_styles
* @covers WP_Widget_Media_Video::enqueue_preview_scripts
*/
public function test_enqueue_preview_scripts() {
global $wp_scripts, $wp_styles;
$widget = new WP_Widget_Media_Video();
$wp_scripts = null;
$wp_styles = null;
$widget->enqueue_preview_scripts();
$this->assertTrue( wp_script_is( 'wp-mediaelement' ) );
$this->assertTrue( wp_style_is( 'wp-mediaelement' ) );
$this->assertTrue( wp_script_is( 'mediaelement-vimeo' ) );
$wp_scripts = null;
$wp_styles = null;
add_filter( 'wp_video_shortcode_library', '__return_empty_string' );
$widget->enqueue_preview_scripts();
$this->assertFalse( wp_script_is( 'wp-mediaelement' ) );
$this->assertFalse( wp_style_is( 'wp-mediaelement' ) );
$this->assertFalse( wp_script_is( 'mediaelement-vimeo' ) );
}
/**
* Test enqueue_admin_scripts method.
*
* @covers WP_Widget_Media_Video::enqueue_admin_scripts
*/
public function test_enqueue_admin_scripts() {
set_current_screen( 'widgets.php' );
$widget = new WP_Widget_Media_Video();
$widget->enqueue_admin_scripts();
$this->assertTrue( wp_script_is( 'media-video-widget' ) );
}
/**
* Test render_control_template_scripts method.
*
* @covers WP_Widget_Media_Video::render_control_template_scripts
*/
public function test_render_control_template_scripts() {
$widget = new WP_Widget_Media_Video();
ob_start();
$widget->render_control_template_scripts();
$output = ob_get_clean();
$this->assertStringContainsString( '<script type="text/html" id="tmpl-wp-media-widget-video-preview">', $output );
}
}
```
|
Ricanau Mofo, also Ricanaumofo, is a village of Ndyuka Maroons in the Moengo resort of the Marowijne District of Suriname. The village can be accessed from the East-West Link via Moengo. Ricanau Mofo is located on the Cottica River.
Overview
Ricanau Mofo has a school and a health clinic. The village is connected to the electricity grid, and in July 2019, construction started on supplying the village with clean drinking water.
The economy of the village is based on agriculture with an emphasis on producing ginger, arrowleaf elephant ear (tayer), and bananas. Tayer is the basis of the popular Suriname dish pom. In 2019, a Farmers Field School was opened in the village.
References
Ndyuka settlements
Populated places in Marowijne District
|
The Bellanca 14-7 Cruisair and its successors were a family of single-engined light aircraft manufactured in the United States from the mid-1930s onwards.
Design and development
Bellanca established itself in the market for 6-8 seat aircraft, but believed that it could also successfully sell smaller 3-4 seat aircraft. To fill this niche Bellanca designed The '14-7 Cruisair' as a modern, low-wing cantilever monoplane with a fuselage intended to contribute lift to the design. Although the prototype flew with fixed tailwheel undercarriage, the 14-9 production version was the first US light aircraft to be mass-produced with retractable undercarriage, the main wheels rotating aft into wheel-wells in the wings, with approximately 50 produced before production was interrupted by World War II.
After WWII Bellanca resumed production with the up-dated Bellanca 14-13 Cruisair Senior, retaining the Bellanca 14-7's basic design, featuring an enlarged cabin, a horizontally opposed Franklin 6A4-335-B3 engine in place of the earlier models' Le Blond radial and an oval vertical endplate on each horizontal stabiliser. This latter feature gained the type the affectionate nickname "Cardboard Constellation", because the arrangement is similar to the contemporary Lockheed Constellation airliner.
The naming convention for Bellanca aircraft was followed with the Cruisair series, with the first number giving the wing area in square feet, (dropping the final digit), while the second number is the aircraft's horsepower, (again dropping the final digit).
Construction of the series is fairly conventional with wings constructed of spruce with plywood skin and fuselages built up from a welded steel-tube framework with a fabric covering.
A constant process of refinement led to many variants, sometimes given new names but retaining the same structure differing only in powerplant, minor details and furnishings. The only major variations were the introduction of a single swept fin and tri-cycle retractable undercarriage. Production was carried out at a variety of companies, including Bellanca, Downer, Aviabellanca, Northern Aircraft and Inter-Air, with little variation other than powerplant and furnishings.
The highly responsive flying characteristics of the aircraft are evident to anyone who has flown one. Bill Cox, the well known aviation journalist at Plane and Pilot Magazine commented regarding the flying qualities of Vikings that they "have long been famous for control response and harmony that seems almost psychic in nature" , and asserted, "Owners almost unanimously pronounce the Viking the best handling airplane they've ever flown."
Pre-war development culminated in the 1941 14-12, at which point production ceased to allow Bellanca to work as a military subcontractor for the duration of the war when an attempt to market a militarized version as a trainer was unsuccessful. After the war, Bellanca returned to the design to create the Bellanca 14-13 and its successors.
Model 14-13
The 14-13 was introduced in 1946; in its improved 14-13-3 version the aircraft remained in production until 1956.
Model 14-19
A higher performance design revision was granted FAA approval as the 14-19 Cruisemaster on September 26, 1949. The new model featured structural upgrades, a Lycoming O435-A engine, an increased gross weight of 2,600 lbs, hydraulically operated landing gear and flaps, and a deluxe interior. 99 of these airplanes were produced between 1949 and 1951. Externally, a near-look-alike to the earlier models, this version was distinguished by its larger, oval-shaped endplates. All production ceased in 1956 as Bellanca wound up its operations.
Model 14-19-2
The 14-19 design was revived by Northern Aircraft and granted FAA approval on January 7, 1957 as the 14-19-2 Cruisemaster. The new model featured a Continental O-470K engine, an increased gross weight of 2,700 pounds, an updated instrument panel as well as new paint and upholstery schemes. 104 of these airplanes were produced between 1957 and 1958.
The company was renamed Downer Aircraft in 1959. Inter-Air acquired the production rights in 1962 and was renamed as the Bellanca Sales Company, a subsidiary of Miller Flying Service. Further development of the design by Inter-Air resulted in the modernized Viking series introduced in 1962.
Bellanca Viking
The Bellanca Viking and Super Viking were developed through modifications of the 'Cruisair' designs by the aviation pioneer Giuseppe Bellanca. Derived directly from the Cruisair, the Viking introduced a swept single tail of similar area, replacing the triple-tail of earlier aircraft, initially manufactured by Downer Aircraft as the Model 260 starting around 1958. The Viking model was born out of discussions at Downer for a bigger version of the "Model 260" with at least 300 horsepower. The Minnesota based company employed skilled craftsman who manufactured the wing from spruce and the new 300 hp model was named the "Viking" in respect to the many Scandinavians of the area.
The first Model 17 Viking appeared in 1967 called the "17-30" it was powered by a 300 hp Continental IO-520-K. In 1969 a Viking powered by a 290 hp (later 300 hp) Lycoming IO-540 was introduced, either normally aspirated (17-31) or turbocharged (17-31TC).
Over the years there were a number of refinements in the aircraft. The original hydraulic gear and flap actuation system was redesigned in 1968 introducing electric flaps. In 1969 the FAA issued Type Certificate A18CE and the aircraft built under that design were designated the "A" series "Super Vikings". Aside from refinements already made to late Viking 300 models, the new 300A Vikings (17-30A, 17-31A and 17-31ATC) had a gross weight increase to 3,325 lbs. The original complex fuel system with five tanks and two fuel selectors allowing eight possible combinations of selector settings was simplified to a left, right and auxiliary system in 1974. In 1979 the Continental powered Vikings sported a fully enclosed nosewheel thanks to a redesign of the engine mount. This necessitated the use of cowl flaps for the first time on the Viking but resulted in a 12 mph increase. In 1979 production of the Lycoming powered 17-31A ceased. In 1996, the Continental IO-550 was made available as an option.
Operational history
Designed and produced in the post-World War II era, the Bellanca 14-13 Cruisair Senior was aimed at a general aviation market. Pilot/owners were offered a combination of performance, low engine power and a modest price of $4500. Its performance and structural strength also made it attractive for utility work, but in many ways the Bellanca design was an anachronism, relying on a conventional landing gear configuration and wood and fabric construction that harkened back to an earlier age. Postwar economics along with a glut of surplus military aircraft precluded heavy sales although about 600 were produced.
Despite its introduction into a period where private aircraft sales were stagnant, the aircraft remained popular through all of its incarnations and today is considered a classic cabin monoplane and is much in demand.
Since 2002 the company has been operated by a group of six Bellanca enthusiasts who bought the company from the state of Minnesota and established Alexandria Aircraft Co. LLC, providing technical support and parts for owners and maintenance organisations in the field. New aircraft have been available from Alexandria Aircraft Co., who have sold one new aircraft manufactured in 2005.
Variants
Junior 14-7
Prototype with fixed undercarriage and LeBlond 5E radial piston engine.
14-7L - 14-7 with Lenape LM-5 engine.
14-9
Main production version with retractable undercarriage and Ken-Royce 5F radial piston engine.
14-9L - Fitted with a Lenape Brave engine.
14-10L - fitted with a 100 hp (75 kW) Lycoming engine.
14-12 - with Franklin 6AC engine
14-13
Initial model introduced in 1946, type approved September 25, 1946.
14-13-2 - Improved model introduced in 1947. Featured a longer span stabilizer with smaller endplates and an external baggage door, type approved June 2, 1947.
14-13-3 - Improved model introduced in 1948, type approved October 25, 1948, which remained in production until 1956
14-13W - Wagon version with plywood-lined cabin and removable rear seats.
T14-14
Militarized trainer version (single prototype only).
14-19
version introduced in 1949
14-19-2 - version introduced in 1957
14-19-3 - tricycle gear version introduced in 1959 by Downer Aircraft
Downer 260
14-19-3 production by Downer Aircraft Industries Inc.
Miller 260A
Further production of the 14-19 by Miller Flying Service, which had acquired the rights for manufacture from International Aircraft Mfg Inc. (Inter-Air)
Aviabellanca 260C
Model 14-19-3C version built in the late 1960s by Inter-Air with revised empennage and 260 hp (194 kW) Continental IO-470-F engine
17-30 Viking 300
Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Continental IO-520-K piston engine.
17-30A Super Viking 300A: Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Continental IO-520-K piston engine.
17-31 Viking 300: Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Lycoming IO-540 piston engine.
17-31A Super Viking 300A: Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Lycoming IO-540-K1ES piston engine.
17-31ATC Super Viking 300A: Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Lycoming IO-540-K1ES piston engine, the aircraft is fitted with two Rajay turbochargers.
17-31TC Viking 300: Four-seat light cabin aircraft, powered by a 224-kW (300-hp) Lycoming IO-540 piston engine, the aircraft is fitted with turbocharger.
Specifications (14-13-3)
See also
Giuseppe Mario Bellanca
References
Notes
Bibliography
Bridgman, Leonard. Jane's All the World's Aircraft 1951/52, London: Sampson Low, Marston & Company, Ltd., 1951.
Davisson, Budd. "We Fly the Cardboard Constellation" Air Progress Vintage Buyer's Guide, 1989.
Mondey, David. The Complete Illustrated Encyclopedia of the World's Aircraft. Secaucus, NJ: Chartwell Books Inc, 1978. .
Palmer, Trisha, ed. "Bellanca Viking Series". Encyclopedia of the World's Commercial and Private Aircraft. New York: Crescent Books, 2001. .
"Plane and Pilot." 1978 Aircraft Directory. Santa Monica, CA: Werner & Werner Corp, 1977. .
Taylor, Michael J. H. Jane's Encyclopedia of Aviation. London: Studio Editions, 1989.
World Aircraft Information Files. London: Bright Star Publishing. p. File 890 Sheet 24.
External links
aerofiles.com
National Air and Space Museum website
Arizona Aerospace Foundation website
History of Early Viking Design
Bellanca Viking "Reference Room" with links
Bellanca Viking FAQ
Bellanca Aircraft Official Site
The Bellanca Super Viking
1930s United States civil utility aircraft
Cruisair
Low-wing aircraft
Single-engined tractor aircraft
Aircraft first flown in 1937
|
William Swymmer (birth and death dates unknown) was a Bristol sugar merchant, involved in the slave trade. In 1667, he became a member of the Society of Merchant Venturers. He was an alderman in Bristol, and then Sheriff in 1679. Swymmer may have inherited a share in a sugar plantation in Barbados from his father. His brother Anthony Swymmer and his wife Elizabeth Swymmer were also involved in the slave trade. Records survive of the1684 correspondence from William Swymmer and William Hayman, to William Helyar, the Somerset owner of a Jamaica plantation, explaining why they were unable to provide the ten slaves they had contracted to supply. The deal was illegal, as the Royal African Company had a monopoly on the British slave trade at this point.
In 1681, Swymmer built two warehouses in Bristol, probably for the storage of sugar, and in 1692 Swymmer loaned the Society of Merchant Venturers £600 for building a new quay and cranes in Bristol docks.
In 1686 Swymmer writes to William Helyar to explain a delay in a separate consignment of slaves that had been agreed between Elizabeth Swymmer and Helyar's son. Historian Madge Dresser reports this as the only case she has found of a Bristol woman involved in her husband's slave-factoring or slave trading business.
Swymmer's daughter Elizabeth married Thomas Fane, 8th Earl of Westmorland.
References
British slave traders
Businesspeople from Bristol
High Sheriffs of Bristol
Members of the Society of Merchant Venturers
17th-century English businesspeople
Year of birth unknown
Year of death unknown
|
Johann Eduard Hari (born 21 January 1979) is a British-Swiss writer and journalist who wrote for The Independent and The Huffington Post. In 2011, Hari was suspended from The Independent and later resigned, after admitting to plagiarism and fabrications dating back to 2001 and making malicious edits to the Wikipedia pages of journalists who had criticised his conduct. He has since written books on the topics of depression, the war on drugs, and the effect of technology on attention spans.
Early life
Hari was born in Glasgow, Scotland to a Scottish mother and Swiss father, before his family relocated to London when he was an infant. Hari states he was physically abused in his childhood while his father was away and his mother was ill.
He attended The John Lyon School, an independent school affiliated with Harrow, and then Woodhouse College, a state sixth form in Finchley. Hari graduated from King's College, Cambridge in 2001 with a double first in social and political sciences.
Hari is gay. He wrote an article claiming he had sex with men who were members of homophobic far-right and Islamist groups, stating that with drugs and "a lot of flattery" he "coaxed" a nineteen year old Muslim into "wild gay sex".
Early career
In 2000, Hari was joint winner of The Times Student News Journalist of the Year award for his work on the Cambridge student newspaper, Varsity.
After university, he joined the New Statesman, where he worked between 2001 and 2003, and then wrote two columns a week for The Independent. At the 2003 Press Gazette Awards, he won Young Journalist of the Year. A play by Hari, Going Down in History, was performed at the Garage Theatre in Edinburgh, and his book God Save the Queen? was published by Icon Books in 2002.
In 2005, Hari wrote an article in The Independent entitled Pinter does not deserve the Nobel Prize, arguing that Harold Pinter, due to a misguided and misinformed anti-Imperialist and anti-war stance, should not have been awarded the Nobel Prize in Literature. Pinter's official, authorised biographer, Michael Billington commented that Hari "dismissed (Pinter's ) Lecture in advance [of its broadcast on Channel 4 in the UK] as a 'rant' and falsely claimed that Pinter would have refused to resist Hitler." In addition to being a columnist for The Independent, Hari's work also appeared in The Huffington Post, The New York Times, the Los Angeles Times, The New Republic, The Nation, Le Monde, El País, The Sydney Morning Herald, and Haaretz, and he reported from locations around the world, such as Congo and Venezuela. He appeared regularly as an arts critic on the BBC Two programme The Review Show and was a book critic for Slate. In 2009, he was named by The Daily Telegraph as one of the most influential people on the left in Britain.
2011 plagiarism, fabrication and misconduct scandal
Plagiarism
In June 2011, bloggers at Deterritorial Support Group, as well as Yahoo! Ireland editor Brian Whelan, asserted that Hari had plagiarised material published in other interviews and writings by his interview subjects. For example, a 2009 interview with Afghan women's rights activist Malalai Joya included quotations from her book Raising My Voice in a manner that made them appear as if spoken directly to Hari. Hari initially denied any wrongdoing, stating that the unattributed quotes were for clarification and did not present someone else's thoughts as his own. However, he later said that his behaviour was "completely wrong" and that "when I interviewed people, I often presented things that had been said to other journalists or had been written in books as if they had been said to me, which was not truthful". Hari was suspended for two months from The Independent and in January 2012, it was announced he was leaving the newspaper.
The Media Standards Trust instructed the Council of the Orwell Prize, who had given their 2008 prize to Hari, to examine the allegations. The Council concluded that "the article contained inaccuracies and conflated different parts of someone else's story" and did not meet the standards of Orwell Prize-winning journalism. Hari returned the prize, though he did not return the prize money of £2,000. He later offered to repay the sum, but Political Quarterly, which had paid the prize money, instead invited him to make a donation to English PEN, of which George Orwell had been a member. Hari arranged with English PEN to make a donation equal to the value of the prize, to be paid in instalments when he returned to work at The Independent, but he did not return to work there.
Fabrication
In addition to plagiarism, Hari was found to have fabricated elements of stories. In one of the stories for which he won the Orwell Prize, he reported on atrocities in the Central African Republic, claiming that French soldiers told him that "Children would bring us the severed heads of their parents and scream for help, but our orders were not to help them." However, an NGO worker who translated for Hari said that the quotation was invented and that Hari exaggerated the extent of the devastation in the CAR. In his apology after his plagiarism was exposed, Hari claimed that other staff of the NGO had supported his version of events.
In an article about military robots, Hari falsely claimed that the former Japanese Prime Minister Junichiro Koizumi was attacked by a factory robot and was nearly killed. Hari falsely claimed that a large globe erected for the Copenhagen climate summit was "covered with corporate logos" for McDonald's and Carlsberg, with "the Coke brand ... stamped over Africa". Private Eyes Hackwatch column also suggested that he pretended to have used the drug ecstasy and misrepresented a two-week package tour in Iraq as a one-month research visit, in order to bolster support for the Iraq war by claiming that Iraqi civilians he spoke to were in favour of an invasion.
Later career
Chasing the Scream (2015)
Hari's book about drugs, Chasing the Scream: The First and Last Days of the War on Drugs was published in 2015. Hari also performed a TED Talk on the subject that same year. Hari claims that most addictions are functional responses to experiences and a lack of healthy supportive relationships, rather than a simple biological need for a particular substance.
Lost Connections (2018)
In January 2018, Hari's book Lost Connections, which deals with depression and anxiety, was published, with Hari citing his childhood issues, career crisis, and experiences with antidepressants and psychotherapy as fuelling his curiosity in the subject. Kirkus Reviews praised the book.
Stolen Focus (2022)
In January 2022, Hari published a book called Stolen Focus: Why You Can't Pay Attention, claiming that elements of modern lifestyles, including social media, are "destroying our ability to concentrate". The book debuted at number seven on The New York Times nonfiction best-seller list for the week ending 12 February 2022.
Awards
Student News Journalist of the Year by The Times, 2000
Young Journalist of the Year at the British Press Awards, 2003
Newspaper Journalist of the Year at Amnesty International Media Awards, 2007, for the article The Dark Side of Dubai
Author of Story of the Year at the Environmental Press Awards, 2008
Orwell Prize for political journalism, 2008 (withdrawn 2011)
Journalist of the Year at the Stonewall Awards, 2009
Newspaper Journalist of the Year at Amnesty International Media Awards, 2010, for the article Congo's tragedy: The War the World Forgot
Martha Gellhorn Prize for Journalism, 2010
See also
Journalism scandals
Books
References
External links
Articles about Johann Hari in The Guardian
Articles for The Independent
1979 births
Living people
Alumni of King's College, Cambridge
Anglo-Scots
British atheists
British male journalists
British republicans
British social democrats
British drug policy reform activists
British gay writers
Journalistic scandals
Journalistic hoaxes
British LGBT journalists
English LGBT writers
People involved in plagiarism controversies
HuffPost writers and columnists
The Independent people
Journalists from London
People educated at The John Lyon School
21st-century atheists
Scottish people of Swiss descent
Conflict-of-interest editing on Wikipedia
|
```c++
#ifndef BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP
#define BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// basic_text_iprimitive.hpp
// Use, modification and distribution is subject to the Boost Software
// path_to_url
// See path_to_url for updates, documentation, and revision history.
// archives stored as text - note these are templated on the basic
// stream templates to accommodate wide (and other?) kind of characters
//
// Note the fact that on libraries without wide characters, ostream is
// not a specialization of basic_ostream which in fact is not defined
// in such cases. So we can't use basic_ostream<IStream::char_type> but rather
// use two template parameters
#include <locale>
#include <cstddef> // size_t
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
using ::size_t;
#if ! defined(BOOST_DINKUMWARE_STDLIB) && ! defined(__SGI_STL_PORT)
using ::locale;
#endif
} // namespace std
#endif
#include <boost/io/ios_state.hpp>
#include <boost/static_assert.hpp>
#include <boost/detail/workaround.hpp>
#if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1)
#include <boost/archive/dinkumware.hpp>
#endif
#include <boost/serialization/throw_exception.hpp>
#include <boost/archive/codecvt_null.hpp>
#include <boost/archive/archive_exception.hpp>
#include <boost/archive/basic_streambuf_locale_saver.hpp>
#include <boost/archive/detail/abi_prefix.hpp> // must be the last header
namespace boost {
namespace archive {
/////////////////////////////////////////////////////////////////////////
// class basic_text_iarchive - load serialized objects from a input text stream
#if defined(_MSC_VER)
#pragma warning( push )
#pragma warning( disable : 4244 4267 )
#endif
template<class IStream>
class BOOST_SYMBOL_VISIBLE basic_text_iprimitive {
protected:
IStream &is;
io::ios_flags_saver flags_saver;
io::ios_precision_saver precision_saver;
#ifndef BOOST_NO_STD_LOCALE
// note order! - if you change this, libstd++ will fail!
// a) create new locale with new codecvt facet
// b) save current locale
// c) change locale to new one
// d) use stream buffer
// e) change locale back to original
// f) destroy new codecvt facet
boost::archive::codecvt_null<typename IStream::char_type> codecvt_null_facet;
std::locale archive_locale;
basic_istream_locale_saver<
typename IStream::char_type,
typename IStream::traits_type
> locale_saver;
#endif
template<class T>
void load(T & t)
{
if(is >> t)
return;
boost::serialization::throw_exception(
archive_exception(archive_exception::input_stream_error)
);
}
void load(char & t)
{
short int i;
load(i);
t = i;
}
void load(signed char & t)
{
short int i;
load(i);
t = i;
}
void load(unsigned char & t)
{
unsigned short int i;
load(i);
t = i;
}
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
void load(wchar_t & t)
{
BOOST_STATIC_ASSERT(sizeof(wchar_t) <= sizeof(int));
int i;
load(i);
t = i;
}
#endif
BOOST_ARCHIVE_OR_WARCHIVE_DECL
basic_text_iprimitive(IStream &is, bool no_codecvt);
BOOST_ARCHIVE_OR_WARCHIVE_DECL
~basic_text_iprimitive();
public:
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
load_binary(void *address, std::size_t count);
};
#if defined(_MSC_VER)
#pragma warning( pop )
#endif
} // namespace archive
} // namespace boost
#include <boost/archive/detail/abi_suffix.hpp> // pop pragmas
#endif // BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP
```
|
Willy Venneman (born 26 February 1935) is a Belgian boxer. He competed in the men's heavyweight event at the 1960 Summer Olympics.
References
1935 births
Living people
Belgian male boxers
Olympic boxers for Belgium
Boxers at the 1960 Summer Olympics
Sportspeople from Antwerp
Heavyweight boxers
|
Església de Sant Iscle i Santa Victòria is a church located on Plaça del Poble in La Massana, Andorra. It is a heritage property registered in the Cultural Heritage of Andorra. It was built in the 17th century.
The bell tower dates from the 19th century. Inside the church are several Baroque altarpieces, with the main altarpiece showing the Virgin of Angels and the two patron saints: Acisclus and Victoria. There are two wooden relic chests, a medieval candelabra, and the baptismal pyre, dating back to Romanesque times.
References
La Massana
Roman Catholic churches in Andorra
Cultural Heritage of Andorra
|
```scss
.#{$prefix}dashboard-column {
padding: 0 0 $ext-dashboard-column-padding 0;
}
.#{$prefix}dashboard-panel {
margin-top: $ext-dashboard-column-padding;
}
.#{$prefix}dashboard-column-first {
padding-left: $ext-dashboard-column-padding;
clear : left;
}
.#{$prefix}dashboard-column-last {
padding-right: $ext-dashboard-column-padding;
}
.#{$prefix}dashboard .#{$prefix}panel-dd-spacer {
border: 2px dashed #99bbe8;
background: #f6f6f6;
border-radius: 4px;
-moz-border-radius: 4px;
margin-top: $ext-dashboard-column-padding;
}
// Prevent the panel drag operations from causing overflow as that breaks the layout
// and we don't want to perform layouts during the drag.
.#{$prefix}dashboard-dd-over {
overflow: hidden !important;
}
```
|
```toml
[tool.poetry]
name = "httpobs"
version = "0.9.3"
description = "HTTP Observatory: a set of tests and tools to scan your website for basic web hygeine."
license = "MPL-2.0"
authors = ["April King <april@mozilla.com>"]
maintainers = ["Leo McArdle <leo@mozilla.com>"]
[tool.poetry.scripts]
httpobs-local-scan = 'httpobs.scripts.scan:main'
httpobs-server = "httpobs.website.main:run"
httpobs-regen-hsts-preload = "httpobs.scanner.utils:retrieve_store_hsts_preload_list"
[tool.poetry.dependencies]
python = "^3.11"
beautifulsoup4 = "^4.12.2"
flake8 = "^6.1.0"
pep8 = "^1.7.1"
psycopg2 = "^2.9.9"
publicsuffixlist = "^0.10.0.20231002"
requests = "^2.31.0"
Flask = "^3.0.0"
uWSGI = "^2.0.22"
pre-commit = "^3.6.0"
black = "^23.12.1"
isort = "^5.13.2"
[tool.poetry.group.test.dependencies]
coverage = "^7.4.0"
pynose = "^1.4.8"
urllib3 = "^2.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py311"]
required-version = "23"
line-length = 120
skip-string-normalization = true
[tool.isort]
profile = "black"
skip_gitignore = true
line_length = 120
```
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `nan` fn in crate `edn`.">
<meta name="keywords" content="rust, rustlang, rust-lang, nan">
<title>edn::parse::nan - Rust</title>
<link rel="stylesheet" type="text/css" href="../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../rustdoc.css"
id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../../dark.css">
<link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle">
<script src="../../storage.js"></script>
</head>
<body class="rustdoc fn">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">☰</div>
<div class="sidebar-elems"><p class='location'><a href='../index.html'>edn</a>::<wbr><a href='index.html'>parse</a></p><script>window.sidebarCurrent = {name: 'nan', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options"
type="search">
</div>
</form>
</nav>
<section id='main' class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../index.html'>edn</a>::<wbr><a href='index.html'>parse</a>::<wbr><a class="fn" href=''>nan</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>−</span>]
</a>
</span><a class='srclink' href='../../src/edn/Users/emilytoop/Development/mentat/target/release/build/edn-4b460cc3bba30275/out/edn.rs.html#367' title='goto source code'>[src]</a></span></h1><pre class='rust fn'>pub fn nan<'input>(__input: &'input <a class="primitive" href="path_to_url">str</a>) -> <a class="type" href="../../edn/parse/type.ParseResult.html" title="type edn::parse::ParseResult">ParseResult</a><<a class="enum" href="../../edn/types/enum.SpannedValue.html" title="enum edn::types::SpannedValue">SpannedValue</a>></pre></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>⏎</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../../";
window.currentCrate = "edn";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>
```
|
Stapfiella ulugurica is shrub native to Rwanda, Tanzania, and Zaïre, Africa. It is found at elevations of 1900–2100 meters.
S. ulugurica grows up to 1 - 2.5 meters tall. It has yellow flowers and black seeds.
References
Passifloraceae
Taxa named by Johannes Mildbraed
|
```go
package gql
import (
"context"
"errors"
"github.com/stellar/go/services/ticker/internal/tickerdb"
)
// Issuers resolves the issuers() GraphQL query.
func (r *resolver) Issuers(ctx context.Context) (issuers []*tickerdb.Issuer, err error) {
dbIssuers, err := r.db.GetAllIssuers(ctx)
if err != nil {
// obfuscating sql errors to avoid exposing underlying
// implementation
err = errors.New("could not retrieve the requested data")
}
for i := range dbIssuers {
issuers = append(issuers, &dbIssuers[i])
}
return issuers, err
}
```
|
```haskell
-- !!! tcfail044: duplicated type variable in instance decls
--
module ShouldFail where
instance (Eq a) => Eq (a->a)
instance Show (a->b)
instance (Num a) => Num (a->a) where
f + g = \x -> f x + g x
negate f = \x -> - (f x)
f * g = \x -> f x * g x
fromInteger n = \x -> fromInteger n
ss :: Float -> Float
cc :: Float -> Float
tt :: Float -> Float
ss = sin * sin
cc = cos * cos
tt = ss + cc
--main = putStr ((show (tt 0.4))++ " "++(show (tt 1.652)))
```
|
The Butler Bulldogs are the athletic teams that represent Butler University, located in Indianapolis, Indiana. The Bulldogs participate in 20 NCAA Division I intercollegiate sports. After leaving the Horizon League following the 2011–12 season, nearly all teams competed in the Atlantic 10 Conference. The football team is a founding member of the non-scholarship Football Championship Subdivision (FCS)-level Pioneer League. On March 20, 2013, the Butler administration announced that the school would join the Big East, and moved to the new league July 1, 2013.
Sports offered
The most recently added varsity sport is women's lacrosse, with Butler elevating its former club team to full varsity status for the 2016–17 school year (2017 season).
Men's basketball
Historically, the Butler basketball program competed in the Missouri Valley Conference from 1932 to 1934, the Mid-American Conference from 1946 to 1950, the Indiana Collegiate Conference from 1950 to 1978, the Horizon League from 1979 to 2012, the Atlantic 10 Conference for the 2012–13 season, and are now current members of the Big East.
Prior to the development of the NCAA tournament, Butler claimed the AAU national championship in 1924 and the national championship John J. McDevitt trophy by the Veteran Athletes of Philadelphia. The Bulldogs reached postseason play for the first time in 1958, and the team's first victory in postseason play came the following year when the Bulldogs made it to the NIT Quarterfinals. The Bulldogs have competed in the NIT postseason tournament seven times, twice reaching the quarterfinals.
The bulldogs qualified for the NCAA Division 1 Men's Basketball Tournament for the first time in 1962. In total, the Bulldogs have qualified or been selected for the NCAA tournament twelve times and boast a record of 19–12, including three sweet sixteen finishes and two national runner-up finishes.
Until moving to the "high-major" Big East Conference in 2013, the Butler basketball program had been considered one of the best "mid-major" basketball programs, having won at least 20 games and reached postseason play twelve of the last fourteen seasons, including appearances in nine NCAA tournaments where the Bulldogs reached the Sweet Sixteen in 2003 and 2007, as well as back-to-back Final Four and championship game appearances in 2010 and 2011. Since the start of the 2006–07 season, the Bulldogs have earned a 15–8 record against members of the BCS conferences, including a 7–2 record against the Big Ten. The program's success has been attributed to "The Butler Way", a now-unique style of team play that many have said harkens back to the Indiana glory days, as well as being called "the way the game should be played."
The Bulldogs' recent accomplishments include winning the 2001 BP Top of the World Classic, the 2006 NIT Season Tip-Off, the 2007 Great Alaska Shootout and the 2010 Diamond Head Classic. Individual honors include the selection of Butler junior guard AJ Graves as a Wooden Award National Player of the Year finalist in men's college basketball in 2007, the same year Head Coach Todd Lickliter was named the National Coach of the Year by the National Association of Basketball Coaches after winning the award for mid-season National Coach of the Year. In 2008, Senior Mike Green was the Chip Hilton Player of the Year Award Winner. In 2010 the Bulldogs made it to the Championship game, in Indianapolis, for the first time in school history. Sophomore Gordon Hayward entered the NBA draft and was a lottery pick by the Utah Jazz. Hayward was the first Butler player to play in the NBA since Ralph O'Brien in the early 1950s.
Women's basketball
The women's basketball program at Butler University began in the 1975–76 season, competing in the Association for Intercollegiate Athletics for Women (AIAW), and saw its first winning season two years later, earning a 9–5 record under the direction of coach Linda Mason. The Bulldogs played in the AIAW National Tournament for the first time in 1982, falling in the second round to William Penn, 77–94. The next year, the Bulldogs began competition at the NCAA Division II level and joined the Horizon League and Division I competition for the 1986–87 season.
The Bulldogs qualified for Division I post-season play for the first time in 1993, competing in the WNIT, and competed in the NCAA Division I women's basketball tournament for the first time in 1996. Their last post-season appearance in the 1990s was in the WNIT in 1998. The Bulldogs did not return to the post-season until 2009 and 2010 under head coach Beth Couture, who led the team to four consecutive 20-win seasons in 2008 through 2011.
Football
The Butler Bulldogs football program has a long history, beginning with Indiana's first intercollegiate football game at the old 7th Street Baseball Grounds in the spring of 1884. For the game between Butler and DePauw, Butler senior John F. Stone compiled the rules by combining association (soccer) rules with eastern intercollegiate rules to form the western intercollegiate rules, which were published by Charles Mayer of Indianapolis. Butler won the game by a score of four goals to one.
The Bulldogs have appeared in three Division II playoff games, the last in 1991 when it lost to eventual national champion Pittsburg State 26–16. The Bulldogs saw their greatest success in football over the course of 60 seasons from 1934 to 1994 when Bulldog football teams won 31 conference championships, including seven straight Indiana Collegiate Conference titles from 1934 to 1940, league titles in 1946, 1947, 1952, 1953, and seven straight from 1958 to 1964, all under Tony Hinkle.
Following the move from the College Division to NCAA Division II, Butler won 4 straight conference championships from 1972 to 1975, along with another one in 1977, all under the guidance of Bill Sylvester, Sr. Ashland joined Butler and fellow ICC members to form the Heartland Collegiate Conference, in which Butler won league titles in 1983, 1985, and three straight from 1987 to 1989, under coach Bill Lynch. The Bulldogs also went the NCAA Division II playoffs in 1983 and 1988.
Butler and fellow HCC member schools joined with the Great Lakes Valley Conference to form the Midwest Intercollegiate Football Conference (now the Great Lakes Intercollegiate Athletic Conference). Butler added back to back league titles in 1991 and 1992 with Bob Bartlameo at the helm, including a trip to the NCAA Division II playoffs in 1991. The following season, Butler and member school Valparaiso moved up to NCAA Division I-AA (now Division I FCS) under the guidance of Ken LaRose to join with Dayton, Drake, Evansville, and San Diego to form the Pioneer Football League, in which Butler still competes. Butler capped its decade of dominance, seven league titles in ten years with three playoff berths, by winning another conference championship in 1994. The Dawgs were led by the great Arnold Mickens who broke numerous NCAA Division I rushing records, including eight straight 200 yard performances during the campaign.
The Bulldogs, led by Coach Jeff Voris, won the 2009 Pioneer Football League title by compiling a 7–1 league record and an 11–1 season overall. The conference title run included a come-from-behind 25–24 victory over Pioneer League preseason favorite San Diego, a 31–28 road win at Dayton (who also finished with a 7–1 league record), and a 20–17 title-clinching victory over Drake.
The Pioneer Football League title earned the Bulldogs a berth in the Gridiron Classic. It was Butler's first postseason appearance since 1991 when they were still a Division-II football program. Butler defeated Central Connecticut State 28–23 to win the Gridiron Classic in Indianapolis. In 2012 the Bulldogs were able to rattle of 7 consecutive league victories to secure the share of the PFL Championship. This is the third PFL Championship for the Dawgs, and its second in the last four years. In 2013, Butler became the first PFL team to compete in the FCS playoffs after the conference was given an automatic invitation, losing in the first round to Tennessee State.
Postseason
Hoosier Helmet Trophy
The Hoosier Helmet was established as the trophy helmet for the rivalry football game played between Butler and Valparaiso University.
The Hoosier Helmet was created prior to the 2006 season to commemorate the football rivalry that has existed since 1921. The helmet trophy was created to further intensify the rivalry between these two teams. A group of Butler players, along with their head coach, Jeff Voris, came up with the idea for the helmet. After Valparaiso head coach Stacey Adams agreed to play for the helmet, Butler equipment manager John Harding put the helmet together.
The white helmet is mounted on a hardwood plaque and features each team's logo on respective sides of the helmet. A gold plate is added each year to commemorate the winner and score of the contest. Currently, Butler holds a 9–3 series lead when playing for the Hoosier Helmet. Both Butler and Valparaiso compete in the NCAA FCS (formerly division I-AA), non-scholarship Pioneer Football League.
Track & field
Butler Relays
The Butler Relays were a prestigious American Track and Field competition, founded by track coach Herman Phillips who won three NCAA quartermile championships and was a member of the 1928 U.S. Olympic 1,600 meter gold medal relay team.
The event annually showcased 350–400 athletes representing 20–30 colleges and universities. From an attendance of 3,500, the games grew to attract over 10,000 spectators to Butler (Hinkle) Fieldhouse each March. The college's fraternities and sororities vied in yearly ticket sales, parade float, house decoration, and Relay Queen competitions. The University Division "Governor's Cup" went to each year's victor, with Indiana University claiming the inaugural trophy in 1933 and the University of Notre Dame taking the final prize in 1942. The University of Michigan captured the eight intervening awards. Butler claimed the College Division "Mayor's Trophy" between 1938 and 1941. In addition to the participation of legendary American Olympians Jesse Owens, Glenn Cunningham, Ralph Metcalfe, and IU's Don Lash, the Butler Relays saw ten world records set or tied during the meet's decade-long run.
When Phillips became head track and field coach at Purdue University in 1938, Lawrence Holmes directed the relays for one year. Butler alumnus and former world two mile (3 km) record holder Ray Sears staged the games from 1939 until the fieldhouse was dedicated to military use in 1942. The Butler Relays were not reinstituted after World War II because of the expense and the basketball program's influence over fieldhouse scheduling.
Soccer
Men's soccer at Butler began in 1989, and the women's team was added in 1991. In the program's 20-year history, the men's soccer team has made five post-season appearances, acquiring a 3–5 record in post-season play. The Bulldogs' last post-season appearance was in 2009. Butler's men's soccer qualified for the NCAA tournament in 1995, 1997, 1998, 2001 and 2009, reaching the round of 16 in 1995 and 1998. Butler won the Horizon League (formerly MCC) tournament title in 1995, 1997, 1998, 2001 and 2010. They also won or shared the regular season title seven times, including 1994, 1996, 1998, 2004, 2008, 2009, and 2010. The 1998 squad enjoyed national rankings as high as #8 in the country and the 2010 squad was ranked as high as #5 in the final National Soccer Coaches Association of America (NSCAA) poll. The Bulldogs won the 2016 Big East Championship.
Baseball
The Butler baseball team has been led since 2017 by Head Coach Dave Schrage. The program's success includes Horizon League regular season championships in 1996, 1998, and 1999, as well as Horizon League tournament titles in 1998 and 2000, providing berths to the NCAA Division I Baseball Championships. The Bulldogs also had 34 win seasons in 2002 and 2003, surpassing the 30 win season totals in 1998 and 2000. Notable alumni of the program include middle reliever pitcher Pat Neshek (2001), who played for the Minnesota Twins from 2006 to 2010, the St. Louis Cardinals where he was selected for the 2014 MLB All-Star Game, and currently the Philadelphia Phillies.
Softball
The Butler softball team has been led by Scott Hall for the last 5 seasons. In his first season, he set a new school record with 14 inner conference wins and a new record with 4 tournament game wins which tied the school record for best league finish in the 2010–2011 season. They have a notable assistant coach in Jenna Grim whom was a professional softball Player for the Chicago Bandits and an assistant with Northwestern University for two years. Her key responsibilities in the program are to work with the pitching staff and catchers. The other assistant coach is Jack Lewis who brings in over 30 years of coaching experience. Butler softball plays at the Butler Softball Field as their home field. The Bulldogs won the 2016 Big East Conference softball tournament, their first conference championship. As of April 7, 2015 the Bulldogs are ranked 158th in the nation.
Cross country
Some of Butler's most notable athletic accomplishments have come in Cross Country. Butler won thirteen Horizon League Championships in Men's Cross Country and twelve Women's Championships. Both the men and women won the Atlantic 10 Championships in 2012, their lone year in the conference. The Men's team has placed as high as 4th in the nation in recent years, earning a team trophy at the NCAA Division I championships in 2004. The women also earned an NCAA podium finish, placing 3rd in 2013. Both teams have frequently qualified for nationals in recent years, placing individuals as high as 3rd (Mark Tucker, 2003). All-Americans from the Butler Cross Country Team include Julius Mwangi, Justin Young, Fraser Thompson (a Rhodes Scholar), Mark Tucker, Olly Laws, Andrew Baker, Callum Hawkins, Mara Olson, Katie Clark, Erik Peterson, Olivia Pratt, and Euan Makepeace. Former coach, Joe Franklin, was named NCAA Division I Coach of the Year for leading the Bulldogs to their 2004 4th-place finish.
Facilities
It was clear from the earliest days that athletics was destined to play a major role in shaping Butler University. When the school moved to its current Fairview campus location, two of the first structures completed were a 15,000-seat fieldhouse and a 36,000-seat football stadium.
Bud and Jackie Sellick Bowl
The football stadium, which came to be known as the Bud and Jackie Sellick Bowl (known as the Butler Bowl until 2017), was built in 1927. The original stadium had seating for 36,000 and hosted games versus the likes of the Four Horsemen from Notre Dame and Red Grange from Illinois. The Bowl was downsized to a 20,000-seat stadium in 1955 with the addition of the Hilton U. Brown Theatre, and is the home field for Butler football and soccer today. A 2006 renovation of the stadium included seating for 7,500, larger sidelines, and field turf, allowing it to host football, soccer, and other events. The new Student Apartment Housing overlooks the stadium on the east end, with the original seating on the west side of the stadium. A new press box and new seating on the west end and additional seating on the east end of the Bowl have been completed for the 2010 fall season. New lighting was completed in 2011 and was utilized for the first time during the 2012 season. New seating and the new entrance on the south end of the stadium were completed in time for the 2013 season. The new student hill is now located on the north end of the stadium.
Hinkle Fieldhouse
The fieldhouse, which was the largest of its kind when it was completed in 1928 and remained the largest in the U.S. for several decades, is a historical landmark. The Butler Fieldhouse, which was renamed Hinkle Fieldhouse in 1966, came to symbolize not only Butler athletics, but also Indiana "Hoosier Hysteria." From its opening in 1928 until 1971, the building became the combined home of Butler basketball and the final rounds of the Indiana High School Athletic Association's basketball tournament. The legends of Indiana basketball, from Oscar Robertson to George McGinnis to Larry Bird, all played in the Fieldhouse at one time or another.
In 1954, Butler Fieldhouse hosted the historic final when Milan High School (enrollment 161) defeated Muncie Central High School (enrollment over 1,600) to win the state title. The state final depicted in the 1986 movie Hoosiers, loosely based on the Milan Miracle story, was shot in Hinkle Fieldhouse.
Varsity Field
Other facilities include Varsity Field, which serves as one of the homes of the Butler men's and women's soccer teams. A natural grass field, the complex gives the soccer teams a unique advantage in being able to play games and have practices on both the artificial surface of the Bud and Jackie Sellick Bowl and the natural surface of Varsity Field.
Varsity Field features a covered area for both team benches, an elevated press box, a storage area for equipment and seating along the southern sideline for up to 500 spectators. The soccer teams are also able to take advantage of the practice fields located north of the main field.
Bulldog Park
Bulldog Park is the home of Butler's baseball program. It has a capacity of 500 spectators. Formerly both a baseball field and football practice facility, the park was converted to a baseball-only facility in the 1990s. Its dimensions are 330 ft. down the foul lines, 370 ft. to the gaps, and 400 ft. to center field.
Butler Softball Field
The Butler softball team calls the Butler Softball Field home, located adjacent to the Holcomb Gardens across the Inland Waterway Canal. The field is a part of a larger athletic field complex that features Varsity Field (the alternate field for both the men's and women's soccer teams), the outdoor tennis courts and intramural softball and soccer fields.
The field features brick dugouts for both the home and visiting benches, a bullpen area and batting cages located down the first base line out of play and spectator seating for up to 500 people. The field's outfield dimensions extend to from foul pole to foul pole.
A minor renovation during the winter of 2007 saw new dirt added to the infield and regraded for a more consistent playing surface.
The Butler Bubble
The Butler Bubble is home to the Bulldog men's and women's tennis teams and is used as an indoor practice facility for the Butler baseball, football and soccer teams. All of the Butler tennis teams' home matches during the winter and early spring take place inside the bubble, which is located behind Hinkle Fieldhouse off of 52nd Street. The Bubble was originally constructed at the far west end of the Hinkle Fieldhouse parking lot, but was relocated to along the right field line of Bulldog Park after the original plot was broke for the construction of the new Health and Recreation Complex in the summer of 2005. The Bubble houses four hard-surface tennis courts as well as additional room for storage of equipment for both tennis teams. The bubble itself is supported by higher air pressure inside and is permanently fixed over the courts.
Davey Track and Field
Situated next adjacent to Bulldog Park as a part of the Davey Athletic Complex, the Davey Track & Field is used primarily by the Butler track & field teams and the football team for practices but is also utilized by the other athletics programs for conditioning.
Butler Health & Rec. Center
Butler University broke ground on its new, Health and Recreation Complex (HRC) in June 2005. The HRC offers many new services to students, faculty and staff, while expanding others presently available. In addition to being the headquarters for Butler's department of recreation, the HRC also houses Counseling and Consultation Services, Health Education and Health Services, making it a true wellness center on campus. Since opening Aug 30, 2006, over 250,000 participants have enjoyed it so far.
Paul D. "Tony" Hinkle
While the Fieldhouse provided a nationally acclaimed setting for Butler athletics, it was Paul D. "Tony" Hinkle, credited with inventing the orange basketball, who brought national recognition to the school as a coach and athletic administrator. He came to Butler in 1921 and remained with the University until his death in 1992. Hinkle served as a teacher, coach and athletic administrator for nearly half a century and compiled more than 1,000 victories with the school's football, basketball and baseball teams. The Bulldogs have carried on the winning traditions set forth by Hinkle. In the past decade, Butler teams have captured 26 conference championships (in four different leagues). The Bulldogs have made appearances in NCAA National Championship Tournaments in men's and women's basketball, men's soccer, volleyball, men's cross country, lacrosse, and baseball. Butler won the James J. McCafferty trophy, awarded annually by the conference for all-sports excellence based on conference championship points, five times, including three-straight from 1996–97 to 1998–99 and back-to-back years in 2001–02 and 2002–03.
Butler mascots
Butler University was originally founded as North Western Christian University by Ovid Butler in 1855. He chose "Christians" as the school mascot. Sometime after the school had been renamed in honor of its founder, Butler was suffering a poor football season in 1919. As losses mounted, people grew wary of the "Christians" nickname. Before a big game against the rival Franklin "Baptists", the Butler Collegian was trying to conceive of a way to fire people up when "Shimmy", a bulldog owned by one of the fraternities, wandered into their office. Shimmy inspired cartoonist George Dickson to draw a bulldog labeled "Butler" taking a bite out of John The Baptist. Butler lost the game, but the nickname "Bulldogs" stuck.
Eventually, the bulldog was selected as the official mascot of the university. For many years, Butler had unofficial live bulldog mascots that kept by various fraternities. In 2000, Butler Blue became the school's first official live mascot. To date, there have been four dogs to carry the name "Blue", the university's primary color, with the fourth officially assuming mascot duties for the 2020–21 school year.
Butler Blue I (September 23, 2000 – May 30, 2014) – one NCAA Sweet 16 appearance (2003) and two Horizon League McCafferty All-Sports Championships (2002, 2003). Term of service: 2000–2003
Butler Blue II (March 27, 2004 – August 31, 2013) – Two NCAA National Championship appearances (2010 & 2011), three Sweet 16 appearances (2007, 2010, 2011) and three Horizon League McCafferty All-Sports Championships (2007, 2010, & 2011). Term of service: 2004–2013
Butler Blue III ("Trip") (December 23, 2011 – ) – Became Butler's new mascot on May 20, 2013. Trip had been announced as Blue II's successor on March 9, immediately before the school's last home men's basketball game of the season. Retired at the end of the 2019–20 school year. At the same time, Michael Kaltenmark, who became mascot handler when Blue II assumed the role, retired from the handling role, although he remains in his regular university job and continues in a behind-the-scenes role in the mascot program. Term of service: 2013–2020
Butler Blue IV ("Blue") (October 30, 2019 – ) – Announced as Trip's successor on January 22, 2020 and unveiled to the public two days later. Kaltenmark's role as mascot handler was taken over by Butler alumnus and employee Evan Krauss.
In addition to "Blue," a person in bulldog costume also performs as "Hink" for various Butler University athletic and university events.
Conference affiliation
Butler first joined a Division I conference in 1932 when the men's basketball team joined the Missouri Valley Conference. Other sports joined conferences in later years. On May 2, 2012, it was made official that Butler would join the Atlantic 10 Conference beginning in the 2013 season. However, the timeline was later shortened so that the Bulldogs would begin competition beginning in the 2012 season. On August 1, 2012, Butler announced it joined the Metro Atlantic Athletic Conference for women's golf following the school's split with the Horizon League, where the Bulldogs won all but two of the conference's championships in the sport. On March 20, 2013, the Butler administration announced that the school would join the reconfigured Big East, and moved to the new conference on July 1, 2013.
Notes
External links
Sports clubs and teams in Indianapolis
|
The 2011–12 season was Swansea City's third season in the first tier of English football, and their first return to top-flight football since 1983. During the 2010–11 season, Swansea finished in 3rd place and beat Reading 4–2 in the Championship play-off final, to win promotion to the Premier League. In doing so, they became the first Welsh team to enter the Premier League. Swansea finished the season at 11th place after beating Liverpool 1–0 in the last game of the season on 13 May 2012. Safety was already confirmed two weeks prior when the Swans drew 4–4 with Wolverhampton Wanderers on 28 April 2012, a game Swansea had led 4–1, although Andrea Orlandi posted the fastest goal of the season in that match.
Players
Squad
Updated 13 May 2012.
On loan players during the season
Transfers
Transfers in
Transfers out
Loans in
Loans out
New contracts
Season statistics
Premier League table
Results summary
League performance
Statistics
Goals and appearances
Left club mid-season
Top scorers
Includes all competitive matches. The list is sorted by shirt number when total goals are equal.
{| class="wikitable" style="font-size: 95%; text-align: center;"
|-
!width=15|
!width=15|
!width=15|
!width=15|
!width=150|Name
!width=80|Premier League
!width=80|FA Cup
!width=80|League Cup
!width=80|Total
|-
|1
|10
|FW
|
|Danny Graham
|12
|2
|0
|14
|-
|2
|11
|LW
|
|Scott Sinclair
|8
|0
|0
|8
|-
|3
|42
|MF
|
|Gylfi Sigurðsson
|7
|0
|0
|7
|-
|4
|12
|RW
|
|Nathan Dyer
|5
|1
|0
|6
|-
|5
|24
|MF
|
|Joe Allen
|4
|0
|0
|4
|-
|6
|19
|FW
|
|Luke Moore
|2
|1
|0
|3
|-
|7
|18
|FW
|
|Leroy Lita
|2
|0
|0
|2
|-
|8
|2
|CB
|
|Ashley Williams
|1
|0
|0
|1
|-
|=
|8
|LW
|
|Andrea Orlandi
|1
|0
|0
|1
|-
|=
|15
|MF
|
|Wayne Routledge
|1
|0
|0
|1
|-
|=
|22
|FB
|
|Àngel Rangel
|0
|1
|0
|1
|-
|colspan="4"|
|Own goals
|1
|0
|1
|2
|-
|colspan="4"|
|Totals
|44
|5
|1
|50
Captains
Accounts for the Premier League only.
Starting formations
Accounts for Premier League formations only.
Fixtures & results
Pre-season friendlies
Mid-season friendlies
Premier League
FA Cup
League Cup
References
Swansea City A.F.C. seasons
Swansea City
Swansea City
|
```forth
*> \brief \b DGGHD3
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* path_to_url
*
*> \htmlonly
*> Download DGGHD3 + dependencies
*> <a href="path_to_url">
*> [TGZ]</a>
*> <a href="path_to_url">
*> [ZIP]</a>
*> <a href="path_to_url">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
*
* SUBROUTINE DGGHD3( COMPQ, COMPZ, N, ILO, IHI, A, LDA, B, LDB, Q,
* LDQ, Z, LDZ, WORK, LWORK, INFO )
*
* .. Scalar Arguments ..
* CHARACTER COMPQ, COMPZ
* INTEGER IHI, ILO, INFO, LDA, LDB, LDQ, LDZ, N, LWORK
* ..
* .. Array Arguments ..
* DOUBLE PRECISION A( LDA, * ), B( LDB, * ), Q( LDQ, * ),
* $ Z( LDZ, * ), WORK( * )
* ..
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> DGGHD3 reduces a pair of real matrices (A,B) to generalized upper
*> Hessenberg form using orthogonal transformations, where A is a
*> general matrix and B is upper triangular. The form of the
*> generalized eigenvalue problem is
*> A*x = lambda*B*x,
*> and B is typically made upper triangular by computing its QR
*> factorization and moving the orthogonal matrix Q to the left side
*> of the equation.
*>
*> This subroutine simultaneously reduces A to a Hessenberg matrix H:
*> Q**T*A*Z = H
*> and transforms B to another upper triangular matrix T:
*> Q**T*B*Z = T
*> in order to reduce the problem to its standard form
*> H*y = lambda*T*y
*> where y = Z**T*x.
*>
*> The orthogonal matrices Q and Z are determined as products of Givens
*> rotations. They may either be formed explicitly, or they may be
*> postmultiplied into input matrices Q1 and Z1, so that
*>
*> Q1 * A * Z1**T = (Q1*Q) * H * (Z1*Z)**T
*>
*> Q1 * B * Z1**T = (Q1*Q) * T * (Z1*Z)**T
*>
*> If Q1 is the orthogonal matrix from the QR factorization of B in the
*> original equation A*x = lambda*B*x, then DGGHD3 reduces the original
*> problem to generalized Hessenberg form.
*>
*> This is a blocked variant of DGGHRD, using matrix-matrix
*> multiplications for parts of the computation to enhance performance.
*> \endverbatim
*
* Arguments:
* ==========
*
*> \param[in] COMPQ
*> \verbatim
*> COMPQ is CHARACTER*1
*> = 'N': do not compute Q;
*> = 'I': Q is initialized to the unit matrix, and the
*> orthogonal matrix Q is returned;
*> = 'V': Q must contain an orthogonal matrix Q1 on entry,
*> and the product Q1*Q is returned.
*> \endverbatim
*>
*> \param[in] COMPZ
*> \verbatim
*> COMPZ is CHARACTER*1
*> = 'N': do not compute Z;
*> = 'I': Z is initialized to the unit matrix, and the
*> orthogonal matrix Z is returned;
*> = 'V': Z must contain an orthogonal matrix Z1 on entry,
*> and the product Z1*Z is returned.
*> \endverbatim
*>
*> \param[in] N
*> \verbatim
*> N is INTEGER
*> The order of the matrices A and B. N >= 0.
*> \endverbatim
*>
*> \param[in] ILO
*> \verbatim
*> ILO is INTEGER
*> \endverbatim
*>
*> \param[in] IHI
*> \verbatim
*> IHI is INTEGER
*>
*> ILO and IHI mark the rows and columns of A which are to be
*> reduced. It is assumed that A is already upper triangular
*> in rows and columns 1:ILO-1 and IHI+1:N. ILO and IHI are
*> normally set by a previous call to DGGBAL; otherwise they
*> should be set to 1 and N respectively.
*> 1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0.
*> \endverbatim
*>
*> \param[in,out] A
*> \verbatim
*> A is DOUBLE PRECISION array, dimension (LDA, N)
*> On entry, the N-by-N general matrix to be reduced.
*> On exit, the upper triangle and the first subdiagonal of A
*> are overwritten with the upper Hessenberg matrix H, and the
*> rest is set to zero.
*> \endverbatim
*>
*> \param[in] LDA
*> \verbatim
*> LDA is INTEGER
*> The leading dimension of the array A. LDA >= max(1,N).
*> \endverbatim
*>
*> \param[in,out] B
*> \verbatim
*> B is DOUBLE PRECISION array, dimension (LDB, N)
*> On entry, the N-by-N upper triangular matrix B.
*> On exit, the upper triangular matrix T = Q**T B Z. The
*> elements below the diagonal are set to zero.
*> \endverbatim
*>
*> \param[in] LDB
*> \verbatim
*> LDB is INTEGER
*> The leading dimension of the array B. LDB >= max(1,N).
*> \endverbatim
*>
*> \param[in,out] Q
*> \verbatim
*> Q is DOUBLE PRECISION array, dimension (LDQ, N)
*> On entry, if COMPQ = 'V', the orthogonal matrix Q1,
*> typically from the QR factorization of B.
*> On exit, if COMPQ='I', the orthogonal matrix Q, and if
*> COMPQ = 'V', the product Q1*Q.
*> Not referenced if COMPQ='N'.
*> \endverbatim
*>
*> \param[in] LDQ
*> \verbatim
*> LDQ is INTEGER
*> The leading dimension of the array Q.
*> LDQ >= N if COMPQ='V' or 'I'; LDQ >= 1 otherwise.
*> \endverbatim
*>
*> \param[in,out] Z
*> \verbatim
*> Z is DOUBLE PRECISION array, dimension (LDZ, N)
*> On entry, if COMPZ = 'V', the orthogonal matrix Z1.
*> On exit, if COMPZ='I', the orthogonal matrix Z, and if
*> COMPZ = 'V', the product Z1*Z.
*> Not referenced if COMPZ='N'.
*> \endverbatim
*>
*> \param[in] LDZ
*> \verbatim
*> LDZ is INTEGER
*> The leading dimension of the array Z.
*> LDZ >= N if COMPZ='V' or 'I'; LDZ >= 1 otherwise.
*> \endverbatim
*>
*> \param[out] WORK
*> \verbatim
*> WORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK))
*> On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
*> \endverbatim
*>
*> \param[in] LWORK
*> \verbatim
*> LWORK is INTEGER
*> The length of the array WORK. LWORK >= 1.
*> For optimum performance LWORK >= 6*N*NB, where NB is the
*> optimal blocksize.
*>
*> If LWORK = -1, then a workspace query is assumed; the routine
*> only calculates the optimal size of the WORK array, returns
*> this value as the first entry of the WORK array, and no error
*> message related to LWORK is issued by XERBLA.
*> \endverbatim
*>
*> \param[out] INFO
*> \verbatim
*> INFO is INTEGER
*> = 0: successful exit.
*> < 0: if INFO = -i, the i-th argument had an illegal value.
*> \endverbatim
*
* Authors:
* ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup gghd3
*
*> \par Further Details:
* =====================
*>
*> \verbatim
*>
*> This routine reduces A to Hessenberg form and maintains B in triangular form
*> using a blocked variant of Moler and Stewart's original algorithm,
*> as described by Kagstrom, Kressner, Quintana-Orti, and Quintana-Orti
*> (BIT 2008).
*> \endverbatim
*>
* =====================================================================
SUBROUTINE DGGHD3( COMPQ, COMPZ, N, ILO, IHI, A, LDA, B, LDB,
$ Q,
$ LDQ, Z, LDZ, WORK, LWORK, INFO )
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
*
IMPLICIT NONE
*
* .. Scalar Arguments ..
CHARACTER COMPQ, COMPZ
INTEGER IHI, ILO, INFO, LDA, LDB, LDQ, LDZ, N, LWORK
* ..
* .. Array Arguments ..
DOUBLE PRECISION A( LDA, * ), B( LDB, * ), Q( LDQ, * ),
$ Z( LDZ, * ), WORK( * )
* ..
*
* =====================================================================
*
* .. Parameters ..
DOUBLE PRECISION ZERO, ONE
PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0 )
* ..
* .. Local Scalars ..
LOGICAL BLK22, INITQ, INITZ, LQUERY, WANTQ, WANTZ
CHARACTER*1 COMPQ2, COMPZ2
INTEGER COLA, I, IERR, J, J0, JCOL, JJ, JROW, K,
$ KACC22, LEN, LWKOPT, N2NB, NB, NBLST, NBMIN,
$ NH, NNB, NX, PPW, PPWO, PW, TOP, TOPQ
DOUBLE PRECISION C, C1, C2, S, S1, S2, TEMP, TEMP1, TEMP2, TEMP3
* ..
* .. External Functions ..
LOGICAL LSAME
INTEGER ILAENV
EXTERNAL ILAENV, LSAME
* ..
* .. External Subroutines ..
EXTERNAL DGGHRD, DLARTG, DLASET, DORM22, DROT,
$ DGEMM,
$ DGEMV, DTRMV, DLACPY, XERBLA
* ..
* .. Intrinsic Functions ..
INTRINSIC DBLE, MAX
* ..
* .. Executable Statements ..
*
* Decode and test the input parameters.
*
INFO = 0
NB = ILAENV( 1, 'DGGHD3', ' ', N, ILO, IHI, -1 )
NH = IHI - ILO + 1
IF( NH.LE.1 ) THEN
LWKOPT = 1
ELSE
LWKOPT = 6*N*NB
END IF
WORK( 1 ) = DBLE( LWKOPT )
INITQ = LSAME( COMPQ, 'I' )
WANTQ = INITQ .OR. LSAME( COMPQ, 'V' )
INITZ = LSAME( COMPZ, 'I' )
WANTZ = INITZ .OR. LSAME( COMPZ, 'V' )
LQUERY = ( LWORK.EQ.-1 )
*
IF( .NOT.LSAME( COMPQ, 'N' ) .AND. .NOT.WANTQ ) THEN
INFO = -1
ELSE IF( .NOT.LSAME( COMPZ, 'N' ) .AND. .NOT.WANTZ ) THEN
INFO = -2
ELSE IF( N.LT.0 ) THEN
INFO = -3
ELSE IF( ILO.LT.1 ) THEN
INFO = -4
ELSE IF( IHI.GT.N .OR. IHI.LT.ILO-1 ) THEN
INFO = -5
ELSE IF( LDA.LT.MAX( 1, N ) ) THEN
INFO = -7
ELSE IF( LDB.LT.MAX( 1, N ) ) THEN
INFO = -9
ELSE IF( ( WANTQ .AND. LDQ.LT.N ) .OR. LDQ.LT.1 ) THEN
INFO = -11
ELSE IF( ( WANTZ .AND. LDZ.LT.N ) .OR. LDZ.LT.1 ) THEN
INFO = -13
ELSE IF( LWORK.LT.1 .AND. .NOT.LQUERY ) THEN
INFO = -15
END IF
IF( INFO.NE.0 ) THEN
CALL XERBLA( 'DGGHD3', -INFO )
RETURN
ELSE IF( LQUERY ) THEN
RETURN
END IF
*
* Initialize Q and Z if desired.
*
IF( INITQ )
$ CALL DLASET( 'All', N, N, ZERO, ONE, Q, LDQ )
IF( INITZ )
$ CALL DLASET( 'All', N, N, ZERO, ONE, Z, LDZ )
*
* Zero out lower triangle of B.
*
IF( N.GT.1 )
$ CALL DLASET( 'Lower', N-1, N-1, ZERO, ZERO, B(2, 1), LDB )
*
* Quick return if possible
*
IF( NH.LE.1 ) THEN
WORK( 1 ) = ONE
RETURN
END IF
*
* Determine the blocksize.
*
NBMIN = ILAENV( 2, 'DGGHD3', ' ', N, ILO, IHI, -1 )
IF( NB.GT.1 .AND. NB.LT.NH ) THEN
*
* Determine when to use unblocked instead of blocked code.
*
NX = MAX( NB, ILAENV( 3, 'DGGHD3', ' ', N, ILO, IHI, -1 ) )
IF( NX.LT.NH ) THEN
*
* Determine if workspace is large enough for blocked code.
*
IF( LWORK.LT.LWKOPT ) THEN
*
* Not enough workspace to use optimal NB: determine the
* minimum value of NB, and reduce NB or force use of
* unblocked code.
*
NBMIN = MAX( 2, ILAENV( 2, 'DGGHD3', ' ', N, ILO, IHI,
$ -1 ) )
IF( LWORK.GE.6*N*NBMIN ) THEN
NB = LWORK / ( 6*N )
ELSE
NB = 1
END IF
END IF
END IF
END IF
*
IF( NB.LT.NBMIN .OR. NB.GE.NH ) THEN
*
* Use unblocked code below
*
JCOL = ILO
*
ELSE
*
* Use blocked code
*
KACC22 = ILAENV( 16, 'DGGHD3', ' ', N, ILO, IHI, -1 )
BLK22 = KACC22.EQ.2
DO JCOL = ILO, IHI-2, NB
NNB = MIN( NB, IHI-JCOL-1 )
*
* Initialize small orthogonal factors that will hold the
* accumulated Givens rotations in workspace.
* N2NB denotes the number of 2*NNB-by-2*NNB factors
* NBLST denotes the (possibly smaller) order of the last
* factor.
*
N2NB = ( IHI-JCOL-1 ) / NNB - 1
NBLST = IHI - JCOL - N2NB*NNB
CALL DLASET( 'All', NBLST, NBLST, ZERO, ONE, WORK,
$ NBLST )
PW = NBLST * NBLST + 1
DO I = 1, N2NB
CALL DLASET( 'All', 2*NNB, 2*NNB, ZERO, ONE,
$ WORK( PW ), 2*NNB )
PW = PW + 4*NNB*NNB
END DO
*
* Reduce columns JCOL:JCOL+NNB-1 of A to Hessenberg form.
*
DO J = JCOL, JCOL+NNB-1
*
* Reduce Jth column of A. Store cosines and sines in Jth
* column of A and B, respectively.
*
DO I = IHI, J+2, -1
TEMP = A( I-1, J )
CALL DLARTG( TEMP, A( I, J ), C, S, A( I-1, J ) )
A( I, J ) = C
B( I, J ) = S
END DO
*
* Accumulate Givens rotations into workspace array.
*
PPW = ( NBLST + 1 )*( NBLST - 2 ) - J + JCOL + 1
LEN = 2 + J - JCOL
JROW = J + N2NB*NNB + 2
DO I = IHI, JROW, -1
C = A( I, J )
S = B( I, J )
DO JJ = PPW, PPW+LEN-1
TEMP = WORK( JJ + NBLST )
WORK( JJ + NBLST ) = C*TEMP - S*WORK( JJ )
WORK( JJ ) = S*TEMP + C*WORK( JJ )
END DO
LEN = LEN + 1
PPW = PPW - NBLST - 1
END DO
*
PPWO = NBLST*NBLST + ( NNB+J-JCOL-1 )*2*NNB + NNB
J0 = JROW - NNB
DO JROW = J0, J+2, -NNB
PPW = PPWO
LEN = 2 + J - JCOL
DO I = JROW+NNB-1, JROW, -1
C = A( I, J )
S = B( I, J )
DO JJ = PPW, PPW+LEN-1
TEMP = WORK( JJ + 2*NNB )
WORK( JJ + 2*NNB ) = C*TEMP - S*WORK( JJ )
WORK( JJ ) = S*TEMP + C*WORK( JJ )
END DO
LEN = LEN + 1
PPW = PPW - 2*NNB - 1
END DO
PPWO = PPWO + 4*NNB*NNB
END DO
*
* TOP denotes the number of top rows in A and B that will
* not be updated during the next steps.
*
IF( JCOL.LE.2 ) THEN
TOP = 0
ELSE
TOP = JCOL
END IF
*
* Propagate transformations through B and replace stored
* left sines/cosines by right sines/cosines.
*
DO JJ = N, J+1, -1
*
* Update JJth column of B.
*
DO I = MIN( JJ+1, IHI ), J+2, -1
C = A( I, J )
S = B( I, J )
TEMP = B( I, JJ )
B( I, JJ ) = C*TEMP - S*B( I-1, JJ )
B( I-1, JJ ) = S*TEMP + C*B( I-1, JJ )
END DO
*
* Annihilate B( JJ+1, JJ ).
*
IF( JJ.LT.IHI ) THEN
TEMP = B( JJ+1, JJ+1 )
CALL DLARTG( TEMP, B( JJ+1, JJ ), C, S,
$ B( JJ+1, JJ+1 ) )
B( JJ+1, JJ ) = ZERO
CALL DROT( JJ-TOP, B( TOP+1, JJ+1 ), 1,
$ B( TOP+1, JJ ), 1, C, S )
A( JJ+1, J ) = C
B( JJ+1, J ) = -S
END IF
END DO
*
* Update A by transformations from right.
* Explicit loop unrolling provides better performance
* compared to DLASR.
* CALL DLASR( 'Right', 'Variable', 'Backward', IHI-TOP,
* $ IHI-J, A( J+2, J ), B( J+2, J ),
* $ A( TOP+1, J+1 ), LDA )
*
JJ = MOD( IHI-J-1, 3 )
DO I = IHI-J-3, JJ+1, -3
C = A( J+1+I, J )
S = -B( J+1+I, J )
C1 = A( J+2+I, J )
S1 = -B( J+2+I, J )
C2 = A( J+3+I, J )
S2 = -B( J+3+I, J )
*
DO K = TOP+1, IHI
TEMP = A( K, J+I )
TEMP1 = A( K, J+I+1 )
TEMP2 = A( K, J+I+2 )
TEMP3 = A( K, J+I+3 )
A( K, J+I+3 ) = C2*TEMP3 + S2*TEMP2
TEMP2 = -S2*TEMP3 + C2*TEMP2
A( K, J+I+2 ) = C1*TEMP2 + S1*TEMP1
TEMP1 = -S1*TEMP2 + C1*TEMP1
A( K, J+I+1 ) = C*TEMP1 + S*TEMP
A( K, J+I ) = -S*TEMP1 + C*TEMP
END DO
END DO
*
IF( JJ.GT.0 ) THEN
DO I = JJ, 1, -1
CALL DROT( IHI-TOP, A( TOP+1, J+I+1 ), 1,
$ A( TOP+1, J+I ), 1, A( J+1+I, J ),
$ -B( J+1+I, J ) )
END DO
END IF
*
* Update (J+1)th column of A by transformations from left.
*
IF ( J .LT. JCOL + NNB - 1 ) THEN
LEN = 1 + J - JCOL
*
* Multiply with the trailing accumulated orthogonal
* matrix, which takes the form
*
* [ U11 U12 ]
* U = [ ],
* [ U21 U22 ]
*
* where U21 is a LEN-by-LEN matrix and U12 is lower
* triangular.
*
JROW = IHI - NBLST + 1
CALL DGEMV( 'Transpose', NBLST, LEN, ONE, WORK,
$ NBLST, A( JROW, J+1 ), 1, ZERO,
$ WORK( PW ), 1 )
PPW = PW + LEN
DO I = JROW, JROW+NBLST-LEN-1
WORK( PPW ) = A( I, J+1 )
PPW = PPW + 1
END DO
CALL DTRMV( 'Lower', 'Transpose', 'Non-unit',
$ NBLST-LEN, WORK( LEN*NBLST + 1 ), NBLST,
$ WORK( PW+LEN ), 1 )
CALL DGEMV( 'Transpose', LEN, NBLST-LEN, ONE,
$ WORK( (LEN+1)*NBLST - LEN + 1 ), NBLST,
$ A( JROW+NBLST-LEN, J+1 ), 1, ONE,
$ WORK( PW+LEN ), 1 )
PPW = PW
DO I = JROW, JROW+NBLST-1
A( I, J+1 ) = WORK( PPW )
PPW = PPW + 1
END DO
*
* Multiply with the other accumulated orthogonal
* matrices, which take the form
*
* [ U11 U12 0 ]
* [ ]
* U = [ U21 U22 0 ],
* [ ]
* [ 0 0 I ]
*
* where I denotes the (NNB-LEN)-by-(NNB-LEN) identity
* matrix, U21 is a LEN-by-LEN upper triangular matrix
* and U12 is an NNB-by-NNB lower triangular matrix.
*
PPWO = 1 + NBLST*NBLST
J0 = JROW - NNB
DO JROW = J0, JCOL+1, -NNB
PPW = PW + LEN
DO I = JROW, JROW+NNB-1
WORK( PPW ) = A( I, J+1 )
PPW = PPW + 1
END DO
PPW = PW
DO I = JROW+NNB, JROW+NNB+LEN-1
WORK( PPW ) = A( I, J+1 )
PPW = PPW + 1
END DO
CALL DTRMV( 'Upper', 'Transpose', 'Non-unit',
$ LEN,
$ WORK( PPWO + NNB ), 2*NNB, WORK( PW ),
$ 1 )
CALL DTRMV( 'Lower', 'Transpose', 'Non-unit',
$ NNB,
$ WORK( PPWO + 2*LEN*NNB ),
$ 2*NNB, WORK( PW + LEN ), 1 )
CALL DGEMV( 'Transpose', NNB, LEN, ONE,
$ WORK( PPWO ), 2*NNB, A( JROW, J+1 ), 1,
$ ONE, WORK( PW ), 1 )
CALL DGEMV( 'Transpose', LEN, NNB, ONE,
$ WORK( PPWO + 2*LEN*NNB + NNB ), 2*NNB,
$ A( JROW+NNB, J+1 ), 1, ONE,
$ WORK( PW+LEN ), 1 )
PPW = PW
DO I = JROW, JROW+LEN+NNB-1
A( I, J+1 ) = WORK( PPW )
PPW = PPW + 1
END DO
PPWO = PPWO + 4*NNB*NNB
END DO
END IF
END DO
*
* Apply accumulated orthogonal matrices to A.
*
COLA = N - JCOL - NNB + 1
J = IHI - NBLST + 1
CALL DGEMM( 'Transpose', 'No Transpose', NBLST,
$ COLA, NBLST, ONE, WORK, NBLST,
$ A( J, JCOL+NNB ), LDA, ZERO, WORK( PW ),
$ NBLST )
CALL DLACPY( 'All', NBLST, COLA, WORK( PW ), NBLST,
$ A( J, JCOL+NNB ), LDA )
PPWO = NBLST*NBLST + 1
J0 = J - NNB
DO J = J0, JCOL+1, -NNB
IF ( BLK22 ) THEN
*
* Exploit the structure of
*
* [ U11 U12 ]
* U = [ ]
* [ U21 U22 ],
*
* where all blocks are NNB-by-NNB, U21 is upper
* triangular and U12 is lower triangular.
*
CALL DORM22( 'Left', 'Transpose', 2*NNB, COLA, NNB,
$ NNB, WORK( PPWO ), 2*NNB,
$ A( J, JCOL+NNB ), LDA, WORK( PW ),
$ LWORK-PW+1, IERR )
ELSE
*
* Ignore the structure of U.
*
CALL DGEMM( 'Transpose', 'No Transpose', 2*NNB,
$ COLA, 2*NNB, ONE, WORK( PPWO ), 2*NNB,
$ A( J, JCOL+NNB ), LDA, ZERO, WORK( PW ),
$ 2*NNB )
CALL DLACPY( 'All', 2*NNB, COLA, WORK( PW ), 2*NNB,
$ A( J, JCOL+NNB ), LDA )
END IF
PPWO = PPWO + 4*NNB*NNB
END DO
*
* Apply accumulated orthogonal matrices to Q.
*
IF( WANTQ ) THEN
J = IHI - NBLST + 1
IF ( INITQ ) THEN
TOPQ = MAX( 2, J - JCOL + 1 )
NH = IHI - TOPQ + 1
ELSE
TOPQ = 1
NH = N
END IF
CALL DGEMM( 'No Transpose', 'No Transpose', NH,
$ NBLST, NBLST, ONE, Q( TOPQ, J ), LDQ,
$ WORK, NBLST, ZERO, WORK( PW ), NH )
CALL DLACPY( 'All', NH, NBLST, WORK( PW ), NH,
$ Q( TOPQ, J ), LDQ )
PPWO = NBLST*NBLST + 1
J0 = J - NNB
DO J = J0, JCOL+1, -NNB
IF ( INITQ ) THEN
TOPQ = MAX( 2, J - JCOL + 1 )
NH = IHI - TOPQ + 1
END IF
IF ( BLK22 ) THEN
*
* Exploit the structure of U.
*
CALL DORM22( 'Right', 'No Transpose', NH, 2*NNB,
$ NNB, NNB, WORK( PPWO ), 2*NNB,
$ Q( TOPQ, J ), LDQ, WORK( PW ),
$ LWORK-PW+1, IERR )
ELSE
*
* Ignore the structure of U.
*
CALL DGEMM( 'No Transpose', 'No Transpose', NH,
$ 2*NNB, 2*NNB, ONE, Q( TOPQ, J ), LDQ,
$ WORK( PPWO ), 2*NNB, ZERO, WORK( PW ),
$ NH )
CALL DLACPY( 'All', NH, 2*NNB, WORK( PW ), NH,
$ Q( TOPQ, J ), LDQ )
END IF
PPWO = PPWO + 4*NNB*NNB
END DO
END IF
*
* Accumulate right Givens rotations if required.
*
IF ( WANTZ .OR. TOP.GT.0 ) THEN
*
* Initialize small orthogonal factors that will hold the
* accumulated Givens rotations in workspace.
*
CALL DLASET( 'All', NBLST, NBLST, ZERO, ONE, WORK,
$ NBLST )
PW = NBLST * NBLST + 1
DO I = 1, N2NB
CALL DLASET( 'All', 2*NNB, 2*NNB, ZERO, ONE,
$ WORK( PW ), 2*NNB )
PW = PW + 4*NNB*NNB
END DO
*
* Accumulate Givens rotations into workspace array.
*
DO J = JCOL, JCOL+NNB-1
PPW = ( NBLST + 1 )*( NBLST - 2 ) - J + JCOL + 1
LEN = 2 + J - JCOL
JROW = J + N2NB*NNB + 2
DO I = IHI, JROW, -1
C = A( I, J )
A( I, J ) = ZERO
S = B( I, J )
B( I, J ) = ZERO
DO JJ = PPW, PPW+LEN-1
TEMP = WORK( JJ + NBLST )
WORK( JJ + NBLST ) = C*TEMP - S*WORK( JJ )
WORK( JJ ) = S*TEMP + C*WORK( JJ )
END DO
LEN = LEN + 1
PPW = PPW - NBLST - 1
END DO
*
PPWO = NBLST*NBLST + ( NNB+J-JCOL-1 )*2*NNB + NNB
J0 = JROW - NNB
DO JROW = J0, J+2, -NNB
PPW = PPWO
LEN = 2 + J - JCOL
DO I = JROW+NNB-1, JROW, -1
C = A( I, J )
A( I, J ) = ZERO
S = B( I, J )
B( I, J ) = ZERO
DO JJ = PPW, PPW+LEN-1
TEMP = WORK( JJ + 2*NNB )
WORK( JJ + 2*NNB ) = C*TEMP - S*WORK( JJ )
WORK( JJ ) = S*TEMP + C*WORK( JJ )
END DO
LEN = LEN + 1
PPW = PPW - 2*NNB - 1
END DO
PPWO = PPWO + 4*NNB*NNB
END DO
END DO
ELSE
*
CALL DLASET( 'Lower', IHI - JCOL - 1, NNB, ZERO, ZERO,
$ A( JCOL + 2, JCOL ), LDA )
CALL DLASET( 'Lower', IHI - JCOL - 1, NNB, ZERO, ZERO,
$ B( JCOL + 2, JCOL ), LDB )
END IF
*
* Apply accumulated orthogonal matrices to A and B.
*
IF ( TOP.GT.0 ) THEN
J = IHI - NBLST + 1
CALL DGEMM( 'No Transpose', 'No Transpose', TOP,
$ NBLST, NBLST, ONE, A( 1, J ), LDA,
$ WORK, NBLST, ZERO, WORK( PW ), TOP )
CALL DLACPY( 'All', TOP, NBLST, WORK( PW ), TOP,
$ A( 1, J ), LDA )
PPWO = NBLST*NBLST + 1
J0 = J - NNB
DO J = J0, JCOL+1, -NNB
IF ( BLK22 ) THEN
*
* Exploit the structure of U.
*
CALL DORM22( 'Right', 'No Transpose', TOP,
$ 2*NNB,
$ NNB, NNB, WORK( PPWO ), 2*NNB,
$ A( 1, J ), LDA, WORK( PW ),
$ LWORK-PW+1, IERR )
ELSE
*
* Ignore the structure of U.
*
CALL DGEMM( 'No Transpose', 'No Transpose', TOP,
$ 2*NNB, 2*NNB, ONE, A( 1, J ), LDA,
$ WORK( PPWO ), 2*NNB, ZERO,
$ WORK( PW ), TOP )
CALL DLACPY( 'All', TOP, 2*NNB, WORK( PW ), TOP,
$ A( 1, J ), LDA )
END IF
PPWO = PPWO + 4*NNB*NNB
END DO
*
J = IHI - NBLST + 1
CALL DGEMM( 'No Transpose', 'No Transpose', TOP,
$ NBLST, NBLST, ONE, B( 1, J ), LDB,
$ WORK, NBLST, ZERO, WORK( PW ), TOP )
CALL DLACPY( 'All', TOP, NBLST, WORK( PW ), TOP,
$ B( 1, J ), LDB )
PPWO = NBLST*NBLST + 1
J0 = J - NNB
DO J = J0, JCOL+1, -NNB
IF ( BLK22 ) THEN
*
* Exploit the structure of U.
*
CALL DORM22( 'Right', 'No Transpose', TOP,
$ 2*NNB,
$ NNB, NNB, WORK( PPWO ), 2*NNB,
$ B( 1, J ), LDB, WORK( PW ),
$ LWORK-PW+1, IERR )
ELSE
*
* Ignore the structure of U.
*
CALL DGEMM( 'No Transpose', 'No Transpose', TOP,
$ 2*NNB, 2*NNB, ONE, B( 1, J ), LDB,
$ WORK( PPWO ), 2*NNB, ZERO,
$ WORK( PW ), TOP )
CALL DLACPY( 'All', TOP, 2*NNB, WORK( PW ), TOP,
$ B( 1, J ), LDB )
END IF
PPWO = PPWO + 4*NNB*NNB
END DO
END IF
*
* Apply accumulated orthogonal matrices to Z.
*
IF( WANTZ ) THEN
J = IHI - NBLST + 1
IF ( INITQ ) THEN
TOPQ = MAX( 2, J - JCOL + 1 )
NH = IHI - TOPQ + 1
ELSE
TOPQ = 1
NH = N
END IF
CALL DGEMM( 'No Transpose', 'No Transpose', NH,
$ NBLST, NBLST, ONE, Z( TOPQ, J ), LDZ,
$ WORK, NBLST, ZERO, WORK( PW ), NH )
CALL DLACPY( 'All', NH, NBLST, WORK( PW ), NH,
$ Z( TOPQ, J ), LDZ )
PPWO = NBLST*NBLST + 1
J0 = J - NNB
DO J = J0, JCOL+1, -NNB
IF ( INITQ ) THEN
TOPQ = MAX( 2, J - JCOL + 1 )
NH = IHI - TOPQ + 1
END IF
IF ( BLK22 ) THEN
*
* Exploit the structure of U.
*
CALL DORM22( 'Right', 'No Transpose', NH, 2*NNB,
$ NNB, NNB, WORK( PPWO ), 2*NNB,
$ Z( TOPQ, J ), LDZ, WORK( PW ),
$ LWORK-PW+1, IERR )
ELSE
*
* Ignore the structure of U.
*
CALL DGEMM( 'No Transpose', 'No Transpose', NH,
$ 2*NNB, 2*NNB, ONE, Z( TOPQ, J ), LDZ,
$ WORK( PPWO ), 2*NNB, ZERO, WORK( PW ),
$ NH )
CALL DLACPY( 'All', NH, 2*NNB, WORK( PW ), NH,
$ Z( TOPQ, J ), LDZ )
END IF
PPWO = PPWO + 4*NNB*NNB
END DO
END IF
END DO
END IF
*
* Use unblocked code to reduce the rest of the matrix
* Avoid re-initialization of modified Q and Z.
*
COMPQ2 = COMPQ
COMPZ2 = COMPZ
IF ( JCOL.NE.ILO ) THEN
IF ( WANTQ )
$ COMPQ2 = 'V'
IF ( WANTZ )
$ COMPZ2 = 'V'
END IF
*
IF ( JCOL.LT.IHI )
$ CALL DGGHRD( COMPQ2, COMPZ2, N, JCOL, IHI, A, LDA, B, LDB,
$ Q,
$ LDQ, Z, LDZ, IERR )
*
WORK( 1 ) = DBLE( LWKOPT )
*
RETURN
*
* End of DGGHD3
*
END
```
|
```python
# encoding: utf-8
"""
Objects related to shapes, visual objects that appear on the drawing layer of
a document.
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
from .enum.shape import WD_INLINE_SHAPE
from .oxml.ns import nsmap
from .shared import Parented
class InlineShapes(Parented):
"""
Sequence of |InlineShape| instances, supporting len(), iteration, and
indexed access.
"""
def __init__(self, body_elm, parent):
super(InlineShapes, self).__init__(parent)
self._body = body_elm
def __getitem__(self, idx):
"""
Provide indexed access, e.g. 'inline_shapes[idx]'
"""
try:
inline = self._inline_lst[idx]
except IndexError:
msg = "inline shape index [%d] out of range" % idx
raise IndexError(msg)
return InlineShape(inline)
def __iter__(self):
return (InlineShape(inline) for inline in self._inline_lst)
def __len__(self):
return len(self._inline_lst)
@property
def _inline_lst(self):
body = self._body
xpath = '//w:p/w:r/w:drawing/wp:inline'
return body.xpath(xpath)
class InlineShape(object):
"""
Proxy for an ``<wp:inline>`` element, representing the container for an
inline graphical object.
"""
def __init__(self, inline):
super(InlineShape, self).__init__()
self._inline = inline
@property
def height(self):
"""
Read/write. The display height of this inline shape as an |Emu|
instance.
"""
return self._inline.extent.cy
@height.setter
def height(self, cy):
self._inline.extent.cy = cy
self._inline.graphic.graphicData.pic.spPr.cy = cy
@property
def type(self):
"""
The type of this inline shape as a member of
``docx.enum.shape.WD_INLINE_SHAPE``, e.g. ``LINKED_PICTURE``.
Read-only.
"""
graphicData = self._inline.graphic.graphicData
uri = graphicData.uri
if uri == nsmap['pic']:
blip = graphicData.pic.blipFill.blip
if blip.link is not None:
return WD_INLINE_SHAPE.LINKED_PICTURE
return WD_INLINE_SHAPE.PICTURE
if uri == nsmap['c']:
return WD_INLINE_SHAPE.CHART
if uri == nsmap['dgm']:
return WD_INLINE_SHAPE.SMART_ART
return WD_INLINE_SHAPE.NOT_IMPLEMENTED
@property
def width(self):
"""
Read/write. The display width of this inline shape as an |Emu|
instance.
"""
return self._inline.extent.cx
@width.setter
def width(self, cx):
self._inline.extent.cx = cx
self._inline.graphic.graphicData.pic.spPr.cx = cx
```
|
Little Coates is an area of western Grimsby, North East Lincolnshire, England. It is in the Yarborough ward of the North East Lincolnshire Unitary Council.
History
Little Coates was already inhabited at the time of the Norman conquest. By 1861 it had a population of 59 and consisted of Saint Michael's church (later rebuilt by Sir Walter Tapper in 1915) and a few cottages. There was also a farm on the site where now stands the recreation ground and golf course.
Situated just within the parish, near present-day Chelmsford Avenue and Westhill Road, were natural water springs. Waterworks were established here in 1863 by the Great Grimsby Waterworks Company. Supplies were pumped from the springs to homes in neighbouring Grimsby via a reservoir at Scartho. Today the site is owned by Anglian Water.
By 1901 the population had reached 83. In the northern corner of the parish fish curing houses were erected. Dixons paper mill opened in 1906 – population increased as houses were built in the vicinity of the mill, with a community established in the Gilbey Road area. The mill closed in 1973. Little Coates school was opened in Harlow Street, and is still functioning. In 1921 Little Coates' population was 2,768.
Geography
Previously a separate civil parish covering , Little Coates stretches northward to the Pyewipe industrial estate, westward to the River Freshney and southward to Laceby Road (A46). On the other side of the river is the parish of Great Coates and the Willows/Wybers Wood estates, while to the south lies the parish of Bradley.
In 1928 Little Coates ceased to exist as a separate civil parish when much of it was absorbed by Grimsby, with a small part being allocated to Great Coates. Before amalgamation the boundary with Grimsby ran along Pyewipe Road. To the east of this line, within Grimsby, were Corporation Road, Armstrong Street and the rest of the West Marsh. On the Little Coates side were Gilbey Road, Elsenham Road and neighbouring streets. The boundary continued southward along the western side of, but excluded, Boulevard Avenue, and took in the Yarborough Road area, parts of Marklew Avenue, Marshall Avenue and Morton Road. It then ran along the eastern edges of, and included, Shaftesbury Avenue, Clifton Road, Richmond Road, Kingston Avenue, the Waterworks Cottages, Cambridge Park estate, Sherwood Road and Watford Avenue, finishing at Laceby Road just west of modern-day Saint Mark's Church.
Community
The ecclesiastical parish of Little Coates is based at the parish church of Saint Michael on Great Coates Road. It cooperates with Great Coates and Bradley village churches, and serves approximately 20,000 people at the western side of the town. The Littlecoates Community Centre on Saint Michaels Road, Yarborough Community Centre on Yarrow Road, and the Yarborough Resource Centre on Central Parade, provide social activities for residents.
Before 2008 community magazines were produced for the Little Coates area – they ceased publication through lack of funding. The Riverside magazine was distributed to the Gilbey Road area (part of West Marsh), Toothill and Roundabout to the Toothill and Yarborough Road area, and Livewire to the Crowland Avenue, Bradley Cross Roads and Laceby Acres areas.
Kingston Gardens is situated in the Waterworks Cottages area. The gardens include a pond and eight acres of woodland. A local residents' group, Friends of Kingston Gardens, improve and maintain the site.
There are two police stations: the Cromwell Road station serves the West Marsh, Yarborough Road, Saint Michaels Road and Laceby Acres, and the station on Laceby Road serves the Crowland estate. On Cromwell Road is a fire station. The only public library in the area was closed in 2004.
Riverside Children's Centre, on Central Parade, provides services for parents with children under the age of five. Broadway Children's Centre provides activities for under fives. On Cromwell Road is the Cromwell Road Resource Centre, which caters for people with complex needs.
There are tenant and resident associations in the Crowland Avenue, Saint Michaels Road, Laceby Acres and Yarborough Road areas. In 2005, following a ballot of tenants, council houses on the Crowland, Littlecoates and Yarborough estates were transferred to the Shoreline Housing Partnership. The Yarborough Estate, built during the 1950s, is being demolished to be replaced by modern housing, in a joint project between Shoreline and Stamford Homes. The Estate's name has been changed to Freshney Green. and 440 new homes will be built. The project includes community facilities, including a health centre at Central Parade, with GP, dental, pharmacy and mental health provision.
Grimsby Golf Course, Capes Recreation Ground, The Humber Royal Hotel on Littlecoates Road, Grimsby Auditorium, Grimsby Leisure Centre on Cromwell Road, and part of the Freshney Parkway recreation area are within Little Coates.
References
Further reading
Lewis, Brian: Unity on Yarborough, Shoreline Housing Partnership (2007)
External links
"Parish of Great and Little Coates with Bradley - The West Grimsby Team Ministry",
Little Coates CP/AP, Visionofbritain.org.uk
Geography of Grimsby
Villages in Lincolnshire
Borough of North East Lincolnshire
|
Derek is a 2008 British documentary film directed by Isaac Julien. It uses archive footage to depict the life of Derek Jarman.
Cast
Derek Jarman - Himself (archive footage)
Tilda Swinton - Narrator (voice)
Margaret Thatcher - Herself (archive footage)
References
External links
British documentary films
2008 documentary films
2008 films
2000s English-language films
2000s British films
|
Rooney is the debut studio album by American alternative rock band Rooney. It was released on May 27, 2003, by Geffen Records. The cover features a recreation of the flag of California. The track "Blueside" was featured in the movie of The Princess Diaries. The track "I'm a Terrible Person" was used in a commercial of Carolina Herrera's perfume. The track "I'm Shakin" was featured in the series premiere of Royal Pains and also featured in an episode of the first season of The O.C., in which the band appeared as themselves.
Critical reception
The album has received generally favorable reviews from music critics. At Metacritic, the album has received an average score of 67/100, indicating "generally favorable reviews".
Track listing
All songs written and composed by Robert Coppola Schwartzman.
"Blueside" – 3:18
"Stay Away" – 3:32
"If It Were Up to Me" – 3:00
"I'm a Terrible Person" – 2:46
"Popstars" – 4:07
"I'm Shakin'" – 3:34
"Daisy Duke" – 3:47
"Sorry Sorry" – 3:07
"That Girl Has Love" – 3:31
"Simply Because" – 4:03
"Losing All Control" – 4:19
UK edition bonus tracks
"The Floor" – 2:57
"Make Some Noise" – 4:17
Personnel
Ned Brower – backing vocals, drums
Taylor Locke – lead guitar
Robert Schwartzman – lead vocals, rhythm guitar
Louie Stephens – keyboards, piano
Matthew Winter – bass guitar
References
External links
Rooney at Discogs (list of releases)
2003 debut albums
Geffen Records albums
Rooney (band) albums
Albums produced by Jimmy Iovine
Albums produced by Keith Forsey
|
Keith Shumate is an American baseball coach and former player, who is the head baseball coach of the Norfolk State Spartans. He played college baseball at Western Carolina from 1985 to 1988. He served as the head coach of the North Carolina A&T Aggies (1997–2011) and the Louisburg Hurricanes (2013–2015).
Playing career
Shumate was a player for the Western Carolina Catamounts baseball program from 1985 to 1988.
Coaching career
From 1994 to 1996, Shumate was the head coach at Grimsley High School in Greensboro, North Carolina.
After going 89–216 in his first 5 seasons, Shumate was unsure that he would be able to keep his job under new athletic's director, Charlie Davis, but just two seasons later he led the Aggies to their first MEAC championship in 12 years. On April 19, 2011, Shumate announced that he would be resigning at the end of the season.
Shumate stepped away from his coaching career in 2015 to watch his son's final two seasons of college baseball.
On July 18, 2012, Shumate was named the head coach of Louisburg College.
On August 25, 2017, Shumate was hired as an assistant coach by the Norfolk State Spartans baseball program. On September 28, 2017, Shumate was named the interim head coach after head coach Claudell Clark resigned.
Head coaching record
See also
List of current NCAA Division I baseball coaches
References
External links
Norfolk State Spartans bio
Living people
Western Carolina Catamounts baseball players
High school baseball coaches in the United States
North Carolina A&T Aggies baseball coaches
Louisburg Hurricanes baseball coaches
Norfolk State Spartans baseball coaches
Year of birth missing (living people)
Kansas City Royals scouts
Baseball coaches from North Carolina
|
```javascript
/*global angular*/
(function () {
'use strict';
angular
.module('simplAdmin.pricing', [])
.config(['$stateProvider',
function ($stateProvider) {
$stateProvider
.state('cart-rules', {
url: '/cart-rules',
templateUrl: '_content/SimplCommerce.Module.Pricing/admin/cart-rule/cart-rule-list.html',
controller: 'CartRuleListCtrl as vm'
})
.state('cart-rule-create', {
url: '/cart-rule/create',
templateUrl: '_content/SimplCommerce.Module.Pricing/admin/cart-rule/cart-rule-form.html',
controller: 'CartRuleFormCtrl as vm'
})
.state('cart-rule-edit', {
url: '/cart-rule/edit/:id',
templateUrl: '_content/SimplCommerce.Module.Pricing/admin/cart-rule/cart-rule-form.html',
controller: 'CartRuleFormCtrl as vm'
})
.state('cart-rule-usages', {
url: '/cart-rule-usages',
templateUrl: '_content/SimplCommerce.Module.Pricing/admin/cart-rule-usage/cart-rule-usage-list.html',
controller: 'CartRuleUsageListCtrl as vm'
})
;
}
]);
})();
```
|
Vrängö is a village in Karlskrona Municipality, Blekinge County, southeastern Sweden. According to the 2005 census it had a population of 175 people. It is situated close to the mouth of the Nättrabyån river on its east bank.
References
Populated places in Karlskrona Municipality
|
```smalltalk
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Northwind.Application.Customers.Commands.UpdateCustomer;
using Northwind.WebUI.IntegrationTests.Common;
using Xunit;
namespace Northwind.WebUI.IntegrationTests.Controllers.Customers
{
public class Update : IClassFixture<CustomWebApplicationFactory<Startup>>
{
private readonly CustomWebApplicationFactory<Startup> _factory;
public Update(CustomWebApplicationFactory<Startup> factory)
{
_factory = factory;
}
[Fact]
public async Task GivenUpdateCustomerCommand_ReturnsSuccessStatusCode()
{
var client = await _factory.GetAuthenticatedClientAsync();
var command = new UpdateCustomerCommand
{
Id = "ALFKI",
Address = "Obere Str. 57",
City = "Berlin",
CompanyName = "Alfreds Futterkiste",
ContactName = "Maria Anders",
ContactTitle = "Sales Representative",
Country = "Germany",
Fax = "030-0076545",
Phone = "030-0074321",
PostalCode = "12209"
};
var content = Utilities.GetRequestContent(command);
var response = await client.PutAsync($"/api/customers/update/{command.Id}", content);
response.EnsureSuccessStatusCode();
}
[Fact]
public async Task your_sha256_hashe()
{
var client = await _factory.GetAuthenticatedClientAsync();
var invalidCommand = new UpdateCustomerCommand
{
Id = "AAAAA",
Address = "Obere Str. 57",
City = "Berlin",
CompanyName = "Alfreds Futterkiste",
ContactName = "Maria Anders",
ContactTitle = "Sales Representative",
Country = "Germany",
Fax = "030-0076545",
Phone = "030-0074321",
PostalCode = "12209"
};
var content = Utilities.GetRequestContent(invalidCommand);
var response = await client.PutAsync($"/api/customers/update/{invalidCommand.Id}", content);
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}
}
}
```
|
Charles Deenen (born 15 January 1970 in Holthees), is a Dutch video game audio director, composer, sound designer, and mixer. He wrote music created sound effects for many Commodore 64 and Amiga games, in addition to working for Interplay, Electronic Arts, and other video game developers.
Video games
In 1987, Deenen, Jeroen Tel, and others started the sound and music group Maniacs of Noise and composed game music for the Commodore 64, Amiga, and Atari ST, being hired by Sega, U.S. Gold, and Probe Software. Initially he was a programmer for the group, while Tel was the composer, but after their first few games he began working on music as well. He composed music for the home computer versions of Double Dragon, Soldier of Light, and Jukka Tapanimäki's game Zamzara. Maniacs of Noise composed the music for over 300 Commodore 64 and Amiga games.
In 1990, he moved to the US and worked for Virgin Games for six months. In 1991, Interplay hired him where was a composer and sound designer on Fallout 1 and Fallout 2, Another World, Planescape: Torment, The Lost Vikings, and Descent 2. In 2002 he left Interplay and briefly worked for Shiny on Enter the Matrix. In 2003, Deenen joined EA Canada as senior audio director for the Need for Speed series. In 2013 he left to work as a freelancer.
Other work
Deenen also works on sound for films. He provides world-wide lectures about sound in video games, films and trailers as of 2006. He is also a professional photographer, having many collections of works on his own site.
References
External links
Designing Sound interview
MobyGames information page
Composer profile at OverClocked ReMix
Charles Deenen at Commodore 64 Scene Database
Car sounds recording: Guide by Charles Deenen. February 25, 2010.
1970 births
Living people
Commodore 64 music
Dutch composers
Video game composers
People from Boxmeer
|
Tocino is bacon in Spanish, typically made from the pork belly and often formed into cubes in Spain. In Caribbean countries, such as Puerto Rico and Cuba, tocino is made from pork fatback and is neither cured nor smoked but simply fried until very crunchy; it is then added to recipes, much like the way lardons are used in French cuisine. In the Philippines, tocino refers to sweetened and cured pork belly.
Spain
In Spain, as in Venezuela (where bacon is "tocineta"), the word tocino refers to the layer of fat under a pig's skin. It is almost pure fat, and is often salted and cut into cubes. It is consumed as part of traditional recipes such as cocido.
Philippines
In making tocino in the Philippines, the pork belly meat is first sliced into thin strips. Anise wine, annatto, water, sugar, and salt are combined in a container, and the meat strips are sprinkled with the mixture and stacked in a container, which is covered and refrigerated for three days to cure. In an alternate recipe, the meat strips are marinated with salt, sugar, and salitre (saltpetre), and pineapple juice may be added for a slightly tart flavor.
Tocino is traditionally boiled in water (just enough to cover the meat), fried in oil, or cooked over medium heat until the fat is rendered. The Kapampangans (kapampangan: Pindang) who make tocino by simmering it for four to six hours in order to achieve thickness and softness in the meat, then leave it overnight at room temperature before serving it as burong baboy (fermented pork).
Tocino is often served as the popular breakfast or lunchtime combination called tosilog, which name is a portmanteau of tocino, sinangág (garlic rice) and itlóg (egg, which is cooked either sunny-side up or scrambled).
Caribbean
Tocino is cut into small squares and fried until crunchy and added to recipes like mofongo and arroz blanco con tocino, "white rice and tocino". In Cuba, it can be added to soft bread.
Central America
In Nicaragua, tocino is prepared in a few ways. The most common is when it is marinated in achiote, naranja agria, and vinegar and then added to the Nacatamal. It cooks inside of the nacatamal via vapor.
United States
The Hormel Foods Corporation makes a tocino-flavored version of their SPAM product for sale in supermarkets.
See also
Cuisine of the Philippines
Puerto Rican cuisine
Longganisa
Tapa
References
External links
Filipino Pork Tocino Recipe
Tocino de Pancetta, Pancia
Panceta de Cerdo
Tocino Puerto Rico
Filipino cuisine
Caribbean cuisine
Pork
Spanish cuisine
|
```python
import itertools
from dataclasses import dataclass
from typing import List, Set, Tuple
from torch.distributed._tensor._op_schema import OpStrategy, PlacementStrategy
from torch.distributed._tensor.placement_types import (
DTensorSpec,
Partial,
Placement,
Replicate,
Shard,
)
from torch.distributed.device_mesh import DeviceMesh
@dataclass
class EinsumDims:
contracting_dims: List[str]
batch_dims: List[str]
lhs_out_only_dims: List[str]
rhs_out_only_dims: List[str]
@classmethod
def parse_equation(cls, equation: str) -> Tuple[List[str], str]:
# parse einop equation and extract arg specs
"""
Parse the einsum equation str to input dim chars and output dim char
"""
inputs, outputs = equation.split("->")
input_dims, output_dims = inputs.split(","), outputs.split(",")
# NOTE: only support at most two inputs, and single output
# extend to support more inputs if needed in future
assert len(input_dims) <= 2, "Only support at most two inputs"
assert len(output_dims) == 1, "Only support single output"
output_dim = output_dims[0]
return input_dims, output_dim
@classmethod
def parse_dims(cls, input_dims: List[str], output_dim: str) -> "EinsumDims":
"""
Parse the dims and extract the contracting, batch, and free dimensions
for the left and right hand sides.
"""
dim_char_set: Set[str] = set()
for input_dim in input_dims:
dim_char_set.update(input_dim)
# get a determinisitc order of all dim chars
all_dim_chars = sorted(dim_char_set)
# parse input and output dimensions
lhs_out_only_dims, rhs_out_only_dims = [], []
batch_dims, contracting_dims = [], []
for dim_char in all_dim_chars:
if dim_char not in output_dim:
contracting_dims.append(dim_char)
else:
is_batch_dim = True
for input_dim in input_dims:
is_batch_dim = is_batch_dim and dim_char in input_dim
if is_batch_dim:
batch_dims.append(dim_char)
else:
assert (
len(input_dims) == 2
), "free dimension only supported for two inputs!"
lhs, rhs = input_dims
if dim_char in lhs:
lhs_out_only_dims.append(dim_char)
elif dim_char in rhs:
rhs_out_only_dims.append(dim_char)
else:
raise RuntimeError("Invalid dimension character")
return cls(
contracting_dims=contracting_dims,
batch_dims=batch_dims,
lhs_out_only_dims=lhs_out_only_dims,
rhs_out_only_dims=rhs_out_only_dims,
)
def gen_einsum_strategies(
equation: str,
mesh: DeviceMesh,
*,
linearity: bool = False,
) -> OpStrategy:
"""
Generate a strategy list for the ops that follow einsum style notation.
"""
# parse einop equation and extract dims
input_dims, output_dim = EinsumDims.parse_equation(equation)
edims = EinsumDims.parse_dims(input_dims, output_dim)
all_mesh_dim_strategies = []
# generate strategies for each mesh dim
for mesh_dim in range(mesh.ndim):
mesh_dim_strategies = []
# placement list stores placements of [output, input1, input2, ...]
# first we always have replicate all for inputs and output
placement_list: List[Placement] = [Replicate()] * (len(input_dims) + 1)
mesh_dim_strategies.append(placement_list)
if mesh.size(mesh_dim) <= 1:
# only replicate strategy for mesh dim with size 1
# TODO: see if this is valid for the submesh case
continue
# split batch dim
for batch_dim in edims.batch_dims:
output_batch_dim = output_dim.index(batch_dim)
placement_list = [Shard(output_batch_dim)]
for input_dim in input_dims:
input_batch_dim = input_dim.index(batch_dim)
placement_list.append(Shard(input_batch_dim))
mesh_dim_strategies.append(placement_list)
# split contracting dim
for contracting_dim in edims.contracting_dims:
placement_list = [Partial()]
for input_dim in input_dims:
input_contracting_dim = input_dim.index(contracting_dim)
placement_list.append(Shard(input_contracting_dim))
mesh_dim_strategies.append(placement_list)
# split lhs free dim
for lhs_dim in edims.lhs_out_only_dims:
lhs_free_dim = output_dim.index(lhs_dim)
# this means split the lhs input and output
# i.e. S(0), R -> S(0)
lhs_placement_list: List[Placement] = [
Shard(lhs_free_dim),
Shard(lhs_free_dim),
Replicate(),
]
mesh_dim_strategies.append(lhs_placement_list)
# split rhs free dim
for rhs_dim in edims.rhs_out_only_dims:
rhs_free_dim = output_dim.index(rhs_dim)
rhs_placement_list: List[Placement] = [
Shard(rhs_free_dim),
Replicate(),
Shard(rhs_free_dim),
]
mesh_dim_strategies.append(rhs_placement_list)
# linearity strategy
if linearity:
linearity_placement_list: List[Placement] = [Partial()]
for input_dim in input_dims:
linearity_placement_list.append(Partial())
mesh_dim_strategies.append(linearity_placement_list)
all_mesh_dim_strategies.append(mesh_dim_strategies)
# generate strategies for entire mesh
strategy_combs = itertools.product(*all_mesh_dim_strategies)
# TODO: filter out invalid strategies, at this point we generate
# all possible strategies without considering the whether the tensor
# dim could be sharded or not, we would need to filter out invalid
# strategies base on the actual tensor shape
# (i.e. for Shard, tensor dim size must > mesh size)
all_strategies = []
for strategy_comb in strategy_combs:
spec_list = []
for specs in zip(*strategy_comb):
spec_list.append(DTensorSpec(mesh, tuple(specs)))
strat = PlacementStrategy(output_specs=spec_list[0], input_specs=spec_list[1:])
all_strategies.append(strat)
return OpStrategy(all_strategies)
```
|
Irish Mythen is an Irish-born Canadian contemporary folk singer-songwriter. In recent years, Mythen has performed with Rod Stewart, Gordon Lightfoot and Lucinda Williams at major festival stages the world over. Mythen's first two full-length albums were Sweet Necessity in 2008 and Open Here in 2011. She moved to Prince Edward Island in 2007, where she won the Songwriter of the Year Award in 2016 for her song "Gypsy Dancer". Her third album, released in 2014 titled Irish Mythen, won the East Coast Music Association 2015 Roots Album of the Year. Mythen is described as "rambunctious, thoughtful, tender and loud" by ABC Radio National. She was one of several female artists at the 2018 edition of the legendary Cambridge Folk Festival, who were singled out by the Guardian newspaper in their praise of new (since 2017) festival booker Bev Burton's female-heavy line-up for the festival. Australia's premier folk and roots festival Byron Bay Bluesfest call her a 'must see artist' and she is booked to make a third appearance at the festival in 2019.
Her album Little Bones received a Juno Award nomination for Contemporary Roots Album of the Year at the Juno Awards of 2020, and won the Canadian Folk Music Award for Solo Artist of the Year at the 15th Canadian Folk Music Awards.
References
External links
Official website
Year of birth missing (living people)
Living people
Canadian people of Irish descent
Canadian women singer-songwriters
Canadian folk singer-songwriters
Musicians from Prince Edward Island
Canadian Folk Music Award winners
|
```html
<ng-template
#tooltipContent
[ngTemplateOutlet]="formatterTemplate"
[ngTemplateOutletContext]="_context"
></ng-template>
```
|
The Limerick Junior Hurling Championship is an annual Gaelic Athletic Association competition organised by Limerick GAA exclusively for junior hurling clubs in County Limerick. The winner qualifies to represent the county in the Munster Junior Club Hurling Championship, the winner of which progresses to the All-Ireland Junior Club Hurling Championship. Apart from a few years when there was an Intermediate hurling Championship, the Junior Hurling championship was the second most important hurling competition in Limerick. When the Intermediate hurling Championship restarted in 1988, the Junior became the third most important competition and in 2014 with the advent of the Premier Intermediate hurling Championship it became the Fourth tier of Limerick hurling.
Roll of honour
See also
Limerick Senior Football Championship
Limerick Intermediate Hurling Championship
External links
Official Limerick website
Limerick on Hoganstand
Limerick Club GAA
See also
Limerick Senior Hurling Championship
Limerick Intermediate Hurling Championship
Limerick Premier Intermediate Hurling Championship
External links
Official Limerick website
Limerick on Hoganstand
Limerick Club GAA
1
Junior hurling county championships
|
```perl6
package IO::Uncompress::Unzip;
require 5.006 ;
# for RFC1952
use strict ;
use warnings;
use bytes;
use IO::File;
use IO::Uncompress::RawInflate 2.204 ;
use IO::Compress::Base::Common 2.204 qw(:Status );
use IO::Uncompress::Adapter::Inflate 2.204 ;
use IO::Uncompress::Adapter::Identity 2.204 ;
use IO::Compress::Zlib::Extra 2.204 ;
use IO::Compress::Zip::Constants 2.204 ;
use Compress::Raw::Zlib 2.204 () ;
BEGIN
{
# Don't trigger any __DIE__ Hooks.
local $SIG{__DIE__};
eval{ require IO::Uncompress::Adapter::Bunzip2 ;
IO::Uncompress::Adapter::Bunzip2->import() } ;
eval{ require IO::Uncompress::Adapter::UnLzma ;
IO::Uncompress::Adapter::UnLzma->import() } ;
eval{ require IO::Uncompress::Adapter::UnXz ;
IO::Uncompress::Adapter::UnXz->import() } ;
eval{ require IO::Uncompress::Adapter::UnZstd ;
IO::Uncompress::Adapter::UnZstd->import() } ;
}
require Exporter ;
our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $UnzipError, %headerLookup);
$VERSION = '2.204';
$UnzipError = '';
@ISA = qw(IO::Uncompress::RawInflate Exporter);
@EXPORT_OK = qw($UnzipError unzip );
%EXPORT_TAGS = %IO::Uncompress::RawInflate::EXPORT_TAGS ;
push @{ $EXPORT_TAGS{all} }, @EXPORT_OK ;
Exporter::export_ok_tags('all');
%headerLookup = (
ZIP_CENTRAL_HDR_SIG, \&skipCentralDirectory,
ZIP_END_CENTRAL_HDR_SIG, \&skipEndCentralDirectory,
ZIP64_END_CENTRAL_REC_HDR_SIG, \&skipCentralDirectory64Rec,
ZIP64_END_CENTRAL_LOC_HDR_SIG, \&skipCentralDirectory64Loc,
ZIP64_ARCHIVE_EXTRA_SIG, \&skipArchiveExtra,
ZIP64_DIGITAL_SIGNATURE_SIG, \&skipDigitalSignature,
);
my %MethodNames = (
ZIP_CM_DEFLATE() => 'Deflated',
ZIP_CM_BZIP2() => 'Bzip2',
ZIP_CM_LZMA() => 'Lzma',
ZIP_CM_STORE() => 'Stored',
ZIP_CM_XZ() => 'Xz',
ZIP_CM_ZSTD() => 'Zstd',
);
sub new
{
my $class = shift ;
my $obj = IO::Compress::Base::Common::createSelfTiedObject($class, \$UnzipError);
$obj->_create(undef, 0, @_);
}
sub unzip
{
my $obj = IO::Compress::Base::Common::createSelfTiedObject(undef, \$UnzipError);
return $obj->_inf(@_) ;
}
sub getExtraParams
{
return (
# # Zip header fields
'name' => [IO::Compress::Base::Common::Parse_any, undef],
'stream' => [IO::Compress::Base::Common::Parse_boolean, 0],
'efs' => [IO::Compress::Base::Common::Parse_boolean, 0],
# TODO - This means reading the central directory to get
# 1. the local header offsets
# 2. The compressed data length
);
}
sub ckParams
{
my $self = shift ;
my $got = shift ;
# unzip always needs crc32
$got->setValue('crc32' => 1);
*$self->{UnzipData}{Name} = $got->getValue('name');
*$self->{UnzipData}{efs} = $got->getValue('efs');
return 1;
}
sub mkUncomp
{
my $self = shift ;
my $got = shift ;
my $magic = $self->ckMagic()
or return 0;
*$self->{Info} = $self->readHeader($magic)
or return undef ;
return 1;
}
sub ckMagic
{
my $self = shift;
my $magic ;
$self->smartReadExact(\$magic, 4);
*$self->{HeaderPending} = $magic ;
return $self->HeaderError("Minimum header size is " .
4 . " bytes")
if length $magic != 4 ;
return $self->HeaderError("Bad Magic")
if ! _isZipMagic($magic) ;
*$self->{Type} = 'zip';
return $magic ;
}
sub fastForward
{
my $self = shift;
my $offset = shift;
# TODO - if Stream isn't enabled & reading from file, use seek
my $buffer = '';
my $c = 1024 * 16;
while ($offset > 0)
{
$c = length $offset
if length $offset < $c ;
$offset -= $c;
$self->smartReadExact(\$buffer, $c)
or return 0;
}
return 1;
}
sub readHeader
{
my $self = shift;
my $magic = shift ;
my $name = *$self->{UnzipData}{Name} ;
my $hdr = $self->_readZipHeader($magic) ;
while (defined $hdr)
{
if (! defined $name || $hdr->{Name} eq $name)
{
return $hdr ;
}
# skip the data
# TODO - when Stream is off, use seek
my $buffer;
if (*$self->{ZipData}{Streaming}) {
while (1) {
my $b;
my $status = $self->smartRead(\$b, 1024 * 16);
return $self->saveErrorString(undef, "Truncated file")
if $status <= 0 ;
my $temp_buf ;
my $out;
$status = *$self->{Uncomp}->uncompr(\$b, \$temp_buf, 0, $out);
return $self->saveErrorString(undef, *$self->{Uncomp}{Error},
*$self->{Uncomp}{ErrorNo})
if $self->saveStatus($status) == STATUS_ERROR;
$self->pushBack($b) ;
if ($status == STATUS_ENDSTREAM) {
*$self->{Uncomp}->reset();
last;
}
}
# skip the trailer
$self->smartReadExact(\$buffer, $hdr->{TrailerLength})
or return $self->saveErrorString(undef, "Truncated file");
}
else {
my $c = $hdr->{CompressedLength}->get64bit();
$self->fastForward($c)
or return $self->saveErrorString(undef, "Truncated file");
$buffer = '';
}
$self->chkTrailer($buffer) == STATUS_OK
or return $self->saveErrorString(undef, "Truncated file");
$hdr = $self->_readFullZipHeader();
return $self->saveErrorString(undef, "Cannot find '$name'")
if $self->smartEof();
}
return undef;
}
sub chkTrailer
{
my $self = shift;
my $trailer = shift;
my ($sig, $CRC32, $cSize, $uSize) ;
my ($cSizeHi, $uSizeHi) = (0, 0);
if (*$self->{ZipData}{Streaming}) {
$sig = unpack ("V", substr($trailer, 0, 4));
$CRC32 = unpack ("V", substr($trailer, 4, 4));
if (*$self->{ZipData}{Zip64} ) {
$cSize = U64::newUnpack_V64 substr($trailer, 8, 8);
$uSize = U64::newUnpack_V64 substr($trailer, 16, 8);
}
else {
$cSize = U64::newUnpack_V32 substr($trailer, 8, 4);
$uSize = U64::newUnpack_V32 substr($trailer, 12, 4);
}
return $self->TrailerError("Data Descriptor signature, got $sig")
if $sig != ZIP_DATA_HDR_SIG;
}
else {
($CRC32, $cSize, $uSize) =
(*$self->{ZipData}{Crc32},
*$self->{ZipData}{CompressedLen},
*$self->{ZipData}{UnCompressedLen});
}
*$self->{Info}{CRC32} = *$self->{ZipData}{CRC32} ;
*$self->{Info}{CompressedLength} = $cSize->get64bit();
*$self->{Info}{UncompressedLength} = $uSize->get64bit();
if (*$self->{Strict}) {
return $self->TrailerError("CRC mismatch")
if $CRC32 != *$self->{ZipData}{CRC32} ;
return $self->TrailerError("CSIZE mismatch.")
if ! $cSize->equal(*$self->{CompSize});
return $self->TrailerError("USIZE mismatch.")
if ! $uSize->equal(*$self->{UnCompSize});
}
my $reachedEnd = STATUS_ERROR ;
# check for central directory or end of central directory
while (1)
{
my $magic ;
my $got = $self->smartRead(\$magic, 4);
return $self->saveErrorString(STATUS_ERROR, "Truncated file")
if $got != 4 && *$self->{Strict};
if ($got == 0) {
return STATUS_EOF ;
}
elsif ($got < 0) {
return STATUS_ERROR ;
}
elsif ($got < 4) {
$self->pushBack($magic) ;
return STATUS_OK ;
}
my $sig = unpack("V", $magic) ;
my $hdr;
if ($hdr = $headerLookup{$sig})
{
if (&$hdr($self, $magic) != STATUS_OK ) {
if (*$self->{Strict}) {
return STATUS_ERROR ;
}
else {
$self->clearError();
return STATUS_OK ;
}
}
if ($sig == ZIP_END_CENTRAL_HDR_SIG)
{
return STATUS_OK ;
last;
}
}
elsif ($sig == ZIP_LOCAL_HDR_SIG)
{
$self->pushBack($magic) ;
return STATUS_OK ;
}
else
{
# put the data back
$self->pushBack($magic) ;
last;
}
}
return $reachedEnd ;
}
sub skipCentralDirectory
{
my $self = shift;
my $magic = shift ;
my $buffer;
$self->smartReadExact(\$buffer, 46 - 4)
or return $self->TrailerError("Minimum header size is " .
46 . " bytes") ;
my $keep = $magic . $buffer ;
*$self->{HeaderPending} = $keep ;
#my $versionMadeBy = unpack ("v", substr($buffer, 4-4, 2));
#my $extractVersion = unpack ("v", substr($buffer, 6-4, 2));
#my $gpFlag = unpack ("v", substr($buffer, 8-4, 2));
#my $compressedMethod = unpack ("v", substr($buffer, 10-4, 2));
#my $lastModTime = unpack ("V", substr($buffer, 12-4, 4));
#my $crc32 = unpack ("V", substr($buffer, 16-4, 4));
my $compressedLength = unpack ("V", substr($buffer, 20-4, 4));
my $uncompressedLength = unpack ("V", substr($buffer, 24-4, 4));
my $filename_length = unpack ("v", substr($buffer, 28-4, 2));
my $extra_length = unpack ("v", substr($buffer, 30-4, 2));
my $comment_length = unpack ("v", substr($buffer, 32-4, 2));
#my $disk_start = unpack ("v", substr($buffer, 34-4, 2));
#my $int_file_attrib = unpack ("v", substr($buffer, 36-4, 2));
#my $ext_file_attrib = unpack ("V", substr($buffer, 38-4, 2));
#my $lcl_hdr_offset = unpack ("V", substr($buffer, 42-4, 2));
my $filename;
my $extraField;
my $comment ;
if ($filename_length)
{
$self->smartReadExact(\$filename, $filename_length)
or return $self->TruncatedTrailer("filename");
$keep .= $filename ;
}
if ($extra_length)
{
$self->smartReadExact(\$extraField, $extra_length)
or return $self->TruncatedTrailer("extra");
$keep .= $extraField ;
}
if ($comment_length)
{
$self->smartReadExact(\$comment, $comment_length)
or return $self->TruncatedTrailer("comment");
$keep .= $comment ;
}
return STATUS_OK ;
}
sub skipArchiveExtra
{
my $self = shift;
my $magic = shift ;
my $buffer;
$self->smartReadExact(\$buffer, 4)
or return $self->TrailerError("Minimum header size is " .
4 . " bytes") ;
my $keep = $magic . $buffer ;
my $size = unpack ("V", $buffer);
$self->smartReadExact(\$buffer, $size)
or return $self->TrailerError("Minimum header size is " .
$size . " bytes") ;
$keep .= $buffer ;
*$self->{HeaderPending} = $keep ;
return STATUS_OK ;
}
sub skipCentralDirectory64Rec
{
my $self = shift;
my $magic = shift ;
my $buffer;
$self->smartReadExact(\$buffer, 8)
or return $self->TrailerError("Minimum header size is " .
8 . " bytes") ;
my $keep = $magic . $buffer ;
my ($sizeLo, $sizeHi) = unpack ("V V", $buffer);
my $size = $sizeHi * U64::MAX32 + $sizeLo;
$self->fastForward($size)
or return $self->TrailerError("Minimum header size is " .
$size . " bytes") ;
#$keep .= $buffer ;
#*$self->{HeaderPending} = $keep ;
#my $versionMadeBy = unpack ("v", substr($buffer, 0, 2));
#my $extractVersion = unpack ("v", substr($buffer, 2, 2));
#my $diskNumber = unpack ("V", substr($buffer, 4, 4));
#my $cntrlDirDiskNo = unpack ("V", substr($buffer, 8, 4));
#my $entriesInThisCD = unpack ("V V", substr($buffer, 12, 8));
#my $entriesInCD = unpack ("V V", substr($buffer, 20, 8));
#my $sizeOfCD = unpack ("V V", substr($buffer, 28, 8));
#my $offsetToCD = unpack ("V V", substr($buffer, 36, 8));
return STATUS_OK ;
}
sub skipCentralDirectory64Loc
{
my $self = shift;
my $magic = shift ;
my $buffer;
$self->smartReadExact(\$buffer, 20 - 4)
or return $self->TrailerError("Minimum header size is " .
20 . " bytes") ;
my $keep = $magic . $buffer ;
*$self->{HeaderPending} = $keep ;
#my $startCdDisk = unpack ("V", substr($buffer, 4-4, 4));
#my $offsetToCD = unpack ("V V", substr($buffer, 8-4, 8));
#my $diskCount = unpack ("V", substr($buffer, 16-4, 4));
return STATUS_OK ;
}
sub skipEndCentralDirectory
{
my $self = shift;
my $magic = shift ;
my $buffer;
$self->smartReadExact(\$buffer, 22 - 4)
or return $self->TrailerError("Minimum header size is " .
22 . " bytes") ;
my $keep = $magic . $buffer ;
*$self->{HeaderPending} = $keep ;
#my $diskNumber = unpack ("v", substr($buffer, 4-4, 2));
#my $cntrlDirDiskNo = unpack ("v", substr($buffer, 6-4, 2));
#my $entriesInThisCD = unpack ("v", substr($buffer, 8-4, 2));
#my $entriesInCD = unpack ("v", substr($buffer, 10-4, 2));
#my $sizeOfCD = unpack ("V", substr($buffer, 12-4, 4));
#my $offsetToCD = unpack ("V", substr($buffer, 16-4, 4));
my $comment_length = unpack ("v", substr($buffer, 20-4, 2));
my $comment ;
if ($comment_length)
{
$self->smartReadExact(\$comment, $comment_length)
or return $self->TruncatedTrailer("comment");
$keep .= $comment ;
}
return STATUS_OK ;
}
sub _isZipMagic
{
my $buffer = shift ;
return 0 if length $buffer < 4 ;
my $sig = unpack("V", $buffer) ;
return $sig == ZIP_LOCAL_HDR_SIG ;
}
sub _readFullZipHeader($)
{
my ($self) = @_ ;
my $magic = '' ;
$self->smartReadExact(\$magic, 4);
*$self->{HeaderPending} = $magic ;
return $self->HeaderError("Minimum header size is " .
30 . " bytes")
if length $magic != 4 ;
return $self->HeaderError("Bad Magic")
if ! _isZipMagic($magic) ;
my $status = $self->_readZipHeader($magic);
delete *$self->{Transparent} if ! defined $status ;
return $status ;
}
sub _readZipHeader($)
{
my ($self, $magic) = @_ ;
my ($HeaderCRC) ;
my ($buffer) = '' ;
$self->smartReadExact(\$buffer, 30 - 4)
or return $self->HeaderError("Minimum header size is " .
30 . " bytes") ;
my $keep = $magic . $buffer ;
*$self->{HeaderPending} = $keep ;
my $extractVersion = unpack ("v", substr($buffer, 4-4, 2));
my $gpFlag = unpack ("v", substr($buffer, 6-4, 2));
my $compressedMethod = unpack ("v", substr($buffer, 8-4, 2));
my $lastModTime = unpack ("V", substr($buffer, 10-4, 4));
my $crc32 = unpack ("V", substr($buffer, 14-4, 4));
my $compressedLength = U64::newUnpack_V32 substr($buffer, 18-4, 4);
my $uncompressedLength = U64::newUnpack_V32 substr($buffer, 22-4, 4);
my $filename_length = unpack ("v", substr($buffer, 26-4, 2));
my $extra_length = unpack ("v", substr($buffer, 28-4, 2));
my $filename;
my $extraField;
my @EXTRA = ();
# Some programs (some versions of LibreOffice) mark entries as streamed, but still fill out
# compressedLength/uncompressedLength & crc32 in the local file header.
# The expected data descriptor is not populated.
# So only assume streaming if the Streaming bit is set AND the compressed length is zero
my $streamingMode = (($gpFlag & ZIP_GP_FLAG_STREAMING_MASK) && $crc32 == 0) ? 1 : 0 ;
my $efs_flag = ($gpFlag & ZIP_GP_FLAG_LANGUAGE_ENCODING) ? 1 : 0;
return $self->HeaderError("Encrypted content not supported")
if $gpFlag & (ZIP_GP_FLAG_ENCRYPTED_MASK|ZIP_GP_FLAG_STRONG_ENCRYPTED_MASK);
return $self->HeaderError("Patch content not supported")
if $gpFlag & ZIP_GP_FLAG_PATCHED_MASK;
*$self->{ZipData}{Streaming} = $streamingMode;
if ($filename_length)
{
$self->smartReadExact(\$filename, $filename_length)
or return $self->TruncatedHeader("Filename");
if (*$self->{UnzipData}{efs} && $efs_flag && $] >= 5.008004)
{
require Encode;
eval { $filename = Encode::decode_utf8($filename, 1) }
or Carp::croak "Zip Filename not UTF-8" ;
}
$keep .= $filename ;
}
my $zip64 = 0 ;
if ($extra_length)
{
$self->smartReadExact(\$extraField, $extra_length)
or return $self->TruncatedHeader("Extra Field");
my $bad = IO::Compress::Zlib::Extra::parseRawExtra($extraField,
\@EXTRA, 1, 0);
return $self->HeaderError($bad)
if defined $bad;
$keep .= $extraField ;
my %Extra ;
for (@EXTRA)
{
$Extra{$_->[0]} = \$_->[1];
}
if (defined $Extra{ZIP_EXTRA_ID_ZIP64()})
{
$zip64 = 1 ;
my $buff = ${ $Extra{ZIP_EXTRA_ID_ZIP64()} };
# This code assumes that all the fields in the Zip64
# extra field aren't necessarily present. The spec says that
# they only exist if the equivalent local headers are -1.
if (! $streamingMode) {
my $offset = 0 ;
if (U64::full32 $uncompressedLength->get32bit() ) {
$uncompressedLength
= U64::newUnpack_V64 substr($buff, 0, 8);
$offset += 8 ;
}
if (U64::full32 $compressedLength->get32bit() ) {
$compressedLength
= U64::newUnpack_V64 substr($buff, $offset, 8);
$offset += 8 ;
}
}
}
}
*$self->{ZipData}{Zip64} = $zip64;
if (! $streamingMode) {
*$self->{ZipData}{Streaming} = 0;
*$self->{ZipData}{Crc32} = $crc32;
*$self->{ZipData}{CompressedLen} = $compressedLength;
*$self->{ZipData}{UnCompressedLen} = $uncompressedLength;
*$self->{CompressedInputLengthRemaining} =
*$self->{CompressedInputLength} = $compressedLength->get64bit();
}
*$self->{ZipData}{CRC32} = Compress::Raw::Zlib::crc32(undef);
*$self->{ZipData}{Method} = $compressedMethod;
if ($compressedMethod == ZIP_CM_DEFLATE)
{
*$self->{Type} = 'zip-deflate';
my $obj = IO::Uncompress::Adapter::Inflate::mkUncompObject(1,0,0);
*$self->{Uncomp} = $obj;
}
elsif ($compressedMethod == ZIP_CM_BZIP2)
{
return $self->HeaderError("Unsupported Compression format $compressedMethod")
if ! defined $IO::Uncompress::Adapter::Bunzip2::VERSION ;
*$self->{Type} = 'zip-bzip2';
my $obj = IO::Uncompress::Adapter::Bunzip2::mkUncompObject();
*$self->{Uncomp} = $obj;
}
elsif ($compressedMethod == ZIP_CM_XZ)
{
return $self->HeaderError("Unsupported Compression format $compressedMethod")
if ! defined $IO::Uncompress::Adapter::UnXz::VERSION ;
*$self->{Type} = 'zip-xz';
my $obj = IO::Uncompress::Adapter::UnXz::mkUncompObject();
*$self->{Uncomp} = $obj;
}
elsif ($compressedMethod == ZIP_CM_ZSTD)
{
return $self->HeaderError("Unsupported Compression format $compressedMethod")
if ! defined $IO::Uncompress::Adapter::UnZstd::VERSION ;
*$self->{Type} = 'zip-zstd';
my $obj = IO::Uncompress::Adapter::UnZstd::mkUncompObject();
*$self->{Uncomp} = $obj;
}
elsif ($compressedMethod == ZIP_CM_LZMA)
{
return $self->HeaderError("Unsupported Compression format $compressedMethod")
if ! defined $IO::Uncompress::Adapter::UnLzma::VERSION ;
*$self->{Type} = 'zip-lzma';
my $LzmaHeader;
$self->smartReadExact(\$LzmaHeader, 4)
or return $self->saveErrorString(undef, "Truncated file");
my ($verHi, $verLo) = unpack ("CC", substr($LzmaHeader, 0, 2));
my $LzmaPropertiesSize = unpack ("v", substr($LzmaHeader, 2, 2));
my $LzmaPropertyData;
$self->smartReadExact(\$LzmaPropertyData, $LzmaPropertiesSize)
or return $self->saveErrorString(undef, "Truncated file");
if (! $streamingMode) {
*$self->{ZipData}{CompressedLen}->subtract(4 + $LzmaPropertiesSize) ;
*$self->{CompressedInputLengthRemaining} =
*$self->{CompressedInputLength} = *$self->{ZipData}{CompressedLen}->get64bit();
}
my $obj =
IO::Uncompress::Adapter::UnLzma::mkUncompZipObject($LzmaPropertyData);
*$self->{Uncomp} = $obj;
}
elsif ($compressedMethod == ZIP_CM_STORE)
{
*$self->{Type} = 'zip-stored';
my $obj =
IO::Uncompress::Adapter::Identity::mkUncompObject($streamingMode,
$zip64);
*$self->{Uncomp} = $obj;
}
else
{
return $self->HeaderError("Unsupported Compression format $compressedMethod");
}
return {
'Type' => 'zip',
'FingerprintLength' => 4,
#'HeaderLength' => $compressedMethod == 8 ? length $keep : 0,
'HeaderLength' => length $keep,
'Zip64' => $zip64,
'TrailerLength' => ! $streamingMode ? 0 : $zip64 ? 24 : 16,
'Header' => $keep,
'CompressedLength' => $compressedLength ,
'UncompressedLength' => $uncompressedLength ,
'CRC32' => $crc32 ,
'Name' => $filename,
'efs' => $efs_flag, # language encoding flag
'Time' => _dosToUnixTime($lastModTime),
'Stream' => $streamingMode,
'MethodID' => $compressedMethod,
'MethodName' => $MethodNames{$compressedMethod} || 'Unknown',
# 'TextFlag' => $flag & GZIP_FLG_FTEXT ? 1 : 0,
# 'HeaderCRCFlag' => $flag & GZIP_FLG_FHCRC ? 1 : 0,
# 'NameFlag' => $flag & GZIP_FLG_FNAME ? 1 : 0,
# 'CommentFlag' => $flag & GZIP_FLG_FCOMMENT ? 1 : 0,
# 'ExtraFlag' => $flag & GZIP_FLG_FEXTRA ? 1 : 0,
# 'Comment' => $comment,
# 'OsID' => $os,
# 'OsName' => defined $GZIP_OS_Names{$os}
# ? $GZIP_OS_Names{$os} : "Unknown",
# 'HeaderCRC' => $HeaderCRC,
# 'Flags' => $flag,
# 'ExtraFlags' => $xfl,
'ExtraFieldRaw' => $extraField,
'ExtraField' => [ @EXTRA ],
}
}
sub filterUncompressed
{
my $self = shift ;
if (*$self->{ZipData}{Method} == ZIP_CM_DEFLATE) {
*$self->{ZipData}{CRC32} = *$self->{Uncomp}->crc32() ;
}
else {
*$self->{ZipData}{CRC32} = Compress::Raw::Zlib::crc32(${$_[0]}, *$self->{ZipData}{CRC32}, $_[1]);
}
}
# from Archive::Zip & info-zip
sub _dosToUnixTime
{
my $dt = shift;
my $year = ( ( $dt >> 25 ) & 0x7f ) + 80;
my $mon = ( ( $dt >> 21 ) & 0x0f ) - 1;
my $mday = ( ( $dt >> 16 ) & 0x1f );
my $hour = ( ( $dt >> 11 ) & 0x1f );
my $min = ( ( $dt >> 5 ) & 0x3f );
my $sec = ( ( $dt << 1 ) & 0x3e );
use Time::Local ;
my $time_t = Time::Local::timelocal( $sec, $min, $hour, $mday, $mon, $year);
return 0 if ! defined $time_t;
return $time_t;
}
#sub scanCentralDirectory
#{
# # Use cases
# # 1 32-bit CD
# # 2 64-bit CD
#
# my $self = shift ;
#
# my @CD = ();
# my $offset = $self->findCentralDirectoryOffset();
#
# return 0
# if ! defined $offset;
#
# $self->smarkSeek($offset, 0, SEEK_SET) ;
#
# # Now walk the Central Directory Records
# my $buffer ;
# while ($self->smartReadExact(\$buffer, 46) &&
# unpack("V", $buffer) == ZIP_CENTRAL_HDR_SIG) {
#
# my $compressedLength = unpack ("V", substr($buffer, 20, 4));
# my $filename_length = unpack ("v", substr($buffer, 28, 2));
# my $extra_length = unpack ("v", substr($buffer, 30, 2));
# my $comment_length = unpack ("v", substr($buffer, 32, 2));
#
# $self->smarkSeek($filename_length + $extra_length + $comment_length, 0, SEEK_CUR)
# if $extra_length || $comment_length || $filename_length;
# push @CD, $compressedLength ;
# }
#
#}
#
#sub findCentralDirectoryOffset
#{
# my $self = shift ;
#
# # Most common use-case is where there is no comment, so
# # know exactly where the end of central directory record
# # should be.
#
# $self->smarkSeek(-22, 0, SEEK_END) ;
#
# my $buffer;
# $self->smartReadExact(\$buffer, 22) ;
#
# my $zip64 = 0;
# my $centralDirOffset ;
# if ( unpack("V", $buffer) == ZIP_END_CENTRAL_HDR_SIG ) {
# $centralDirOffset = unpack ("V", substr($buffer, 16, 2));
# }
# else {
# die "xxxx";
# }
#
# return $centralDirOffset ;
#}
#
#sub is84BitCD
#{
# # TODO
# my $self = shift ;
#}
sub skip
{
my $self = shift;
my $size = shift;
use Fcntl qw(SEEK_CUR);
if (ref $size eq 'U64') {
$self->smartSeek($size->get64bit(), SEEK_CUR);
}
else {
$self->smartSeek($size, SEEK_CUR);
}
}
sub scanCentralDirectory
{
my $self = shift;
my $here = $self->tell();
# Use cases
# 1 32-bit CD
# 2 64-bit CD
my @CD = ();
my $offset = $self->findCentralDirectoryOffset();
return ()
if ! defined $offset;
$self->smarkSeek($offset, 0, SEEK_SET) ;
# Now walk the Central Directory Records
my $buffer ;
while ($self->smartReadExact(\$buffer, 46) &&
unpack("V", $buffer) == ZIP_CENTRAL_HDR_SIG) {
my $compressedLength = unpack("V", substr($buffer, 20, 4));
my $uncompressedLength = unpack("V", substr($buffer, 24, 4));
my $filename_length = unpack("v", substr($buffer, 28, 2));
my $extra_length = unpack("v", substr($buffer, 30, 2));
my $comment_length = unpack("v", substr($buffer, 32, 2));
$self->skip($filename_length ) ;
my $v64 = U64->new( $compressedLength );
if (U64::full32 $compressedLength ) {
$self->smartReadExact(\$buffer, $extra_length) ;
die "xxx $offset $comment_length $filename_length $extra_length" . length($buffer)
if length($buffer) != $extra_length;
my $got = $self->get64Extra($buffer, U64::full32 $uncompressedLength);
# If not Zip64 extra field, assume size is 0xFFFFFFFF
$v64 = $got if defined $got;
}
else {
$self->skip($extra_length) ;
}
$self->skip($comment_length ) ;
push @CD, $v64 ;
}
$self->smartSeek($here, 0, SEEK_SET) ;
return @CD;
}
sub get64Extra
{
my $self = shift ;
my $buffer = shift;
my $is_uncomp = shift ;
my $extra = IO::Compress::Zlib::Extra::findID(0x0001, $buffer);
if (! defined $extra)
{
return undef;
}
else
{
my $u64 = U64::newUnpack_V64(substr($extra, $is_uncomp ? 8 : 0)) ;
return $u64;
}
}
sub offsetFromZip64
{
my $self = shift ;
my $here = shift;
$self->smartSeek($here - 20, 0, SEEK_SET)
or die "xx $!" ;
my $buffer;
my $got = 0;
$self->smartReadExact(\$buffer, 20)
or die "xxx $here $got $!" ;
if ( unpack("V", $buffer) == ZIP64_END_CENTRAL_LOC_HDR_SIG ) {
my $cd64 = U64::Value_VV64 substr($buffer, 8, 8);
$self->smartSeek($cd64, 0, SEEK_SET) ;
$self->smartReadExact(\$buffer, 4)
or die "xxx" ;
if ( unpack("V", $buffer) == ZIP64_END_CENTRAL_REC_HDR_SIG ) {
$self->smartReadExact(\$buffer, 8)
or die "xxx" ;
my $size = U64::Value_VV64($buffer);
$self->smartReadExact(\$buffer, $size)
or die "xxx" ;
my $cd64 = U64::Value_VV64 substr($buffer, 36, 8);
return $cd64 ;
}
die "zzz";
}
die "zzz";
}
use constant Pack_ZIP_END_CENTRAL_HDR_SIG => pack("V", ZIP_END_CENTRAL_HDR_SIG);
sub findCentralDirectoryOffset
{
my $self = shift ;
# Most common use-case is where there is no comment, so
# know exactly where the end of central directory record
# should be.
$self->smartSeek(-22, 0, SEEK_END) ;
my $here = $self->tell();
my $buffer;
$self->smartReadExact(\$buffer, 22)
or die "xxx" ;
my $zip64 = 0;
my $centralDirOffset ;
if ( unpack("V", $buffer) == ZIP_END_CENTRAL_HDR_SIG ) {
$centralDirOffset = unpack("V", substr($buffer, 16, 4));
}
else {
$self->smartSeek(0, 0, SEEK_END) ;
my $fileLen = $self->tell();
my $want = 0 ;
while(1) {
$want += 1024;
my $seekTo = $fileLen - $want;
if ($seekTo < 0 ) {
$seekTo = 0;
$want = $fileLen ;
}
$self->smartSeek( $seekTo, 0, SEEK_SET)
or die "xxx $!" ;
my $got;
$self->smartReadExact($buffer, $want)
or die "xxx " ;
my $pos = rindex( $buffer, Pack_ZIP_END_CENTRAL_HDR_SIG);
if ($pos >= 0) {
#$here = $self->tell();
$here = $seekTo + $pos ;
$centralDirOffset = unpack("V", substr($buffer, $pos + 16, 4));
last ;
}
return undef
if $want == $fileLen;
}
}
$centralDirOffset = $self->offsetFromZip64($here)
if U64::full32 $centralDirOffset ;
return $centralDirOffset ;
}
1;
__END__
=head1 NAME
IO::Uncompress::Unzip - Read zip files/buffers
=head1 SYNOPSIS
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
my $status = unzip $input => $output [,OPTS]
or die "unzip failed: $UnzipError\n";
my $z = IO::Uncompress::Unzip->new( $input [OPTS] )
or die "unzip failed: $UnzipError\n";
$status = $z->read($buffer)
$status = $z->read($buffer, $length)
$status = $z->read($buffer, $length, $offset)
$line = $z->getline()
$char = $z->getc()
$char = $z->ungetc()
$char = $z->opened()
$status = $z->inflateSync()
$data = $z->trailingData()
$status = $z->nextStream()
$data = $z->getHeaderInfo()
$z->tell()
$z->seek($position, $whence)
$z->binmode()
$z->fileno()
$z->eof()
$z->close()
$UnzipError ;
# IO::File mode
<$z>
read($z, $buffer);
read($z, $buffer, $length);
read($z, $buffer, $length, $offset);
tell($z)
seek($z, $position, $whence)
binmode($z)
fileno($z)
eof($z)
close($z)
=head1 DESCRIPTION
This module provides a Perl interface that allows the reading of
zlib files/buffers.
For writing zip files/buffers, see the companion module IO::Compress::Zip.
The primary purpose of this module is to provide I<streaming> read access to
zip files and buffers.
At present the following compression methods are supported by IO::Uncompress::Unzip
=over 5
=item Store (0)
=item Deflate (8)
=item Bzip2 (12)
To read Bzip2 content, the module C<IO::Uncompress::Bunzip2> must
be installed.
=item Lzma (14)
To read LZMA content, the module C<IO::Uncompress::UnLzma> must
be installed.
=item Xz (95)
To read Xz content, the module C<IO::Uncompress::UnXz> must
be installed.
=item Zstandard (93)
To read Zstandard content, the module C<IO::Uncompress::UnZstd> must
be installed.
=back
=head1 Functional Interface
A top-level function, C<unzip>, is provided to carry out
"one-shot" uncompression between buffers and/or files. For finer
control over the uncompression process, see the L</"OO Interface">
section.
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
unzip $input_filename_or_reference => $output_filename_or_reference [,OPTS]
or die "unzip failed: $UnzipError\n";
The functional interface needs Perl5.005 or better.
=head2 unzip $input_filename_or_reference => $output_filename_or_reference [, OPTS]
C<unzip> expects at least two parameters,
C<$input_filename_or_reference> and C<$output_filename_or_reference>
and zero or more optional parameters (see L</Optional Parameters>)
=head3 The C<$input_filename_or_reference> parameter
The parameter, C<$input_filename_or_reference>, is used to define the
source of the compressed data.
It can take one of the following forms:
=over 5
=item A filename
If the C<$input_filename_or_reference> parameter is a simple scalar, it is
assumed to be a filename. This file will be opened for reading and the
input data will be read from it.
=item A filehandle
If the C<$input_filename_or_reference> parameter is a filehandle, the input
data will be read from it. The string '-' can be used as an alias for
standard input.
=item A scalar reference
If C<$input_filename_or_reference> is a scalar reference, the input data
will be read from C<$$input_filename_or_reference>.
=item An array reference
If C<$input_filename_or_reference> is an array reference, each element in
the array must be a filename.
The input data will be read from each file in turn.
The complete array will be walked to ensure that it only
contains valid filenames before any data is uncompressed.
=item An Input FileGlob string
If C<$input_filename_or_reference> is a string that is delimited by the
characters "<" and ">" C<unzip> will assume that it is an
I<input fileglob string>. The input is the list of files that match the
fileglob.
See L<File::GlobMapper|File::GlobMapper> for more details.
=back
If the C<$input_filename_or_reference> parameter is any other type,
C<undef> will be returned.
=head3 The C<$output_filename_or_reference> parameter
The parameter C<$output_filename_or_reference> is used to control the
destination of the uncompressed data. This parameter can take one of
these forms.
=over 5
=item A filename
If the C<$output_filename_or_reference> parameter is a simple scalar, it is
assumed to be a filename. This file will be opened for writing and the
uncompressed data will be written to it.
=item A filehandle
If the C<$output_filename_or_reference> parameter is a filehandle, the
uncompressed data will be written to it. The string '-' can be used as
an alias for standard output.
=item A scalar reference
If C<$output_filename_or_reference> is a scalar reference, the
uncompressed data will be stored in C<$$output_filename_or_reference>.
=item An Array Reference
If C<$output_filename_or_reference> is an array reference,
the uncompressed data will be pushed onto the array.
=item An Output FileGlob
If C<$output_filename_or_reference> is a string that is delimited by the
characters "<" and ">" C<unzip> will assume that it is an
I<output fileglob string>. The output is the list of files that match the
fileglob.
When C<$output_filename_or_reference> is an fileglob string,
C<$input_filename_or_reference> must also be a fileglob string. Anything
else is an error.
See L<File::GlobMapper|File::GlobMapper> for more details.
=back
If the C<$output_filename_or_reference> parameter is any other type,
C<undef> will be returned.
=head2 Notes
When C<$input_filename_or_reference> maps to multiple compressed
files/buffers and C<$output_filename_or_reference> is
a single file/buffer, after uncompression C<$output_filename_or_reference> will contain a
concatenation of all the uncompressed data from each of the input
files/buffers.
=head2 Optional Parameters
The optional parameters for the one-shot function C<unzip>
are (for the most part) identical to those used with the OO interface defined in the
L</"Constructor Options"> section. The exceptions are listed below
=over 5
=item C<< AutoClose => 0|1 >>
This option applies to any input or output data streams to
C<unzip> that are filehandles.
If C<AutoClose> is specified, and the value is true, it will result in all
input and/or output filehandles being closed once C<unzip> has
completed.
This parameter defaults to 0.
=item C<< BinModeOut => 0|1 >>
This option is now a no-op. All files will be written in binmode.
=item C<< Append => 0|1 >>
The behaviour of this option is dependent on the type of output data
stream.
=over 5
=item * A Buffer
If C<Append> is enabled, all uncompressed data will be append to the end of
the output buffer. Otherwise the output buffer will be cleared before any
uncompressed data is written to it.
=item * A Filename
If C<Append> is enabled, the file will be opened in append mode. Otherwise
the contents of the file, if any, will be truncated before any uncompressed
data is written to it.
=item * A Filehandle
If C<Append> is enabled, the filehandle will be positioned to the end of
the file via a call to C<seek> before any uncompressed data is
written to it. Otherwise the file pointer will not be moved.
=back
When C<Append> is specified, and set to true, it will I<append> all uncompressed
data to the output data stream.
So when the output is a filehandle it will carry out a seek to the eof
before writing any uncompressed data. If the output is a filename, it will be opened for
appending. If the output is a buffer, all uncompressed data will be
appended to the existing buffer.
Conversely when C<Append> is not specified, or it is present and is set to
false, it will operate as follows.
When the output is a filename, it will truncate the contents of the file
before writing any uncompressed data. If the output is a filehandle
its position will not be changed. If the output is a buffer, it will be
wiped before any uncompressed data is output.
Defaults to 0.
=item C<< MultiStream => 0|1 >>
If the input file/buffer contains multiple compressed data streams, this
option will uncompress the whole lot as a single data stream.
Defaults to 0.
=item C<< TrailingData => $scalar >>
Returns the data, if any, that is present immediately after the compressed
data stream once uncompression is complete.
This option can be used when there is useful information immediately
following the compressed data stream, and you don't know the length of the
compressed data stream.
If the input is a buffer, C<trailingData> will return everything from the
end of the compressed data stream to the end of the buffer.
If the input is a filehandle, C<trailingData> will return the data that is
left in the filehandle input buffer once the end of the compressed data
stream has been reached. You can then use the filehandle to read the rest
of the input file.
Don't bother using C<trailingData> if the input is a filename.
If you know the length of the compressed data stream before you start
uncompressing, you can avoid having to use C<trailingData> by setting the
C<InputLength> option.
=back
=head2 Examples
Say you have a zip file, C<file1.zip>, that only contains a
single member, you can read it and write the uncompressed data to the
file C<file1.txt> like this.
use strict ;
use warnings ;
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
my $input = "file1.zip";
my $output = "file1.txt";
unzip $input => $output
or die "unzip failed: $UnzipError\n";
If you have a zip file that contains multiple members and want to read a
specific member from the file, say C<"data1">, use the C<Name> option
use strict ;
use warnings ;
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
my $input = "file1.zip";
my $output = "file1.txt";
unzip $input => $output, Name => "data1"
or die "unzip failed: $UnzipError\n";
Alternatively, if you want to read the C<"data1"> member into memory, use
a scalar reference for the C<output> parameter.
use strict ;
use warnings ;
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
my $input = "file1.zip";
my $output ;
unzip $input => \$output, Name => "data1"
or die "unzip failed: $UnzipError\n";
# $output now contains the uncompressed data
To read from an existing Perl filehandle, C<$input>, and write the
uncompressed data to a buffer, C<$buffer>.
use strict ;
use warnings ;
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
use IO::File ;
my $input = IO::File->new( "<file1.zip" )
or die "Cannot open 'file1.zip': $!\n" ;
my $buffer ;
unzip $input => \$buffer
or die "unzip failed: $UnzipError\n";
=head1 OO Interface
=head2 Constructor
The format of the constructor for IO::Uncompress::Unzip is shown below
my $z = IO::Uncompress::Unzip->new( $input [OPTS] )
or die "IO::Uncompress::Unzip failed: $UnzipError\n";
Returns an C<IO::Uncompress::Unzip> object on success and undef on failure.
The variable C<$UnzipError> will contain an error message on failure.
If you are running Perl 5.005 or better the object, C<$z>, returned from
IO::Uncompress::Unzip can be used exactly like an L<IO::File|IO::File> filehandle.
This means that all normal input file operations can be carried out with
C<$z>. For example, to read a line from a compressed file/buffer you can
use either of these forms
$line = $z->getline();
$line = <$z>;
The mandatory parameter C<$input> is used to determine the source of the
compressed data. This parameter can take one of three forms.
=over 5
=item A filename
If the C<$input> parameter is a scalar, it is assumed to be a filename. This
file will be opened for reading and the compressed data will be read from it.
=item A filehandle
If the C<$input> parameter is a filehandle, the compressed data will be
read from it.
The string '-' can be used as an alias for standard input.
=item A scalar reference
If C<$input> is a scalar reference, the compressed data will be read from
C<$$input>.
=back
=head2 Constructor Options
The option names defined below are case insensitive and can be optionally
prefixed by a '-'. So all of the following are valid
-AutoClose
-autoclose
AUTOCLOSE
autoclose
OPTS is a combination of the following options:
=over 5
=item C<< Name => "membername" >>
Open "membername" from the zip file for reading.
=item C<< Efs => 0| 1 >>
When this option is set to true AND the zip archive being read has
the "Language Encoding Flag" (EFS) set, the member name is assumed to be encoded in UTF-8.
If the member name in the zip archive is not valid UTF-8 when this optionn is true,
the script will die with an error message.
Note that this option only works with Perl 5.8.4 or better.
This option defaults to B<false>.
=item C<< AutoClose => 0|1 >>
This option is only valid when the C<$input> parameter is a filehandle. If
specified, and the value is true, it will result in the file being closed once
either the C<close> method is called or the IO::Uncompress::Unzip object is
destroyed.
This parameter defaults to 0.
=item C<< MultiStream => 0|1 >>
Treats the complete zip file/buffer as a single compressed data
stream. When reading in multi-stream mode each member of the zip
file/buffer will be uncompressed in turn until the end of the file/buffer
is encountered.
This parameter defaults to 0.
=item C<< Prime => $string >>
This option will uncompress the contents of C<$string> before processing the
input file/buffer.
This option can be useful when the compressed data is embedded in another
file/data structure and it is not possible to work out where the compressed
data begins without having to read the first few bytes. If this is the
case, the uncompression can be I<primed> with these bytes using this
option.
=item C<< Transparent => 0|1 >>
If this option is set and the input file/buffer is not compressed data,
the module will allow reading of it anyway.
In addition, if the input file/buffer does contain compressed data and
there is non-compressed data immediately following it, setting this option
will make this module treat the whole file/buffer as a single data stream.
This option defaults to 1.
=item C<< BlockSize => $num >>
When reading the compressed input data, IO::Uncompress::Unzip will read it in
blocks of C<$num> bytes.
This option defaults to 4096.
=item C<< InputLength => $size >>
When present this option will limit the number of compressed bytes read
from the input file/buffer to C<$size>. This option can be used in the
situation where there is useful data directly after the compressed data
stream and you know beforehand the exact length of the compressed data
stream.
This option is mostly used when reading from a filehandle, in which case
the file pointer will be left pointing to the first byte directly after the
compressed data stream.
This option defaults to off.
=item C<< Append => 0|1 >>
This option controls what the C<read> method does with uncompressed data.
If set to 1, all uncompressed data will be appended to the output parameter
of the C<read> method.
If set to 0, the contents of the output parameter of the C<read> method
will be overwritten by the uncompressed data.
Defaults to 0.
=item C<< Strict => 0|1 >>
This option controls whether the extra checks defined below are used when
carrying out the decompression. When Strict is on, the extra tests are
carried out, when Strict is off they are not.
The default for this option is off.
=back
=head2 Examples
TODO
=head1 Methods
=head2 read
Usage is
$status = $z->read($buffer)
Reads a block of compressed data (the size of the compressed block is
determined by the C<Buffer> option in the constructor), uncompresses it and
writes any uncompressed data into C<$buffer>. If the C<Append> parameter is
set in the constructor, the uncompressed data will be appended to the
C<$buffer> parameter. Otherwise C<$buffer> will be overwritten.
Returns the number of uncompressed bytes written to C<$buffer>, zero if eof
or a negative number on error.
=head2 read
Usage is
$status = $z->read($buffer, $length)
$status = $z->read($buffer, $length, $offset)
$status = read($z, $buffer, $length)
$status = read($z, $buffer, $length, $offset)
Attempt to read C<$length> bytes of uncompressed data into C<$buffer>.
The main difference between this form of the C<read> method and the
previous one, is that this one will attempt to return I<exactly> C<$length>
bytes. The only circumstances that this function will not is if end-of-file
or an IO error is encountered.
Returns the number of uncompressed bytes written to C<$buffer>, zero if eof
or a negative number on error.
=head2 getline
Usage is
$line = $z->getline()
$line = <$z>
Reads a single line.
This method fully supports the use of the variable C<$/> (or
C<$INPUT_RECORD_SEPARATOR> or C<$RS> when C<English> is in use) to
determine what constitutes an end of line. Paragraph mode, record mode and
file slurp mode are all supported.
=head2 getc
Usage is
$char = $z->getc()
Read a single character.
=head2 ungetc
Usage is
$char = $z->ungetc($string)
=head2 inflateSync
Usage is
$status = $z->inflateSync()
TODO
=head2 getHeaderInfo
Usage is
$hdr = $z->getHeaderInfo();
@hdrs = $z->getHeaderInfo();
This method returns either a hash reference (in scalar context) or a list
or hash references (in array context) that contains information about each
of the header fields in the compressed data stream(s).
=head2 tell
Usage is
$z->tell()
tell $z
Returns the uncompressed file offset.
=head2 eof
Usage is
$z->eof();
eof($z);
Returns true if the end of the compressed input stream has been reached.
=head2 seek
$z->seek($position, $whence);
seek($z, $position, $whence);
Provides a sub-set of the C<seek> functionality, with the restriction
that it is only legal to seek forward in the input file/buffer.
It is a fatal error to attempt to seek backward.
Note that the implementation of C<seek> in this module does not provide
true random access to a compressed file/buffer. It works by uncompressing
data from the current offset in the file/buffer until it reaches the
uncompressed offset specified in the parameters to C<seek>. For very small
files this may be acceptable behaviour. For large files it may cause an
unacceptable delay.
The C<$whence> parameter takes one the usual values, namely SEEK_SET,
SEEK_CUR or SEEK_END.
Returns 1 on success, 0 on failure.
=head2 binmode
Usage is
$z->binmode
binmode $z ;
This is a noop provided for completeness.
=head2 opened
$z->opened()
Returns true if the object currently refers to a opened file/buffer.
=head2 autoflush
my $prev = $z->autoflush()
my $prev = $z->autoflush(EXPR)
If the C<$z> object is associated with a file or a filehandle, this method
returns the current autoflush setting for the underlying filehandle. If
C<EXPR> is present, and is non-zero, it will enable flushing after every
write/print operation.
If C<$z> is associated with a buffer, this method has no effect and always
returns C<undef>.
B<Note> that the special variable C<$|> B<cannot> be used to set or
retrieve the autoflush setting.
=head2 input_line_number
$z->input_line_number()
$z->input_line_number(EXPR)
Returns the current uncompressed line number. If C<EXPR> is present it has
the effect of setting the line number. Note that setting the line number
does not change the current position within the file/buffer being read.
The contents of C<$/> are used to determine what constitutes a line
terminator.
=head2 fileno
$z->fileno()
fileno($z)
If the C<$z> object is associated with a file or a filehandle, C<fileno>
will return the underlying file descriptor. Once the C<close> method is
called C<fileno> will return C<undef>.
If the C<$z> object is associated with a buffer, this method will return
C<undef>.
=head2 close
$z->close() ;
close $z ;
Closes the output file/buffer.
For most versions of Perl this method will be automatically invoked if
the IO::Uncompress::Unzip object is destroyed (either explicitly or by the
variable with the reference to the object going out of scope). The
exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In
these cases, the C<close> method will be called automatically, but
not until global destruction of all live objects when the program is
terminating.
Therefore, if you want your scripts to be able to run on all versions
of Perl, you should call C<close> explicitly and not rely on automatic
closing.
Returns true on success, otherwise 0.
If the C<AutoClose> option has been enabled when the IO::Uncompress::Unzip
object was created, and the object is associated with a file, the
underlying file will also be closed.
=head2 nextStream
Usage is
my $status = $z->nextStream();
Skips to the next compressed data stream in the input file/buffer. If a new
compressed data stream is found, the eof marker will be cleared and C<$.>
will be reset to 0.
If trailing data is present immediately after the zip archive and the
C<Transparent> option is enabled, this method will consider that trailing
data to be another member of the zip archive.
Returns 1 if a new stream was found, 0 if none was found, and -1 if an
error was encountered.
=head2 trailingData
Usage is
my $data = $z->trailingData();
Returns the data, if any, that is present immediately after the compressed
data stream once uncompression is complete. It only makes sense to call
this method once the end of the compressed data stream has been
encountered.
This option can be used when there is useful information immediately
following the compressed data stream, and you don't know the length of the
compressed data stream.
If the input is a buffer, C<trailingData> will return everything from the
end of the compressed data stream to the end of the buffer.
If the input is a filehandle, C<trailingData> will return the data that is
left in the filehandle input buffer once the end of the compressed data
stream has been reached. You can then use the filehandle to read the rest
of the input file.
Don't bother using C<trailingData> if the input is a filename.
If you know the length of the compressed data stream before you start
uncompressing, you can avoid having to use C<trailingData> by setting the
C<InputLength> option in the constructor.
=head1 Importing
No symbolic constants are required by IO::Uncompress::Unzip at present.
=over 5
=item :all
Imports C<unzip> and C<$UnzipError>.
Same as doing this
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
=back
=head1 EXAMPLES
=head2 Working with Net::FTP
See L<IO::Compress::FAQ|IO::Compress::FAQ/"Compressed files and Net::FTP">
=head2 Walking through a zip file
The code below can be used to traverse a zip file, one compressed data
stream at a time.
use IO::Uncompress::Unzip qw($UnzipError);
my $zipfile = "somefile.zip";
my $u = IO::Uncompress::Unzip->new( $zipfile )
or die "Cannot open $zipfile: $UnzipError";
my $status;
for ($status = 1; $status > 0; $status = $u->nextStream())
{
my $name = $u->getHeaderInfo()->{Name};
warn "Processing member $name\n" ;
my $buff;
while (($status = $u->read($buff)) > 0) {
# Do something here
}
last if $status < 0;
}
die "Error processing $zipfile: $!\n"
if $status < 0 ;
Each individual compressed data stream is read until the logical
end-of-file is reached. Then C<nextStream> is called. This will skip to the
start of the next compressed data stream and clear the end-of-file flag.
It is also worth noting that C<nextStream> can be called at any time -- you
don't have to wait until you have exhausted a compressed data stream before
skipping to the next one.
=head2 Unzipping a complete zip file to disk
Daniel S. Sterling has written a script that uses C<IO::Uncompress::UnZip>
to read a zip file and unzip its contents to disk.
The script is available from L<path_to_url
=head1 SUPPORT
General feedback/questions/bug reports should be sent to
L<path_to_url (preferred) or
L<path_to_url
=head1 SEE ALSO
L<Compress::Zlib>, L<IO::Compress::Gzip>, L<IO::Uncompress::Gunzip>, L<IO::Compress::Deflate>, L<IO::Uncompress::Inflate>, L<IO::Compress::RawDeflate>, L<IO::Uncompress::RawInflate>, L<IO::Compress::Bzip2>, L<IO::Uncompress::Bunzip2>, L<IO::Compress::Lzma>, L<IO::Uncompress::UnLzma>, L<IO::Compress::Xz>, L<IO::Uncompress::UnXz>, L<IO::Compress::Lzip>, L<IO::Uncompress::UnLzip>, L<IO::Compress::Lzop>, L<IO::Uncompress::UnLzop>, L<IO::Compress::Lzf>, L<IO::Uncompress::UnLzf>, L<IO::Compress::Zstd>, L<IO::Uncompress::UnZstd>, L<IO::Uncompress::AnyInflate>, L<IO::Uncompress::AnyUncompress>
L<IO::Compress::FAQ|IO::Compress::FAQ>
L<File::GlobMapper|File::GlobMapper>, L<Archive::Zip|Archive::Zip>,
L<Archive::Tar|Archive::Tar>,
L<IO::Zlib|IO::Zlib>
For RFC 1950, 1951 and 1952 see
L<path_to_url
L<path_to_url and
L<path_to_url
The I<zlib> compression library was written by Jean-loup Gailly
C<gzip@prep.ai.mit.edu> and Mark Adler C<madler@alumni.caltech.edu>.
The primary site for the I<zlib> compression library is
L<path_to_url
The primary site for the I<zlib-ng> compression library is
L<path_to_url
The primary site for gzip is L<path_to_url
=head1 AUTHOR
This module was written by Paul Marquess, C<pmqs@cpan.org>.
=head1 MODIFICATION HISTORY
See the Changes file.
=head1 COPYRIGHT AND LICENSE
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
```
|
```html
<!DOCTYPE html>
<html xmlns="path_to_url"><head><title>Owl_base_linalg_intf (owl-base.Owl_base_linalg_intf)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../index.html">owl-base</a> » Owl_base_linalg_intf</nav><header class="odoc-preamble"><h1>Module <code><span>Owl_base_linalg_intf</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module-type anchored" id="module-type-Common"><a href="#module-type-Common" class="anchor"></a><code><span><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-Common/index.html">Common</a></span><span> = <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec module-type anchored" id="module-type-Real"><a href="#module-type-Real" class="anchor"></a><code><span><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-Real/index.html">Real</a></span><span> = <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
```
|
Eliza Daniel Stewart (April 25, 1816 – August 6, 1908) was an American early temperance movement leader. She sometimes referred to herself as "Mother Stewart".
Biography
Eliza Daniel Stewart was born in Piketon, Ohio on April 25, 1816.
Stewart began her career in public service during the American Civil War, working with the Soldiers' Aid Societies and the United States Sanitary Commission.
In 1872, Stewart delivered a lecture entitled "The Liquor Traffic and How to Avoid It". Afterward, the editor of The Springfield Republic suggested she encourage the wives of heavy to prosecute saloonkeepers under the Adair law. The Adair law provided that "a wife, child, parent, guardian or employer of an intoxicated person, who has been injured in person, property, or means of support by such intoxication, could sue the individual who by furnishing the requisite liquor, was said to have 'caused' the intoxication, for damages both exemplary and actual". Days later, Stewart made an impassioned plea on behalf of a destitute woman in an Adair case. The court awarded the woman $100 plus costs. For her second Adair case in October 1873, Stewart took a more active room in the courtroom and the plaintiff was awarded $300.
Stewart was a key figure in the Women's Crusade of 1873–74. The Crusades began in Hillsboro, Ohio a speech given by Dr. Diocletian Lewis on December 23, 1873. Lewis told the story of how his mother, distressed by her husband's drinking, appealed to the owner of the local saloon to cease selling liquor by praying with a group of other women. The women were successful and the saloonkeeper closed his business. In response to this story, the women of Hillsboro marched through the town, stopping at every saloon (approximately twenty of them) and praying for the souls of the barkeepers and their patrons. The women asked the owners to sign a pledge to no longer sell alcohol. By 1875, more than 130 other communities around the state had also had experienced marches–a period often known locally as the “Ohio Whiskey War".
Richard H. Chused described the Crusade as follows: "Leaving the sanctuary of their homes, they carried an aura of moral responsibility and upright character with them as they entered bars filled with smoking and imbibing men and prayed on the streets in front of drinking establishments for weeks on end. Many men were incredulous that the respectable women of southern Ohio were capable of organizing daily prayer sessions and well-orchestrated marches into male domains".
Stewart founded the Women's Temperance League of Osborn, Ohio, in 1873. Stewart helped to found the Woman's Christian Temperance Union in 1874 and the Osborn organization became the first local chapter of the new national organization.
She visited the United Kingdom in 1876, and helped organize the British Women's Temperance Association.
She died at her home in Hicksville, Ohio on August 6, 1908.
References
Further reading
1816 births
American temperance activists
1908 deaths
British emigrants to the United States
Woman's Christian Temperance Union people
British Women's Temperance Association people
|
The 2011 Calder Cup playoffs of the American Hockey League began on April 13, 2011. The sixteen teams that qualified, eight from each conference, played best-of-seven series for division semifinals, finals and conference finals. Then the Eastern Conference Champion Binghamton Senators defeated the Western Conference Champion Houston Aeros four games to two to win the Calder Cup, the first one in Binghamton franchise history.
Playoff seeds
After the 2010–11 AHL regular season, 16 teams qualified for the playoffs. The top eight teams from each conference qualified for the playoffs.
Eastern Conference
Atlantic Division
Portland Pirates – 103 points
Manchester Monarchs – 98 points
Connecticut Whale – 88 points
East Division
Wilkes-Barre/Scranton Penguins – 117 points
Hershey Bears – 100 points
Charlotte Checkers – 97 points
Norfolk Admirals – 93 points
Binghamton Senators – 92 points
Western Conference
North Division
Hamilton Bulldogs – 97 points
Lake Erie Monsters – 96 points
Manitoba Moose – 93 points
West Division
Milwaukee Admirals – 102 points
Houston Aeros – 98 points
Peoria Rivermen – 92 points (36 Regulation/Overtime Wins)
Texas Stars – 92 points (35 Regulation/Overtime Wins)
Oklahoma City Barons – 91 points
Bracket
In each round the team that earned more points during the regular season receives home ice advantage, meaning they receive the "extra" game on home-ice if the series reaches the maximum number of games. There is no set series format due to arena scheduling conflicts and travel considerations.
Division semifinals
Note 1: All times are in Eastern Time (UTC-4).
Note 2: Game times in italics signify games to be played only if necessary.
Note 3: Home team is listed first.
Eastern Conference
Atlantic Division
(A1) Portland Pirates vs. (A3) Connecticut Whale
(A2) Manchester Monarchs vs. (E5) Binghamton Senators
East Division
(E1) Wilkes-Barre/Scranton Penguins vs. (E4) Norfolk Admirals
(E2) Hershey Bears vs. (E3) Charlotte Checkers
Western Conference
North Division
(N1) Hamilton Bulldogs vs. (W5) Oklahoma City Barons
(N2) Lake Erie Monsters vs. (N3) Manitoba Moose
West Division
(W1) Milwaukee Admirals vs. (W4) Texas Stars
(W2) Houston Aeros vs. (W3) Peoria Rivermen
Division finals
Eastern Conference
Atlantic Division
(A1) Portland Pirates vs. (E5) Binghamton Senators
East Division
(E1) Wilkes-Barre/Scranton Penguins vs. (E3) Charlotte Checkers
Western Conference
North Division
(N1) Hamilton Bulldogs vs. (N3) Manitoba Moose
West Division
(W1) Milwaukee Admirals vs. (W2) Houston Aeros
Conference finals
Eastern Conference
(E3) Charlotte Checkers vs. (E5) Binghamton Senators
Western Conference
(W2) Houston Aeros vs. (N1) Hamilton Bulldogs
Calder Cup finals
Binghamton Senators vs. Houston Aeros
Playoff statistical leaders
Leading skaters
These are the top ten skaters based on points. If there is a tie in points, goals take precedence over assists.
GP = Games played; G = Goals; A = Assists; Pts = Points; +/– = Plus-minus; PIM = Penalty minutes
Leading goaltenders
This is a combined table of the top five goaltenders based on goals against average and the top five goaltenders based on save percentage. The table is initially sorted by goals against average, with the criterion for inclusion in bold.
GP = Games played; W = Wins; L = Losses; SA = Shots against; GA = Goals against; GAA = Goals against average; SV% = Save percentage; SO = Shutouts; TOI = Time on ice (in minutes)
See also
2010–11 AHL season
List of AHL seasons
References
Calder Cup playoffs
Calder Cup
|
```java
package com.mxgraph.online;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import java.nio.file.Path;
import java.nio.file.Paths;
//This servlet is an interface between draw.io and CloudConverter.
//For EMF files, it detect its size and resize the huge images such that max dimension is MAX_DIM
public class ConverterServlet extends HttpServlet
{
private static final long serialVersionUID = -5084595244442555865L;
private static final Logger log = Logger
.getLogger(HttpServlet.class.getName());
private static final int MAX_DIM = 5000;
private static final int MAX_FILE_SIZE = 50 * 1024 * 1024; // 50 MB
private static final double EMF_10thMM2PXL = 26.458;
private static final String API_KEY_FILE_PATH = "/WEB-INF/cloud_convert_api_key"; // Not migrated to new pattern, since will not be used on diagrams.net
private static final String CONVERT_SERVICE_URL = "path_to_url";
private static final String CRLF = "\r\n";
private static final String TWO_HYPHENS = "--";
private static final String BOUNDARY = "----WebKitFormBoundary6XTanBMjO0kFwa3p"; //FIXME The boundary should not occur inside the file, it is very unlikely but still a possibility
private static String API_KEY = null;
private void readApiKey()
{
if (API_KEY == null)
{
try
{
API_KEY = Utils
.readInputStream(getServletContext()
.getResourceAsStream(API_KEY_FILE_PATH))
.replaceAll("\n", "");
}
catch (IOException e)
{
throw new RuntimeException("Invalid API key file/path");
}
}
}
//Little-endian
private int fromByteArray(byte[] bytes, int start)
{
return ((bytes[start + 3] & 0xFF) << 24) |
((bytes[start + 2] & 0xFF) << 16) |
((bytes[start + 1] & 0xFF) << 8 ) |
((bytes[start] & 0xFF) << 0 );
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
readApiKey();
String inputformat = null, outputformat = null, fileName = null;
InputStream fileContent = null;
try
{
List<FileItem> items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
for (FileItem item : items)
{
if (item.isFormField())
{
String fieldName = item.getFieldName();
if ("inputformat".equals(fieldName))
{
inputformat = item.getString();
}
else if ("outputformat".equals(fieldName))
{
outputformat = item.getString();
}
}
else
{
//We expect only one file
Path file = Paths.get(item.getName());
fileName = file.getFileName().toString();
fileContent = item.getInputStream();
}
}
}
catch (FileUploadException e)
{
throw new ServletException("Cannot parse multipart request.", e);
}
if (inputformat == null || outputformat == null || fileContent == null)
{
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
}
else
{
HttpURLConnection con = null;
try
{
URL obj = new URL(CONVERT_SERVICE_URL);
con = (HttpURLConnection) obj.openConnection();
con.setUseCaches(false);
con.setDoOutput(true);
con.setRequestMethod("POST");
con.setRequestProperty("Connection", "Keep-Alive");
con.setRequestProperty("Cache-Control", "no-cache");
con.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY);
DataOutputStream postRequest = new DataOutputStream(con.getOutputStream());
byte[] data = new byte[10240]; //10 KB buffer
int bytesRead = fileContent.read(data);
int w = 0, h = 0, dpi = 96;
if (inputformat.equals("emf") && bytesRead >= 40)
{
//Read Frame from EMF header (the rectangular inclusive-inclusive dimensions, in .01 millimeter units,
// of a rectangle that surrounds the image stored in the metafile.)
int x0 = fromByteArray(data, 24);
int y0 = fromByteArray(data, 28);
int x1 = fromByteArray(data, 32);
int y1 = fromByteArray(data, 36);
//Approximate dimensions of the image
w = (int) ((x1 - x0) / EMF_10thMM2PXL);
h = (int) ((y1 - y0) / EMF_10thMM2PXL);
}
if (w > MAX_DIM || h > MAX_DIM)
{
dpi = (int) (dpi * Math.min(MAX_DIM / (double) w, MAX_DIM / (double) h));
if (dpi == 0)
{
dpi = 1;
}
}
addParameter("apikey", API_KEY, postRequest);
addParameter("inputformat", inputformat, postRequest);
addParameter("outputformat", outputformat, postRequest);
addParameter("input", "upload", postRequest);
addParameter("wait", "true", postRequest);
addParameter("download", "true", postRequest);
if (dpi != 96)
{
addParameter("converteroptions[density]", Integer.toString(dpi), postRequest);
}
addParameterHeader("file", fileName, postRequest);
int total = 0;
while(bytesRead != -1)
{
postRequest.write(data, 0, bytesRead);
bytesRead = fileContent.read(data);
total += bytesRead;
if (total > Utils.MAX_SIZE)
{
postRequest.close();
throw new Exception("File size exceeds the maximum allowed size of " + MAX_FILE_SIZE + " bytes.");
}
}
postRequest.writeBytes(CRLF + TWO_HYPHENS + BOUNDARY + TWO_HYPHENS + CRLF);
postRequest.flush();
postRequest.close();
InputStream in = con.getInputStream();
response.setStatus(con.getResponseCode());
String contentType = "application/octet-stream";
if ("png".equals(outputformat))
{
contentType = "image/png";
}
else if ("jpg".equals(outputformat))
{
contentType = "image/jpeg";
}
response.setHeader("Content-Type", contentType);
OutputStream out = response.getOutputStream();
bytesRead = in.read(data);
try
{
URI uri = new URI(request.getHeader("referer"));
String domain = uri.getHost();
log.log(Level.CONFIG, "EMF-CONVERT, domain: " + domain + " ,Filename: " +
fileName != null ? fileName : "" + ", size: " + bytesRead);
}
catch (Exception e)
{
e.printStackTrace();
}
while(bytesRead != -1)
{
out.write(data, 0, bytesRead);
bytesRead = in.read(data);
}
in.close();
out.flush();
out.close();
}
catch(Exception e)
{
e.printStackTrace();
if (con != null)
{
try
{
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getErrorStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
{
System.err.println(inputLine);
}
in.close();
}
catch (Exception e2)
{
// Ignore
}
}
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
}
}
private void addParameter(String name, String val, DataOutputStream postRequest) throws IOException {
addParameterHeader(name, null, postRequest);
postRequest.writeBytes(val);
postRequest.writeBytes(CRLF);
}
private void addParameterHeader(String name, String fileName, DataOutputStream postRequest) throws IOException {
postRequest.writeBytes(TWO_HYPHENS + BOUNDARY + CRLF);
postRequest.writeBytes("Content-Disposition: form-data; name=\"" + name + "\"" +
(fileName != null? "; filename=\"" + fileName + "\"" + CRLF + "Content-Type: application/octet-stream" : "") + CRLF);
postRequest.writeBytes(CRLF);
}
}
```
|
```javascript
const { render } = require('@govuk-frontend/helpers/nunjucks')
const { getExamples } = require('@govuk-frontend/lib/components')
describe('Pagination', () => {
let examples
beforeAll(async () => {
examples = await getExamples('pagination')
})
describe('default examples', () => {
it('renders the correct URLs for each link', () => {
const $ = render('pagination', examples.default)
const $previous = $('.govuk-pagination__prev .govuk-pagination__link')
const $next = $('.govuk-pagination__next .govuk-pagination__link')
const $firstNumber = $(
'.govuk-pagination__item:first-child .govuk-pagination__link'
)
const $secondNumber = $(
'.govuk-pagination__item:nth-child(2) .govuk-pagination__link'
)
const $thirdNumber = $(
'.govuk-pagination__item:last-child .govuk-pagination__link'
)
expect($previous.attr('href')).toBe('/previous')
expect($next.attr('href')).toBe('/next')
expect($firstNumber.attr('href')).toBe('/page/1')
expect($secondNumber.attr('href')).toBe('/page/2')
expect($thirdNumber.attr('href')).toBe('/page/3')
})
it('renders the correct number within each pagination item', () => {
const $ = render('pagination', examples.default)
const $firstNumber = $('.govuk-pagination__item:first-child')
const $secondNumber = $('.govuk-pagination__item:nth-child(2)')
const $thirdNumber = $('.govuk-pagination__item:last-child')
expect($firstNumber.text().trim()).toBe('1')
expect($secondNumber.text().trim()).toBe('2')
expect($thirdNumber.text().trim()).toBe('3')
})
// The current item is marked up with a visually hidden span and an aria-hidden span side by side
// Instead of the aria-label solution used for the links in the pagination because of issues caused
// by aria-label on non-interactive elements like li's
it('marks up the current item correctly', () => {
const $ = render('pagination', examples.default)
const $currentNumber = $('.govuk-pagination__item--current')
const $currentNumberLink = $currentNumber.find('.govuk-pagination__link')
expect($currentNumberLink.attr('aria-current')).toBe('page')
})
it('marks up pagination items as ellipses when specified', () => {
const $ = render('pagination', examples['with many pages'])
const $firstEllipsis = $(
'.govuk-pagination__item:nth-child(2).govuk-pagination__item--ellipses'
)
expect($firstEllipsis).toBeTruthy()
// Test for the unicode character of ⋯
expect($firstEllipsis.text().trim()).toBe('\u22ef')
})
})
describe('with custom text, labels and landmarks', () => {
it('renders a custom navigation landmark', () => {
const $ = render(
'pagination',
examples['with custom navigation landmark']
)
const $nav = $('.govuk-pagination')
expect($nav.attr('aria-label')).toBe('search')
})
it('renders custom pagination item and prev/next link text', () => {
const $ = render('pagination', examples['with custom link and item text'])
const $previous = $('.govuk-pagination__prev')
const $next = $('.govuk-pagination__next')
const $firstNumber = $('.govuk-pagination__item:first-child')
const $secondNumber = $('.govuk-pagination__item:nth-child(2)')
const $thirdNumber = $('.govuk-pagination__item:last-child')
expect($previous.text().trim()).toBe('Previous page')
expect($next.text().trim()).toBe('Next page')
expect($firstNumber.text().trim()).toBe('one')
expect($secondNumber.text().trim()).toBe('two')
expect($thirdNumber.text().trim()).toBe('three')
})
it('renders custom accessible labels for pagination items', () => {
const $ = render(
'pagination',
examples['with custom accessible labels on item links']
)
const $firstNumber = $(
'.govuk-pagination__item:first-child .govuk-pagination__link'
)
const $secondNumber = $(
'.govuk-pagination__item:nth-child(2) .govuk-pagination__link'
)
const $thirdNumber = $(
'.govuk-pagination__item:last-child .govuk-pagination__link'
)
expect($firstNumber.attr('aria-label')).toBe('1st page')
expect($secondNumber.attr('aria-label')).toBe(
'2nd page (you are currently on this page)'
)
expect($thirdNumber.attr('aria-label')).toBe('3rd page')
})
})
describe('previous and next links', () => {
it('applies the correct rel attribute to each link so that they communicate to search engines the intent of the links', () => {
const $ = render('pagination', examples.default)
const $previous = $('.govuk-pagination__prev .govuk-pagination__link')
const $next = $('.govuk-pagination__next .govuk-pagination__link')
expect($previous.attr('rel')).toBe('prev')
expect($next.attr('rel')).toBe('next')
})
it('sets aria-hidden="true" to each link so that they are ignored by assistive technology', () => {
const $ = render('pagination', examples.default)
const $previousSvg = $('.govuk-pagination__icon--prev')
const $nextSvg = $('.govuk-pagination__icon--next')
expect($previousSvg.attr('aria-hidden')).toBe('true')
expect($nextSvg.attr('aria-hidden')).toBe('true')
})
it('sets focusable="false" so that IE does not treat it as an interactive element', () => {
const $ = render('pagination', examples.default)
const $previousSvg = $('.govuk-pagination__icon--prev')
const $nextSvg = $('.govuk-pagination__icon--next')
expect($previousSvg.attr('focusable')).toBe('false')
expect($nextSvg.attr('focusable')).toBe('false')
})
})
describe('prev/next only view', () => {
it('changes the display to prev/next only if no items are provided', () => {
const $ = render('pagination', examples['with prev and next only'])
const $blockNav = $('.govuk-pagination--block')
const $previous = $('.govuk-pagination__prev')
const $next = $('.govuk-pagination__next')
expect($blockNav).toBeTruthy()
expect($previous).toBeTruthy()
expect($next).toBeTruthy()
})
it('applies labels when provided', () => {
const $ = render(
'pagination',
examples['with prev and next only and labels']
)
const $prevLabel = $(
'.govuk-pagination__prev .govuk-pagination__link-label'
)
const $nextLabel = $(
'.govuk-pagination__next .govuk-pagination__link-label'
)
expect($prevLabel.text()).toBe('Paying VAT and duty')
expect($nextLabel.text()).toBe('Registering an imported vehicle')
})
// This is for when pagination is in block mode but there isn't a label
// We apply a decoration class and add a hover state to the main link text instead
// of the label so that there's a clear underline hover state on the link
it('adds the decoration class to the link title if no label is present', () => {
const $ = render('pagination', examples['with prev and next only'])
const $decoratedPreviousLinkTitle = $(
'.govuk-pagination__prev .govuk-pagination__link-title--decorated'
)
const $decoratedNextLinkTitle = $(
'.govuk-pagination__next .govuk-pagination__link-title--decorated'
)
expect($decoratedPreviousLinkTitle).toBeTruthy()
expect($decoratedNextLinkTitle).toBeTruthy()
})
})
describe('custom classes and attributes', () => {
it('renders with custom additional classes', () => {
const $ = render('pagination', examples['with custom classes'])
expect($('.govuk-pagination').hasClass('my-custom-class')).toBeTruthy()
})
it('renders with custom attributes', () => {
const $ = render('pagination', examples['with custom attributes'])
const $nav = $('.govuk-pagination')
expect($nav.attr('data-attribute-1')).toBe('value-1')
expect($nav.attr('data-attribute-2')).toBe('value-2')
})
})
})
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var copy = require( '@stdlib/utils/copy' );
var defaults = require( './defaults.json' );
var validate = require( './validate.js' );
var runner = require( './runner.js' );
// MAIN //
/**
* Attaches a plugin to a remark processor in order to run JavaScript examples.
*
* @param {(void|Options)} [options] - plugin options
* @param {string} [options.cwd] - current working directory of the child process
* @param {boolean} [options.quiet=false] - boolean indicating whether to silence examples writing to `stdout`, but allow writing to `stderr`
* @param {boolean} [options.silent=false] - boolean indicating whether to silence examples writing to both `stdout` and `stderr`
* @param {boolean} [options.verbose=true] - boolean indicating whether to print plugin meta information
* @param {PositiveInteger} [options.maxBuffer=200*1024] - maximum buffer size for `stdout` and `stderr`
* @param {NonNegativeInteger} [options.timeout=0] - maximum number of milliseconds allotted for the execution of each code block
* @throws {TypeError} options argument must be an object
* @throws {TypeError} must provide valid options
* @returns {Function} transform function
*
* @example
* var remark = require( 'remark' );
*
* var str = [
* '<section class="usage">',
* '',
* '## Usage',
* '',
* '```javascript',
* 'var path = require( "path" );',
* '```',
* '',
* '#### path.posix.join( [...paths] )',
* '',
* '```javascript',
* 'var p = path.posix.join( "foo", "bar" );',
* '```',
* '',
* '</section>',
* '',
* '<!-- /.usage -->',
* '',
* '<section class="examples">',
* '',
* '## Examples',
* '',
* '```javascript',
* 'console.log( "HELLO WORLD!" );',
* '```',
* '</section>',
* '',
* '<!-- /.examples -->',
* ''
* ];
*
* remark().use( run ).process( str.join( '\n' ), done );
* // => 'HELLO WORLD'
*
* function done( error ) {
* if ( error ) {
* throw error;
* }
* }
*/
function attacher( options ) {
var opts;
var err;
// Set default options:
opts = copy( defaults );
// NOTE: cannot use `arguments.length` check, as `options` may be explicitly passed as `undefined`
if ( options !== void 0 ) {
err = validate( opts, options );
if ( err ) {
throw err;
}
}
return runner( opts );
}
// EXPORTS //
module.exports = attacher;
```
|
Murder Metal is the fourth album by American extreme metal band Macabre. It was released on September 22, 2003 through Decomposed Records. The album was reissued by Nuclear Blast in 2019 through Bandcamp and in 2022 it was reissue and remastered for CD, cassette and vinyl.
Track listing
"Acid Bath Vampire" - 3:46 - John George Haigh
"You're Dying to Be with Me" - 2:43 - Dennis Nilsen
"Fatal Foot Fetish" - 2:08 Jerry Brudos
"The Hillside Stranglers" - 1:38 - The Hillside Stranglers
"Dorthea's Dead Folks Home" - 1:09 - Dorothea Puente
"The Iceman" - 2:44 - Richard Kuklinski
"Poison" - 1:16 - Graham Fredrick Young
"Werewolf of Bedburg" - 5:29 - Peter Stumpp
"Morbid Minister" - 1:28 - Gary M. Heidnik
"The Wustenfeld Man Eater" - 2:32 - Armin Meiwes
"Diary of Torture" - 2:14 - Robert Berdella
"Jack the Ripper" - 4:08 - Jack the Ripper
"Fritz Haarmann der Metzger" - 12:50 - Fritz Haarmann
Personnel
Corporate Death – guitars, vocals
Nefarious – bass, vocals
Dennis the Menace – drums
References
Macabre (band) albums
2003 albums
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.