text
stringlengths
1
22.8M
KMMO may refer to: KMMO (AM), a radio station (1300 AM) licensed to Marshall, Missouri, United States KMMO-FM, a radio station (102.9 FM) licensed to Marshall, Missouri, United States
```go // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package bcmdataexports import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeInternalServerException for service response error code // "InternalServerException". // // An error on the server occurred during the processing of your request. Try // again later. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified Amazon Resource Name (ARN) in the request doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // You've reached the limit on the number of resources you can create, or exceeded // the size of an individual resource. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // The request was denied due to request throttling. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The input fails to satisfy the constraints specified by an Amazon Web Services // service. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, } ```
Henshaws Society for Blind People (founded in 1837), by Oldham businessman Thomas Henshaw, is a specialist charity providing support, advice and training to anyone affected by sight loss and other disabilities. The charity has changed names four times. In 1921, it was 'Henshaw's Institution for the Blind', in January 1971 it changed to 'Henshaw's Society for the Blind', and then finally in 2000 to 'Henshaws Society for Blind People.' In 2016, the charity shortened its name to simply 'Henshaws', introducing the strap line 'Beyond Expectations' and changing its logo and branding to bright pink. History Founding Thomas Henshaw (1731-1810), a businessman and philanthropist who founded a large and successful hatting business in Oldham, died in 1810 and bequeathed £20,000 (equivalent to roughly £1.4 million in 2017) to establish an institution of the blind in Manchester. Henshaw's will was contested by family members for 26 years, but was eventually upheld by the Court of Chancery in favour of the scheme. Thomas Henshaw's will said that his "expectation that other persons at their expense purchase land and buildings" for the institution. This was matched by public donations and subscriptions procured through a subscription list across the city and surrounding districts. A board of management was chosen based on Henshaw's directive that "all subscribers of two guineas or upwards, and donors in any one year of twenty guineas or upwards, shall form a Board of Management, to whom the whole direction and control of the Institutions be entrusted." Development In September 1834 the Board of Management of Henshaw's Blind Asylum and Deaf and Dumb schools, jointly purchased a plot of land adjoining the botanical gardens at Old Trafford Manchester. In 1837 Henshaw's Blind Asylum, later known as Henshaw's Institution for the Blind, was founded in a building built with public contributions in Old Trafford. In 1850 William Hughes (first Governor of Henshaw's Blind Asylum) took out a patent for the Hughes Typograph, which he claimed to be the first typewriting machine. It was designed primarily to enable the blind to communicate with the sighted. A Hughes Typograph was awarded the gold medal at the Great Exhibition in Hyde Park in 1851. One of these machines is in the Museum of the National Institute for the Blind, and another in the Science Section of the South Kensington Museum, where it is the oldest English Model - the one older machine is American. In 1859 the Family of Lord Derby became the President of the Society, which tradition continues. In 1861 the asylum added workshop accommodation for brush-making; this was soon discontinued, although basket-making and mat-making continued. Outside blind workers were employed in addition to the inmates. In 1881 the asylum introduced braille systems into the school, one of the many improvements introduced by Governor James McCormick (1876–1892). In 1887 as a result of a munificent bequest by Mr J Pendlebury, the asylum carried out a large extension known as the Pendlebury Extension, consisting of dormitories and workshops. In 1891 workshops for the blind opened at the corner of Deansgate and Wood Street; the building cost about £9,000 and provided new workshops, formerly in Bloom Street. In 1892 the asylum received nearly £14,000 from James Nasmyth for a large concert hall to seat 500 persons and kitchens. In 1895 the asylum started giving instruction in massage; its pupils were the first in the country to follow this profession. Twentieth century In 1900 the Manchester and Salford Blind Aid Society, 30 Tonman Street, Deansgate, Manchester, was founded by Miss Isabel M Heywood of Pendleton, and a small Home opened at the Crescent, Salford. (In 1930 there were 1,390 blind persons on its register - 1,160 in Manchester and 230 in other parts of Lancashire). In 1902 Manchester and Salford Blind Aid Society started a brush department, which it transferred to Henshaws twenty years later. In 1904 W.H. Illingworth, Head Masterfor twenty years and author of History of the Education of the Blind (1910), was appointed Superintendent. In 1905 the asylum received £10,000 from the trustees of the late James Holden, of Rochdale, providing fifty-five weekly grants to blind people in the area. In 1930 the income from this fund was £380, half of which was used by Henshaws for general expenses, and the other half paid to the Rochdale and District Society. In 1908 Manchester and Salford Blind Aid Society moved their women to a larger home, The Elms, Eccles Old Road, Pendleton, with accommodation for thirty-five. In 1910 the asylum opened the Hayesleigh Home and Workshops in Old Trafford. It was given by Mr. C. H. Scott, a board member, who afterwards added £3,000 for its endowment. The complex was named The Mary Ann Scott Memorial Home and Workshop after his wife. In 1913 they took an additional house for a College of Music. In 1915 they opened the Gresham Home for 30 blind men, and the Birch Avenue Home for 30 blind women. In 1918 Manchester and Salford Blind Aid Society opened a Home, Oaklands, for 30 aged blind men, next to its Women's Home in the Eccles Old Road, Pendleton. In 1921 the name was changed to Henshaw's Institution for the Blind. In 1924 Manchester and Salford Blind Aid Society opened an additional house in Eccles Old Road, Pendleton, to accommodate 20 blind women. In 1927 new workshops built on the Hayesleigh site were officially opened in July 1927, resulting in more efficient and economic production. One of the country's largest private institutions, the asylum occupied a plot of land beside Boyer Street in Old Trafford. In 1930 Mr. W.H. Thurman was appointed director and secretary of Henshaw's Institution for the Blind. It had 118 school pupils, 155 technical pupils, 194 workshop employees, 29 home workers, 64 residents in its Homes and 19 blind instructors, teachers, or other employees. Today, the former asylum is occupied by the Greater Manchester Police Headquarters and dominated by its multi-story office block called Chester House. In 1932 The Gresham Home for Men and the Birch Avenue Home for Women were disposed of, replaced by a new home in Rhyl. After WWII In 1945 evacuated school children - the boys from Ellesmere, Shropshire, and the girls from Fulwood, Preston, returned to Old Trafford. In 1946 under a policy of the Ministry of Education, Henshaws School changed from an all-age school for boys and girls into a secondary special school for pupils aged 12 to 16. In 1948 The Society bought Astle Park at Chelford, Cheshire, for £15,000 with plans to build a new school in the country. After spending the war years at Hare Hill, Macclesfield, the residents of the Mary Ann Scott Memorial Home moved to a new permanent home in Southport on September 27. The home officially opened on November 2. In 1966 The Society's plans to build a new school at Astle Park were turned down, following complaints by Sir Bernard Lovell at Jodrell Bank that the expansion of computers would eventually interfere with the operation of his radar dish. The Government offered the Society a 50-acre site in Harrogate. The Society was offered a grant of £250,000 in return for moving to North Yorkshire. The land at Astle Park was finally disposed of in 1995. In 1971 the new school opened in October and new headquarters were built on part of the old workshop site in Old Trafford. A new scheme for the regulation of the charity, amending the 1924 Scheme was sealed by the Charity Commissioners. A number of outdated clauses in the old scheme were replaced. An important addition gave effect to a change of title to 'Henshaw's Society for the Blind'. In 1972 the Society opened a holiday home in Llandudno, the Belmont Hotel and a few years later a special care centre was built at Rhyl to accommodate frail elderly residents. In 1980 The Society merged with the Manchester and Salford Blind Aid Society, making the charity one of the largest in the country. Henshaw's became a Housing Association and opened Dr Pigott Lodge, a sheltered housing scheme in Blackley for retired blind and partially sighted people. In 1982 the Pendleton Special Care Centre was built as an addition to the Elms Home in Salford for people requiring nursing care, known as the Isabel Heywood Centre. In 1985 Government Policy required Henshaw's to implement changes. Part of the pupil accommodation was converted into single study bedrooms to provide residential independence training for pupils over the age of 16. A small special unit was also established for deaf-blind students in this age group. In 1986/7 the Society developed a Community Housing Scheme in Harrogate for students about to leave the college who wished to remain in the area, but needed support in order to achieve independence. (By 2000, the Society had acquired 17 community houses in Harrogate & Knaresborough). In 1990 Phase I of the Lottie Hobson Centre was completed in November and 30 people moved into the home, which was formerly the Elms. It was officially opened in September 1991. In 1992 community services delivered from Warwick Road for several years were expanded to create a regional resource centre. In 1992/1993 The Society became a founder member of Opsis, the National Association for the Education, Training and Support of Blind and Partially Sighted People. The work of the charity 'Eyeline' was continued in the form of a family and Patient Support Service – a precursor to later Children and Family Services. In 1993 On July 20, the charity commission granted national charity status to Henshaws. The Society built a new residential home in Southport after realising that its high standards of care could not be maintained at the original Godfrey Ermen Home. Phase II of the Lottie Hobson Centre was completed. A merger between the Liverpool Workshops and Birkenhead Society for the Blind resulted in the opening of Henshaws Merseyside Resource Centre in The Strand, Liverpool, in April 1993. In June 1993, in collaboration with Manchester Royal Eye Hospital, the Society established a Patient Support Service to provide advice, information, support, counselling and rehabilitation to patients attending hospital appointments. In 1995 A Community Housing initiative in Newcastle was developed for people leaving long hospital stays. The project began in 1994 with the opening of a home for five people. In March 1995, Henshaws Head Office and Greater Manchester Resource Centre moved to new premises in Talbot Road, Old Trafford. John Derby House, named after the late 18th Earl of Derby, President of the Society for 46 years, was officially opened in September 1995 by his nephew, the 19th Earl of Derby. Its School of Visual Impairment Studies based at Henshaw's College opened to provide training for Rehabilitation Officers. It quickly became established as a leading training provider – the only one of its kind in the North of England. In 1996 The Godfrey Ermen Home officially opened on April 26. In 1997 The Society celebrated its 160th Anniversary by holding a range of fundraising and profile raising events. On September 8, 1998, Henshaws opened its new Arts and Crafts Centre in Knaresborough, North Yorkshire, partly funded by a £1.8m grant from the National Lottery through the Arts Council of England. On September 9, 50 clients moved into the craft workshops to begin their training and employment. The Arts and Crafts Centre opened to the general public on April 25, 1999, with a carnival parade involving clients, staff and the local community with facilities for visitors including a café, exhibition gallery and shop. Twenty-first century In December, 2000, the Society changed its name to Henshaws Society for Blind People and renamed its residential establishments in the Northwest. The Godfrey Ermen Home, Isabel Heywood & Lottie Hobson Centre and Doctor Pigott Lodge became known as the Southport Centre, Pendleton Centre and Blackley Centre respectively. The Society also launched its first website. On October 9, Phase I of the Garden of the Senses at the Arts and Crafts Centre was officially opened. The Crown Green Road housing scheme opened on October 23 to provide supported community accommodation for visually impaired people in their 20s to 50s, some with additional disabilities. Henshaws partnered with Manchester Methodist Housing Group on the six-flat scheme. In June 2001, due to lack of demand and a shortage of nursing staff, the Pendleton registered as a residential home only. Also in June, the Blackley Centre announced it was going to close permanently. The Merseyside Resource Centre moved next door and spread over three floors. In 2002 ownership of Henshaws Belmont Hotel was transferred to the Royal Blind Society (RBS). In September, the 12-week, pre-vocational Skillstep to Success course was launched at the Manchester centre. The School of Visual Impairment Studies became known as the Training & Professional Development Centre. In 2003 the pre-vocational training Skillstep to Success course opened at John Derby House, Manchester. In September, HSBP hosted an Early Years Conference to debate the needs of young visually impaired children and their families. The Patient Support Service celebrated its 10th Anniversary and expanded to eye hospitals and clinics in Bolton, Eccles and Wythenshawe. In 2004 a new I.T service was introduced in Merseyside and the pre-vocational Skillstep to Success course was established in all four Henshaws regions. The first house in Greater Manchester opened to accommodate six College leavers and one house has been purchased in Gateshead. Two new and improved houses replaced four older ones in Harrogate. Henshaws won a Visionary Design Award as the most accessible website of any visual impairment organisation. The revolutionary 'Handy Guide for families' was published. In 2005 the Children and Family Services was established in all four of Henshaws regions. The first four Skillstep students at Wakefield graduated from the course. Red Admiral Court in Newcastle upon Tyne opened in December with three service users to eventually house six service users. Original aims The object of the Charity is the relief of the blind and partially sighted persons in all or any of the following ways: Accommodations for blind and partially sighted persons in need of residential care. Handicap centre or centres for blind and partially sighted persons. Education for blind and partially sighted young persons. Vocational training for blind and partially sighted persons. Employment for blind and partially sighted persons. Holiday accommodation for blind and partially sighted persons Accommodations for the spouse of any blind or partially sighted person residing in the charity centre. Henshaws today Henshaws Society for Blind People today provides a comprehensive range of residential, education training and community care services for blind and partially sighted people of all ages in the North of England. Henshaws College Henshaws College in Harrogate provides vocational education and training opportunities for one hundred visually impaired students living both on and off campus, many of whom also have additional physical and learning disabilities. The majority of courses offered are aimed at maximizing independence skills. Supported living and community housing As a Registered Social Landlord, Henshaws owns and manages a wide range of accommodations. Yew Tree Lane in Northenden is the only residential home for young visually impaired people in the Greater Manchester area. It offers residential care, personal support and individual development on a permanent or a respite basis for people with learning disabilities, physical disabilities and/or a visual impairment. Crown Green Road in Eccles Crown Green Road is a block of self-contained flats, specially adapted for visually impaired people in their 20s to 50s. Residents receive support from a support worker three hours per week. These closed in 2017, ending housing support in Manchester. Community housing Henshaws currently have 17 community houses in Harrogate and Knaresborough for young people, many of whom are former Henshaws College students. Resource centres Henshaws has two resource centres in Liverpool and Manchester that support local communities through Information and Advice, Social and Self-help Groups, Informal Learning and Accredited Learning. In Liverpool and Manchester, popular information technology and pre-vocational guidance courses meet the needs of visually impaired people. The centre has a range of specialist equipment for purchase or demonstration. The Manchester centre closed in December 2017 when the charity moved to new offices on Talbot Road. The Liverpool office closed in May 2019, with the charity providing no drop in services in the North West area. Community outreach centres The Greater Manchester Resource Centre offers outreach services providing information, advice and support. At the Manchester Royal Eye Hospital, the Patient Support Service provides post-diagnosis and other counseling. In Salford, the Community Outreach Worker works closely with Salford Social Services and volunteers to reduce social isolation, increase confidence and improve quality of life for older people with a visual impairment. Henshaws Children and Family Services offers a range of support, social and training activities throughout the year with young people up to age 18. Both Resource Centres are stocked with specialist toys, contain soft play areas and sensory stimulation rooms. Following recent takeovers of Bolton, Oldham and Tameside societies for blind people, Henshaws now offers a small amount of services from each of these areas, including assessments & benefits support. Rehabilitation services Henshaws contract with a number of social services across NW England to supply rehabilitation services. The rehabilitation officers provide training in daily living skills to help visually impaired people achieve greater independence. This is entitled 'Pathway to Wellbeing' and has been funded by a National Lottery grant since 2013. Professional training Henshaws Training and Professional Development Centre (formerly known as the School of Visual Impairment Studies) is based at College and delivers full and part-time professional training courses for Rehabilitation Officers and others working with the visually impaired. The Visual Impairment Awareness Training scheme has been undertaken by many health and social services personnel, schools and colleges, voluntary agencies and commercial organisations. College Incident In August 2018, the charity wrote to 14 families informing them that their child would not be able to attend the college for the new term, due to begin in September 2018. This was due to the charities failure to hire the required number of staff to ensure the children's safety. Penalties charged by local councils and lost income cost the charity over £500,000. See also Bradbury Fields - another North West visual impairment charity and member of the 800 Group. References Sources UK CPI inflation numbers based on data available from Lawrence H. Officer (2010) "What Were the UK Earnings and Prices Then?" MeasuringWorth. "Oldham". UK Genealogy Archives. 1894–5. Retrieved March 17, 2011. "School's history lesson". Oldham Evening Chronicle. May 22, 2009. Retrieved March 17, 2011. Peter Shapely. "Charity and the 'Market" The Case of Henshaw's Blind Asyslum". Manchester Centre for Regional History Retrieved March 17, 2011. "A Brief History". Henshaws Society for Blind People. Retrieved March 17, 2011. "". Family 'distraught' over Henshaws Specialist College place suspension. Retrieved May 10, 2019 External links Henshaws Society for Blind People Henshaw's Society for the Blind archives at John Rylands Library, Manchester. Blindness organisations in the United Kingdom Charities for disabled people based in the United Kingdom Health and disability rights organisations in the United Kingdom Charities based in Greater Manchester Organisations based in Trafford
```go /* path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package filehelper import ( "io/ioutil" "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" ) func Test_non_existent_directory_returns_false(t *testing.T) { path := filepath.Join("this", "path", "really", "should", "not", "exists", "unless", "you", "have", "a", "crazy", "setup") assert.False(t, Exists(path), "The path '%s' should not exist", path) } func Test_existent_directory_returns_true(t *testing.T) { testDir, err := ioutil.TempDir("", "minishift-test-filetest-") defer os.RemoveAll(testDir) assert.NoError(t, err) assert.True(t, Exists(testDir)) } func Test_testDir_is_directory(t *testing.T) { testDir, err := ioutil.TempDir("", "minishift-test-filetest-") defer os.RemoveAll(testDir) assert.NoError(t, err) assert.True(t, IsDirectory(testDir), "The path '%s' should be a directory", testDir) } func Test_non_existing_file_is_not_a_directory(t *testing.T) { testDir, err := ioutil.TempDir("", "minishift-test-filetest-") defer os.RemoveAll(testDir) assert.NoError(t, err) path := IsDirectory(filepath.Join(testDir, "foo")) assert.False(t, path, "The path '%s' should not be a directory", testDir) } func Test_file_is_not_a_directory(t *testing.T) { testDir, err := ioutil.TempDir("", "minishift-test-filetest-") defer os.RemoveAll(testDir) assert.NoError(t, err) content := []byte("Hello world") tmpfile, err := ioutil.TempFile(testDir, "example") defer tmpfile.Close() assert.NoError(t, err) _, err = tmpfile.Write(content) assert.NoError(t, err) assert.False(t, IsDirectory(tmpfile.Name()), "The path '%s' should not be a directory", testDir) } func Test_non_existing_directory(t *testing.T) { testDir := "/foo/bar" empty := IsEmptyDir(testDir) assert.False(t, empty, "Expected that the directory %s doesn't exists", testDir) } func Test_existing_empty_directory(t *testing.T) { testDir, err := ioutil.TempDir("", "minishift-test-filetest-") defer os.RemoveAll(testDir) assert.NoError(t, err) empty := IsEmptyDir(testDir) assert.True(t, empty, "Expected %s to be empty", testDir) } func Test_existing_nonempty_directory(t *testing.T) { testDir, _ := ioutil.TempDir("", "minishift-test-filetest-") _, err := ioutil.TempFile(testDir, "foo") defer os.RemoveAll(testDir) assert.NoError(t, err) empty := IsEmptyDir(testDir) assert.False(t, empty, "Expected %s to be nonempty.", testDir) } ```
```objective-c function rfcn_build() % rfcn_build() % -------------------------------------------------------- % R-FCN implementation % Modified from MATLAB Faster R-CNN (path_to_url % -------------------------------------------------------- % Compile nms_mex if ~exist('nms_mex', 'file') fprintf('Compiling nms_mex\n'); mex -O -outdir bin ... CXXFLAGS="\$CXXFLAGS -std=c++11" ... -largeArrayDims ... functions/nms/nms_mex.cpp ... -output nms_mex; end if ~exist('nms_gpu_mex', 'file') fprintf('Compiling nms_gpu_mex\n'); addpath(fullfile(pwd, 'functions', 'nms')); nvmex('functions/nms/nms_gpu_mex.cu', 'bin'); delete('nms_gpu_mex.o'); end ```
The Holy Down documents a series of shows played by Gravetemple in Israel during the summer of 2006. Illustrations for the series were done by Justin Bartlett. Track listing Line up Attila Csihar - vocals Stephen O'Malley - guitar Oren Ambarchi - guitar, drums, bells References Gravetemple albums 2007 live albums Southern Lord Records live albums
```go /* path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // Code generated by applyconfiguration-gen. DO NOT EDIT. package v1beta1 // ParamKindApplyConfiguration represents an declarative configuration of the ParamKind type for use // with apply. type ParamKindApplyConfiguration struct { APIVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` } // ParamKindApplyConfiguration constructs an declarative configuration of the ParamKind type for use with // apply. func ParamKind() *ParamKindApplyConfiguration { return &ParamKindApplyConfiguration{} } // WithAPIVersion sets the APIVersion field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the APIVersion field is set to the value of the last call. func (b *ParamKindApplyConfiguration) WithAPIVersion(value string) *ParamKindApplyConfiguration { b.APIVersion = &value return b } // WithKind sets the Kind field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *ParamKindApplyConfiguration) WithKind(value string) *ParamKindApplyConfiguration { b.Kind = &value return b } ```
Mudcat may refer to: Sports teams Carolina Mudcats, a minor league baseball team in North Carolina, U.S., U.S. Columbus Mudcats, were a Minor League Baseball team in Georgia Dunnville Jr. Mudcats, a Junior ice hockey team in Dunnville, Ontario, Canada Topeka Mudcats, a women's professional American football team in Kansas, U.S. Other use Flathead catfish, also called mudcat Mudcat Café, a folk music website Mudcat Grant (1935–2021), American baseball player David Saunders (political strategist), American political consultant nicknamed Mudcat
Triaxomera kurilensis is a moth of the family Tineidae. It found on the Kurile Islands. References Moths described in 1996 Nemapogoninae Taxa named by Aleksei Konstantinovich Zagulyaev
```shell #!/usr/bin/env bats function setup() { load lib/env load lib/install load lib/poll load lib/defer kubectl create namespace "$FLUX_NAMESPACE" # Install flux and the git server, allowing external access install_git_srv git_srv_result "22_manifest_generation/gitsrv" # shellcheck disable=SC2154 export GIT_SSH_COMMAND="${git_srv_result[0]}" # Teardown the created port-forward to gitsrv. defer kill "${git_srv_result[1]}" install_flux_with_fluxctl "22_manifest_generation/flux" } @test "Basic sync and editing" { # Wait until flux deploys the workloads poll_until_true 'workload podinfo' 'kubectl -n demo describe deployment/podinfo' # Make sure that the production patch is applied (the podinfo HorizontalPodAutoscaler should have # a minReplicas value of 2) poll_until_equals 'podinfo hpa minReplicas of 2' '2' "kubectl get hpa podinfo --namespace demo -o\"jsonpath={['spec']['minReplicas']}\"" # Make sure the 'patchUpdated' mechanism works when changing annotations through fluxctl fluxctl --k8s-fwd-ns "${FLUX_NAMESPACE}" automate -n demo --workload deployment/podinfo >&3 poll_until_true 'podinfo to be automated' "fluxctl --k8s-fwd-ns \"${FLUX_NAMESPACE}\" list-workloads -n demo | grep podinfod | grep automated" } function teardown() { run_deferred # Although the namespace delete below takes care of removing most Flux # elements, the global resources will not be removed without this. uninstall_flux_with_fluxctl # Removing the namespace also takes care of removing Flux and gitsrv. kubectl delete namespace "$FLUX_NAMESPACE" # Only remove the demo workloads after Flux, so that they cannot be recreated. kubectl delete namespace "$DEMO_NAMESPACE" } ```
Simandres () is a commune in the Rhône department in eastern France. See also Communes of the Rhône department References Communes of Rhône (department)
The list of ship launches in 1702 includes a chronological list of some ships launched in 1702. References 1702 Ship launches
Lake Jennie is a somewhat rectangular freshwater lake in the city of Sanford, which is in Seminole County, Florida. Along the northwest, this lake is bordered by Seminole High School. On the southwest is a park. Most of the rest is bordered by commercial properties. This lake has no public swimming areas or boat docks. References Jennie
```c /* * */ #include <zephyr/kernel.h> #define EXTRA_THREAD_STACKSIZE 2048 struct k_thread extra_thread; K_THREAD_STACK_DEFINE(extra_stack, EXTRA_THREAD_STACKSIZE); static void thread_entry(void *p1, void *p2, void *p3) { /* This thread does not have a name so thread analyzer will display * the memory address of the thread struct, which is needed for * the twister console harness to match (even if CONFIG_THREAD_NAME=y). */ while (true) { k_sleep(K_SECONDS(300)); } } int main(void) { k_thread_create(&extra_thread, extra_stack, EXTRA_THREAD_STACKSIZE, thread_entry, NULL, NULL, NULL, K_PRIO_PREEMPT(0), IS_ENABLED(CONFIG_USERSPACE) ? K_USER : 0, K_MSEC(0)); return 0; } ```
Battle of Jeddah may refer to: Siege of Jeddah (1517) - Naval battle Between Ottoman Empire and Portuguese Empire Siege of Jeddah (1520) - Naval battle Between Ottoman Empire and Portuguese Empire Battle of Jeddah (1813) - Between Ottoman Empire and First Saudi State Battle of Jeddah (1925) - Between Kingdom of Hejaz and Sultanate of Nejd (Saudi Arabia)
```shell Let's play the blame game Specify a commit by its ancestry Specify a range of commits using double dot syntax Useful stashing options Sharing data by bundling ```
```swift // OverlayViewController.swift // OverlayContainer // // Created by Gatan Zanella on 12/11/2018. // import UIKit /// A `OverlayContainerViewController` is a container view controller that manages one or more /// child view controllers in an overlay interface. /// /// It defines an area where a view controller, called the overlay view controller, /// can be dragged up and down, hiding or revealing the content underneath it. /// /// OverlayContainer uses the last view controller of its viewControllers as the overlay view controller. /// It stacks the other view controllers on top of each other, if any, and adds them underneath the overlay view controller. open class OverlayContainerViewController: UIViewController { /// `OverlayStyle` defines how the overlay view controller will be constrained in the container. public enum OverlayStyle { /// The overlay view controller will not be height-constrained. It will grow and shrink /// as the user drags it up and down. case flexibleHeight /// The overlay view controller will be constrained with a height equal to the highest notch. /// It will be fully visible only when the user has drag it up to this notch. case rigid /// The overlay view controller will be constrained with a height greater or equal to the highest notch. /// Its height will be expanded if the overlay goes beyond the highest notch. case expandableHeight } /// The delegate of the container. weak open var delegate: OverlayContainerViewControllerDelegate? { set { configuration.delegate = newValue configuration.invalidateOverlayMetrics() setNeedsOverlayContainerHeightUpdate() } get { return configuration.delegate } } /// The view controllers displayed. open var viewControllers: [UIViewController] = [] { didSet { guard isViewLoaded else { return } oldValue.forEach { removeChild($0) } loadOverlayViews() setNeedsStatusBarAppearanceUpdate() } } /// The overlay view controller open var topViewController: UIViewController? { return viewControllers.last } open override var childForStatusBarStyle: UIViewController? { return topViewController } /// The scroll view managing the overlay translation. weak open var drivingScrollView: UIScrollView? { didSet { guard drivingScrollView !== oldValue else { return } guard isViewLoaded else { return } loadTranslationDrivers() } } /// The height of the area where the overlay view controller can be dragged up and down. /// It will only be valid once the container view is laid out or in the delegate callbacks. open var availableSpace: CGFloat { return view.frame.height } /// The style of the container. public let style: OverlayStyle private lazy var overlayPanGesture: OverlayTranslationGestureRecognizer = self.makePanGesture() private lazy var overlayContainerView = OverlayContainerView() private lazy var overlayTranslationView = OverlayTranslationView() private lazy var overlayTranslationContainerView = OverlayTranslationContainerView() private lazy var groundView = GroundView() private var overlayContainerViewStyleConstraint: NSLayoutConstraint? private var translationHeightConstraint: NSLayoutConstraint? private lazy var configuration = makeConfiguration() private var needsOverlayContainerHeightUpdate = true private var previousSize: CGSize = .zero private var translationController: HeightConstraintOverlayTranslationController? private var translationDrivers: [OverlayTranslationDriver] = [] // (gz) 2020-08-11 Uses to determine whether we can safely call `presentationController` or not. // See issue #72 private var isPresentedInsideAnOverlayContainerPresentationController = false // MARK: - Life Cycle /// Creates an instance with the specified `style`. /// /// - parameter style: The style used by the container. The default value is `expandableHeight`. /// /// - returns: The new `OverlayContainerViewController` instance. public init(style: OverlayStyle = .expandableHeight) { self.style = style super.init(nibName: nil, bundle: nil) } public required init?(coder aDecoder: NSCoder) { self.style = .flexibleHeight super.init(coder: aDecoder) } // MARK: - UIViewController open override func loadView() { view = PassThroughView() view.autoresizingMask = [.flexibleWidth, .flexibleHeight] loadContainerViews() loadOverlayViews() } open override func viewDidLoad() { super.viewDidLoad() setUpPanGesture() } open override func viewWillLayoutSubviews() { // (gz) 2019-06-10 According to the documentation, the default implementation of // `viewWillLayoutSubviews` does nothing. // Nethertheless in its `Changing Constraints` Guide, Apple recommends to call it. defer { super.viewWillLayoutSubviews() } let hasNewHeight = previousSize.height != view.bounds.size.height let hasPendingTranslation = translationController?.hasPendingTranslation() == true guard needsOverlayContainerHeightUpdate || hasNewHeight else { return } needsOverlayContainerHeightUpdate = false previousSize = view.bounds.size if hasNewHeight { configuration.invalidateOverlayMetrics() } if hasNewHeight && !hasPendingTranslation { translationController?.scheduleOverlayTranslation( .toLastReachedNotchIndex, velocity: .zero, animated: false ) } configuration.requestOverlayMetricsIfNeeded() performDeferredTranslations() } // MARK: - Internal func overlayContainerPresentationTransitionWillBegin() { isPresentedInsideAnOverlayContainerPresentationController = true } func overlayContainerDismissalTransitionDidEnd() { isPresentedInsideAnOverlayContainerPresentationController = false } // MARK: - Public /// Moves the overlay view controller to the specified notch. /// /// - parameter index: The index of the target notch. /// - parameter animated: Defines either the transition should be animated or not. /// - parameter completion: The block to execute after the translation finishes. /// This block has no return value and takes no parameters. You may specify nil for this parameter. /// open func moveOverlay(toNotchAt index: Int, animated: Bool, completion: (() -> Void)? = nil) { loadViewIfNeeded() translationController?.scheduleOverlayTranslation( .toIndex(index), velocity: .zero, animated: animated, completion: completion ) setNeedsOverlayContainerHeightUpdate() } /// Invalidates the current container notches. /// /// This method does not reload the notch heights immediately. The changes are scheduled to the next layout pass. /// By default, the overlay container will use its target notch policy to determine where to go /// and animates the translation. /// Use `moveOverlay(toNotchAt:animated:completion:)` to override this behavior. /// open func invalidateNotchHeights() { guard isViewLoaded else { return } configuration.invalidateOverlayMetrics() translationController?.scheduleOverlayTranslation( .basedOnTargetPolicy, velocity: .zero, animated: true ) setNeedsOverlayContainerHeightUpdate() } // MARK: - Private private func loadContainerViews() { view.addSubview(groundView) groundView.pinToSuperview() view.addSubview(overlayTranslationContainerView) overlayTranslationContainerView.pinToSuperview() overlayTranslationContainerView.addSubview(overlayTranslationView) overlayTranslationView.addSubview(overlayContainerView) overlayTranslationView.pinToSuperview(edges: [.bottom, .left, .right]) overlayContainerView.pinToSuperview(edges: [.left, .top, .right]) translationHeightConstraint = overlayTranslationView.heightAnchor.constraint(equalToConstant: 0) switch style { case .flexibleHeight: overlayContainerViewStyleConstraint = overlayContainerView.bottomAnchor.constraint( equalTo: overlayTranslationView.bottomAnchor ) case .rigid: overlayContainerViewStyleConstraint = overlayContainerView.heightAnchor.constraint( equalToConstant: 0 ) case .expandableHeight: overlayContainerViewStyleConstraint = overlayContainerView.heightAnchor.constraint( equalToConstant: 0 ) overlayContainerViewStyleConstraint?.priority = .defaultHigh let bottomConstraint = overlayContainerView.bottomAnchor.constraint( greaterThanOrEqualTo: overlayTranslationView.bottomAnchor ) bottomConstraint.isActive = true } loadTranslationController() } private func loadTranslationController() { guard let translationHeightConstraint = translationHeightConstraint else { return } translationController = HeightConstraintOverlayTranslationController( translationHeightConstraint: translationHeightConstraint, configuration: configuration ) translationController?.delegate = self translationController?.scheduleOverlayTranslation( .toIndex(0), velocity: .zero, animated: false ) } private func loadOverlayViews() { guard !viewControllers.isEmpty else { return } groundView.isHidden = viewControllers.count == 1 var truncatedViewControllers = viewControllers truncatedViewControllers.popLast().flatMap { addChild($0, in: overlayContainerView) } truncatedViewControllers.forEach { addChild($0, in: groundView) } loadTranslationDrivers() } private func loadTranslationDrivers() { guard let translationController = translationController, let overlayController = topViewController else { return } translationDrivers.forEach { $0.clean() } translationDrivers.removeAll() var drivers: [OverlayTranslationDriver] = [] let panGestureDriver = PanGestureOverlayTranslationDriver( translationController: translationController, panGestureRecognizer: overlayPanGesture ) drivers.append(panGestureDriver) let scrollView = drivingScrollView ?? configuration.scrollView(drivingOverlay: overlayController) if let scrollView = scrollView { overlayPanGesture.drivingScrollView = scrollView let driver = ScrollViewOverlayTranslationDriver( translationController: translationController, scrollView: scrollView ) drivers.append(driver) } translationDrivers = drivers } private func setNeedsOverlayContainerHeightUpdate() { needsOverlayContainerHeightUpdate = true viewIfLoaded?.setNeedsLayout() } private func updateOverlayContainerConstraints() { switch style { case .flexibleHeight: overlayContainerViewStyleConstraint?.constant = 0 case .rigid, .expandableHeight: overlayContainerViewStyleConstraint?.constant = configuration.maximumNotchHeight } translationHeightConstraint?.isActive = true overlayContainerViewStyleConstraint?.isActive = true } private func performDeferredTranslations() { translationController?.performDeferredTranslations() } private func setUpPanGesture() { view.addGestureRecognizer(overlayPanGesture) } private func makeConfiguration() -> OverlayContainerConfigurationImplementation { return OverlayContainerConfigurationImplementation( overlayContainerViewController: self ) } private func makePanGesture() -> OverlayTranslationGestureRecognizer { return OverlayTranslationGestureRecognizer() } } extension OverlayContainerViewController: HeightConstraintOverlayTranslationControllerDelegate { private var overlayPresentationController: OverlayContainerPresentationController? { guard isPresentedInsideAnOverlayContainerPresentationController else { return nil } return oc_findPresentationController(OverlayContainerPresentationController.self) } // MARK: - HeightOverlayTranslationControllerDelegate func translationController(_ translationController: OverlayTranslationController, didMoveOverlayToNotchAt index: Int) { guard let controller = topViewController else { return } delegate?.overlayContainerViewController(self, didMoveOverlay: controller, toNotchAt: index) overlayPresentationController?.overlayContainerViewController( self, didMoveOverlay: controller, toNotchAt: index ) } func translationController(_ translationController: OverlayTranslationController, willMoveOverlayToNotchAt index: Int) { guard let controller = topViewController else { return } delegate?.overlayContainerViewController(self, willMoveOverlay: controller, toNotchAt: index) overlayPresentationController?.overlayContainerViewController( self, willMoveOverlay: controller, toNotchAt: index ) } func translationControllerWillStartDraggingOverlay(_ translationController: OverlayTranslationController) { guard let controller = topViewController else { return } delegate?.overlayContainerViewController( self, willStartDraggingOverlay: controller ) overlayPresentationController?.overlayContainerViewController( self, willStartDraggingOverlay: controller ) } func translationController(_ translationController: OverlayTranslationController, willEndDraggingAtVelocity velocity: CGPoint) { guard let controller = topViewController else { return } delegate?.overlayContainerViewController( self, willEndDraggingOverlay: controller, atVelocity: velocity ) overlayPresentationController?.overlayContainerViewController( self, willEndDraggingOverlay: controller, atVelocity: velocity ) } func translationController(_ translationController: OverlayTranslationController, willTranslateOverlayWith transitionCoordinator: OverlayContainerTransitionCoordinator) { guard let controller = topViewController else { return } if transitionCoordinator.isAnimated { overlayTranslationContainerView.layoutIfNeeded() } transitionCoordinator.animate(alongsideTransition: { [weak self] context in self?.updateOverlayContainerConstraints() self?.overlayTranslationContainerView.layoutIfNeeded() }, completion: nil) delegate?.overlayContainerViewController( self, willTranslateOverlay: controller, transitionCoordinator: transitionCoordinator ) overlayPresentationController?.overlayContainerViewController( self, willTranslateOverlay: controller, transitionCoordinator: transitionCoordinator ) } func translationControllerDidScheduleTranslations(_ translationController: OverlayTranslationController) { setNeedsOverlayContainerHeightUpdate() } func overlayViewController(for translationController: OverlayTranslationController) -> UIViewController? { return topViewController } } ```
This article displays the squads for the 2014 African Women's Handball Championship. Each team consists of 16 players. Algeria Head coach: Karim Achour Angola Head coach: Vivaldo Eduardo Cameroon Head coach: Jean Marie Zambo Congo Head coach: Jean Patrice Pahapa DR Congo Head coach: Celestin Mpoua Guinea Head coach: Kevin Decaux Senegal Head coach: Cheick Seck Tunisia Head coach: Paulo Pereira References External links todor66.com 2014 Women squads 2014 in African handball Handball squads
Edison Oaks is an unincorporated community and residential neighborhood located within Edison Township in Middlesex County, in the U.S. state of New Jersey. It is located in the northern half of Edison Township; south of Oak Tree, east of the Oak Tree Tennis Courts, west of the Oak Tree Park, and north of Glenwood Park, Glenwood Heights and Hampshire Gardens. The community is bordered by Oak Tree Road to the north, Warwick Road to the east, and Peru Street to the south and west, with Whitehall Avenue in the center. Edison Oaks was developed by Alfred C. Vitale through his development firm Vitality Estates between 1960 and 1961. The community consists of 60 ranch-style bi-level and split-level homes designed by architect S. J. Potter. The houses were built between 1961 and 1962 by contractors John Cali and Ignatius Seminara of the building firm Cali Associates, with residents moving into the new homes starting in autumn 1962. History Oakview Heights and Holiday Homes (1957–1960) The land on which Edison Oaks sits was once owned by bridge engineer Gustav Lindenthal. After his death in 1935, the land was donated to Raritan Township. In 1957, a 255-acre development known as Oakview Heights was to be built on most of the land located between Plainfield Road, Oak Tree Road, Grove Avenue and the Metuchen Golf and Country Club in Edison Township. Once this development fell through, portions of Oakview Heights were sectioned off to smaller developers. On February 2, 1960, Kenilworth, New Jersey-based developer Alfred C. Vitale incorporated the development firm, Vitality Estates, Incorporated. Two months later, Vitale presented his plan to construct 76 residential homes on 26.3 acres of land south of Oak Tree Road and east of Plainfield Road to the Edison Township Planning Board. The development, named Holiday Homes, was to be constructed on paper streets Prospect Street (present day Peru Street), Washington Avenue (present day Whitehall Avenue) and Jackson Avenue (present day Warwick Road). An Edison Township Planning Board meeting was held on April 20, 1960 to review Vitality Estates' proposal for Holiday Homes. At the meeting, Edison Township Mayor Anthony Yelencsics, as well as 30 residents of neighboring communities of Stephenville, Hampshire Gardens and Oak Tree, voiced their objections of the proposed community's lot sizes, which had been subdivided to the smallest legally-allowed parcels for residential construction. They complained that Residential A Zone housing required larger plots of land in the area and allowing the developer to construct smaller houses would downgrade the area. The Edison Township Fire Department also objected to the positioning of the streets. The Edison Township Planning Board denied Vitality Estates' Holiday Homes proposal. Vitality Estates (1960–1961) Vitale spent the next month revising the building plans and plots sizes of the community with architect S. J. Potter. In June 1960, Vitale submitted a new 60-home residential project named Vitality Estates, which proposed the construction of 18 houses in a Residence A Zone and 42 houses in a Residence B Zone, each on a half-acre plot and priced between $19,000 to $23,000. On July 20, 1960, the Edison Township Planning Board gave a conditional approval of the 60-home Vitality Estates development, subject to the approval of the Middlesex County Planning Board. Edison Township Engineer John Zimmerman recommended that the development extend its storm and sanitary sewers north along Oak Tree Road. The Edison Township Fire Department again objected to the development because Prospect Street would not meet up with and connect through to Chandler Road, which would hamper fire truck access. On August 17, 1960, the Edison Township Planning Board gave a preliminary approval to Vitality Estates. On April 17, 1961 Vitale incorporated the development firm Vitality Estates, Limited, which acted as a legal successor to Vitality Estates, Incorporated by virtue of dissolution and received the deeds to the development. On April 20, 1961, the Edison Township Planning Board gave the developer final approval and the go-ahead to build the Vitality Estates - Section 1: the 17 homes in its Residential A Zone. On May 26, 1961, Edison Township Building Inspector George Thompson sanctioned the construction three model homes in Vitality Estates, two were to be priced at $17,000, the other at $18,000. Edison Oaks (1961–1963) On July 5, 1961, a new corporation named Edison Oaks, Incorporated, was registered; it was at this time that Vitality Estates became known as Edison Oaks. On September 8, 1961, building contractors John Cali and Ignatius Seminara of Cali Associates announced that four model homes were open to visits in Edison Oaks; all four were priced at $23,990. The residences in the development were custom built ranch-style or colonial-style split level or bi-level homes, fully equipped with air conditioning, four or five bedrooms, two and a half bathrooms, two-car garages, a finished recreation room, a living room with picture or bay window, full-sized dining room, full basements and modern kitchens. By the end of September 1961, ten of the homes had been purchased, exclusively through Hy Ballon of Jacobson, Goldfarb and Tanzman. In December 1961, Cali Associates began building a fifth model home. In late January 1962, project director Seminara announced that all utilities had been installed in the development's first section, the roads had been cut through, and the lots had been brought to grade. Construction had also started on the first fifteen homes, with delivery predicted for the late winter of 1962. On February 21, 1962, the Edison Township Planning Board gave final approval and the go-ahead to build Edison Oaks - Section 2: the 43 homes in its Residential B Zone. In March 1962, Prospect Street (which had temporarily been renamed Prospect Avenue) was officially renamed Peru Street; Washington Avenue was renamed Whitehall Avenue and Jackson Avenue was renamed Warwick Avenue once it was extended to connect with the existing road in Carriage Hill and Glenwood Park. By May 1962, 30 of the 60 homes in Edison Oaks had been sold. In early June 1962, the last 20 homes in Edison Oaks was opened for sale. By mid-June 1962, 45 of the 60 homes had been sold. On July 17, 1962, Edison Oaks, Incorporated requested a variance from the Edison Township Zoning Board of Adjustment to build a home on an irregular-shaped lot, located at 23 Warwick Road. The request went through three appeals before it was finally approved on August 13, 1962, giving the builders permission to build the house at an angle facing the corner of Peru Street and Warwick Road. In early November 1962, Seminara announced that 20 families had taken title to their residences and that Cali Associates would deliver the remaining of the 60 homes before the end of the year. By February 1963, 44 families had taken titles of their homes in Edison Oaks, and 51 properties had been sold. In mid-March 1963, Cali Associates announced that 54 of the houses had been sold and that more than 50 had been delivered. By the summer of 1963, all 60 homes in Edison Oaks had been sold. See also List of neighborhoods in Edison, New Jersey References Neighborhoods in Edison, New Jersey Unincorporated communities in Middlesex County, New Jersey Unincorporated communities in New Jersey
An Inconvenient Truth is a 2006 American documentary film directed by Davis Guggenheim about former United States Vice President Al Gore's campaign to educate people about global warming. The film features a slide show that, by Gore's own estimate, he has presented over 1,000 times to audiences worldwide. The idea to document Gore's efforts came from producer Laurie David, who saw his presentation at a town hall meeting on global warming, which coincided with the opening of The Day After Tomorrow. Laurie David was so inspired by his slide show that she, with producer Lawrence Bender, met with Guggenheim to adapt the presentation into a film. Premiering at the 2006 Sundance Film Festival and opening in New York City and Los Angeles on May 24, 2006, the film was a critical and commercial success, winning two Academy Awards for Best Documentary Feature and Best Original Song. The film grossed $24 million in the U.S. and $26 million at the international box office, becoming the 11th highest grossing documentary film to date in the United States. Since the film's release, An Inconvenient Truth has been credited for raising international public awareness of global warming and reenergizing the environmental movement. The documentary has also been included in science curricula in schools around the world, which has spurred some controversy. A sequel to the film, titled An Inconvenient Sequel: Truth to Power, was released on July 28, 2017. Synopsis An Inconvenient Truth presents in film form an illustrated talk on climate by Al Gore, aimed at alerting the public to an increasing "planetary emergency" due to global warming, and shows re-enacted incidents from his life story which influenced his concerns about environmental issues. He began making these presentations in 1989 with flip chart illustrations; the film version uses a Keynote presentation, which Gore refers to as "the slide show". The former vice president opens the film by greeting an audience with his well-known line about his campaign in 2000: "I am Al Gore. I used to be the next President of the United States." He is shown using his laptop to edit his presentation, and pondering the difficulty he has had in awakening public concern: "I've been trying to tell this story for a long time and I feel as if I've failed to get the message across." Gore then begins his slide show on Global Warming; a comprehensive presentation replete with detailed graphs, flow charts and stark visuals. Gore shows off several photographs of the Earth taken from multiple space missions, as Earthrise and The Blue Marble. Gore notes that these photos dramatically transformed the way we see the Earth, helping spark modern environmentalism. Following this, Gore shares anecdotes that inspired his interest in the issue, including his college education with early climate expert Roger Revelle at Harvard University, his sister's death from lung cancer and his young son's near-fatal car accident. Gore recalls a story from his grade-school years, where a fellow student asked his geography teacher about continental drift, whether the coastlines of South America and Africa might fit together; in response, the teacher called the concept the "most ridiculous thing [he'd] ever heard." Gore ties this conclusion to the assumption that "the Earth is so big, we can't possibly have any lasting, harmful impact on the Earth's environment." For comic effect, Gore uses a clip from the Futurama episode "Crimes of the Hot" to describe the greenhouse effect. Gore refers to his loss to George W. Bush in the 2000 United States presidential election as a "hard blow" yet one which subsequently "brought into clear focus, the mission [he] had been pursuing for all these years." Throughout the movie, Gore discusses the scientific consensus on global warming, as well as the present and future effects of global warming and stresses that global warming "is really not a political issue, so much as a moral one," describing the consequences he believes global warming will produce if the amount of human-generated greenhouse gases is not significantly reduced in the very near future. Gore also presents Antarctic ice coring data showing CO2 levels higher now than in the past 650,000 years. The film includes segments intended to refute critics who say that global warming is unproven or that warming will be insignificant. For example, Gore cites the retreat of nearly all glaciers caused by melting over recent decades, showing nine cases, such as the Grinnel and Boulder Glaciers and Patagonia. He discusses the possibility of the collapse and melting of a major ice sheet in Greenland or in West Antarctica, either of which could raise global sea levels by approximately 20 feet (6m), flooding coastal areas and producing 100 million refugees. Melt water from Greenland, because of its lower salinity, could then halt the currents that keep northern Europe warm and quickly trigger dramatic local cooling there. It also contains various short animated projections of what could happen to different animals more vulnerable to global warming. Call to action The documentary ends with Gore arguing that if appropriate actions are taken soon, the effects of global warming can be successfully reversed by releasing less CO2 and planting more vegetation to consume existing CO2. Gore calls upon his viewers to learn how they can help him in these efforts. Gore closes the film by saying: During the film's end credits, several calls to action pop up on screen suggesting to viewers things at home they can do to combat global warming, including "recycle", "speak up in your community", "try to buy a hybrid vehicle" and "encourage everyone you know to watch this movie." Background Origins Gore became interested in global warming when he took a course at Harvard University with Professor Roger Revelle, one of the first scientists to measure carbon dioxide in the atmosphere. Later, when Gore was in Congress, he initiated the first congressional hearing on the subject in 1981. Gore's 1992 book, Earth in the Balance, dealing with a number of environmental topics, reached the New York Times bestseller list. As Vice President during the Clinton Administration, Gore pushed for the implementation of a carbon tax to encourage energy efficiency and diversify the choices of fuel better reflecting the true environmental costs of energy use; it was partially implemented in 1993. He helped broker the 1997 Kyoto Protocol, an international treaty designed to curb greenhouse gas emissions. The treaty was not ratified in the United States after a 95 to 0 vote in the Senate. The primary objections stemmed from the exemptions the treaty gave to China and India, whose industrial base and carbon footprint have grown rapidly, and fears that the exemptions would lead to further trade imbalances and offshoring arrangement with those countries. Gore also supported the funding of the controversial, and much-delayed satellite called Triana, which would have provided an image of the Earth 24 hours a day, over the internet and would have acted as a barometer measuring the process of global warming. During his 2000 presidential campaign, Gore ran, in part, on a pledge to ratify the Kyoto Protocol. The slide show Following his defeat in the 2000 presidential election by George W. Bush, Gore returned his focus to the topic. He edited and adapted a slide show he had compiled years earlier, and began featuring the slide show in presentations on global warming across the U.S. and around the world. At the time of the film, Gore estimated he had shown the presentation more than one thousand times. Producer Laurie David saw Gore's slide show in New York City at a global warming town-hall meeting after the May 27, 2004 premiere of The Day After Tomorrow. Gore was one of several panelists and he showed a ten-minute version of his slide show. Inspired, David assembled a team, including producer Lawrence Bender and former president of eBay Jeffrey Skoll, who met with Gore about the possibility of making the slide show into a movie. It took some convincing. The slide show, she says, "was his baby, and he felt proprietary about it and it was hard for him to let go." David said the box office returns were not important to her, and that what was at stake was the planet, saying "none of us are going to make a dime." David and Bender later met with director Davis Guggenheim, to have him direct the film adaptation of his slide show. Guggenheim, who was skeptical at first, later saw the presentation for himself, stating that he was "blown away," and "left after an hour and a half thinking that global warming [was] the most important issue ... I had no idea how you'd make a film out of it, but I wanted to try," he said. In 2004 Gore enlisted Duarte Design to condense and update his material and add video and animation. Ted Boda described the tools that went into designing the project: "Gore's presentation was in fact using Apple's Keynote presentation software (the same software Steve Jobs presents from) and did so for a number of reasons. As a designer for the presentation, Keynote was the first choice to help create such an engaging presentation." Initially reluctant of the film adaptation, Gore said after he and the crew were into the production of the movie, the director, Guggenheim, earned his trust. Production When Bender first saw Gore's visual presentation he had concerns about connection with viewers, citing a "need to find a personal way in." In the string of interviews with Gore that followed, Gore himself felt like they "were making Kill Al Vol. 3". Bender had other issues including a time frame that was "grueling" and needed to be done in "a very short period of time" despite many filming locations planned. These included many locations throughout the United States and also included China. "It was a lot of travel in a very short period of time. And they had to get this thing edited and cut starting in January, and ready to screen in May. That's like a seriously tight schedule. So the logistics of pulling it off with a low budget were really difficult, and if there's one person who gets credit, it's Leslie Chilcott, because she really pulled it together." "Most of my movies take a year and a half, if not two and a half," Guggenheim said. "We all felt like we were on a mission from God just to make it as fast as we could. We just felt like it was urgent. The clock was ticking, and people had to see it." Title The producers struggled to find an effective title for the film. "We had a lot of really bad titles," Guggenheim recalled. "One was The Rising. I remember Al talking about whether he should give Bruce Springsteen a call, because he had an album out called The Rising. It had a great triple-entendre, because it was like the sea-level rising and the idea of people rising. So we got excited about that for a while." "There were also some really bad ones like Too Hot to Handle," he added. "Maybe that's not right, but it was something with 'hot,' ya know? We had a lot of hot puns." Guggenheim said that he asked Gore why climate change was "so hard for people to grasp," to which Gore replied, "Because it's an inconvenient truth, ya know." "[...] In the back of my head, I go, that's the title of our movie," Guggenheim said. Initially, the title was not a popular choice. Gore recalled saying "Nah, I don't think so" but Guggenheim "defended it vigorously against other titles." "People thought it was hard to say, people thought it wasn't fun, it wasn't sexy," Guggenheim remembered. "Days before we went to Sundance and had to decide, there was a large group of people who did not like the title." Technical aspects The majority of the movie shows Gore delivering his lecture to an audience at a relatively small theater in Los Angeles. Gore's presentation was delivered on a 70-foot (21 m) digital screen that Bender commissioned specifically for the movie. While the bulk of the film was shot on 4:4:4 HDCAM, according to director Guggenheim, a vast array of different film formats were used: "There's 35mm and 16mm. A lot of the stuff on the farm I just shot myself on 8mm film. We used four Sony F950 HDCAMs for the presentation. We shot three different kinds of prosumer HD, both 30 and 24. There's MiniDV, there's 3200 black-and-white stills, there's digital stills, some of them emailed on the day they were taken from as far off as Greenland. There was three or four different types of animation. One of the animators is from New Zealand and emailed me his work. There's JPEG stuff." Guggenheim said that while it would have been a lot easier to use one format, it would not have had the same impact. "Each format has its own feel and texture and touch. For the storytelling of what Gore's memory was like of growing up on the farm, some of this 8mm stuff that I shot is very impressionistic. And for some of his memories of his son's accident, these grainy black-and-white stills ... have a feel that contrasted very beautifully with the crisp hi-def HD that we shot. Every format was used to its best potential. Some of the footage of Katrina has this blown-out video, where the chroma is just blasted, and it looks real muddy, but that too has its own kind of powerful, impactful feeling." Scientific basis The film lays out the scientific consensus that global warming is real, potentially catastrophic, and human-caused. Gore presents specific data to support this, including: The Keeling Curve, which depicts the long-term increase in atmospheric CO2 concentration as measured from the Mauna Loa Observatory. The retreat of numerous glaciers is shown with before-and-after photographs. A study by researchers at the Physics Institute of the University of Bern and the European Project for Ice Coring in Antarctica (EPICA) presenting data from Antarctic ice cores showing carbon dioxide concentrations higher than at any time during the past 650,000 years. Data from the atmospheric instrumental temperature record showing that the ten hottest years ever measured had all occurred in the previous fourteen years. A 2004 survey by Naomi Oreskes of 928 peer-reviewed scientific articles on global climate change published between 1993 and 2003. The survey, published as an editorial in the journal Science, found that every article either supported the human-caused global warming consensus or did not comment on it. Gore also presents a 2004 study by Max and Jules Boykoff showing 53% of articles that appeared in major US newspapers over a fourteen-year period gave roughly equal attention to scientists who expressed views that global warming was caused by humans as they did to climate change deniers (many of them funded by carbon-based industry interests), creating a false balance. The Associated Press contacted more than 100 climate researchers and questioned them about the film's veracity. All 19 climate scientists who had seen the movie or had read the homonymous book said that Gore accurately conveyed the science, with few errors. William H. Schlesinger, dean of the Nicholas School of Environment and Earth Sciences at Duke University, said "[Gore] got all the important material and got it right." Robert Corell, chairman of the Arctic Climate Impact Assessment, was also impressed. "I sat there and I'm amazed at how thorough and accurate. After the presentation I said, 'Al, I'm absolutely blown away. There's a lot of details you could get wrong.'...I could find no error." Michael Shermer, scientific author and founder of The Skeptics Society, wrote in Scientific American that Gore's slide show "shocked me out of my doubting stance." Eric Steig, a climate scientist writing on RealClimate, lauded the film's science as "remarkably up to date, with reference to some of the very latest research." Ted Scambos, lead scientist from the National Snow and Ice Data Center, said the film "does an excellent job of outlining the science behind global warming and the challenges society faces in the coming century because of it." One concern among scientists in the film was the connection between hurricanes and global warming, which at the time was contentious in the scientific community. Gore cited five recent scientific studies to support his view. "I thought the use of imagery from Hurricane Katrina was inappropriate and unnecessary in this regard, as there are plenty of disturbing impacts associated with global warming for which there is much greater scientific consensus," said Brian Soden, professor of meteorology and oceanography at the University of Miami. Gavin Schmidt, climate modeler for NASA, thought Gore appropriately addressed the issue. "Gore talked about 2005 and 2004 being very strong seasons, and if you weren't paying attention, you could be left with the impression that there was a direct cause and effect, but he was very careful to not say there's a direct correlation," Schmidt said. "There is a difference between saying 'we are confident that they will increase' and 'we are confident that they have increased due to this effect,'" added Steig. "Never in the movie does he say: 'This particular event is caused by global warming.'" Gore's use of long ice core records of CO2 and temperature (from oxygen isotope measurements) in Antarctic ice cores to illustrate the correlation between the two drew some scrutiny; Schmidt, Steig and Michael E. Mann back up Gore's data. "Gore stated that the greenhouse gas levels and temperature changes over ice age signals had a complex relationship but that they 'fit'. Both of these statements are true," said Schmidt and Mann. "The complexity though is actually quite fascinating ... a full understanding of why CO2 changes in precisely the pattern that it does during ice ages is elusive, but among the most plausible explanations is that increased received solar radiation in the southern hemisphere due to changes in Earth's orbital geometry warms the southern ocean, releasing CO2 into the atmosphere, which then leads to further warming through an enhanced greenhouse effect. Gore's terse explanation does not delve into such complexities, but the crux of his point—that the observed long-term relationship between CO2 and temperature in Antarctica supports our understanding of the warming impact of increased CO2 concentrations—is correct. Moreover, our knowledge of why CO2 is changing now (fossil fuel burning) is solid. We also know that CO2 is a greenhouse gas, and that the carbon cycle feedback is positive (increasing temperatures lead to increasing CO2 and CH4), implying that future changes in CO2 will be larger than we might anticipate." "Gore is careful not to state what the temperature/CO2 scaling is," said Steig. "He is making a qualitative point, which is entirely accurate. The fact is that it would be difficult or impossible to explain past changes in temperature during the ice age cycles without CO2 changes. In that sense, the ice core CO2-temperature correlation remains an appropriate demonstration of the influence of CO2 on climate." Steig disputed Gore's statement that one can visibly see the effect that the United States Clean Air Act has had on ice cores in Antarctica. "One can neither see, nor even detect using sensitive chemical methods any evidence in Antarctica of the Clean Air Act," he said, but did note that they are "clearly recorded in ice core records from Greenland." Despite these flaws, Steig said that the film got the fundamental science right and the minor factual errors did not undermine the main message of the film, adding "An Inconvenient Truth rests on a solid scientific foundation." Lonnie Thompson, Earth Science professor at Ohio State University, whose work on retreating glaciers was featured in the film, was pleased with how his research was presented. "It's so hard given the breadth of this topic to be factually correct, and make sure you don't lose your audience," Thompson said. "As scientists, we publish our papers in Science and Nature, but very few people read those. Here's another way to get this message out. To me, it's an excellent overview for an introductory class at a university. What are the issues and what are the possible consequences of not doing anything about those changes? To me, it has tremendous value. It will reach people that scientists will never reach." John Nielsen-Gammon from Texas A&M University said the "main scientific argument presented in the movie is for the most part consistent with the weight of scientific evidence, but with some of the main points needing updating, correction, or qualification." Nielsen-Gammon thought the film neglected information gained from computer models, and instead relied entirely on past and current observational evidence, "perhaps because such information would be difficult for a lay audience to grasp, believe, or connect with emotionally." Steven Quiring, a climatologist from Texas A&M University, added that "whether scientists like it or not, An Inconvenient Truth has had a much greater impact on public opinion and public awareness of global climate change than any scientific paper or report." Reception Box office The film opened in New York City and Los Angeles on May 24, 2006. On Memorial Day weekend, it grossed an average of $91,447 per theater, the highest of any movie that weekend and a record for a documentary, though it was only playing on four screens at the time. At the 2006 Sundance Film Festival, the movie received three standing ovations. It was also screened at the 2006 Cannes Film Festival and was the opening night film at the 27th Durban International Film Festival on June 14, 2006. An Inconvenient Truth was the most popular documentary at the 2006 Brisbane International Film Festival. The film has grossed over $24 million in the U.S., making it the eleventh-highest-grossing documentary in the U.S. (from 1982 to the present). It grossed nearly $26 million in foreign countries, the highest being France, where it grossed $5 million. According to Gore, "Tipper and I are devoting 100 percent of the profits from the book and the movie to a new bipartisan educational campaign to further spread the message about global warming." Paramount Classics committed 5% of their domestic theatrical gross from the film to form a new bipartisan climate action group, Alliance for Climate Protection, dedicated to awareness and grassroots organizing. Critical response The film received a positive reaction from film critics and audiences. It garnered a "certified fresh" 93% rating at Rotten Tomatoes, based on 166 reviews, and an average rating of 7.74/10. The website's critical consensus states, "This candid, powerful and informative documentary illuminates some of the myths surrounding its dual subjects: global warming and Al Gore". At Metacritic, which assigns a weighted average score out of 100 to reviews from mainstream critics, the film has received an average score of 75, based on 32 reviews, indicating "generally favorable reviews". Film critics Roger Ebert and Richard Roeper gave the film "two thumbs up". Ebert said, "In 39 years, I have never written these words in a movie review, but here they are: You owe it to yourself to see this film. If you do not, and you have grandchildren, you should explain to them why you decided not to," calling the film "horrifying, enthralling and [having] the potential, I believe, to actually change public policy and begin a process which could save the Earth." New York Magazine critic David Edelstein called the film "One of the most realistic documentaries I've ever seen—and, dry as it is, one of the most devastating in its implications." The New Yorker David Remnick added that while it was "not the most entertaining film of the year ... it might be the most important" and a "brilliantly lucid, often riveting attempt to warn Americans off our hellbent path to global suicide." The New York Times reviewer A. O. Scott thought the film was "edited crisply enough to keep it from feeling like 90 minutes of C-SPAN and shaped to give Mr. Gore's argument a real sense of drama," and "as unsettling as it can be," Scott continued, "it is also intellectually exhilarating, and, like any good piece of pedagogy, whets the appetite for further study." Bright Lights Film Journal critic Jayson Harsin declared the film's aesthetic qualities groundbreaking, as a new genre of slideshow film. NASA climatologist James Hansen described the film as powerful, complemented by detail in the book. Hansen said that "Gore has put together a coherent account of a complex topic that Americans desperately need to understand. The story is scientifically accurate and yet should be understandable to the public, a public that is less and less drawn to science." He added that with An Inconvenient Truth, "Al Gore may have done for global warming what Silent Spring did for pesticides. He will be attacked, but the public will have the information needed to distinguish our long-term well-being from short-term special interests." In "extensive exit polling" of An Inconvenient Truth in "conservative suburban markets like Plano and Irvine (Orange County), as well as Dallas and Long Island", 92 percent rated "Truth" highly and 87 percent of the respondents said they'd recommend the film to a friend. University of Washington professor Michele Poff argued that Gore was successful in communicating to conservative-leaning audiences by framing the climate crisis as apolitical. "Gore's and the environment's identification with the Democratic Party posed a significant challenge to reaching Republicans and conservatives, as well as those disgruntled with politics in general," Poff wrote. "To appeal to such individuals, Gore framed the matter as distinctly apolitical – as an issue both outside politics and one that was crucial regardless of one's ideological leanings. These explicit attempts to frame the issue as apolitical take on further gravitas when we consider how Gore infused the film with reflections of conservative values. Indeed, Gore reached deeply into the value structure of American conservatives to highlight ideals that suggested his cause was not liberal, but rather was beyond politics, beyond ideology." A small number of reviews criticized the film on scientific and political grounds. Journalist Ronald Bailey argued in the libertarian magazine Reason that although "Gore gets [the science] more right than wrong," he exaggerates the risks. MIT atmospheric physicist Richard S. Lindzen was vocally critical of the film, writing in a June 26, 2006 op-ed in The Wall Street Journal that Gore was using a biased presentation to exploit the fears of the public for his own political gain. A few other reviewers were also skeptical of Gore's intent, wondering whether he was setting himself for another Presidential run. The Boston Globe writer Peter Canellos criticized the "gauzy biographical material that seems to have been culled from old Gore campaign commercials." Phil Hall of Film Threat gave the film a negative review, saying "An Inconvenient Truth is something you rarely see in movies today: a blatant intellectual fraud." Others felt that Gore did not go far enough in depicting the threat Indigenous peoples faced with the dire consequences of climate change. "An Inconvenient Truth completely ignores the plight of Arctic indigenous peoples whose cultures and landscapes are facing profound changes produced by melting polar ice," argued environmental historian Finis Dunaway. Accolades An Inconvenient Truth has received many different awards worldwide. The film won two awards at the 79th Academy Awards: Best Documentary Feature and Best Original Song for Melissa Etheridge's "I Need to Wake Up". It is the first documentary to win 2 Oscars and the first to win a best original song Oscar. After winning the 2007 Academy Award for Documentary Feature, the Oscar was awarded to director Guggenheim, who asked Gore to join him and other members of the crew on stage. Gore then gave a brief speech, saying: For Gore's wide-reaching efforts to draw the world's attention to the dangers of global warming which is centerpieced in the film, Al Gore, along with the Intergovernmental Panel on Climate Change (IPCC), won the 2007 Nobel Peace Prize. Gore also received the Prince of Asturias Prize in 2007 for international cooperation. The related album, which featured the voices of Beau Bridges, Cynthia Nixon and Blair Underwood, also won Best Spoken Word Album at the 51st Grammy Awards. The film received numerous other accolades, including a special recognition from the Humanitas Prize, the first time the organization had handed out a Special Award in over 10 years, the 2007 Stanley Kramer Award from The Producers Guild of America, which recognizes "work that dramatically illustrates provocative social issues" and the President's Award 2007 from the Society for Technical Communication "for demonstrating that effective and understandable technical communication, when coupled with passion and vision, has the power to educate—and change—the world." The film won many other awards for Best Documentary: Impact [[File:20200112 "Climate crisis" vs "Climate emergency" - Google search term usage.png |thumb | Google Trends data shows that, following the 2006 release of An Inconvenient Truth, there was an increase in the number of Google searches for the term climate crisis, which Gore often used instead of the more neutral climate change. Also graphed: searches for climate emergency.]] The documentary has been generally well-received politically in many parts of the world and is credited for raising further awareness of global warming internationally. The film inspired producer Kevin Wall to conceive the 2007 Live Earth festival and influenced Italian composer Giorgio Battistelli to write an operatic adaptation, entitled "CO2," premiering at La Scala in Milan in 2015. According to the Encyclopædia Britannica, in response to the documentary, "Pro-industry conservative politicians and their supporters (many of whom saw global warming as a hoax designed to bilk taxpayers out of their money) lined up on one side, while scientists and more-liberal politicians (who pressed that global warming was among the most important issues humanity would face) teamed up on the other", adding that "Most remember the film as part motivational science lecture with slick graphics and part self-reflection." Activism Following the film, Gore founded The Climate Reality Project in 2006 which trained 1,000 activists to give Gore's presentation in their communities. Presently, the group has 3,500 presenters worldwide. An additional initiative was launched in 2010, called "Inconvenient Youth". "'Inconvenient Youth' is built on the belief that teens can help lead efforts to solve the climate crisis," said Gore. The project was inspired by Mary Doerr, a 16-year-old who trained as presenter for the organization. University of Scranton professor Jessica Nolan found in a 2010 study published for Environment and Behavior that people became more informed and concerned about climate change right after seeing the film but that these concerns did not translate into changed behavior a month later. On the contrary, in a 2011 paper published in the Journal of Environmental Economics and Management, University of Oregon professor Grant Jacobsen found in the two months following the release of the film, zip codes within a 10-mile (16 km) radius of a zip code where the film was shown experienced a 50 percent relative increase in the purchase of voluntary carbon offsets. Public opinion In a July 2007 47-country Internet survey conducted by The Nielsen Company and Oxford University, 66% of those respondents who said they had seen An Inconvenient Truth stated that it had "changed their mind" about global warming and 89% said it had made them more aware of the problem. Three out of four (74%) said they had changed some of their habits because of seeing the film. Governmental reactions Then-President George W. Bush, when asked whether he would watch the film, responded: "Doubt it." "New technologies will change how we live and how we drive our cars, which all will have the beneficial effect of improving the environment," Bush said. "And in my judgment we need to set aside whether or not greenhouse gases have been caused by mankind or because of natural effects and focus on the technologies that will enable us to live better lives and at the same time protect the environment". Gore responded that "The entire global scientific community has a consensus on the question that human beings are responsible for global warming and he [Bush] has today again expressed personal doubt that that is true." White House deputy press secretary Dana Perino stated that "The president noted in 2001 the increase in temperatures over the past 100 years and that the increase in greenhouse gases was due to a certain extent to human activity". Several United States Senators screened the film. New Mexico Democratic Senator Jeff Bingaman and Nevada Democratic Senator Harry Reid saw the movie at its Washington premiere at the National Geographic Society. New Mexico Democratic Senator Tom Udall planned to see the film saying "It's such a powerful statement because of the way the movie is put together, I tell everybody, Democrat or Republican, they've got to go see this movie." Former New Mexico Republican Senator Pete Domenici thought Gore's prominence on the global warming issue made it more difficult to get a consensus in Congress. Bingaman disputed this saying, "It seems to me we were having great difficulty recruiting Republican members of Congress to support a bill before Al Gore came up with this movie." Oklahoma Republican Senator Jim Inhofe, then-chairman of the Senate Environment and Public Works Committee, said that he did not plan to see the film (which he appears in), and compared it to Adolf Hitler's book Mein Kampf. "If you say the same lie over and over again, and particularly if you have the media's support, people will believe it," Inhofe said, adding that he thought Gore was trying to use the issue to run for president again in 2008. In contrast to Inhofe, Arizona Republican Senator John McCain, did not criticize Gore's efforts or the movie, which he planned to see. Tennessee Republican Senator Lamar Alexander, said "Because (Gore) was a former vice president and presidential nominee, he brings a lot of visibility to (the issue)," Alexander said. "On the other hand it may be seen as political by some, and they may be less eager to be a part of it." Alexander also criticized the omission of nuclear power in the film. "Maybe it needs a sequel: 'An Inconvenient Truth 2: Nuclear Power.'" In September 2006, Gore traveled to Sydney, Australia to promote the film. Then-Australian Prime Minister John Howard said he would not meet with Gore or agree to Kyoto because of the movie: "I don't take policy advice from films." Former Opposition Leader Kim Beazley joined Gore for a viewing and other MPs attended a special screening at Parliament House earlier in the week. After winning the general election a year later, Prime Minister Kevin Rudd ratified Kyoto in his first week of office, leaving the United States the only industrialized nation in the world not to have signed the treaty. In the United Kingdom, Conservative party leader and future Prime Minister David Cameron urged people to watch the film in order to understand climate change. In Belgium, activist Margaretha Guidone persuaded the entire Belgian government to see the film. 200 politicians and political staff accepted her invitation, among whom were Belgian prime minister Guy Verhofstadt and Minister-President of Flanders, Yves Leterme. In Costa Rica, the film was screened by president Óscar Arias. Arias's subsequent championing of the climate change issue was greatly influenced by the film. Industry and business The Competitive Enterprise Institute released pro-carbon dioxide television ads in preparation for the film's release in May 2006. The ads featured a little girl blowing a dandelion with the tagline, "Carbon dioxide. They call it pollution. We call it life." In August 2006, The Wall Street Journal revealed that a YouTube video lampooning Gore and the movie, titled Al Gore's Penguin Army, appeared to be "astroturfing" by DCI Group, a Washington public relations firm. Use in education Several colleges and high schools have featured the film in science curricula. In Germany, German Environment Minister Sigmar Gabriel bought 6,000 DVDs of An Inconvenient Truth to make it available to German schools. Prime Minister José Luis Rodríguez Zapatero distributed 30000 copies to the Spanish schools in October 2007. In Burlington, Ontario, Canada, the Halton District School Board made An Inconvenient Truth available at schools and as an educational resource. In the United Kingdom As part of a nationwide "Sustainable Schools Year of Action" launched in late 2006, the UK Government, Welsh Assembly Government and Scottish Executive announced between January–March 2007 that copies of An Inconvenient Truth would be sent to all their secondary schools. The film was placed into the science curriculum for fourth and sixth-year students in Scotland as a joint initiative between Learning and Teaching Scotland and Scottish Power. Dimmock case In May 2007, Stewart Dimmock—a school governor from Kent, England and member of the right-wing New Party—challenged the UK Government's distribution of the film in a lawsuit, Dimmock v Secretary of State for Education and Skills, with help from political ally and New Party founder Viscount Monckton, who notably pointed out "35 serious scientific errors". The plaintiffs sought an injunction preventing the screening of the film in English schools, arguing that by law schools are forbidden to promote partisan political views and, when dealing with political issues, are required to provide a balanced presentation of opposing views. On October 10, 2007, High Court Justice Michael Burton, after explaining that the requirement for a balanced presentation does not warrant that equal weight be given to alternative views of a mainstream view, ruled that it was clear that the film was substantially founded upon scientific research and fact, albeit that the science had been used, in the hands of a "talented politician and communicator", to make a political statement and to support a political program. The judge ruled that An Inconvenient Truth contained nine scientific errors and thus must be accompanied by an explanation of those errors before being shown to school children. The judge said that showing the film without the explanations of error would be a violation of education laws. The judge concluded "I have no doubt that Dr Stott, the Defendant's expert, is right when he says that: 'Al Gore's presentation of the causes and likely effects of climate change in the film was broadly accurate.'" On the basis of testimony from Robert M. Carter and the arguments put forth by the claimant's lawyers, the judge also pointed to nine "errors", i.e. statements the truth of which he did not rule on, but that he found to depart from the mainstream scientific positions on global warming. He also found that some of these departures from the mainstream arose in the context of alarmism and exaggeration in support of political theses. Since the government had already accepted to amend the guidance notes to address these along with other points in a fashion that the judge found satisfactory, no order was made on the application. Government Minister of Children, Young People and Families, Kevin Brennan stated: "We have updated the accompanying guidance, as requested by the judge to make it clearer for teachers as to the stated Intergovernmental Panel on Climate Change position on a number of scientific points raised in the film." Plaintiff Dimmock complained that "no amount of turgid guidance" could change his view that the film was unsuitable for the classroom. In the United States In January 2007, the Federal Way (Washington State) School Board voted to require an approval by the principal and the superintendent for teachers to show the film to students and that the teachers must include the presentation of an approved "opposing view". The moratorium was repealed, at a meeting on January 23, after a predominantly negative community reaction. Shortly thereafter, the school board in Yakima, Washington, calling the film a "controversial issue", prevented the Environmental Club of Eisenhower High School from showing it, pending review by the school board, teachers, principal, and parents. It lifted the stay a month later, upon the approval by a review panel. National Science Teachers Association In the United States, 50,000 free copies of An Inconvenient Truth were offered to the National Science Teachers Association (NSTA), which declined to take them. Producer David provided an email correspondence from the NSTA detailing that their reasoning was that the DVDs would place "unnecessary risk upon the [NSTA] capital campaign, especially certain targeted supporters," and that they saw "little, if any, benefit to NSTA or its members" in accepting the free DVDs. In public, the NSTA argued that distributing this film to its members would have been contrary to a long-standing NSTA policy against distributing unsolicited materials to its members. The NSTA also said that they had offered several other options for distributing the film but ultimately "[it] appears that these alternative distribution mechanisms were unsatisfactory." David has said that NSTA Executive Director Gerry Wheeler promised in a telephone conversation to explore alternatives with NSTA's board for advertising the film but she had not yet received an alternative offer at the time of NSTA's public claim. She also said that she rejected their subsequent offers because they were nothing more than offers to sell their "commercially available member mailing list" and advertising space in their magazine and newsletter, which are available to anyone. The American Association for the Advancement of Science publication ScienceNOW published an assessment discussing both sides of the NSTA decision in which it was reported that "David says NSTA's imprimatur was essential and that buying a mailing list is a nonstarter. 'You don't want to send out a cold letter, and it costs a lot of money,' she says. 'There are a thousand reasons why that wouldn't work.'" A The Washington Post editorial called the decision "Science a la Joe Camel", citing for example that the NSTA had received $6 million since 1996 from ExxonMobil, which had a representative on the organization's corporate board. David noted that in the past, NSTA had shipped out 20,000 copies of a 10-part video produced by Wheeler with funding provided by ConocoPhillips in 2003. NSTA indicated that they retained editorial control over the content, which David questioned based on the point of view portrayed in the global warming section of the video. In New Zealand Former ACT New Zealand Member of Parliament Muriel Newman filed a petition to have New Zealand schoolchildren be protected from political indoctrination by putting provisions that resembled those in the UK to the Education Act. The petition was in response to concerned parents who talked with Newman after An Inconvenient Truth was shown in schools in 2007. The parents were apparently worried that teachers were not pointing out supposed inaccuracies in the film and were not explaining differing viewpoints. Music An Inconvenient Truth was scored by Michael Brook with an accompanying theme song played during the end credits by Melissa Etheridge. Brook explained that he wanted to bring out the emotion expressed in the film: "... in An Inconvenient Truth, there's a lot of information and it's kind of a lecture, in a way, and very well organized and very well presented, but it's a lot to absorb. And the director, Guggenheim, wanted to have – sort of give people a little break every once in a while and say, okay, you don't have to absorb this information, you can just sort of – and it was more the personal side of Al Gore's life or how it connected to the theme of the film. And that's when there's music." Etheridge agreed to write An Inconvenient Truth theme song, "I Need to Wake Up" after viewing Gore's slide show. "I was so honored he would ask me to contribute to a project that is so powerful and so important, I felt such a huge responsibility," she said. "Then I went, 'What am I going to write? What am I going to say?' " Etheridge's former partner, Tammy Lynn Michaels, told her: "Write what you feel, because that's what people are going to feel." Of Etheridge's commitment to the project, Gore said, "Melissa is a rare soul who gives a lot of time and effort to causes in which she strongly believes." Etheridge received the 2006 Academy Award for Best Original Song for "I Need to Wake Up." Upon receiving the award, she noted in her acceptance speech: Book and documentary Gore's book of the same title was published concurrently with the theatrical release of the documentary. The book contains additional information, scientific analysis, and Gore's commentary on the issues presented in the documentary. A 2007 documentary entitled An Update with Former Vice President Al Gore features Gore discussing additional information that came to light after the film was completed, such as Hurricane Katrina, coral reef depletion, glacial earthquake activity on the Greenland ice sheet, wildfires, and trapped methane gas release associated with permafrost melting. Sequel When asked during a Reddit "Ask Me Anything" in October 2013 whether there were plans for a follow-up film, Guggenheim said, "I think about it a lot – I think we need one right now." In 2014, The Hollywood Reporter reported that the producers of the film were in talks over a possible sequel. "We have had conversations," co-producer Bender said. "We've met; we've discussed. If we are going to make a movie, we want it to have an impact." Co-producer David also believed a sequel was needed. "God, do we need one," David said. "Everything in that movie has come to pass. At the time we did the movie, there was Hurricane Katrina; now we have extreme weather events every other week. The update has to be incredible and shocking." In December 2016, Al Gore announced that a follow-up to An Inconvenient Truth would open at the 2017 Sundance Film Festival. The film was screened in the Climate section, a new section for films featuring themes of climate and the environment. It was released by Paramount on July 28, 2017. See also CO2 (opera) Human impact on the environment Hurricane Katrina Extinction risk from climate change Racing Extinction Catching the Sun'' References External links official website 2006 documentary films 2006 films 2006 in the environment Al Gore American documentary films Best Documentary Feature Academy Award winners Documentary films about global warming Films adapted into operas Films directed by Davis Guggenheim Films produced by Lawrence Bender Films produced by Scott Z. Burns Films scored by Michael Brook Films that won the Best Original Song Academy Award Paramount Vantage films Participant (company) films 2000s English-language films 2000s American films
Boglestone (named after the Bogal Stone) is located around the top of the Clune Brae, Port Glasgow, Inverclyde, Scotland. The area includes housing, but also serves as an important 'hub' for upper Port Glasgow, offering amenities such as education, shopping, health centres, and leisure. The two schools previously situated here were Boglestone Primary a non-denominational school, and St Michael's a Roman Catholic primary School. Due to the local council's education plans, Boglestone Primary was demolished, with pupils temporarily transferred to other schools, including Highholm Primary, located near Port Glasgow town centre. Newark Primary School (opened 2008) now stands on the site. Shops include a Co-op supermarket, newsagents, and bakers, as well as Ladbrokes bookmakers. A health centre, and a community centre that includes a gym, are also situated here. Boglestone shops provide a shopping centre for Boglestone, the only area of upper Port Glasgow to have close access to such a wide variety of retailers. References External links Video footage and the story of the Bogle Stane Video of Scottish Glacial Erratics in History, Myth & Legend School photos 1960–1995 Neighbourhoods of Inverclyde Port Glasgow
```python # flake8: noqa # __rllib-first-config-begin__ from pprint import pprint from ray.rllib.algorithms.ppo import PPOConfig config = ( PPOConfig() .api_stack( enable_rl_module_and_learner=True, enable_env_runner_and_connector_v2=True, ) .environment("CartPole-v1") .env_runners(num_env_runners=1) ) algo = config.build() for i in range(10): result = algo.train() result.pop("config") pprint(result) if i % 5 == 0: checkpoint_dir = algo.save_to_path() print(f"Checkpoint saved in directory {checkpoint_dir}") # __rllib-first-config-end__ algo.stop() if False: # __rllib-tune-config-begin__ from ray import train, tune config = ( PPOConfig() .api_stack( enable_rl_module_and_learner=True, enable_env_runner_and_connector_v2=True, ) .environment("CartPole-v1") .training( lr=tune.grid_search([0.01, 0.001, 0.0001]), ) ) tuner = tune.Tuner( "PPO", param_space=config, run_config=train.RunConfig( stop={"env_runners/episode_return_mean": 150.0}, ), ) tuner.fit() # __rllib-tune-config-end__ # __rllib-tuner-begin__ from ray import train, tune # Tuner.fit() allows setting a custom log directory (other than ~/ray-results). tuner = tune.Tuner( "PPO", param_space=config, run_config=train.RunConfig( stop={"num_env_steps_sampled_lifetime": 20000}, checkpoint_config=train.CheckpointConfig(checkpoint_at_end=True), ), ) results = tuner.fit() # Get the best result based on a particular metric. best_result = results.get_best_result( metric="env_runners/episode_return_mean", mode="max" ) # Get the best checkpoint corresponding to the best result. best_checkpoint = best_result.checkpoint # __rllib-tuner-end__ # __rllib-compute-action-begin__ import pathlib import gymnasium as gym import numpy as np import torch from ray.rllib.core.rl_module import RLModule env = gym.make("CartPole-v1") # Create only the neural network (RLModule) from our checkpoint. rl_module = RLModule.from_checkpoint( pathlib.Path(best_checkpoint.path) / "learner_group" / "learner" / "rl_module" )["default_policy"] episode_return = 0 terminated = truncated = False obs, info = env.reset() while not terminated and not truncated: # Compute the next action from a batch (B=1) of observations. torch_obs_batch = torch.from_numpy(np.array([obs])) action_logits = rl_module.forward_inference({"obs": torch_obs_batch})[ "action_dist_inputs" ] # The default RLModule used here produces action logits (from which # we'll have to sample an action or use the max-likelihood one). action = torch.argmax(action_logits[0]).numpy() obs, reward, terminated, truncated, info = env.step(action) episode_return += reward print(f"Reached episode return of {episode_return}.") # __rllib-compute-action-end__ del rl_module # __rllib-get-state-begin__ from ray.rllib.algorithms.ppo import PPOConfig algo = ( PPOConfig() .api_stack( enable_rl_module_and_learner=True, enable_env_runner_and_connector_v2=True, ) .environment("CartPole-v1") .env_runners(num_env_runners=2) ).build() # Get weights of the algo's RLModule. algo.get_module().get_state() # Same as above algo.env_runner.module.get_state() # Get list of weights of each EnvRunner, including remote replicas. algo.env_runner_group.foreach_worker(lambda env_runner: env_runner.module.get_state()) # Same as above, but with index. algo.env_runner_group.foreach_worker_with_id( lambda _id, env_runner: env_runner.module.get_state() ) # __rllib-get-state-end__ algo.stop() ```
Frankie Lucas (15 August 1953 – 8 April 2023) was a boxer best known for winning the gold medal in the 1974 British Commonwealth Games in Christchurch, New Zealand in the middleweight category for St. Vincent and the Grenadines. In the final, Lucas defeated Julius Luipa of Zambia by knockout in the second round. Lucas moved from Saint Vincent to Croydon, London when he was nine. In 1972 and 1973 Lucas won the British Amateur Boxing Association middleweight title boxing out of the Sir Philip Game ABC. He was not selected for the 1974 Commonwealth Games to represent England. The boxer he defeated in the 1973 ABA final, Carl Speare, was chosen instead. Lucas ultimately represented Saint Vincent in the Games, and defeated Speare in the semi-final in Christchurch. As a professional, he fought just 17 times and twice challenged for the British title, losing to Tony Sibson and Kevin Finnegan. In 2002, it was reported that he was living in a council care home in North London. Previously, many in Lucas's former circle had not heard from Lucas in years and had assumed that he had died. Lucas died on 8 April 2023, at the age of 69. Lucas is the subject of a 2023 play by Rose Hollingsworth - Going for Gold, showing at the Chelsea theatre from June 5th to June 8th References 6. https://www.independent.co.uk/sport/boxing/frankie-lucas-boxing-play-going-for-gold-b2351457.html External links Tony Sibson vs Frankie Lucas 1953 births 2023 deaths Middleweight boxers People from Saint Vincent (Antilles) Sportspeople from Croydon Boxers from Greater London English male boxers Saint Vincent and the Grenadines male boxers Boxers at the 1974 British Commonwealth Games Commonwealth Games gold medallists for Saint Vincent and the Grenadines Commonwealth Games medallists in boxing England Boxing champions Saint Vincent and the Grenadines emigrants to the United Kingdom Medallists at the 1974 British Commonwealth Games
Pierre-Auguste Sarrus (March 14 or 15, 1813 – May 3, 1876) was a French musician and inventor. History He joined the army at the age of 23. November 27, 1843: Sarrus is affected to the 74th Régiment d'Infanterie as corporal-chief of the music, it is the start of his military musician career. August 18, 1846: wedding with Mélanie Bellemère. 1852: Sarrus receives the Médaille militaire. 1854: Member of the Expédition d'Orient (Crimean War), he receives the Médaille de Crimée. April 2, 1855: he is affected to the 13th Régiment d'Infanterie. July 10, 1855: he is promoted officer. 1860-61: member of the Campaign of Syria. 1863: he receives the 5th class Turkish Médjidié's order and the Victoria Cross. December 26, 1864: he is made knight of the Légion d'honneur. July 10, 1867: Sarrus gets retired, he was then chief of music (ranking as a lieutenant) of the 13th Régiment d'Infanterie de Ligne. Nevertheless, Pierre-Auguste Sarrus is not famous for his military career, but for having invented a music instrument to replace the oboe and bassoon in military music in 1856. Pierre-Louis Gautrot built this instrument and patented it under the name sarrusophone. References External links The Sarrusophone, article from the Dr. George A. Conrey in The Double Reed, Vol. 10, No. 3 1813 births 1876 deaths People from Saint-Affrique 19th-century French inventors 19th-century French musicians French Army officers French military personnel of the Crimean War Knights of the Legion of Honour Recipients of the Médaille militaire (France)
Fraxinus pennsylvanica, the green ash or red ash, is a species of ash native to eastern and central North America, from Nova Scotia west to southeastern Alberta and eastern Colorado, south to northern Florida, and southwest to Oklahoma and eastern Texas. It has spread and become naturalized in much of the western United States and also in Europe from Spain to Russia. Other names more rarely used include downy ash, swamp ash and water ash. Description Fraxinus pennsylvanica is a medium-sized deciduous tree reaching (rarely to ) tall with a trunk up to in diameter. The bark is smooth and gray on young trees, becoming thick and fissured with age. The winter buds are reddish-brown, with a velvety texture. The leaves are long, oppositely arranged, pinnately compound with seven to nine (occasionally five or eleven) leaflets, these (rarely ) long and broad, with serrated margins and short but distinct, downy petiolules a few millimeters long. They are green both above and below. The autumn color is golden-yellow and depending on the climate, green ash's leaves may begin changing color the first week of September. The flowers are produced in spring at the same time as the new leaves, in compact panicles; they are inconspicuous with no petals, and are wind-pollinated. The fruit is a samara long comprising a single seed long with an elongated apical wing long and broad. It is sometimes divided into two varieties, Fraxinus pennsylvanica var. pennsylvanica (red ash) and Fraxinus pennsylvanica var. lanceolata (Borkh.) Sarg. (syn. var. subintegerrima (Vahl) Fern.; green ash) on the basis of the hairless leaves with narrower leaflets of the latter, but the two intergrade completely, and the distinction is no longer upheld by most botanists. Like other species in the section Melioides, Fraxinus pennsylvanica is dioecious, with male and female flowers produced on separate individuals. Ecology It is the most widely distributed of all the American ashes; its range centers on the midwestern U.S. and Great Plains. The natural habitat of green ash is almost exclusively stream sides and bottomlands. The large seed crops provide food to many kinds of wildlife. Green ash is threatened by the emerald ash borer, a beetle introduced accidentally from Asia. Asian ashes have a high tannin content in their leaves which makes them unpalatable to the beetle, while most American species (with the notable exception of blue ash) do not. A common garden experiment showed that green ash is killed readily when exposed to emerald ash borer, while the Asian species F. mandschurica shows resistance against emerald ash borer. The United States Forest Service has discovered small numbers of green ash in the wild that have remained healthy after emerald ash borer swept through the population. The possibility of these trees possessing genetic resistance to the beetle is currently being investigated with the hope that green ash could be restored using the surviving trees. The spread of emerald ash borer was facilitated by the extensive use of green ash as an ornamental tree in the central U.S. following the loss of American elms in the 1950s–60s due to Dutch elm disease. That epidemic was the result of a similar overuse of elms in urban environments, leading to a monoculture that lacked any disease or pest resistance. Scientifically for green ash this is because modern cultivars utilized regionally were parented from sometimes only four individual trees selected for unique traits and male seedless flowering. Proclaiming a harsh lesson learned, cities like Chicago did not replace dead elms with a 1:1 ash:elm ratio. Instead, Norway, silver, red and sugar maples, honey locust, linden/basswood, redbud, crabapples, and hackberry, among others, were also utilized during this recovery period and in new urban and suburban areas. Fortunately, with these additional species, many cities were able to reduce the percent of ash and other species to much lower levels (20% average) than during the Dutch elm disease era where from 56% to 100% of the trees were elm. Injections and spraying of ashes with pesticides has been used in city parks to protect valued trees from emerald ash borer. Record cold temperatures during the winter of 2018–19 are estimated to have killed as much as 80% of ash borer larvae in the Upper Midwest. Both American elm and green ash were extremely popular due to rapid growth and tolerance of urban pollution and road salt, so many housing developments in Michigan were lined from end to end with ashes, a result of which the beetles had an enormous food supply to boost their population well above Infestation thresholds. The tree was also extensively propagated and sold by local nurseries. According to the American Nursery Industry, "Back in the late 1980s, Dr. Frank Santamour Jr., then a research geneticist with the U.S. National Arboretum, proposed the 10-20-30 formula for diversity in the urban forest, limiting the plantings in a community to no more than 10 percent within a single species, 20 percent within a genus and 30 percent within a family." Many communities are using a more strict 5-10-20 rule today, because of the threat posed by emerald ash borer. The emerald ash borer proved to be a far worse and potentially more serious threat than epidemics of the past such as chestnut blight and Dutch elm disease because those diseases spread at a slower rate, only affected one species, and did not kill the trees before they could attain reproductive maturity. Many areas have banned the sale of ash seedlings in nurseries, although seeds may be sold as they are not a vector for the insect. Green ash is also vulnerable to many other diseases including ash yellows and ash dieback that can cause gradual loss of vigor and exhibit similar symptoms to emerald ash borer infestation such as crown dieback, bark cracking, and epicormal sprouts. These conditions are most common on stressed trees in areas of poor soil, urban pollution, and lack of moisture. A wave of ash dieback struck the northeastern United States in the 1950s–60s that killed an estimated 70% of ashes in the region. Uses Urban ornamental trees Green ash is one of the most widely planted ornamental trees throughout the United States and much of Canada but mostly Alberta, including in western areas where it is not native. It is also widely planted in Argentina. It is very popular due to its good form and resistance to disease. About 40% of boulevard trees in Edmonton, Alberta, are green ash. It is often planted for shade or as a windbreak. For the last two centuries American elm and ash, which both belong to the ancient Elm-Ash-Cottonwood Bottomland ecosystem, achieved distinction as North America's two most popularly planted urban species, used primarily for their superior survival traits and slowly maturing 180–300 year majestic natural beauty. Today used as living national monuments, the National Park Service is protecting Thomas Jefferson's 200-year-old planted example, and George Washington's 250-year-old white ash which has a 600-year possible lifespan. Green ash had been widely used as a primary ornamental and long lived monument tree until the elm fad of the 1880s, and regained top position once again after Dutch elm disease arrived. Other continents learned of American ash species' urban survivability and unique beauty through the worldwide popularity of Midwestern Prairie style ecology and architectural movement. Modernizing cities in Russia and China then began using imported green ash a century ago to line streets and landscape new public parks. Advantages of green ash include its tolerance of harsh urban environmental conditions, ease of propagation, and (in eastern North America) its value for wildlife as a native keystone species. Utility to wildlife North American native ash tree species are used by North American frogs as a critical food source, as the leaves that fall from the trees are particularly suitable for tadpoles to feed upon in ponds (both temporary and permanent), large puddles, and other water sources. Species such as red maple, which are taking the place of ash due to the ash borer, are much less suitable for the frogs as a food source — resulting in poor frog survival rates and small frog sizes. It is the lack of tannins in the American ash varieties that makes them good for the frogs as a food source and also not resistant to the ash borer. Varieties of ash from outside North America typically have much higher tannin levels and resist the borer. Maples and various non-native invasive trees, trees that are taking the place of American ash species in the North American ecosystem, typically have much higher leaf tannin levels. Other uses Green ash wood is similar in properties to white ash wood, and is marketed together as "white ash". The commercial supply is mostly in the South. It is very popular, used in making electric guitars because it can be somewhat lighter than white ash without sacrificing too much in tone. It has a bright sound with long sustain, plus the wood grain is aesthetically desirable to many guitar players. Gibson, Fender, Ibanez, Warwick, and many other luthiers use ash in the construction of their guitars. References pennsylvanica Trees of humid continental climate Ornamental trees Trees of Western Canada Trees of the Northwestern United States Trees of the North-Central United States Trees of the Northeastern United States Trees of the South-Central United States Trees of the Southeastern United States Plants described in 1785 Trees of Eastern Canada Dioecious plants
```ruby require_relative '../../spec_helper' require_relative 'fixtures/classes' ruby_version_is "3.1" do describe "Integer.try_convert" do it "returns the argument if it's an Integer" do x = 42 Integer.try_convert(x).should equal(x) end it "returns nil when the argument does not respond to #to_int" do Integer.try_convert(Object.new).should be_nil end it "sends #to_int to the argument and returns the result if it's nil" do obj = mock("to_int") obj.should_receive(:to_int).and_return(nil) Integer.try_convert(obj).should be_nil end it "sends #to_int to the argument and returns the result if it's an Integer" do x = 234 obj = mock("to_int") obj.should_receive(:to_int).and_return(x) Integer.try_convert(obj).should equal(x) end it "sends #to_int to the argument and raises TypeError if it's not a kind of Integer" do obj = mock("to_int") obj.should_receive(:to_int).and_return(Object.new) -> { Integer.try_convert obj }.should raise_error(TypeError, "can't convert MockObject to Integer (MockObject#to_int gives Object)") end it "responds with a different error message when it raises a TypeError, depending on the type of the non-Integer object :to_int returns" do obj = mock("to_int") obj.should_receive(:to_int).and_return("A String") -> { Integer.try_convert obj }.should raise_error(TypeError, "can't convert MockObject to Integer (MockObject#to_int gives String)") end it "does not rescue exceptions raised by #to_int" do obj = mock("to_int") obj.should_receive(:to_int).and_raise(RuntimeError) -> { Integer.try_convert obj }.should raise_error(RuntimeError) end end end ```
Hishult is a locality and a parish situated in Laholm Municipality, Halland County, Sweden with 332 inhabitants in 2010. The area has been a centre of iron extraction and formed a county, including parts of northern Skåne while it was Danish. The name might be related to the iron extraction as it used to be spelt Isenhult which might mean iron forest. Today it has a gallery of some reputation. References Populated places in Laholm Municipality
Manly is a former locality in Parkland County, Alberta. Manly was named for Manley, England. The first post office opened in Manly in 1908. Manly Corner, the beginning of Highway 43, which goes north to the Alaska Highway, is located in this district. References Localities in Parkland County
Jack Pender (1918–1998) was a British artist. Pender was born in Mousehole, Cornwall. He started to paint in 1936 and went to the Penzance School of Art in 1938. At the end of the war, he spent a short time in Greece at the Athens School of Art and then the Exeter College of Art 1946-1949 and then to the West of England College of Art, Bristol 1949–50. He was a member of the Newlyn Society of Artists and the Penwith Society of Arts, and exhibited regularly in St Ives (including at the Sail Loft Gallery), Newlyn, Plymouth and London. His artwork is in several public collections, details of which can be found on the Art UK website. His themes are mostly the fishing boats and harbours around Mounts Bay, painted energetically, in styles from the figurative, to the near abstraction of the 1960s. At Art School he was known as "PZ 81" given his compulsive rendering of his father's fishing boat "the Lyonesse". He was remembered alongside artists Patrick Heron, Terry Frost and Tony O’Malley in Margo Maeckelberghe's obituary. The Arnolfini Gallery, Bristol gave him one man shows in the 1960s and he showed extensively at the Orion Gallery, Penzance and the Newlyn Orion in the 1970s. Several BBC films were also made about him and his life in Mousehole. In 1985 a work was included in the landmark Tate Gallery exhibition St Ives 1939–64. After this he was taken up by the Belgrave Gallery, London, Leon Shuddaby Fine Art, Penzance, and the Rainy Day Gallery, Penzance. There was a major retrospective of his work in 2008 at the Penlee House Gallery and Museum, Penzance. He is survived by his daughter, the artist Tamsin Pender, and son Robin Pender. References External links Website of the artist's daughter Tamsin Pender 1918 births 1998 deaths Artists from Cornwall People from Mousehole 20th-century English painters
```go // Unless explicitly stated otherwise all files in this repository are licensed // This product includes software developed at Datadog (path_to_url // Package oidresolverimpl implements the OID Resolver component. package oidresolverimpl import ( "compress/gzip" "encoding/json" "fmt" "io" "io/fs" "os" "path/filepath" "sort" "strings" "go.uber.org/fx" "gopkg.in/yaml.v2" "github.com/DataDog/datadog-agent/comp/core/config" log "github.com/DataDog/datadog-agent/comp/core/log/def" "github.com/DataDog/datadog-agent/comp/snmptraps/oidresolver" "github.com/DataDog/datadog-agent/pkg/util/fxutil" ) // Module defines the fx options for this component. func Module() fxutil.Module { return fxutil.Component( fx.Provide(newResolver), ) } const ddTrapDBFileNamePrefix string = "dd_traps_db" var nodesOIDThatShouldNeverMatch = []string{ "1.3.6.1.4.1", // "iso.org.dod.internet.private.enterprises". This OID and all its parents are known "intermediate" nodes "1.3.6.1.4", // "iso.org.dod.internet.private" "1.3.6.1", // "iso.org.dod.internet" "1.3.6", // "iso.org.dod" "1.3", // "iso.org" "1", // "iso" } type unmarshaller func(data []byte, v interface{}) error // multiFilesOIDResolver is an OIDResolver implementation that can be configured with multiple input files. // Trap OIDs conflicts are resolved using the name of the source file in alphabetical order and by giving // the less priority to Datadog's own database shipped with the agent. // Variable OIDs conflicts are fully resolved by also looking at the trap OID. A given trap OID only // exist in a single file (after the previous conflict resolution), meaning that we get the variable // metadata from that same file. type multiFilesOIDResolver struct { traps oidresolver.TrapSpec logger log.Component } func newResolver(conf config.Component, logger log.Component) (oidresolver.Component, error) { return newMultiFilesOIDResolver(conf.GetString("confd_path"), logger) } // newMultiFilesOIDResolver creates a new MultiFilesOIDResolver instance by loading json or yaml files // (optionnally gzipped) located in the directory snmp.d/traps_db/ func newMultiFilesOIDResolver(confdPath string, logger log.Component) (*multiFilesOIDResolver, error) { oidResolver := &multiFilesOIDResolver{ traps: make(oidresolver.TrapSpec), logger: logger, } trapsDBRoot := filepath.Join(confdPath, "snmp.d", "traps_db") files, err := os.ReadDir(trapsDBRoot) if err != nil { return nil, fmt.Errorf("failed to read dir `%s`: %w", trapsDBRoot, err) } if len(files) == 0 { return nil, fmt.Errorf("dir `%s` does not contain any trap db file", trapsDBRoot) } fileNames := getSortedFileNames(files, logger) for _, fileName := range fileNames { err := oidResolver.updateFromFile(filepath.Join(trapsDBRoot, fileName)) if err != nil { logger.Warnf("unable to load trap db file %s: %s", fileName, err) } } return oidResolver, nil } // GetTrapMetadata returns TrapMetadata for a given trapOID func (or *multiFilesOIDResolver) GetTrapMetadata(trapOID string) (oidresolver.TrapMetadata, error) { trapOID = strings.TrimSuffix(oidresolver.NormalizeOID(trapOID), ".0") trapData, ok := or.traps[trapOID] if !ok { return oidresolver.TrapMetadata{}, fmt.Errorf("trap OID %s is not defined", trapOID) } return trapData, nil } // GetVariableMetadata returns VariableMetadata for a given variableOID and trapOID. // The trapOID should not be needed in theory but the Datadog Agent allows to define multiple variable names for the // same OID as long as they are defined in different file. The trapOID is used to differentiate between these files. func (or *multiFilesOIDResolver) GetVariableMetadata(trapOID string, varOID string) (oidresolver.VariableMetadata, error) { trapOID = strings.TrimSuffix(oidresolver.NormalizeOID(trapOID), ".0") varOID = strings.TrimSuffix(oidresolver.NormalizeOID(varOID), ".0") trapData, ok := or.traps[trapOID] if !ok { return oidresolver.VariableMetadata{}, fmt.Errorf("trap OID %s is not defined", trapOID) } recreatedVarOID := varOID for { varData, ok := trapData.VariableSpecPtr[recreatedVarOID] if ok { if varData.IsIntermediateNode { // Found a known Node while climibing up the tree, no chance of finding a match higher return oidresolver.VariableMetadata{}, fmt.Errorf("variable OID %s is not defined", varOID) } return varData, nil } // No match for the current varOID, climb up the tree and retry lastDot := strings.LastIndex(recreatedVarOID, ".") if lastDot == -1 { break } recreatedVarOID = varOID[:lastDot] } return oidresolver.VariableMetadata{}, fmt.Errorf("variable OID %s is not defined", varOID) } func getSortedFileNames(files []fs.DirEntry, logger log.Component) []string { if len(files) == 0 { return []string{} } // There should usually be one file provided by Datadog and zero or more provided by the user userProvidedFileNames := make([]string, 0, len(files)-1) // Using a slice for error-proofing but there will usually be only one dd provided file. ddProvidedFileNames := make([]string, 0, 1) for _, file := range files { if file.IsDir() { logger.Debugf("not loading traps data from path %s: file is directory", file.Name()) continue } fileName := file.Name() if strings.HasPrefix(fileName, ddTrapDBFileNamePrefix) { ddProvidedFileNames = append(ddProvidedFileNames, fileName) } else { userProvidedFileNames = append(userProvidedFileNames, file.Name()) } } sort.Slice(userProvidedFileNames, func(i, j int) bool { return strings.ToLower(userProvidedFileNames[i]) < strings.ToLower(userProvidedFileNames[j]) }) sort.Slice(ddProvidedFileNames, func(i, j int) bool { return strings.ToLower(ddProvidedFileNames[i]) < strings.ToLower(ddProvidedFileNames[j]) }) return append(ddProvidedFileNames, userProvidedFileNames...) } func (or *multiFilesOIDResolver) updateFromFile(filePath string) error { var fileReader io.ReadCloser fileReader, err := os.Open(filePath) if err != nil { return err } defer fileReader.Close() if strings.HasSuffix(filePath, ".gz") { filePath = strings.TrimSuffix(filePath, ".gz") uncompressor, err := gzip.NewReader(fileReader) if err != nil { return fmt.Errorf("unable to uncompress gzip file %s", filePath) } defer uncompressor.Close() fileReader = uncompressor } var unmarshalMethod unmarshaller = yaml.Unmarshal if strings.HasSuffix(filePath, ".json") { unmarshalMethod = json.Unmarshal } return or.updateFromReader(fileReader, unmarshalMethod) } func (or *multiFilesOIDResolver) updateFromReader(reader io.Reader, unmarshalMethod unmarshaller) error { fileContent, err := io.ReadAll(reader) if err != nil { return err } var trapData oidresolver.TrapDBFileContent err = unmarshalMethod(fileContent, &trapData) if err != nil { return err } or.updateResolverWithData(trapData) return nil } func (or *multiFilesOIDResolver) updateResolverWithData(trapDB oidresolver.TrapDBFileContent) { definedVariables := oidresolver.VariableSpec{} allOIDs := make([]string, 0, len(trapDB.Variables)) for variableOID := range trapDB.Variables { if !oidresolver.IsValidOID(variableOID) { or.logger.Warnf("trap variable OID %s does not look like a valid OID", variableOID) continue } allOIDs = append(allOIDs, oidresolver.NormalizeOID(variableOID)) } // "Fast" algorithm used to mark OID that act both as a variable and as a parent of other variable // with 'isNode: true'. i.e if an OID <FOO>.<BAR> exists in the trapsDB but <FOO> also exists in the trapsDB // then <FOO> acts as a 'Node' of the OID tree and should not be considered a match for resolving variables. // In this fast algorithm the list is sorted then each OID is compared with its successor. It the successor starts // with the current OID + a dot, then the current OID is a Node. 'Dots' are before digits in the lexicographic order. // Note that in practice, OIDs that act both as Node and Leaf of the OID tree is extremely rare and is not expected // in normal circumstamces. Thing is they sometimes exist. sort.Strings(allOIDs) for idx, variableOID := range allOIDs { isIntermediateNode := false if idx+1 < len(allOIDs) { nextOID := allOIDs[idx+1] isIntermediateNode = strings.HasPrefix(nextOID, variableOID+".") } variableData := trapDB.Variables[variableOID] variableData.IsIntermediateNode = isIntermediateNode definedVariables[variableOID] = variableData } for _, nodeOID := range nodesOIDThatShouldNeverMatch { definedVariables[nodeOID] = oidresolver.VariableMetadata{Name: "unknown", IsIntermediateNode: true} } for trapOID, trapData := range trapDB.Traps { if !oidresolver.IsValidOID(trapOID) { or.logger.Errorf("trap OID %s does not look like a valid OID", trapOID) continue } trapOID := oidresolver.NormalizeOID(trapOID) if _, trapConflict := or.traps[trapOID]; trapConflict { or.logger.Debugf("a trap with OID %s is defined in multiple traps db files", trapOID) } or.traps[trapOID] = oidresolver.TrapMetadata{ Name: trapData.Name, Description: trapData.Description, MIBName: trapData.MIBName, VariableSpecPtr: definedVariables, } } } ```
```c++ // // // path_to_url // #include "pxr/usd/usdSkel/cache.h" #include "pxr/usd/usd/primRange.h" #include "pxr/usd/usdSkel/animation.h" #include "pxr/usd/usdSkel/bindingAPI.h" #include "pxr/usd/usdSkel/cacheImpl.h" #include "pxr/usd/usdSkel/debugCodes.h" #include "pxr/usd/usdSkel/root.h" #include "pxr/usd/usdSkel/skeleton.h" #include "pxr/usd/usdSkel/skeletonQuery.h" #include "pxr/usd/usdSkel/skinningQuery.h" #include "pxr/base/arch/hints.h" PXR_NAMESPACE_OPEN_SCOPE UsdSkelCache::UsdSkelCache() : _impl(new UsdSkel_CacheImpl) {} void UsdSkelCache::Clear() { return UsdSkel_CacheImpl::WriteScope(_impl.get()).Clear(); } // XXX: This method exists only so that it's clear to users that // GetAnimQuery() is valid on UsdSkelAnimation prims. UsdSkelAnimQuery UsdSkelCache::GetAnimQuery(const UsdSkelAnimation& anim) const { return UsdSkel_CacheImpl::ReadScope(_impl.get()) .FindOrCreateAnimQuery(anim.GetPrim()); } // XXX: Keeping this method around for backwards-compatibility, /// but we should prefer the form above. UsdSkelAnimQuery UsdSkelCache::GetAnimQuery(const UsdPrim& prim) const { return UsdSkel_CacheImpl::ReadScope(_impl.get()) .FindOrCreateAnimQuery(prim); } UsdSkelSkeletonQuery UsdSkelCache::GetSkelQuery(const UsdSkelSkeleton& skel) const { return UsdSkel_CacheImpl::ReadScope(_impl.get()).FindOrCreateSkelQuery( skel.GetPrim()); } bool UsdSkelCache::Populate(const UsdSkelRoot& root, Usd_PrimFlagsPredicate predicate) const { return UsdSkel_CacheImpl::ReadScope(_impl.get()).Populate(root, predicate); } UsdSkelSkinningQuery UsdSkelCache::GetSkinningQuery(const UsdPrim& prim) const { return UsdSkel_CacheImpl::ReadScope(_impl.get()).GetSkinningQuery(prim); } namespace { struct _CompareSkels { bool operator()(const UsdSkelSkeleton& a, const UsdSkelSkeleton& b) const { return a.GetPrim() < b.GetPrim(); } }; } // namespace bool UsdSkelCache::ComputeSkelBindings(const UsdSkelRoot& skelRoot, std::vector<UsdSkelBinding>* bindings, Usd_PrimFlagsPredicate predicate) const { TRACE_FUNCTION(); if (!skelRoot) { TF_CODING_ERROR("'skelRoot' is invalid."); return false; } if (!bindings) { TF_CODING_ERROR("'bindings' pointer is null."); return false; } TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Compute skel bindings for <%s>\n", skelRoot.GetPrim().GetPath().GetText()); bindings->clear(); std::map<UsdSkelSkeleton, VtArray<UsdSkelSkinningQuery>, _CompareSkels> bindingMap; // Traverse over the prims beneath the skelRoot. // While traversing, we maintain a stack of 'bound' skeletons, // and map the last item on the stack to descendant prims. // This is done to handle inherited skel:skeleton bindings. std::vector<UsdSkelSkeleton> skelStack(1); const auto range = UsdPrimRange::PreAndPostVisit( skelRoot.GetPrim(), predicate); for (auto it = range.begin(); it != range.end(); ++it) { if (ARCH_UNLIKELY(!it->IsA<UsdGeomImageable>())) { if (!it.IsPostVisit()) { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Pruning traversal at <%s> " "(prim is not UsdGeomImageable)\n", it->GetPath().GetText()); it.PruneChildren(); } continue; } if (it.IsPostVisit()) { if (TF_VERIFY(!skelStack.empty())) { skelStack.pop_back(); } else { return false; } continue; } const UsdSkelBindingAPI binding(*it); UsdSkelSkeleton skel; if (!(it->HasAPI<UsdSkelBindingAPI>() && binding.GetSkeleton(&skel))) { skel = skelStack.back(); } else { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Found skel binding at <%s> " "which targets skel <%s>.\n", it->GetPath().GetText(), skel.GetPrim().GetPath().GetText()); } if (skel && skel.GetPrim().IsActive()) { if (const UsdSkelSkinningQuery query = GetSkinningQuery(*it)) { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Found skinnable prim <%s>, bound to " "skel <%s>.\n", it->GetPath().GetText(), skel.GetPrim().GetPath().GetText()); bindingMap[skel].push_back(query); // Don't allow skinnable prims to be nested. it.PruneChildren(); } } skelStack.push_back(skel); } bindings->reserve(bindingMap.size()); for (const auto& pair : bindingMap) { bindings->emplace_back(pair.first, pair.second); } return true; } bool UsdSkelCache::ComputeSkelBinding(const UsdSkelRoot& skelRoot, const UsdSkelSkeleton& skel, UsdSkelBinding* binding, Usd_PrimFlagsPredicate predicate) const { TRACE_FUNCTION(); if (!skelRoot) { TF_CODING_ERROR("'skelRoot' is invalid."); return false; } if (!skel) { TF_CODING_ERROR("'skel' is invalid."); return false; } if (!binding) { TF_CODING_ERROR("'binding' pointer is null."); return false; } // Traverse over the prims beneath the skelRoot. // While traversing, we maintain a stack of 'bound' skeletons, // and map the last item on the stack to descendant prims. // This is done to handle inherited skel bindings. std::vector<UsdSkelSkeleton> skelStack(1); VtArray<UsdSkelSkinningQuery> skinningQueries; const auto range = UsdPrimRange::PreAndPostVisit( skelRoot.GetPrim(), predicate); for (auto it = range.begin(); it != range.end(); ++it) { if (ARCH_UNLIKELY(!it->IsA<UsdGeomImageable>())) { if (!it.IsPostVisit()) { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Pruning traversal at <%s> " "(prim is not UsdGeomImageable)\n", it->GetPath().GetText()); it.PruneChildren(); } continue; } if (it.IsPostVisit()) { if (TF_VERIFY(!skelStack.empty())) { skelStack.pop_back(); } else { return false; } continue; } const UsdSkelBindingAPI binding(*it); UsdSkelSkeleton boundSkel; if (!(it->HasAPI<UsdSkelBindingAPI>() && binding.GetSkeleton(&boundSkel))) { boundSkel = skelStack.back(); } else { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Found skel binding at <%s> " "which targets skel <%s>.\n", it->GetPath().GetText(), boundSkel.GetPrim().GetPath().GetText()); } if (boundSkel.GetPrim() == skel.GetPrim()) { if (const UsdSkelSkinningQuery query = GetSkinningQuery(*it)) { TF_DEBUG(USDSKEL_CACHE).Msg( "[UsdSkelCache] Found skinnable prim <%s>\n", it->GetPath().GetText()); skinningQueries.push_back(query); // Don't allow skinnable prims to be nested. it.PruneChildren(); } } skelStack.push_back(boundSkel); } *binding = UsdSkelBinding(skel, skinningQueries); return true; } PXR_NAMESPACE_CLOSE_SCOPE ```
```go package restful // Use of this source code is governed by a license // that can be found in the LICENSE file. // curlyRoute exits for sorting Routes by the CurlyRouter based on number of parameters and number of static path elements. type curlyRoute struct { route Route paramCount int staticCount int } // sortableCurlyRoutes orders by most parameters and path elements first. type sortableCurlyRoutes []curlyRoute func (s *sortableCurlyRoutes) add(route curlyRoute) { *s = append(*s, route) } func (s sortableCurlyRoutes) routes() (routes []Route) { routes = make([]Route, 0, len(s)) for _, each := range s { routes = append(routes, each.route) // TODO change return type } return routes } func (s sortableCurlyRoutes) Len() int { return len(s) } func (s sortableCurlyRoutes) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (s sortableCurlyRoutes) Less(i, j int) bool { a := s[j] b := s[i] // primary key if a.staticCount < b.staticCount { return true } if a.staticCount > b.staticCount { return false } // secundary key if a.paramCount < b.paramCount { return true } if a.paramCount > b.paramCount { return false } return a.route.Path < b.route.Path } ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ package com.haulmont.cuba.web.widgets.client.addons.contextmenu; import com.vaadin.shared.annotations.NoLayout; import com.vaadin.shared.communication.URLReference; import com.vaadin.shared.ui.ContentMode; import java.io.Serializable; import java.util.List; public class ContextMenuItemState implements Serializable { public int id; public boolean separator; public String text; public boolean command; public URLReference icon; public boolean enabled; @NoLayout public String description; @NoLayout public ContentMode descriptionContentMode = ContentMode.PREFORMATTED; public boolean checkable; public boolean checked; public List<ContextMenuItemState> childItems; public String styleName; } ```
```smalltalk /* This file is part of the iText (R) project. Authors: Apryse Software. This program is offered under a commercial and under the AGPL license. For commercial licensing, contact us at path_to_url For AGPL licensing, see below. AGPL licensing: This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ using System; using System.Collections.Generic; using iText.Commons.Utils; namespace iText.Kernel.Pdf.Tagging { /// <summary> /// This class encapsulates information about the standard structure namespaces and provides some utility methods /// connected to them. /// </summary> /// <remarks> /// This class encapsulates information about the standard structure namespaces and provides some utility methods /// connected to them. The main purpose of this class is to determine if the given role in the specified namespace /// belongs to the standard or known domain-specific namespace. /// <para /> /// See ISO 32000-2 14.8.6, "Standard structure namespaces" /// </remarks> public sealed class StandardNamespaces { private static readonly ICollection<String> STD_STRUCT_NAMESPACE_1_7_TYPES; private static readonly ICollection<String> STD_STRUCT_NAMESPACE_2_0_TYPES; // other namespaces private const String MATH_ML = "path_to_url"; /// <summary>Specifies the name of the standard structure namespace for PDF 1.7</summary> public const String PDF_1_7 = "path_to_url"; /// <summary>Specifies the name of the standard structure namespace for PDF 2.0</summary> public const String PDF_2_0 = "path_to_url"; static StandardNamespaces() { STD_STRUCT_NAMESPACE_1_7_TYPES = JavaCollectionsUtil.UnmodifiableSet(new HashSet<String>(JavaUtil.ArraysAsList (StandardRoles.DOCUMENT, StandardRoles.PART, StandardRoles.DIV, StandardRoles.P, StandardRoles.H, StandardRoles .H1, StandardRoles.H2, StandardRoles.H3, StandardRoles.H4, StandardRoles.H5, StandardRoles.H6, StandardRoles .LBL, StandardRoles.SPAN, StandardRoles.LINK, StandardRoles.ANNOT, StandardRoles.FORM, StandardRoles.RUBY , StandardRoles.RB, StandardRoles.RT, StandardRoles.RP, StandardRoles.WARICHU, StandardRoles.WT, StandardRoles .WP, StandardRoles.L, StandardRoles.LI, StandardRoles.LBODY, StandardRoles.TABLE, StandardRoles.TR, StandardRoles .TH, StandardRoles.TD, StandardRoles.THEAD, StandardRoles.TBODY, StandardRoles.TFOOT, StandardRoles.CAPTION , StandardRoles.FIGURE, StandardRoles.FORMULA, StandardRoles.SECT, StandardRoles.ART, StandardRoles.BLOCKQUOTE , StandardRoles.TOC, StandardRoles.TOCI, StandardRoles.INDEX, StandardRoles.NONSTRUCT, StandardRoles.PRIVATE , StandardRoles.QUOTE, StandardRoles.NOTE, StandardRoles.REFERENCE, StandardRoles.BIBENTRY, StandardRoles .CODE))); STD_STRUCT_NAMESPACE_2_0_TYPES = JavaCollectionsUtil.UnmodifiableSet(new HashSet<String>(JavaUtil.ArraysAsList (StandardRoles.DOCUMENT, StandardRoles.DOCUMENTFRAGMENT, StandardRoles.PART, StandardRoles.SECT, StandardRoles .NONSTRUCT, StandardRoles.DIV, StandardRoles.ASIDE, StandardRoles.TITLE, StandardRoles.SUB, StandardRoles .P, StandardRoles.H, StandardRoles.LBL, StandardRoles.EM, StandardRoles.STRONG, StandardRoles.SPAN, StandardRoles .LINK, StandardRoles.ANNOT, StandardRoles.FORM, StandardRoles.RUBY, StandardRoles.RB, StandardRoles.RT , StandardRoles.RP, StandardRoles.WARICHU, StandardRoles.WT, StandardRoles.WP, StandardRoles.FENOTE, StandardRoles .L, StandardRoles.LI, StandardRoles.LBODY, StandardRoles.TABLE, StandardRoles.TR, StandardRoles.TH, StandardRoles .TD, StandardRoles.THEAD, StandardRoles.TBODY, StandardRoles.TFOOT, StandardRoles.CAPTION, StandardRoles .FIGURE, StandardRoles.FORMULA, StandardRoles.ARTIFACT))); } // Hn, this type is handled in roleBelongsToStandardNamespace method /// <summary>Gets the name of the default standard structure namespace.</summary> /// <remarks> /// Gets the name of the default standard structure namespace. When a namespace is not /// explicitly specified for a given structure element or attribute, it shall be assumed to be within this /// default standard structure namespace. According to ISO 32000-2 default namespace is /// <see cref="PDF_1_7"/>. /// </remarks> /// <returns>the name of the default standard structure namespace.</returns> public static String GetDefault() { return PDF_1_7; } /// <summary> /// Checks if the given namespace is identified as the one that is common within broad ranges of documents types /// and doesn't require a role mapping for it's roles. /// </summary> /// <param name="namespace">a namespace to be checked, whether it defines a namespace of the known domain specific language. /// </param> /// <returns> /// true, if the given /// <see cref="PdfNamespace"/> /// belongs to the domain-specific namespace, false otherwise. /// </returns> public static bool IsKnownDomainSpecificNamespace(PdfNamespace @namespace) { return MATH_ML.Equals(@namespace.GetNamespaceName()); } /// <summary>Checks if the given role is considered standard in the specified standard namespace.</summary> /// <param name="role">a role to be checked if it is standard in the given standard structure namespace.</param> /// <param name="standardNamespaceName"> /// a /// <see cref="System.String"/> /// identifying standard structure namespace against which given role /// will be checked. /// </param> /// <returns> /// false if the given role doesn't belong to the standard roles of the given standard structure namespace or /// if the given namespace name is not standard; true otherwise. /// </returns> public static bool RoleBelongsToStandardNamespace(String role, String standardNamespaceName) { if (PDF_1_7.Equals(standardNamespaceName)) { return STD_STRUCT_NAMESPACE_1_7_TYPES.Contains(role); } else { if (PDF_2_0.Equals(standardNamespaceName)) { return STD_STRUCT_NAMESPACE_2_0_TYPES.Contains(role) || IsHnRole(role); } } return false; } /// <summary>Checks if the given role matches the Hn role pattern.</summary> /// <remarks> /// Checks if the given role matches the Hn role pattern. To match this pattern, the given role /// shall always consist of the uppercase letter "H" and one or more digits, representing an unsigned integer /// greater than or equal to 1, without leading zeroes or any other prefix or postfix. /// </remarks> /// <param name="role"> /// a /// <see cref="System.String"/> /// that specifies a role to be checked against Hn role pattern. /// </param> /// <returns>true if the role matches, false otherwise.</returns> public static bool IsHnRole(String role) { if (role.StartsWith("H") && role.Length > 1 && role[1] != '0') { try { return Convert.ToInt32(role.JSubstring(1, role.Length), System.Globalization.CultureInfo.InvariantCulture) > 0; } catch (Exception) { } } // ignored return false; } } } ```
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.rocketmq.remoting.protocol; public enum LanguageCode { JAVA((byte) 0), CPP((byte) 1), DOTNET((byte) 2), PYTHON((byte) 3), DELPHI((byte) 4), ERLANG((byte) 5), RUBY((byte) 6), OTHER((byte) 7), HTTP((byte) 8), GO((byte) 9), PHP((byte) 10), OMS((byte) 11); private byte code; LanguageCode(byte code) { this.code = code; } public static LanguageCode valueOf(byte code) { for (LanguageCode languageCode : LanguageCode.values()) { if (languageCode.getCode() == code) { return languageCode; } } return null; } public byte getCode() { return code; } } ```
```python # 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 NON-INFRINGEMENT. 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. from __future__ import annotations import logging import os import yaml from copy import copy from markdown import Markdown from material.plugins.blog.author import Author from mkdocs.config.defaults import MkDocsConfig from mkdocs.exceptions import PluginError from mkdocs.structure.files import File, Files from mkdocs.structure.nav import Section from mkdocs.structure.pages import Page, _RelativePathTreeprocessor from mkdocs.structure.toc import get_toc from mkdocs.utils.meta import YAML_RE from re import Match from yaml import SafeLoader from .config import PostConfig from .markdown import ExcerptTreeprocessor # your_sha256_hash------------- # Classes # your_sha256_hash------------- # Post class Post(Page): # Initialize post - posts are never listed in the navigation, which is why # they will never include a title that was manually set, so we can omit it def __init__(self, file: File, config: MkDocsConfig): super().__init__(None, file, config) # Resolve path relative to docs directory docs = os.path.relpath(config.docs_dir) path = os.path.relpath(file.abs_src_path, docs) # Read contents and metadata immediately with open(file.abs_src_path, encoding = "utf-8-sig") as f: self.markdown = f.read() # Sadly, MkDocs swallows any exceptions that occur during parsing. # Since we want to provide the best possible user experience, we # need to catch errors early and display them nicely. We decided to # drop support for MkDocs' MultiMarkdown syntax, because it is not # correctly implemented anyway. When using MultiMarkdown syntax, all # date formats are returned as strings and list are not properly # supported. Thus, we just use the relevants parts of `get_data`. match: Match = YAML_RE.match(self.markdown) if not match: raise PluginError( f"Error reading metadata of post '{path}' in '{docs}':\n" f"Expected metadata to be defined but found nothing" ) # Extract metadata and parse as YAML try: self.meta = yaml.load(match.group(1), SafeLoader) or {} self.markdown = self.markdown[match.end():].lstrip("\n") # The post's metadata could not be parsed because of a syntax error, # which we display to the author with a nice error message except Exception as e: raise PluginError( f"Error reading metadata of post '{path}' in '{docs}':\n" f"{e}" ) # Initialize post configuration, but remove all keys that this plugin # doesn't care about, or they will be reported as invalid configuration self.config: PostConfig = PostConfig(file.abs_src_path) self.config.load_dict({ key: self.meta[key] for key in ( set(self.meta.keys()) & set(self.config.keys()) ) }) # Validate configuration and throw if errors occurred errors, warnings = self.config.validate() for _, w in warnings: log.warning(w) for k, e in errors: raise PluginError( f"Error reading metadata '{k}' of post '{path}' in '{docs}':\n" f"{e}" ) # Excerpts are subsets of posts that are used in pages like archive and # category views. They are not rendered as standalone pages, but are # rendered in the context of a view. Each post has a dedicated excerpt # instance which is reused when rendering views. self.excerpt: Excerpt = None # Initialize authors and actegories self.authors: list[Author] = [] self.categories: list[Category] = [] # Ensure template is set or use default self.meta.setdefault("template", "blog-post.html") # Ensure template hides navigation self.meta["hide"] = self.meta.get("hide", []) if "navigation" not in self.meta["hide"]: self.meta["hide"].append("navigation") # The contents and metadata were already read in the constructor (and not # in `read_source` as for pages), so this function must be set to a no-op def read_source(self, config: MkDocsConfig): pass # your_sha256_hash------------- # Excerpt class Excerpt(Page): # Initialize an excerpt for the given post - we create the Markdown parser # when intitializing the excerpt in order to improve rendering performance # for excerpts, as they are reused across several different views, because # posts might be referenced from multiple different locations def __init__(self, post: Post, config: MkDocsConfig, files: Files): self.file = copy(post.file) self.post = post # Set canonical URL, or we can't print excerpts when debugging the # blog plugin, as the `abs_url` property would be missing self._set_canonical_url(config.site_url) # Initialize configuration and metadata self.config = post.config self.meta = post.meta # Initialize authors and categories - note that views usually contain # subsets of those lists, which is why we need to manage them here self.authors: list[Author] = [] self.categories: list[Category] = [] # Initialize content after separator - allow template authors to render # posts inline or to provide a link to the post's page self.more = None # Initialize parser - note that we need to patch the configuration, # more specifically the table of contents extension config = _patch(config) self.md = Markdown( extensions = config.markdown_extensions, extension_configs = config.mdx_configs, ) # Register excerpt tree processor - this processor resolves anchors to # posts from within views, so they point to the correct location self.md.treeprocessors.register( ExcerptTreeprocessor(post), "excerpt", 0 ) # Register relative path tree processor - this processor resolves links # to other pages and assets, and is used by MkDocs itself self.md.treeprocessors.register( _RelativePathTreeprocessor(self.file, files, config), "relpath", 1 ) # Render an excerpt of the post on the given page - note that this is not # thread-safe because excerpts are shared across views, as it cuts down on # the cost of initialization. However, if in the future, we decide to render # posts and views concurrently, we must change this behavior. def render(self, page: Page, separator: str): self.file.url = page.url # Retrieve excerpt tree processor and set page as base at = self.md.treeprocessors.get_index_for_name("excerpt") processor: ExcerptTreeprocessor = self.md.treeprocessors[at] processor.base = page # Ensure that the excerpt includes a title in its content, since the # title is linked to the post when rendering - see path_to_url self.markdown = self.post.markdown if not self.post._title_from_render: self.markdown = "\n\n".join([f"# {self.post.title}", self.markdown]) # Convert Markdown to HTML and extract excerpt self.content = self.md.convert(self.markdown) self.content, *more = self.content.split(separator, 1) if more: self.more = more[0] # Extract table of contents and reset post URL - if we wouldn't reset # the excerpt URL, linking to the excerpt from the view would not work self.toc = get_toc(getattr(self.md, "toc_tokens", [])) self.file.url = self.post.url # your_sha256_hash------------- # View class View(Page): # Parent view parent: View | Section # Initialize view def __init__(self, name: str | None, file: File, config: MkDocsConfig): super().__init__(None, file, config) # Initialize name of the view - note that views never pass a title to # the parent constructor, so the author can always override the title # that is used for rendering. However, for some purposes, like for # example sorting, we need something to compare. self.name = name # Initialize posts and views self.posts: list[Post] = [] self.views: list[View] = [] # Initialize pages for pagination self.pages: list[View] = [] # Set necessary metadata def read_source(self, config: MkDocsConfig): super().read_source(config) # Ensure template is set or use default self.meta.setdefault("template", "blog.html") # your_sha256_hash------------- # Archive view class Archive(View): pass # your_sha256_hash------------- # Category view class Category(View): pass # your_sha256_hash------------- # Helper functions # your_sha256_hash------------- # Patch configuration def _patch(config: MkDocsConfig): config = copy(config) # Copy parts of configuration that needs to be patched config.validation = copy(config.validation) config.validation.links = copy(config.validation.links) config.markdown_extensions = copy(config.markdown_extensions) config.mdx_configs = copy(config.mdx_configs) # Make sure that the author did not add another instance of the table of # contents extension to the configuration, as this leads to weird behavior if "markdown.extensions.toc" in config.markdown_extensions: config.markdown_extensions.remove("markdown.extensions.toc") # In order to render excerpts for posts, we need to make sure that the # table of contents extension is appropriately configured config.mdx_configs["toc"] = { **config.mdx_configs.get("toc", {}), **{ "anchorlink": True, # Render headline as clickable "baselevel": 2, # Render h1 as h2 and so forth "permalink": False, # Remove permalinks "toc_depth": 2 # Remove everything below h2 } } # Additionally, we disable link validation when rendering excerpts, because # invalid links have already been reported when rendering the page links = config.validation.links links.not_found = logging.DEBUG links.absolute_links = logging.DEBUG links.unrecognized_links = logging.DEBUG # Return patched configuration return config # your_sha256_hash------------- # Data # your_sha256_hash------------- # Set up logging log = logging.getLogger("mkdocs.material.blog") ```
```smalltalk namespace Volo.Abp.FeatureManagement.Blazor.Components.FeatureSettingGroup; public class FeatureSettingViewModel { public bool HasManageHostFeaturesPermission { get; set; } } ```
The 28th Division was one of the divisions of the Spanish Republican Army that were organized during the Spanish Civil War on the basis of the Mixed Brigades. It was deployed on the Aragon and Segre fronts. History The unit was created in April 1937 from the old Ascaso Column, commanded by the anarchist Gregorio Jover. The new 28th Division, in addition to the forces coming from the «Ascaso» column, had also absorbed the remains of other militia forces and became composed of 125th, 126th and 127th mixed brigades; continued under Jover's command. The 28th Division remained on the Aragon front for much of the war. In June 1937 it took part in the unsuccessful Huesca Offensive, and at the end of August one of its units - the 127th MB - took part in the Zaragoza Offensive. In February 1938 it took part in the Battle of Alfambra. During the subsequent offensive on the Aragon front, the unit undertook several withdrawals in the face of enemy pressure. It took part in the Levante Offensive integrated in the 13th Army Corps, being later transferred to the Estremadura front, where it participated in the Battle of Merida pocket. After Gregorio Jover was promoted to command of the 10th Army Corps, on August 11 Juan Mayordomo Moreno took command of the division. In January 1939, the unit participated in the Battle of Valsequillo, integrated into the Toral Group. Commanders Commanders Gregorio Jover; Juan Mayordomo Moreno Commissars Adolfo Arnal García; Pedro Fernández Alonso Chief of Staff Ramón Rodríguez Bosmediano Battles See also Spanish Republican Army List of Spanish Republican divisions References Bibliography Military units and formations established in 1937 Military units and formations disestablished in 1939 Divisions of Spain Military units and formations of the Spanish Civil War Military history of Spain Armed Forces of the Second Spanish Republic Militarized anarchist formations
Alan de Multon (died 1256), Lord of Papcastle, who held lands in Cockermouth, was an English noble. He was the second son of Thomas de Multon and Sarah de Flete. His father paid one thousand marks to the crown for the wardship of the daughters and heirs of Richard de Luci and married them to his sons. Alan died in 1256 and was succeeded by his son Thomas. Marriage and issue He was married first to Alice, daughter of Richard de Luci and Ada de Morville; they are known to have had the following known issue: Thomas de Multon, married Isabel de Botelby, had issue. Thomas assumed the name and arms of Lucy. Joan de Multon, married Ralph Dacre, had issue. Citations 13th-century English people 1256 deaths
Atlas Commando was a light infantry regiment of the South African Army. It formed part of the South African Army Infantry Formation as well as the South African Territorial Reserve. History Origin Industrial Commando The Atlas Commando was formed to assign males of military service age to meet their commitments at the Atlas Aircraft Corporation, a facility considered important to their Air Force's equipment requirements. Operations With the SADF During this era, the unit was mainly engaged in area force protection, search and cordons as well as other assistance to the local police. As an urban unit, this commando was also tasked with protecting strategic facilities as well as quelling township riots especially during the State of Emergency in the 1980s. With the SANDF Disbandment This unit, along with all other Commando units was disbanded after a decision by South African President Thabo Mbeki to disband all Commando Units. The Commando system was phased out between 2003 and 2008 "because of the role it played in the apartheid era", according to the Minister of Safety and Security Charles Nqakula. Insignia Leadership See also South African Commando System References Infantry regiments of South Africa South African Commando Units Disbanded military units and formations in the East Rand
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package com.looklook.xinghongfei.looklook.util; import android.animation.Animator; import android.animation.TimeInterpolator; import android.content.Context; import android.transition.Transition; import android.util.ArrayMap; import android.util.Property; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; import java.util.ArrayList; /** * Utility methods for working with animations. */ public class AnimUtils { private AnimUtils() { } private static Interpolator fastOutSlowIn; private static Interpolator fastOutLinearIn; private static Interpolator linearOutSlowIn; public static Interpolator getFastOutSlowInInterpolator(Context context) { if (fastOutSlowIn == null) { fastOutSlowIn = AnimationUtils.loadInterpolator(context, android.R.interpolator.fast_out_slow_in); } return fastOutSlowIn; } public static Interpolator getFastOutLinearInInterpolator(Context context) { if (fastOutLinearIn == null) { fastOutLinearIn = AnimationUtils.loadInterpolator(context, android.R.interpolator.fast_out_linear_in); } return fastOutLinearIn; } public static Interpolator getLinearOutSlowInInterpolator(Context context) { if (linearOutSlowIn == null) { linearOutSlowIn = AnimationUtils.loadInterpolator(context, android.R.interpolator.linear_out_slow_in); } return linearOutSlowIn; } /** * Linear interpolate between a and b with parameter t. */ public static float lerp(float a, float b, float t) { return a + (b - a) * t; } /** * An implementation of {@link Property} to be used specifically with fields of * type * <code>float</code>. This type-specific subclass enables performance benefit by allowing * calls to a {@link #set(Object, Float) set()} function that takes the primitive * <code>float</code> type and avoids autoboxing and other overhead associated with the * <code>Float</code> class. * * @param <T> The class on which the Property is declared. **/ public static abstract class FloatProperty<T> extends Property<T, Float> { public FloatProperty(String name) { super(Float.class, name); } /** * A type-specific override of the {@link #set(Object, Float)} that is faster when dealing * with fields of type <code>float</code>. */ public abstract void setValue(T object, float value); @Override final public void set(T object, Float value) { setValue(object, value); } } /** * An implementation of {@link Property} to be used specifically with fields of * type * <code>int</code>. This type-specific subclass enables performance benefit by allowing * calls to a {@link #set(Object, Integer) set()} function that takes the primitive * <code>int</code> type and avoids autoboxing and other overhead associated with the * <code>Integer</code> class. * * @param <T> The class on which the Property is declared. */ public static abstract class IntProperty<T> extends Property<T, Integer> { public IntProperty(String name) { super(Integer.class, name); } /** * A type-specific override of the {@link #set(Object, Integer)} that is faster when dealing * with fields of type <code>int</code>. */ public abstract void setValue(T object, int value); @Override final public void set(T object, Integer value) { setValue(object, value.intValue()); } } /** * path_to_url * <p/> * Interrupting Activity transitions can yield an OperationNotSupportedException when the * transition tries to pause the animator. Yikes! We can fix this by wrapping the Animator: */ public static class NoPauseAnimator extends Animator { private final Animator mAnimator; private final ArrayMap<AnimatorListener, AnimatorListener> mListeners = new ArrayMap<AnimatorListener, AnimatorListener>(); public NoPauseAnimator(Animator animator) { mAnimator = animator; } @Override public void addListener(AnimatorListener listener) { AnimatorListener wrapper = new AnimatorListenerWrapper(this, listener); if (!mListeners.containsKey(listener)) { mListeners.put(listener, wrapper); mAnimator.addListener(wrapper); } } @Override public void cancel() { mAnimator.cancel(); } @Override public void end() { mAnimator.end(); } @Override public long getDuration() { return mAnimator.getDuration(); } @Override public TimeInterpolator getInterpolator() { return mAnimator.getInterpolator(); } @Override public void setInterpolator(TimeInterpolator timeInterpolator) { mAnimator.setInterpolator(timeInterpolator); } @Override public ArrayList<AnimatorListener> getListeners() { return new ArrayList<AnimatorListener>(mListeners.keySet()); } @Override public long getStartDelay() { return mAnimator.getStartDelay(); } @Override public void setStartDelay(long delayMS) { mAnimator.setStartDelay(delayMS); } @Override public boolean isPaused() { return mAnimator.isPaused(); } @Override public boolean isRunning() { return mAnimator.isRunning(); } @Override public boolean isStarted() { return mAnimator.isStarted(); } /* We don't want to override pause or resume methods because we don't want them * to affect mAnimator. public void pause(); public void resume(); public void addPauseListener(AnimatorPauseListener listener); public void removePauseListener(AnimatorPauseListener listener); */ @Override public void removeAllListeners() { mListeners.clear(); mAnimator.removeAllListeners(); } @Override public void removeListener(AnimatorListener listener) { AnimatorListener wrapper = mListeners.get(listener); if (wrapper != null) { mListeners.remove(listener); mAnimator.removeListener(wrapper); } } @Override public Animator setDuration(long durationMS) { mAnimator.setDuration(durationMS); return this; } @Override public void setTarget(Object target) { mAnimator.setTarget(target); } @Override public void setupEndValues() { mAnimator.setupEndValues(); } @Override public void setupStartValues() { mAnimator.setupStartValues(); } @Override public void start() { mAnimator.start(); } } static class AnimatorListenerWrapper implements Animator.AnimatorListener { private final Animator mAnimator; private final Animator.AnimatorListener mListener; public AnimatorListenerWrapper(Animator animator, Animator.AnimatorListener listener) { mAnimator = animator; mListener = listener; } @Override public void onAnimationStart(Animator animator) { mListener.onAnimationStart(mAnimator); } @Override public void onAnimationEnd(Animator animator) { mListener.onAnimationEnd(mAnimator); } @Override public void onAnimationCancel(Animator animator) { mListener.onAnimationCancel(mAnimator); } @Override public void onAnimationRepeat(Animator animator) { mListener.onAnimationRepeat(mAnimator); } } public static class TransitionListenerAdapter implements Transition.TransitionListener { @Override public void onTransitionStart(Transition transition) { } @Override public void onTransitionEnd(Transition transition) { } @Override public void onTransitionCancel(Transition transition) { } @Override public void onTransitionPause(Transition transition) { } @Override public void onTransitionResume(Transition transition) { } } } ```
Omar Dajani is a Palestinian-American professor and former member of the Palestine Liberation Organization's Negotiations Support Unit. Dajani was born in Texas in 1970. He received his B.A. from Northwestern University in Illinois and his J.D. from Yale Law School. In 1999, he left the United States to join the Palestine Liberation Organization's Negotiations Support Unit, where he worked as a senior legal advisor to the Palestinian negotiating team. In 2001, Dajani left his post at the PLO to take a position as a political advisor to United Nations Special Envoy Terje Rød-Larsen, which he held until 2003. Dajani is currently a Professor of Law at the University of the Pacific's McGeorge School of Law in Sacramento, California. See also Rana Dajani References Profile of Omar Dajani at the Institute for Middle East Understanding Biography of Omar Dajani at Brit Tzedek v'Shalom University of California - Hastings College of the Law Visiting Faculty External links Omar Dajani: "September Song", Foreign Policy (24 May 2011) at ForeignPolicy.com Omar Dajani & Ezzedine Choukri Fishere: "The Myth of Defensible Borders: How a Regional Security Initiative Can Promote Middle East Peace", Foreign Affairs (5 Jan 2011) at ForeignAffairs.com Omar Dajani: "In Middle East's problems lie the solutions", The San Francisco Chronicle (3 August 2006) at SFGate.com Omar Dajani: "On a Better Road This Time in the Mideast?", The Washington Post (4 May 2003) at Common Ground News Service - Middle East Living people American people of Palestinian descent Northwestern University alumni Yale Law School alumni University of the Pacific (United States) faculty 1970 births American legal scholars
The 2019–20 NHL Three Star Awards are the way the National Hockey League denotes its players of the week and players of the month of the 2019–20 season. Weekly Monthly Rookie of the Month References Three Star Awards Lists of NHL Three Star Awards
University College Dublin Students' Union (UCDSU; ) is the students' union of University College Dublin. It is the largest students' union in Ireland. The Union was founded in 1975 as the successor of the Student Representative Council, with Enda Connolly acting as the organisation's first president. Its primary role is to represent its members views and defend their interests. The students union is made up of 6 full time elected staff along with college officers, campaign coordinators and class representatives. All students of UCD who are studying for a degree or postgraduate diploma of the National University of Ireland are, on registration at the university, members. In addition to its campaign work the Union also provides many services, such as three shops; welfare and education services such as an online second-hand bookshop; and the provision of a full-time accommodation officer. History The Union has been at the forefront of pushing social change in Ireland, selling condoms starting in 1979, when the sale of contraceptives without a prescription was still illegal. The Director of Public Prosecutions considered legal action against the Union but ultimately demurred, believing the Union was deliberately attempting to provoke a case and that the "clearly unconstitutional" 1935 law prohibiting their sale had "little or no chance of being upheld". The sale of contraceptives without a prescription was finally legalised in 1985, and their general sale legalised in 1993. The Union was also at the forefront of the fight for the right to publish information about abortion. In 1988, the Society for the Protection of Unborn Children (Spuc) threatened the Union with legal action if information on abortion was published in its welfare guide. The Union went ahead and published information on abortion clinics in Britain and a case was taken against it, Spuc v. Coogan, that was later joined by the Trinity College Student Union and Union of Students in Ireland in Spuc v. Grogan. The case was initially dismissed in the High Court on the basis that Spuc lacked standing but Spuc ultimately prevailed in the Supreme Court leaving the unions involved with large legal fees. The case ultimately as far as the European Court of Justice, which established that under the Treaty of Rome abortion was a service and a Member State could not prohibit the distribution of information about a service legally provided in another Member State. While establishing the principle that Ireland could not block the publication of abortion information from foreign clinics or their agents, the Court found it was legal for Ireland the block information from third parties, so establishing a principle of freedom of abortion information but ultimately finding against the students due to their status as unconnected third parties and leaving them with their costs. The provision of information on abortion services legally available in other European Union countries was ultimately legalised in the 1995 Abortion Information Act. In later years the Union had financial problems. A 2012 audit found shoddy financial practices devoid of checks and balances since 2007, racking up €1.4m in debt including nearly €400,000 in liability to the tax authorities, ultimately requiring a bailout from the University. Following this, the Union incorporated as a limited liability company in 2012 and recorded a steady income with a surplus in subsequent years. The Union has had a rocky relationship with the Union of Students in Ireland (USI), disaffiliating and reaffiliating several times over the years. As of 2021, UCDSU is not affiliated with USI, having decided to leave in a referendum which was held in February 2013, 67% of students voted to leave the national union, reaffirming this in a 2016 with 74% of Students voting for UCDSU to remain outside of USI. Issues for un-affiliating and continuing to remain outside of USI cited included the ineffectual leadership of USI, transparency in USI operations and the large cost of affiliation which would amount to over €100,000. UCDSU ceased being a member organisation on 1 July 2013. Structure The main governing body of UCDSU, subject only to referendums and general meetings of the members of the Union, is the Union Council, which meets every second week of term. The Union Council is composed chiefly of class representatives elected in their respective constituencies. These constituencies are elected at a flexible ratio, far lower than a previously arbitrary ratio of one representative per 125 students. The power of Union Council is conferred in a de facto manner on the Union Executive outside of term. The Union Executive, composed of elected sabbatical and non-sabbatical officers as well as the Union secretary, meets weekly during term and fortnightly outside of it. There are several sabbatical officers, who are involved in the day-to-day running of the Union. The president and two nominated vice-presidents, as agreed by the executive, are student representatives on the UCD Governing Authority. A sabbatical term of office is twelve months in duration and commences on 1 July each year, although the incoming officers are, in accordance with the UCDSU constitution, given job training by the incumbents from 15 June. Sabbatical elections take place in late February–early March of each year. Sabbatical officers take a year out from academic studies and work full-time for the Union. The composition of the Union's Council includes a number of full-time elected sabbatical executive officers, elected non-sabbatical executive officers, class representatives, campaign coordinators and an entertainments forum. References External links University College Dublin Students' Union — the official website of UCDSU. Union of Students in Ireland — the website of the Union of Students in Ireland University College Dublin Students' Union Constitution — The most recently amended form of the Union's Constitution. Students' unions in Ireland University College Dublin
A number of vessels of the French Navy have borne the name Var, after the river of that name. , in service 1806–1809. , a , in service since 1983. References French Navy ship names
Arthur Sunday (born August Wacher; January 21, 1862 – August 26, 1926), was a Major League Baseball player who played outfielder for the Brooklyn Ward's Wonders of the Players' League in 1890. Sunday died in 1926 after suffering burns from a fire while working for a fire patrol. References External links 1862 births 1926 deaths Major League Baseball outfielders Baseball players from Illinois Brooklyn Ward's Wonders players 19th-century baseball players St. Joseph Reds players Wichita Braves players Dallas Hams players Fort Worth Panthers players Toledo Black Pirates players Houston Mud Cats players Sacramento Senators players Birmingham Grays players Kansas City Cowboys (minor league) players Stockton River Pirates players Los Angeles Angels (minor league) players Deaths from fire in the United States Accidental deaths in Nevada
```vue <template> <div id="schedule-template"> <div class="row"> <div class="col-md-12"> <div class="filters pull-left"> <label for="checkbox-missed"> <div class="missed"> <input id="checkbox-missed" type="checkbox" :checked="displayCategory.missed" @change="storeDisplayCategory('missed', $event.currentTarget.checked)"> missed </div> </label> <label for="checkbox-today"> <div class="today"> <input id="checkbox-today" type="checkbox" :checked="displayCategory.today" @change="storeDisplayCategory('today', $event.currentTarget.checked)"> today </div> </label> <label for="checkbox-soon"> <div class="soon"> <input id="checkbox-soon" type="checkbox" :checked="displayCategory.soon" @change="storeDisplayCategory('soon', $event.currentTarget.checked)"> soon </div> </label> <label for="checkbox-later"> <div class="later"> <input id="checkbox-later" type="checkbox" :checked="displayCategory.later" @change="storeDisplayCategory('later', $event.currentTarget.checked)"> later </div> </label> </div> <div class="pull-left subscribe"> <app-link class="btn-medusa btn-inline forceBacklog" :href="`webcal://${location.hostname}:${location.port}/calendar`"> <i class="icon-calendar icon-white" /> Subscribe </app-link> </div> <div class="pull-right"> <div class="show-option"> <span>Show Paused: <toggle-button :width="45" :height="22" v-model="layout.comingEps.displayPaused" sync /> </span> </div> <div class="show-option"> <span>Layout: <select v-model="scheduleLayout" name="layout" class="form-control form-control-inline input-sm show-layout"> <option :value="option.value" v-for="option in layoutOptions" :key="option.value">{{ option.text }}</option> </select> </span> </div> <!-- Calendar sorting is always by date --> <div v-if="!['calendar', 'list'].includes(scheduleLayout)" class="show-option"> <span>Sort By: <select v-model="layout.comingEps.sort" name="sort" class="form-control form-control-inline input-sm"> <option value="date">Date</option> <option value="network">Network</option> <option value="show">Show</option> </select> </span> </div> </div> </div> </div> <component :is="scheduleLayout" v-bind="$props" /> <backstretch :slug="general.randomShowSlug" /> </div> </template> <script> import { mapActions, mapMutations, mapState } from 'vuex'; import { AppLink } from './helpers'; import { ToggleButton } from 'vue-js-toggle-button'; import List from './schedule/list.vue'; import Banner from './schedule/banner.vue'; import Poster from './schedule/poster.vue'; import Calendar from './schedule/calendar.vue'; import { manageCookieMixin } from '../mixins/manage-cookie'; import Backstretch from './backstretch.vue'; export default { name: 'schedule', components: { AppLink, Backstretch, Banner, Calendar, Poster, List, ToggleButton }, mixins: [ manageCookieMixin('schedule') ], data() { return { layoutOptions: [ { value: 'poster', text: 'Poster' }, { value: 'calendar', text: 'Calendar' }, { value: 'banner', text: 'Banner' }, { value: 'list', text: 'List' } ], displayMissed: false, displayToday: true, displaySoon: true, displayLater: false }; }, computed: { ...mapState({ general: state => state.config.general, // Renamed because of the computed property 'layout'. layout: state => state.config.layout, displayCategory: state => state.schedule.displayCategory, categories: state => state.schedule.categories }), scheduleLayout: { get() { const { layout } = this; return layout.schedule; }, set(layout) { const { setLayout } = this; const page = 'schedule'; setLayout({ page, layout }); } }, themeSpinner() { const { layout } = this; return layout.themeName === 'dark' ? '-dark' : ''; }, /** * Wrapper to get access to window.location in template. * @returns {object} - returns window.location object. */ location() { return location; } }, mounted() { const { getSchedule } = this; getSchedule(); // Get the enabled/disabled categories from cookies. const { categories, getCookie, setDisplayCategory } = this; for (const category of categories) { const storedCat = getCookie(category); if (storedCat !== null) { setDisplayCategory({ category, value: storedCat }); } } }, methods: { ...mapActions({ setLayout: 'setLayout', getSchedule: 'getSchedule' }), ...mapMutations({ setDisplayCategory: 'setDisplayCategory' }), storeDisplayCategory(category, value) { const { setDisplayCategory, setCookie } = this; // Store value in cookie, and then call the action. setCookie(category, value); setDisplayCategory({ category, value }); } } }; </script> <style scoped> .subscribe { margin: 9px 5px 0 5px; } /* Also defined in style.css and dark.css, but i'm overwriting for light and dark, because the schedule table has coloring. */ td.tvShow a { color: rgb(0, 0, 0); text-decoration: none; } td.tvShow a:hover { cursor: pointer; color: rgb(66, 139, 202); } .filters { color: rgb(0, 0, 0); margin-top: 5px; } .filters > label { display: block; float: left; } .filters div { padding: 5px 5px 2px 3px; } .filters div:active { transform: translateY(2px); } .filters .today { background-color: rgb(245, 241, 228); color: rgb(130, 111, 48); } .filters .soon { background-color: rgb(221, 255, 221); color: rgb(41, 87, 48); } .filters .missed { background-color: rgb(255, 221, 221); color: rgb(137, 0, 0); } .filters .later { background-color: rgb(190, 222, 237); color: rgb(29, 80, 104); } </style> ```
```objective-c path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #pragma once #include "paddle/fluid/framework/ir/fuse_pass_base.h" namespace paddle { namespace framework { namespace ir { class Graph; class ConstantFoldingPass : public FusePassBase { public: ConstantFoldingPass(); virtual ~ConstantFoldingPass() {} protected: void ApplyImpl(ir::Graph* graph) const override; }; } // namespace ir } // namespace framework } // namespace paddle ```
The Yearling is a 1994 American made-for-television coming-of-age drama film based on the 1938 novel The Yearling by Marjorie Kinnan Rawlings. It was produced by RHI Entertainment, sponsored by Kraft General Foods and broadcast on CBS on April 24, 1994. It is also a remake of the 1946 theatrical film The Yearling starring Gregory Peck and Jane Wyman. Premise A young, impoverished 12-year-old boy named Jody Baxter (Wil Horneff), the lone surviving child of four, lives on a farm in 1870s Florida Everglades shortly after the American Civil War. Jody develops a lasting bond with an orphaned deer named Flag. Cast Peter Strauss as Ezra "Penny" Baxter Jean Smart as Ora Baxter Philip Seymour Hoffman as Buck Wil Horneff as Jody Baxter Jarred Blancard as Fodder-Wing Brad Greenquist as Lem Forrester Mary Nell Santcroc as Ma Forrester Richard Hamilton as Pa Forrester Scott Sowers as Boyle Ed Grady as Doc Wilson Susan F. Allen as Lyla Kerry Wallum as James Bart Hansard as Milwheel Reception Reviewer Drew Voros of Variety wrote that "the absence of true grit and dirt-under-fingernails feeling weaken the believability of the drama," though "like the novel and the ’46 film version, death is taken very seriously, and life is not taken for granted. For this alone, despite the glitches, young viewers should be encouraged to watch." References External links 1994 films 1994 television films 1990s coming-of-age drama films 1990s teen drama films American coming-of-age films Remakes of American films American teen drama films CBS network films American drama television films 1990s English-language films Everglades in fiction Films about animals Films about deer and moose Films about families Films directed by Rod Hardy Films about pets Films scored by Lee Holdridge Films set in the 1870s Films set in Florida 1994 drama films 1990s American films
```c /** * @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. */ #include "stdlib/number/float64/base/set_high_word.h" #include "stdlib/number/float64/base/to_words.h" #include <stdint.h> /** * Sets the more significant 32 bits of a double-precision floating-point number. * * @param high higher order word * @param x reference to (and destination for) a double-precision floating-point number * * @example * #include <stdint.h> * * uint32_t high = 1074339512; * double x = 0.0; * * stdlib_base_float64_set_high_word( high, &x ); */ void stdlib_base_float64_set_high_word( const uint32_t high, double *x ) { stdlib_base_float64_words_t w; w.value = *x; w.words.high = high; *x = w.value; } ```
Julian Gaines (born November 5, 2002) is an American professional soccer player who plays as a right-back for Major League Soccer club Los Angeles FC. Club career Los Angeles FC On August 19, 2021, Gaines joined Major League Soccer club Los Angeles FC. Gaines was signed through the MLS Waiver Order, with Los Angeles FC trading $50,000 in General Allocation Money and the 21st spot in the Waiver Order to Toronto FC to acquire the number one spot. On March 11, 2022, Gaines was loaned to Las Vegas Lights FC. Career statistics Club References External links Profile at USL Championship 2002 births Living people Soccer players from Austin, Texas American men's soccer players Men's association football defenders Austin Bold FC players Las Vegas Lights FC players Los Angeles FC players USL Championship players United States men's youth international soccer players MLS Next Pro players Los Angeles FC 2 players
```python # # # 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. # ============================================================================== """Utilities related to disk I/O.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import defaultdict import sys import numpy as np try: import h5py # pylint:disable=g-import-not-at-top except ImportError: h5py = None class HDF5Matrix(object): """Representation of HDF5 dataset to be used instead of a Numpy array. Example: ```python x_data = HDF5Matrix('input/file.hdf5', 'data') model.predict(x_data) ``` Providing `start` and `end` allows use of a slice of the dataset. Optionally, a normalizer function (or lambda) can be given. This will be called on every slice of data retrieved. Arguments: datapath: string, path to a HDF5 file dataset: string, name of the HDF5 dataset in the file specified in datapath start: int, start of desired slice of the specified dataset end: int, end of desired slice of the specified dataset normalizer: function to be called on data when retrieved Returns: An array-like HDF5 dataset. """ refs = defaultdict(int) def __init__(self, datapath, dataset, start=0, end=None, normalizer=None): if h5py is None: raise ImportError('The use of HDF5Matrix requires ' 'HDF5 and h5py installed.') if datapath not in list(self.refs.keys()): f = h5py.File(datapath) self.refs[datapath] = f else: f = self.refs[datapath] self.data = f[dataset] self.start = start if end is None: self.end = self.data.shape[0] else: self.end = end self.normalizer = normalizer def __len__(self): return self.end - self.start def __getitem__(self, key): if isinstance(key, slice): start, stop = key.start, key.stop if start is None: start = 0 if stop is None: stop = self.data.shape[0] if stop + self.start <= self.end: idx = slice(start + self.start, stop + self.start) else: raise IndexError elif isinstance(key, (int, np.integer)): if key + self.start < self.end: idx = key + self.start else: raise IndexError elif isinstance(key, np.ndarray): if np.max(key) + self.start < self.end: idx = (self.start + key).tolist() else: raise IndexError elif isinstance(key, list): if max(key) + self.start < self.end: idx = [x + self.start for x in key] else: raise IndexError else: raise IndexError if self.normalizer is not None: return self.normalizer(self.data[idx]) else: return self.data[idx] @property def shape(self): """Gets a numpy-style shape tuple giving the dataset dimensions. Returns: A numpy-style shape tuple. """ return (self.end - self.start,) + self.data.shape[1:] @property def dtype(self): """Gets the datatype of the dataset. Returns: A numpy dtype string. """ return self.data.dtype @property def ndim(self): """Gets the number of dimensions (rank) of the dataset. Returns: An integer denoting the number of dimensions (rank) of the dataset. """ return self.data.ndim @property def size(self): """Gets the total dataset size (number of elements). Returns: An integer denoting the number of elements in the dataset. """ return np.prod(self.shape) def ask_to_proceed_with_overwrite(filepath): """Produces a prompt asking about overwriting a file. Arguments: filepath: the path to the file to be overwritten. Returns: True if we can proceed with overwrite, False otherwise. """ get_input = input if sys.version_info[:2] <= (2, 7): get_input = raw_input overwrite = get_input('[WARNING] %s already exists - overwrite? ' '[y/n]' % (filepath)) while overwrite not in ['y', 'n']: overwrite = get_input('Enter "y" (overwrite) or "n" (cancel).') if overwrite == 'n': return False print('[TIP] Next time specify overwrite=True!') return True ```
Kamaishi Seawaves is a Rugby union football club in Kamaishi, Iwate Prefecture, Japan. It was established in 2001. At its inception, it was known as Nippon Steel Corporation Kamaishi. Current squad The Kamaishi Seawaves squad for the 2023 season is: Notable players The following former Kamaishi Seawaves players became Japanese internationals: Masayoshi Ito Koji Miyata Osamu Koyabu Toru Wada Kazuo Muraguchi Takeshi Hatakeyama Akemi Namura Ichiro Kobayashi Kiyoshi Segawa Jiro Ishiyama Yuji Matsuo Shigetaka Mori Hideo Kobayashi Koji Horaguchi Yoshihiko Sakuraba Michihito Chida References External links Rugby clubs established in 2001 Sports teams in Iwate Prefecture 2001 establishments in Japan Japan Rugby League One teams Kamaishi, Iwate
Cape Girardeau Township is one of ten townships in Cape Girardeau County, Missouri, USA. As of the 2000 census, its population was 37,778. History Cape Girardeau Township was founded in 1807. The township took its name from the city of Cape Girardeau. Geography Cape Girardeau Township covers an area of and contains one incorporated settlement, Cape Girardeau. It contains fifteen cemeteries: County Memorial Park, Davis, Fairmon, Hitt, Hitt, Hitt, Lorimier, McGuire, Mount Auburn, Nunn, Old Hanover, Saint Marys, Salem, Shady Grove and Suedekum. The streams of Cape La Croix Creek, Flora Creek, Juden Creek, Ramsey Branch, Randol Creek, Ranney Creek, Scism Creek and Sloan Creek run through this township. Transportation Cape Girardeau Township contains two airports or landing strips: Saint Francis Hospital Heliport and Southeast Missouri Hospital Heliport. References USGS Geographic Names Information System (GNIS) External links US-Counties.com City-Data.com Townships in Cape Girardeau County, Missouri Cape Girardeau–Jackson metropolitan area Townships in Missouri
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package util import ( "crypto/x509" "encoding/pem" "errors" "fmt" "istio.io/istio/pilot/pkg/keycertbundle" ) type ConfigError struct { err error reason string } func (e ConfigError) Error() string { return e.err.Error() } func (e ConfigError) Reason() string { return e.reason } func LoadCABundle(caBundleWatcher *keycertbundle.Watcher) ([]byte, error) { caBundle := caBundleWatcher.GetCABundle() if err := VerifyCABundle(caBundle); err != nil { return nil, &ConfigError{err, "could not verify caBundle"} } return caBundle, nil } func VerifyCABundle(caBundle []byte) error { block, _ := pem.Decode(caBundle) if block == nil { return errors.New("could not decode pem") } if block.Type != "CERTIFICATE" { return fmt.Errorf("cert contains wrong pem type: %q", block.Type) } if _, err := x509.ParseCertificate(block.Bytes); err != nil { return fmt.Errorf("cert contains invalid x509 certificate: %v", err) } return nil } ```
```python """ Test that all objects can be released. """ def test_texture(ctx): tex = ctx.texture((4, 4), 4) tex.release() def test_texture_array(ctx): tex = ctx.texture_array((4, 4, 4), 4) tex.release() def test_texture_cube(ctx): tex = ctx.texture_cube((4, 4), 4) tex.release() def test_texture_3d(ctx): tex = ctx.texture3d((4, 4, 4), 4) tex.release() def test_renderbuffer(ctx): rbo = ctx.renderbuffer((4, 4)) rbo.release() def test_buffer(ctx): buf = ctx.buffer(reserve=4) buf.release() def test_framebuffer(ctx): fbo = ctx.framebuffer(ctx.renderbuffer((4, 4))) fbo.release() def test_vertex_array(ctx): vao = ctx.vertex_array(ctx.program( vertex_shader=""" #version 330 void main() { gl_Position = vec4(0.0, 0.0, 0.0, 1.0); } """, ), []) vao.release() def test_sampler(ctx): smp = ctx.sampler() smp.release() def test_scope(ctx): fbo = ctx.simple_framebuffer((4, 4)) scope = ctx.scope(framebuffer=fbo) fbo.release() scope.release() ```
The Rennsteig Cycle Path () follows for 195 km the Rennsteig trail that has existed at least since the Middle Ages as a courier and trade route. Most of this long distance cycle path is carefully ballasted, although parts of it also run along quiet country lanes. On the crest of the Thuringian Highland the cycle path is identical for long stretches with the hiking trail of the same name, but departs from it in places so that steep inclines can be avoided. It starts at Hörschel west of Eisenach and ends in Blankenstein by the River Saale. Literature Rennsteig Radwanderweg, 1 : 50 000, Verlag grünes herz. Radwanderkarte Rennsteig-Radwanderweg, 1 : 50 000, Publicpress-Verlag, External links http://www.rennsteig.net/radwandern/radinfo.htm Detailed route description of the Rennsteig Cycle Path with height and route profiles Cycleways in Germany Transport in Thuringia
```yaml - op: add path: /spec/template/spec/securityContext value: fsGroup: 65534 ```
```python # modified from path_to_url import time import os import re import random import argparse import urllib import urllib.request import itertools import bs4 from bs4 import BeautifulSoup import multiprocessing from multiprocessing.dummy import Pool genre_list = ['portrait', 'landscape', 'genre-painting', 'abstract', 'religious-painting', 'cityscape', 'sketch-and-study', 'figurative', 'illustration', 'still-life', 'design', 'nude-painting-nu', 'mythological-painting', 'marina', 'animal-painting', 'flower-painting', 'self-portrait', 'installation', 'photo', 'allegorical-painting', 'history-painting', 'interior', 'literary-painting', 'poster', 'caricature', 'battle-painting', 'wildlife-painting', 'cloudscape', 'miniature', 'veduta', 'yakusha-e', 'calligraphy', 'graffiti', 'tessellation', 'capriccio', 'advertisement', 'bird-and-flower-painting', 'performance', 'bijinga', 'pastorale', 'trompe-loeil', 'vanitas', 'shan-shui', 'tapestry', 'mosaic', 'quadratura', 'panorama', 'architecture'] style_list = ['impressionism', 'realism', 'romanticism', 'expressionism', 'post-impressionism', 'surrealism', 'art-nouveau', 'baroque', 'symbolism', 'abstract-expressionism', 'na-ve-art-primitivism', 'neoclassicism', 'cubism', 'rococo', 'northern-renaissance', 'pop-art', 'minimalism', 'abstract-art', 'art-informel', 'ukiyo-e', 'conceptual-art', 'color-field-painting', 'high-renaissance', 'mannerism-late-renaissance', 'neo-expressionism', 'early-renaissance', 'magic-realism', 'academicism', 'op-art', 'lyrical-abstraction', 'contemporary-realism', 'art-deco', 'fauvism', 'concretism', 'ink-and-wash-painting', 'post-minimalism', 'social-realism', 'hard-edge-painting', 'neo-romanticism', 'tachisme', 'pointillism', 'socialist-realism', 'neo-pop-art'] parser = argparse.ArgumentParser() parser.add_argument("--genre", help="which genre to scrape", choices=genre_list, default=None) parser.add_argument("--style", help="which style to scrape", choices=style_list, default=None) parser.add_argument("--num_pages", type=int, help="number of pages to scrape (leave blank to download all of them)", default=1000) parser.add_argument("--output_dir", help="where to put output files") num_downloaded = 0 num_images = 0 def get_painting_list(count, typep, searchword): try: time.sleep(3.0*random.random()) # random sleep to decrease concurrence of requests url = "path_to_url"%(typep, searchword, count) soup = BeautifulSoup(urllib.request.urlopen(url), "lxml") regex = r'https?://uploads[0-9]+[^/\s]+/\S+\.jpg' url_list = re.findall(regex, str(soup.html())) count += len(url_list) return url_list except Exception as e: print('failed to scrape %s'%url, e) def downloader(link, genre, output_dir): global num_downloaded, num_images item, file = link filepath = file.split('/') #savepath = '%s/%s/%d_%s' % (output_dir, genre, item, filepath[-1]) savepath = '%s/%s/%s' % (output_dir, genre, filepath[-1]) try: time.sleep(0.2) # try not to get a 403 urllib.request.urlretrieve(file, savepath) num_downloaded += 1 if num_downloaded % 100 == 0: print('downloaded number %d / %d...' % (num_downloaded, num_images)) except Exception as e: print("failed downloading " + str(file), e) def main(typep, searchword, num_pages, output_dir): global num_images print('gathering links to images... this may take a few minutes') threadpool = Pool(multiprocessing.cpu_count()-1) numbers = list(range(1, num_pages)) wikiart_pages = threadpool.starmap(get_painting_list, zip(numbers, itertools.repeat(typep), itertools.repeat(searchword))) threadpool.close() threadpool.join() pages = [page for page in wikiart_pages if page ] items = [item for sublist in pages for item in sublist] items = list(set(items)) # get rid of duplicates num_images = len(items) if not os.path.isdir('%s/%s'%(output_dir, searchword)): os.mkdir('%s/%s'%(output_dir, searchword)) print('attempting to download %d images'%num_images) threadpool = Pool(multiprocessing.cpu_count()-1) threadpool.starmap(downloader, zip(enumerate(items), itertools.repeat(searchword), itertools.repeat(output_dir))) threadpool.close threadpool.close() if __name__ == '__main__': args = parser.parse_args() searchword, typep = (args.genre, 'genre') if args.genre is not None else (args.style, 'style') num_pages = args.num_pages output_dir = args.output_dir main(typep, searchword, num_pages, output_dir) ```
```javascript module.exports = { generateBuildId() { return 'testing-build-id'; }, basePath: '/docs', }; ```
```makefile ################################################################################ # # xlib_libXcursor # ################################################################################ XLIB_LIBXCURSOR_VERSION = 1.1.14 XLIB_LIBXCURSOR_SOURCE = libXcursor-$(XLIB_LIBXCURSOR_VERSION).tar.bz2 XLIB_LIBXCURSOR_SITE = path_to_url XLIB_LIBXCURSOR_LICENSE = MIT XLIB_LIBXCURSOR_LICENSE_FILES = COPYING XLIB_LIBXCURSOR_INSTALL_STAGING = YES XLIB_LIBXCURSOR_DEPENDENCIES = xlib_libX11 xlib_libXfixes xlib_libXrender xproto_xproto $(eval $(autotools-package)) $(eval $(host-autotools-package)) ```
Huntington Learning Center is a franchise of educational learning centers in the United States offering in-center and online tutoring services. Huntington is the oldest provider of supplemental educational services for primary and secondary students in the United States. It offers reading, writing, mathematics, phonics, and study skills instruction, math and science subject tutoring, as well as test preparation for the SAT, PSAT, ACT, GED, Regents, ASVAB, AP Exams, high school entrance exams and more. Huntington Learning Centers, Inc., located in Oradell, New Jersey, is the parent company that franchises learning center locations. History Huntington Learning Center was founded in 1977 by Dr. Raymond Huntington and his wife Eileen. The couple opened a second center in 1978 and began franchising locations in 1985. The company grew aggressively during the 1980s and 1990s, and by 1999, the chain had opened 200 units. In 2000, Huntington defaulted on payments to some of its creditors which filed a court petition seeking involuntary Chapter 7 bankruptcy. Huntington fought the petition and repaid the creditors. The company subsequently slowed its growth and sold some of its company-owned stores. In 2012 they rebranded as Huntington Your Tutoring Solutions. See also Storefront school References Further reading External links Official website Test preparation companies Education companies established in 1977 Companies based in Bergen County, New Jersey 1977 establishments in New Jersey
```objective-c /* QOI - The "Quite OK Image" format for fast, lossless image compression -- About QOI encodes and decodes images in a lossless format. Compared to stb_image and stb_image_write QOI offers 20x-50x faster encoding, 3x-4x faster decoding and 20% better compression. -- Synopsis // Define `QOI_IMPLEMENTATION` in *one* C/C++ file before including this // library to create the implementation. #define QOI_IMPLEMENTATION #include "qoi.h" // Encode and store an RGBA buffer to the file system. The qoi_desc describes // the input pixel data. qoi_write("image_new.qoi", rgba_pixels, &(qoi_desc){ .width = 1920, .height = 1080, .channels = 4, .colorspace = QOI_SRGB }); // Load and decode a QOI image from the file system into a 32bbp RGBA buffer. // The qoi_desc struct will be filled with the width, height, number of channels // and colorspace read from the file header. qoi_desc desc; void *rgba_pixels = qoi_read("image.qoi", &desc, 4); -- Documentation This library provides the following functions; - qoi_read -- read and decode a QOI file - qoi_decode -- decode the raw bytes of a QOI image from memory - qoi_write -- encode and write a QOI file - qoi_encode -- encode an rgba buffer into a QOI image in memory See the function declaration below for the signature and more information. If you don't want/need the qoi_read and qoi_write functions, you can define QOI_NO_STDIO before including this library. This library uses malloc() and free(). To supply your own malloc implementation you can define QOI_MALLOC and QOI_FREE before including this library. This library uses memset() to zero-initialize the index. To supply your own implementation you can define QOI_ZEROARR before including this library. -- Data Format A QOI file has a 14 byte header, followed by any number of data "chunks" and an 8-byte end marker. struct qoi_header_t { char magic[4]; // magic bytes "qoif" uint32_t width; // image width in pixels (BE) uint32_t height; // image height in pixels (BE) uint8_t channels; // 3 = RGB, 4 = RGBA uint8_t colorspace; // 0 = sRGB with linear alpha, 1 = all channels linear }; Images are encoded row by row, left to right, top to bottom. The decoder and encoder start with {r: 0, g: 0, b: 0, a: 255} as the previous pixel value. An image is complete when all pixels specified by width * height have been covered. Pixels are encoded as - a run of the previous pixel - an index into an array of previously seen pixels - a difference to the previous pixel value in r,g,b - full r,g,b or r,g,b,a values The color channels are assumed to not be premultiplied with the alpha channel ("un-premultiplied alpha"). A running array[64] (zero-initialized) of previously seen pixel values is maintained by the encoder and decoder. Each pixel that is seen by the encoder and decoder is put into this array at the position formed by a hash function of the color value. In the encoder, if the pixel value at the index matches the current pixel, this index position is written to the stream as QOI_OP_INDEX. The hash function for the index is: index_position = (r * 3 + g * 5 + b * 7 + a * 11) % 64 Each chunk starts with a 2- or 8-bit tag, followed by a number of data bits. The bit length of chunks is divisible by 8 - i.e. all chunks are byte aligned. All values encoded in these data bits have the most significant bit on the left. The 8-bit tags have precedence over the 2-bit tags. A decoder must check for the presence of an 8-bit tag first. The byte stream's end is marked with 7 0x00 bytes followed a single 0x01 byte. The possible chunks are: .- QOI_OP_INDEX ----------. | Byte[0] | | 7 6 5 4 3 2 1 0 | |-------+-----------------| | 0 0 | index | `-------------------------` 2-bit tag b00 6-bit index into the color index array: 0..63 A valid encoder must not issue 2 or more consecutive QOI_OP_INDEX chunks to the same index. QOI_OP_RUN should be used instead. .- QOI_OP_DIFF -----------. | Byte[0] | | 7 6 5 4 3 2 1 0 | |-------+-----+-----+-----| | 0 1 | dr | dg | db | `-------------------------` 2-bit tag b01 2-bit red channel difference from the previous pixel between -2..1 2-bit green channel difference from the previous pixel between -2..1 2-bit blue channel difference from the previous pixel between -2..1 The difference to the current channel values are using a wraparound operation, so "1 - 2" will result in 255, while "255 + 1" will result in 0. Values are stored as unsigned integers with a bias of 2. E.g. -2 is stored as 0 (b00). 1 is stored as 3 (b11). The alpha value remains unchanged from the previous pixel. .- QOI_OP_LUMA -------------------------------------. | Byte[0] | Byte[1] | | 7 6 5 4 3 2 1 0 | 7 6 5 4 3 2 1 0 | |-------+-----------------+-------------+-----------| | 1 0 | green diff | dr - dg | db - dg | `---------------------------------------------------` 2-bit tag b10 6-bit green channel difference from the previous pixel -32..31 4-bit red channel difference minus green channel difference -8..7 4-bit blue channel difference minus green channel difference -8..7 The green channel is used to indicate the general direction of change and is encoded in 6 bits. The red and blue channels (dr and db) base their diffs off of the green channel difference and are encoded in 4 bits. I.e.: dr_dg = (cur_px.r - prev_px.r) - (cur_px.g - prev_px.g) db_dg = (cur_px.b - prev_px.b) - (cur_px.g - prev_px.g) The difference to the current channel values are using a wraparound operation, so "10 - 13" will result in 253, while "250 + 7" will result in 1. Values are stored as unsigned integers with a bias of 32 for the green channel and a bias of 8 for the red and blue channel. The alpha value remains unchanged from the previous pixel. .- QOI_OP_RUN ------------. | Byte[0] | | 7 6 5 4 3 2 1 0 | |-------+-----------------| | 1 1 | run | `-------------------------` 2-bit tag b11 6-bit run-length repeating the previous pixel: 1..62 The run-length is stored with a bias of -1. Note that the run-lengths 63 and 64 (b111110 and b111111) are illegal as they are occupied by the QOI_OP_RGB and QOI_OP_RGBA tags. .- QOI_OP_RGB ------------------------------------------. | Byte[0] | Byte[1] | Byte[2] | Byte[3] | | 7 6 5 4 3 2 1 0 | 7 .. 0 | 7 .. 0 | 7 .. 0 | |-------------------------+---------+---------+---------| | 1 1 1 1 1 1 1 0 | red | green | blue | `-------------------------------------------------------` 8-bit tag b11111110 8-bit red channel value 8-bit green channel value 8-bit blue channel value The alpha value remains unchanged from the previous pixel. .- QOI_OP_RGBA ---------------------------------------------------. | Byte[0] | Byte[1] | Byte[2] | Byte[3] | Byte[4] | | 7 6 5 4 3 2 1 0 | 7 .. 0 | 7 .. 0 | 7 .. 0 | 7 .. 0 | |-------------------------+---------+---------+---------+---------| | 1 1 1 1 1 1 1 1 | red | green | blue | alpha | `your_sha256_hash-` 8-bit tag b11111111 8-bit red channel value 8-bit green channel value 8-bit blue channel value 8-bit alpha channel value */ /* your_sha256_hash------------- Header - Public functions */ #ifndef QOI_H #define QOI_H #ifdef __cplusplus extern "C" { #endif /* A pointer to a qoi_desc struct has to be supplied to all of qoi's functions. It describes either the input format (for qoi_write and qoi_encode), or is filled with the description read from the file header (for qoi_read and qoi_decode). The colorspace in this qoi_desc is an enum where 0 = sRGB, i.e. gamma scaled RGB channels and a linear alpha channel 1 = all channels are linear You may use the constants QOI_SRGB or QOI_LINEAR. The colorspace is purely informative. It will be saved to the file header, but does not affect how chunks are en-/decoded. */ #define QOI_SRGB 0 #define QOI_LINEAR 1 typedef struct { unsigned int width; unsigned int height; unsigned char channels; unsigned char colorspace; } qoi_desc; #ifndef QOI_NO_STDIO /* Encode raw RGB or RGBA pixels into a QOI image and write it to the file system. The qoi_desc struct must be filled with the image width, height, number of channels (3 = RGB, 4 = RGBA) and the colorspace. The function returns 0 on failure (invalid parameters, or fopen or malloc failed) or the number of bytes written on success. */ int qoi_write(const char *filename, const void *data, const qoi_desc *desc); /* Read and decode a QOI image from the file system. If channels is 0, the number of channels from the file header is used. If channels is 3 or 4 the output format will be forced into this number of channels. The function either returns NULL on failure (invalid data, or malloc or fopen failed) or a pointer to the decoded pixels. On success, the qoi_desc struct will be filled with the description from the file header. The returned pixel data should be free()d after use. */ void *qoi_read(const char *filename, qoi_desc *desc, int channels); #endif /* QOI_NO_STDIO */ /* Encode raw RGB or RGBA pixels into a QOI image in memory. The function either returns NULL on failure (invalid parameters or malloc failed) or a pointer to the encoded data on success. On success the out_len is set to the size in bytes of the encoded data. The returned qoi data should be free()d after use. */ void *qoi_encode(const void *data, const qoi_desc *desc, int *out_len); /* Decode a QOI image from memory. The function either returns NULL on failure (invalid parameters or malloc failed) or a pointer to the decoded pixels. On success, the qoi_desc struct is filled with the description from the file header. The returned pixel data should be free()d after use. */ void *qoi_decode(const void *data, int size, qoi_desc *desc, int channels); #ifdef __cplusplus } #endif #endif /* QOI_H */ /* your_sha256_hash------------- Implementation */ #ifdef QOI_IMPLEMENTATION #include <stdlib.h> #include <string.h> #ifndef QOI_MALLOC #define QOI_MALLOC(sz) malloc(sz) #define QOI_FREE(p) free(p) #endif #ifndef QOI_ZEROARR #define QOI_ZEROARR(a) memset((a),0,sizeof(a)) #endif #define QOI_OP_INDEX 0x00 /* 00xxxxxx */ #define QOI_OP_DIFF 0x40 /* 01xxxxxx */ #define QOI_OP_LUMA 0x80 /* 10xxxxxx */ #define QOI_OP_RUN 0xc0 /* 11xxxxxx */ #define QOI_OP_RGB 0xfe /* 11111110 */ #define QOI_OP_RGBA 0xff /* 11111111 */ #define QOI_MASK_2 0xc0 /* 11000000 */ #define QOI_COLOR_HASH(C) (C.rgba.r*3 + C.rgba.g*5 + C.rgba.b*7 + C.rgba.a*11) #define QOI_MAGIC \ (((unsigned int)'q') << 24 | ((unsigned int)'o') << 16 | \ ((unsigned int)'i') << 8 | ((unsigned int)'f')) #define QOI_HEADER_SIZE 14 /* 2GB is the max file size that this implementation can safely handle. We guard against anything larger than that, assuming the worst case with 5 bytes per pixel, rounded down to a nice clean value. 400 million pixels ought to be enough for anybody. */ #define QOI_PIXELS_MAX ((unsigned int)400000000) typedef union { struct { unsigned char r, g, b, a; } rgba; unsigned int v; } qoi_rgba_t; static const unsigned char qoi_padding[8] = {0,0,0,0,0,0,0,1}; static void qoi_write_32(unsigned char *bytes, int *p, unsigned int v) { bytes[(*p)++] = (0xff000000 & v) >> 24; bytes[(*p)++] = (0x00ff0000 & v) >> 16; bytes[(*p)++] = (0x0000ff00 & v) >> 8; bytes[(*p)++] = (0x000000ff & v); } static unsigned int qoi_read_32(const unsigned char *bytes, int *p) { unsigned int a = bytes[(*p)++]; unsigned int b = bytes[(*p)++]; unsigned int c = bytes[(*p)++]; unsigned int d = bytes[(*p)++]; return a << 24 | b << 16 | c << 8 | d; } void *qoi_encode(const void *data, const qoi_desc *desc, int *out_len) { int i, max_size, p, run; int px_len, px_end, px_pos, channels; unsigned char *bytes; const unsigned char *pixels; qoi_rgba_t index[64]; qoi_rgba_t px, px_prev; if ( data == NULL || out_len == NULL || desc == NULL || desc->width == 0 || desc->height == 0 || desc->channels < 3 || desc->channels > 4 || desc->colorspace > 1 || desc->height >= QOI_PIXELS_MAX / desc->width ) { return NULL; } max_size = desc->width * desc->height * (desc->channels + 1) + QOI_HEADER_SIZE + sizeof(qoi_padding); p = 0; bytes = (unsigned char *) QOI_MALLOC(max_size); if (!bytes) { return NULL; } qoi_write_32(bytes, &p, QOI_MAGIC); qoi_write_32(bytes, &p, desc->width); qoi_write_32(bytes, &p, desc->height); bytes[p++] = desc->channels; bytes[p++] = desc->colorspace; pixels = (const unsigned char *)data; QOI_ZEROARR(index); run = 0; px_prev.rgba.r = 0; px_prev.rgba.g = 0; px_prev.rgba.b = 0; px_prev.rgba.a = 255; px = px_prev; px_len = desc->width * desc->height * desc->channels; px_end = px_len - desc->channels; channels = desc->channels; for (px_pos = 0; px_pos < px_len; px_pos += channels) { px.rgba.r = pixels[px_pos + 0]; px.rgba.g = pixels[px_pos + 1]; px.rgba.b = pixels[px_pos + 2]; if (channels == 4) { px.rgba.a = pixels[px_pos + 3]; } if (px.v == px_prev.v) { run++; if (run == 62 || px_pos == px_end) { bytes[p++] = QOI_OP_RUN | (run - 1); run = 0; } } else { int index_pos; if (run > 0) { bytes[p++] = QOI_OP_RUN | (run - 1); run = 0; } index_pos = QOI_COLOR_HASH(px) % 64; if (index[index_pos].v == px.v) { bytes[p++] = QOI_OP_INDEX | index_pos; } else { index[index_pos] = px; if (px.rgba.a == px_prev.rgba.a) { signed char vr = px.rgba.r - px_prev.rgba.r; signed char vg = px.rgba.g - px_prev.rgba.g; signed char vb = px.rgba.b - px_prev.rgba.b; signed char vg_r = vr - vg; signed char vg_b = vb - vg; if ( vr > -3 && vr < 2 && vg > -3 && vg < 2 && vb > -3 && vb < 2 ) { bytes[p++] = QOI_OP_DIFF | (vr + 2) << 4 | (vg + 2) << 2 | (vb + 2); } else if ( vg_r > -9 && vg_r < 8 && vg > -33 && vg < 32 && vg_b > -9 && vg_b < 8 ) { bytes[p++] = QOI_OP_LUMA | (vg + 32); bytes[p++] = (vg_r + 8) << 4 | (vg_b + 8); } else { bytes[p++] = QOI_OP_RGB; bytes[p++] = px.rgba.r; bytes[p++] = px.rgba.g; bytes[p++] = px.rgba.b; } } else { bytes[p++] = QOI_OP_RGBA; bytes[p++] = px.rgba.r; bytes[p++] = px.rgba.g; bytes[p++] = px.rgba.b; bytes[p++] = px.rgba.a; } } } px_prev = px; } for (i = 0; i < (int)sizeof(qoi_padding); i++) { bytes[p++] = qoi_padding[i]; } *out_len = p; return bytes; } void *qoi_decode(const void *data, int size, qoi_desc *desc, int channels) { const unsigned char *bytes; unsigned int header_magic; unsigned char *pixels; qoi_rgba_t index[64]; qoi_rgba_t px; int px_len, chunks_len, px_pos; int p = 0, run = 0; if ( data == NULL || desc == NULL || (channels != 0 && channels != 3 && channels != 4) || size < QOI_HEADER_SIZE + (int)sizeof(qoi_padding) ) { return NULL; } bytes = (const unsigned char *)data; header_magic = qoi_read_32(bytes, &p); desc->width = qoi_read_32(bytes, &p); desc->height = qoi_read_32(bytes, &p); desc->channels = bytes[p++]; desc->colorspace = bytes[p++]; if ( desc->width == 0 || desc->height == 0 || desc->channels < 3 || desc->channels > 4 || desc->colorspace > 1 || header_magic != QOI_MAGIC || desc->height >= QOI_PIXELS_MAX / desc->width ) { return NULL; } if (channels == 0) { channels = desc->channels; } px_len = desc->width * desc->height * channels; pixels = (unsigned char *) QOI_MALLOC(px_len); if (!pixels) { return NULL; } QOI_ZEROARR(index); px.rgba.r = 0; px.rgba.g = 0; px.rgba.b = 0; px.rgba.a = 255; chunks_len = size - (int)sizeof(qoi_padding); for (px_pos = 0; px_pos < px_len; px_pos += channels) { if (run > 0) { run--; } else if (p < chunks_len) { int b1 = bytes[p++]; if (b1 == QOI_OP_RGB) { px.rgba.r = bytes[p++]; px.rgba.g = bytes[p++]; px.rgba.b = bytes[p++]; } else if (b1 == QOI_OP_RGBA) { px.rgba.r = bytes[p++]; px.rgba.g = bytes[p++]; px.rgba.b = bytes[p++]; px.rgba.a = bytes[p++]; } else if ((b1 & QOI_MASK_2) == QOI_OP_INDEX) { px = index[b1]; } else if ((b1 & QOI_MASK_2) == QOI_OP_DIFF) { px.rgba.r += ((b1 >> 4) & 0x03) - 2; px.rgba.g += ((b1 >> 2) & 0x03) - 2; px.rgba.b += ( b1 & 0x03) - 2; } else if ((b1 & QOI_MASK_2) == QOI_OP_LUMA) { int b2 = bytes[p++]; int vg = (b1 & 0x3f) - 32; px.rgba.r += vg - 8 + ((b2 >> 4) & 0x0f); px.rgba.g += vg; px.rgba.b += vg - 8 + (b2 & 0x0f); } else if ((b1 & QOI_MASK_2) == QOI_OP_RUN) { run = (b1 & 0x3f); } index[QOI_COLOR_HASH(px) % 64] = px; } pixels[px_pos + 0] = px.rgba.r; pixels[px_pos + 1] = px.rgba.g; pixels[px_pos + 2] = px.rgba.b; if (channels == 4) { pixels[px_pos + 3] = px.rgba.a; } } return pixels; } #ifndef QOI_NO_STDIO #include <stdio.h> int qoi_write(const char *filename, const void *data, const qoi_desc *desc) { FILE *f = fopen(filename, "wb"); int size, err; void *encoded; if (!f) { return 0; } encoded = qoi_encode(data, desc, &size); if (!encoded) { fclose(f); return 0; } fwrite(encoded, 1, size, f); fflush(f); err = ferror(f); fclose(f); QOI_FREE(encoded); return err ? 0 : size; } void *qoi_read(const char *filename, qoi_desc *desc, int channels) { FILE *f = fopen(filename, "rb"); int size, bytes_read; void *pixels, *data; if (!f) { return NULL; } fseek(f, 0, SEEK_END); size = ftell(f); if (size <= 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); return NULL; } data = QOI_MALLOC(size); if (!data) { fclose(f); return NULL; } bytes_read = fread(data, 1, size, f); fclose(f); pixels = (bytes_read != size) ? NULL : qoi_decode(data, bytes_read, desc, channels); QOI_FREE(data); return pixels; } #endif /* QOI_NO_STDIO */ #endif /* QOI_IMPLEMENTATION */ ```
Anselm Paul Alexis Hollo (12 April 1934 – 29 January 2013) was a Finnish poet and translator. He lived in the United States from 1967 until his death in January 2013. Hollo published more than forty titles of poetry in the United Kingdom and in the United States, with a style strongly influenced by the American beat poets. Personal life Paavo Anselm Aleksis Hollo was born in Helsinki, Finland. His father, Juho August Hollo (1885–1967) — who liked to be known as "J. A." Hollo — was professor of pedagogy at the University of Helsinki, an essayist, and a major translator of literature into Finnish. His mother was Iris Antonina Anna Walden (1899–1983), a music teacher and daughter of organic chemist Paul Walden. He lived for eight years in the United Kingdom and had three children, Hannes, Kaarina, and Tamsin, with his first wife, poet Josephine Clare. He was a permanent resident in the United States from the late 1960s until his death. At the time of his death, he resided in Boulder, Colorado with his second wife, artist Jane Dalrymple-Hollo. Career In the 1960s Hollo lived in London and worked at the Finnish section of BBC World Service. One of his tasks there was to write radio dramas in Finnish, together with another Finnish poet, Matti Rossi. The music to their productions was written by Erkki Toivanen. Around this time he was also beginning to make a name for himself as a poet in the English language. In 1965, Hollo performed at the "underground" International Poetry Incarnation, London. Also in the same year, the first customer of the Indica Bookshop, a certain Paul McCartney, is known to have bought, among other things, the book & it is a song by Anselm Hollo the day before the bookshop was officially opened. In 2001, poets and critics associated with the SUNY Buffalo POETICS list elected Hollo to the honorary position of "anti-laureate", in protest at the appointment of Billy Collins to the position of Poet Laureate Consultant in Poetry to the Library of Congress. Hollo translated poetry and belles-lettres from Finnish, German, Swedish, and French into English. He was one of the early translators of Allen Ginsberg into German and Finnish. Hollo taught creative writing in eighteen different institutions of higher learning, including SUNY Buffalo, the Iowa Writers' Workshop, and the University of Colorado at Boulder. Since 1985, he taught in the Jack Kerouac School of Disembodied Poetics at Naropa University, where he held the rank of Full Professor. Several of his poems have been set into music by pianist and composer Frank Carlberg. Poets Ted Berrigan and Alice Notley named their son Anselm Berrigan after Hollo. Hollo became ill during the summer of 2012 and had brain surgery. Hollo died from post-operative pneumonia on 29 January 2013 at the age of 78. Awards 1979 NEA and Poets Foundation fellowships 1996 Gertrude Stein Award in Innovative American Poetry 1995–1996 1996 Finnish State Award for Foreign Translators 2001 best book of poems Award by the San Francisco Poetry Center, for Notes on the Possibilities and Attractions of Existence: New and Selected Poems 1965–2000 2004 Harold Morton Landon Translation Award Selected publications Sateiden välillä, runoja. Otava, Helsinki 1956 & (And) what else is new : a small pamphlet. New voice, Chatham, Kent 1963 Jazz poems. Vista Books, London 1963 & (And) it is a song : poems. Migrant Press, Birmingham 1965 Faces & Forms: Poems. Ambit, London 1965 Word from the north : new poetry from Finland, edited, translated and introduction by Anselm Hollo. Blackburn London : Lancs., Poetmeat : Strangers press 1965 The claim. Goliard Press, London 1966 Alembic Trigram Press 1972 Finite Continued, Blue Wind Press 1980 () Anthologies See also The Czar's Madman References External links The Anti-Laureate Announcement Poems online at Samizdat (poetry magazine) "Add-Verse" a poetry-photo-video project Hollo participated in Poetry Foundation announcement of Hollo's death 1934 births 2013 deaths Writers from Helsinki Finnish expatriates in the United States Finnish male poets Beat Generation writers Iowa Writers' Workshop faculty Naropa University faculty Translators to English Camp Rising Sun alumni Finnish writers 20th-century Finnish people 20th-century translators 20th-century Finnish poets English-language poets 20th-century male writers Deaths from pneumonia in Colorado
```python #! /usr/bin/env python # # SCons - a Software Constructor # # # 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. '''Show or convert the configuration of an SCons cache directory. A cache of derived files is stored by file signature. The files are split into directories named by the first few digits of the signature. The prefix length used for directory names can be changed by this script. ''' from __future__ import print_function import argparse import glob import json import os __revision__ = "src/script/scons-configure-cache.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" __version__ = "3.1.2" __build__ = "bee7caf9defd6e108fc2998a2520ddb36a967691" __buildsys__ = "octodog" __date__ = "2019-12-17 02:07:09" __developer__ = "bdeegan" def rearrange_cache_entries(current_prefix_len, new_prefix_len): '''Move cache files if prefix length changed. Move the existing cache files to new directories of the appropriate name length and clean up the old directories. ''' print('Changing prefix length from', current_prefix_len, 'to', new_prefix_len) dirs = set() old_dirs = set() for file in glob.iglob(os.path.join('*', '*')): name = os.path.basename(file) dname = name[:current_prefix_len].upper() if dname not in old_dirs: print('Migrating', dname) old_dirs.add(dname) dname = name[:new_prefix_len].upper() if dname not in dirs: os.mkdir(dname) dirs.add(dname) os.rename(file, os.path.join(dname, name)) # Now delete the original directories for dname in old_dirs: os.rmdir(dname) # The configuration dictionary should have one entry per entry in the # cache config. The value of each entry should include the following: # implicit - (optional) This is to allow adding a new config entry and also # changing the behaviour of the system at the same time. This # indicates the value the config entry would have had if it had # been specified. # default - The value the config entry should have if it wasn't previously # specified # command-line - parameters to pass to ArgumentParser.add_argument # converter - (optional) Function to call if conversion is required # if this configuration entry changes config_entries = { 'prefix_len': { 'implicit': 1, 'default': 2, 'command-line': { 'help': 'Length of cache file name used as subdirectory prefix', 'metavar': '<number>', 'type': int }, 'converter': rearrange_cache_entries } } parser = argparse.ArgumentParser( description='Modify the configuration of an scons cache directory', epilog=''' Unspecified options will not be changed unless they are not set at all, in which case they are set to an appropriate default. ''') parser.add_argument('cache-dir', help='Path to scons cache directory') for param in config_entries: parser.add_argument('--' + param.replace('_', '-'), **config_entries[param]['command-line']) parser.add_argument('--version', action='version', version='%(prog)s 1.0') parser.add_argument('--show', action="store_true", help="show current configuration") # Get the command line as a dict without any of the unspecified entries. args = dict([x for x in vars(parser.parse_args()).items() if x[1]]) # It seems somewhat strange to me, but positional arguments don't get the - # in the name changed to _, whereas optional arguments do... cache = args['cache-dir'] if not os.path.isdir(cache): raise RuntimeError("There is no cache directory named %s" % cache) os.chdir(cache) del args['cache-dir'] if not os.path.exists('config'): # old config dirs did not have a 'config' file. Try to update. # Validate the only files in the directory are directories 0-9, a-f expected = ['{:X}'.format(x) for x in range(0, 16)] if not set(os.listdir('.')).issubset(expected): raise RuntimeError( "%s does not look like a valid version 1 cache directory" % cache) config = dict() else: with open('config') as conf: config = json.load(conf) if args.get('show', None): print("Current configuration in '%s':" % cache) print(json.dumps(config, sort_keys=True, indent=4, separators=(',', ': '))) # in case of the show argument, emit some stats as well file_count = 0 for _, _, files in os.walk('.'): file_count += len(files) if file_count: # skip config file if it exists file_count -= 1 print("Cache contains %s files" % file_count) del args['show'] # Find any keys that are not currently set but should be for key in config_entries: if key not in config: if 'implicit' in config_entries[key]: config[key] = config_entries[key]['implicit'] else: config[key] = config_entries[key]['default'] if key not in args: args[key] = config_entries[key]['default'] # Now go through each entry in args to see if it changes an existing config # setting. for key in args: if args[key] != config[key]: if 'converter' in config_entries[key]: config_entries[key]['converter'](config[key], args[key]) config[key] = args[key] # and write the updated config file with open('config', 'w') as conf: json.dump(config, conf) ```
```javascript /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see path_to_url * */ const pkg = require('./package.json'); const appConfigPkg = require('./app-config/package.json'); const {execSync} = require('child_process'); require('dotenv').config(); /** * Selects configuration based on current branch and tagged commits * @returns {string} the configuration name */ const selectConfiguration = () => { const distribution = process.env.DISTRIBUTION !== 'wire' && process.env.DISTRIBUTION; if (distribution) { console.log(`Selecting configuration "${distribution}" (reason: custom distribution)`); return distribution; } let currentTag = ''; try { currentTag = execSync('git tag -l --points-at HEAD').toString().trim(); } catch (error) {} if (currentTag.includes('staging') || currentTag.includes('production')) { console.log(`Selecting configuration "master" (reason: tag "${currentTag}")`); return 'master'; } console.log('Selecting configuration "staging" (reason: default)'); return 'staging'; }; let repositoryUrl; const forcedConfigUrl = process.env.FORCED_CONFIG_URL; if (forcedConfigUrl) { console.log(`Selecting configuration "${forcedConfigUrl}" (reason: forced config URL)`); repositoryUrl = forcedConfigUrl; } else { const configurationEntry = `wire-web-config-default-${selectConfiguration()}`; repositoryUrl = appConfigPkg.dependencies[configurationEntry]; } console.log('Repo URL', repositoryUrl); module.exports = { files: { [`${pkg.name}/content/**`]: 'resource/', [`${pkg.name}/.env.defaults`]: `${__dirname}/.env.defaults`, }, repositoryUrl, }; ```
```objective-c /* * */ #pragma once #include <stdbool.h> #include <stdint.h> #include "soc/soc_caps.h" #include "hal/gdma_types.h" // TODO: don't expose the SOC header files, we can typedef a new type for the register dev pointer #if SOC_AHB_GDMA_VERSION == 1 #include "soc/gdma_struct.h" #endif #if SOC_AHB_GDMA_VERSION == 2 #include "soc/ahb_dma_struct.h" #endif #if SOC_AXI_GDMA_SUPPORTED #include "soc/axi_dma_struct.h" #endif #ifdef __cplusplus extern "C" { #endif /// forward declaration of the HAL context typedef struct gdma_hal_context_t gdma_hal_context_t; /** * @brief GDMA HAL configuration */ typedef struct { int group_id; /*!< GDMA group ID */ } gdma_hal_config_t; typedef struct { uint32_t init_value; /*!< CRC initial value */ uint32_t crc_bit_width; /*!< CRC bit width */ uint32_t poly_hex; /*!< Polynomial Formula, in hex */ bool reverse_data_mask; /*!< Reverse data mask */ } gdma_hal_crc_config_t; /** * @brief GDMA HAL private data */ typedef struct { // The bitmap of the IDs that can be used by M2M are different between AXI DMA and AHB DMA, so we need to save a copy for each of them uint32_t m2m_free_periph_mask; // TODO: we can add more private data here, e.g. the interrupt event mask of interest // for now, the AXI DMA and AHB DMA are sharing the same interrupt mask, so we don't need to store it here // If one day they become incompatible, we shall save a copy for each of them as a private data } gdma_hal_priv_data_t; /** * @brief HAL context definition */ struct gdma_hal_context_t { /// the underlying hardware can be different union { #if SOC_AHB_GDMA_VERSION == 1 gdma_dev_t *dev; #endif #if SOC_AHB_GDMA_VERSION == 2 ahb_dma_dev_t *ahb_dma_dev; #endif #if SOC_AXI_GDMA_SUPPORTED axi_dma_dev_t *axi_dma_dev; #endif void *generic_dev; }; gdma_hal_priv_data_t *priv_data; /// private data for the HAL void (*start_with_desc)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, intptr_t desc_base_addr); /// start the channel with the start address of the descriptor void (*stop)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// stop the channel void (*append)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// Append a descriptor to the channel void (*reset)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// Reset the channel void (*set_priority)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t priority); /// Set the channel priority void (*connect_peri)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, gdma_trigger_peripheral_t periph, int periph_sub_id); /// Connect the channel to a peripheral void (*disconnect_peri)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// Disconnect the channel from a peripheral void (*enable_burst)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_data_burst, bool en_desc_burst); /// Enable burst mode void (*set_burst_size)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t burst_sz); /// Set burst transfer size void (*set_strategy)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_owner_check, bool en_desc_write_back, bool eof_till_popped); /// Set some misc strategy of the channel behaviour uint32_t (*get_intr_status_reg)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); // Get the interrupt status register address void (*enable_intr)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t intr_event_mask, bool en_or_dis); /// Enable the channel interrupt void (*clear_intr)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t intr_event_mask); /// Clear the channel interrupt uint32_t (*read_intr_status)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool raw); /// Read the channel interrupt status uint32_t (*get_eof_desc_addr)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool is_success); /// Get the address of the descriptor with success/error EOF flag set void (*enable_access_encrypt_mem)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_or_dis); /// Enable the access to the encrypted memory #if SOC_GDMA_SUPPORT_CRC void (*clear_crc)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// Clear the CRC interim results void (*set_crc_poly)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, const gdma_hal_crc_config_t *config); /// Set the CRC polynomial uint32_t (*get_crc_result)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); /// Get the CRC result #endif // SOC_GDMA_SUPPORT_CRC #if SOC_GDMA_SUPPORT_ETM void (*enable_etm_task)(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_or_dis); /// Enable the ETM task #endif // SOC_GDMA_SUPPORT_ETM }; void gdma_hal_deinit(gdma_hal_context_t *hal); void gdma_hal_start_with_desc(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, intptr_t desc_base_addr); void gdma_hal_stop(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); void gdma_hal_append(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); void gdma_hal_reset(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); void gdma_hal_set_priority(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t priority); void gdma_hal_connect_peri(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, gdma_trigger_peripheral_t periph, int periph_sub_id); void gdma_hal_disconnect_peri(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); void gdma_hal_enable_burst(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_data_burst, bool en_desc_burst); void gdma_hal_set_burst_size(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t burst_sz); void gdma_hal_set_strategy(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_owner_check, bool en_desc_write_back, bool eof_till_popped); void gdma_hal_enable_intr(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t intr_event_mask, bool en_or_dis); void gdma_hal_clear_intr(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, uint32_t intr_event_mask); uint32_t gdma_hal_get_intr_status_reg(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); uint32_t gdma_hal_read_intr_status(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool raw); uint32_t gdma_hal_get_eof_desc_addr(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool is_success); void gdma_hal_enable_access_encrypt_mem(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_or_dis); #if SOC_GDMA_SUPPORT_CRC void gdma_hal_build_parallel_crc_matrix(int crc_width, uint32_t crc_poly_hex, int data_width, uint32_t *lfsr_transform_matrix, uint32_t *data_transform_matrix); uint32_t gdma_hal_get_data_mask_from_matrix(uint32_t *data_transform_matrix, int data_width, int crc_bit); uint32_t gdma_hal_get_lfsr_mask_from_matrix(uint32_t *lfsr_transform_matrix, int crc_width, int crc_bit); void gdma_hal_clear_crc(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); void gdma_hal_set_crc_poly(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, const gdma_hal_crc_config_t *config); uint32_t gdma_hal_get_crc_result(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir); #endif // SOC_GDMA_SUPPORT_CRC #if SOC_GDMA_SUPPORT_ETM void gdma_hal_enable_etm_task(gdma_hal_context_t *hal, int chan_id, gdma_channel_direction_t dir, bool en_or_dis); #endif #ifdef __cplusplus } #endif ```
```objective-c /** * @file TinyGsmClientBG96.h * @author Volodymyr Shymanskyy and Aurelien BOUIN (SSL) * @license LGPL-3.0 * @date Apr 2018, Aug 2023 (SSL) */ #ifndef SRC_TINYGSMCLIENTBG96_H_ #define SRC_TINYGSMCLIENTBG96_H_ // #pragma message("TinyGSM: TinyGsmClientBG96") // #define TINY_GSM_DEBUG Serial #define TINY_GSM_MUX_COUNT 12 #define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE #ifdef AT_NL #undef AT_NL #endif #define AT_NL "\r\n" #ifdef MODEM_MANUFACTURER #undef MODEM_MANUFACTURER #endif #define MODEM_MANUFACTURER "Quectel" #ifdef MODEM_MODEL #undef MODEM_MODEL #endif #if defined(TINY_GSM_MODEM_BG95) || defined(TINY_GSM_MODEM_BG95SSL) #define MODEM_MODEL "BG95" #else #define MODEM_MODEL "BG96" #endif #include "TinyGsmModem.tpp" #include "TinyGsmTCP.tpp" #include "TinyGsmSSL.tpp" #include "TinyGsmGPRS.tpp" #include "TinyGsmCalling.tpp" #include "TinyGsmSMS.tpp" #include "TinyGsmGPS.tpp" #include "TinyGsmTime.tpp" #include "TinyGsmNTP.tpp" #include "TinyGsmBattery.tpp" #include "TinyGsmTemperature.tpp" enum BG96RegStatus { REG_NO_RESULT = -1, REG_UNREGISTERED = 0, REG_SEARCHING = 2, REG_DENIED = 3, REG_OK_HOME = 1, REG_OK_ROAMING = 5, REG_UNKNOWN = 4, }; class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>, public TinyGsmGPRS<TinyGsmBG96>, public TinyGsmTCP<TinyGsmBG96, TINY_GSM_MUX_COUNT>, public TinyGsmSSL<TinyGsmBG96, TINY_GSM_MUX_COUNT>, public TinyGsmCalling<TinyGsmBG96>, public TinyGsmSMS<TinyGsmBG96>, public TinyGsmGPS<TinyGsmBG96>, public TinyGsmTime<TinyGsmBG96>, public TinyGsmNTP<TinyGsmBG96>, public TinyGsmBattery<TinyGsmBG96>, public TinyGsmTemperature<TinyGsmBG96> { friend class TinyGsmModem<TinyGsmBG96>; friend class TinyGsmGPRS<TinyGsmBG96>; friend class TinyGsmTCP<TinyGsmBG96, TINY_GSM_MUX_COUNT>; friend class TinyGsmSSL<TinyGsmBG96, TINY_GSM_MUX_COUNT>; friend class TinyGsmCalling<TinyGsmBG96>; friend class TinyGsmSMS<TinyGsmBG96>; friend class TinyGsmGPS<TinyGsmBG96>; friend class TinyGsmTime<TinyGsmBG96>; friend class TinyGsmNTP<TinyGsmBG96>; friend class TinyGsmBattery<TinyGsmBG96>; friend class TinyGsmTemperature<TinyGsmBG96>; /* * Inner Client */ public: class GsmClientBG96 : public GsmClient { friend class TinyGsmBG96; public: GsmClientBG96() {} explicit GsmClientBG96(TinyGsmBG96& modem, uint8_t mux = 0) { ssl_sock = false; init(&modem, mux); } bool init(TinyGsmBG96* modem, uint8_t mux = 0) { this->at = modem; sock_available = 0; prev_check = 0; sock_connected = false; got_data = false; if (mux < TINY_GSM_MUX_COUNT) { this->mux = mux; } else { this->mux = (mux % TINY_GSM_MUX_COUNT); } at->sockets[this->mux] = this; return true; } virtual int connect(const char* host, uint16_t port, int timeout_s) { stop(); TINY_GSM_YIELD(); rx.clear(); sock_connected = at->modemConnect(host, port, mux, timeout_s); return sock_connected; } TINY_GSM_CLIENT_CONNECT_OVERRIDES virtual void stop(uint32_t maxWaitMs) { uint32_t startMillis = millis(); dumpModemBuffer(maxWaitMs); at->sendAT(GF("+QICLOSE="), mux); sock_connected = false; at->waitResponse((maxWaitMs - (millis() - startMillis))); } void stop() override { stop(15000L); } /* * Extended API */ String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; protected: bool ssl_sock; }; /* * Inner Secure Client */ public: class GsmClientSecureBG96 : public GsmClientBG96 { public: GsmClientSecureBG96() {} explicit GsmClientSecureBG96(TinyGsmBG96& modem, uint8_t mux = 0) : GsmClientBG96(modem, mux) { ssl_sock = true; } bool setCertificate(const String& certificateName) { return at->setCertificate(certificateName, mux); } void stop(uint32_t maxWaitMs) override { uint32_t startMillis = millis(); dumpModemBuffer(maxWaitMs); at->sendAT(GF("+QSSLCLOSE="), mux); sock_connected = false; at->waitResponse((maxWaitMs - (millis() - startMillis))); } void stop() override { stop(15000L); } }; /* * Constructor */ public: explicit TinyGsmBG96(Stream& stream) : stream(stream) { memset(sockets, 0, sizeof(sockets)); } /* * Basic functions */ protected: bool initImpl(const char* pin = nullptr) { DBG(GF("### TinyGSM Version:"), TINYGSM_VERSION); DBG(GF("### TinyGSM Compiled Module: TinyGsmClientBG96")); if (!testAT()) { return false; } sendAT(GF("E0")); // Echo Off if (waitResponse() != 1) { return false; } #ifdef TINY_GSM_DEBUG sendAT(GF("+CMEE=2")); // turn on verbose error codes #else sendAT(GF("+CMEE=0")); // turn off error codes #endif waitResponse(); DBG(GF("### Modem:"), getModemName()); // Disable time and time zone URC's sendAT(GF("+CTZR=0")); if (waitResponse(10000L) != 1) { return false; } // Enable automatic time zone update sendAT(GF("+CTZU=1")); if (waitResponse(10000L) != 1) { return false; } SimStatus ret = getSimStatus(); // if the sim isn't ready and a pin has been provided, try to unlock the sim if (ret != SIM_READY && pin != nullptr && strlen(pin) > 0) { simUnlock(pin); return (getSimStatus() == SIM_READY); } else { // if the sim is ready, or it's locked but no pin has been provided, // return true return (ret == SIM_READY || ret == SIM_LOCKED); } } /* * Power functions */ protected: bool restartImpl(const char* pin = nullptr) { if (!testAT()) { return false; } if (!setPhoneFunctionality(1, true)) { return false; } waitResponse(10000L, GF("APP RDY")); return init(pin); } bool powerOffImpl() { sendAT(GF("+QPOWD=1")); waitResponse(300); // returns OK first return waitResponse(300, GF("POWERED DOWN")) == 1; } // When entering into sleep mode is enabled, DTR is pulled up, and WAKEUP_IN // is pulled up, the module can directly enter into sleep mode.If entering // into sleep mode is enabled, DTR is pulled down, and WAKEUP_IN is pulled // down, there is a need to pull the DTR pin and the WAKEUP_IN pin up first, // and then the module can enter into sleep mode. bool sleepEnableImpl(bool enable = true) { sendAT(GF("+QSCLK="), enable); return waitResponse() == 1; } bool setPhoneFunctionalityImpl(uint8_t fun, bool reset = false, uint32_t timeout_ms = 15500L) { sendAT(GF("+CFUN="), fun, reset ? ",1" : ""); return waitResponse(timeout_ms, GF("OK")) == 1; } /* * Generic network functions */ public: BG96RegStatus getRegistrationStatus() { // Check first for EPS registration BG96RegStatus epsStatus = (BG96RegStatus)getRegistrationStatusXREG("CEREG"); // If we're connected on EPS, great! if (epsStatus == REG_OK_HOME || epsStatus == REG_OK_ROAMING) { return epsStatus; } else { // Otherwise, check generic network status return (BG96RegStatus)getRegistrationStatusXREG("CREG"); } } protected: bool isNetworkConnectedImpl() { BG96RegStatus s = getRegistrationStatus(); return (s == REG_OK_HOME || s == REG_OK_ROAMING); } /* * Secure socket layer (SSL) functions */ // Follows functions as inherited from TinyGsmSSL.tpp /* * WiFi functions */ // No functions of this type supported /* * GPRS functions */ protected: bool gprsConnectImpl(const char* apn, const char* user = nullptr, const char* pwd = nullptr) { gprsDisconnect(); // Configure the TCPIP Context sendAT(GF("+QICSGP=1,1,\""), apn, GF("\",\""), user, GF("\",\""), pwd, GF("\"")); if (waitResponse() != 1) { return false; } // Activate GPRS/CSD Context sendAT(GF("+QIACT=1")); if (waitResponse(150000L) != 1) { return false; } // Attach to Packet Domain service - is this necessary? sendAT(GF("+CGATT=1")); if (waitResponse(60000L) != 1) { return false; } return true; } bool gprsDisconnectImpl() { sendAT(GF("+QIDEACT=1")); // Deactivate the bearer context if (waitResponse(40000L) != 1) { return false; } return true; } String getProviderImpl() { sendAT(GF("+QSPN?")); if (waitResponse(GF("+QSPN:")) != 1) { return ""; } streamSkipUntil('"'); // Skip mode and format String res = stream.readStringUntil('"'); // read the provider waitResponse(); // skip anything else return res; } /* * SIM card functions */ protected: String getSimCCIDImpl() { sendAT(GF("+QCCID")); if (waitResponse(GF(AT_NL "+QCCID:")) != 1) { return ""; } String res = stream.readStringUntil('\n'); waitResponse(); res.trim(); return res; } /* * Phone Call functions */ // Follows all phone call functions as inherited from TinyGsmCalling.tpp /* * Audio functions */ // No functions of this type supported /* * Text messaging (SMS) functions */ // Follows all text messaging (SMS) functions as inherited from TinyGsmSMS.tpp /* * GSM Location functions */ protected: // NOTE: As of application firmware version 01.016.01.016 triangulated // locations can be obtained via the QuecLocator service and accompanying AT // commands. As this is a separate paid service which I do not have access // to, I am not implementing it here. /* * GPS/GNSS/GLONASS location functions */ protected: // enable GPS bool enableGPSImpl() { sendAT(GF("+QGPS=1")); if (waitResponse() != 1) { return false; } return true; } bool disableGPSImpl() { sendAT(GF("+QGPSEND")); if (waitResponse() != 1) { return false; } return true; } // get the RAW GPS output String getGPSrawImpl() { sendAT(GF("+QGPSLOC=2")); if (waitResponse(10000L, GF(AT_NL "+QGPSLOC: ")) != 1) { return ""; } String res = stream.readStringUntil('\n'); waitResponse(); res.trim(); return res; } // get GPS informations bool getGPSImpl(float* lat, float* lon, float* speed = 0, float* alt = 0, int* vsat = 0, int* usat = 0, float* accuracy = 0, int* year = 0, int* month = 0, int* day = 0, int* hour = 0, int* minute = 0, int* second = 0) { sendAT(GF("+QGPSLOC=2")); if (waitResponse(10000L, GF(AT_NL "+QGPSLOC: ")) != 1) { // NOTE: Will return an error if the position isn't fixed return false; } // init variables float ilat = 0; float ilon = 0; float ispeed = 0; float ialt = 0; int iusat = 0; float iaccuracy = 0; int iyear = 0; int imonth = 0; int iday = 0; int ihour = 0; int imin = 0; float secondWithSS = 0; // UTC date & Time ihour = streamGetIntLength(2); // Two digit hour imin = streamGetIntLength(2); // Two digit minute secondWithSS = streamGetFloatBefore(','); // 6 digit second with subseconds ilat = streamGetFloatBefore(','); // Latitude ilon = streamGetFloatBefore(','); // Longitude iaccuracy = streamGetFloatBefore(','); // Horizontal precision ialt = streamGetFloatBefore(','); // Altitude from sea level streamSkipUntil(','); // GNSS positioning mode streamSkipUntil(','); // Course Over Ground based on true north streamSkipUntil(','); // Speed Over Ground in Km/h ispeed = streamGetFloatBefore(','); // Speed Over Ground in knots iday = streamGetIntLength(2); // Two digit day imonth = streamGetIntLength(2); // Two digit month iyear = streamGetIntBefore(','); // Two digit year iusat = streamGetIntBefore(','); // Number of satellites, streamSkipUntil('\n'); // The error code of the operation. If it is not // 0, it is the type of error. // Set pointers if (lat != nullptr) *lat = ilat; if (lon != nullptr) *lon = ilon; if (speed != nullptr) *speed = ispeed; if (alt != nullptr) *alt = ialt; if (vsat != nullptr) *vsat = 0; if (usat != nullptr) *usat = iusat; if (accuracy != nullptr) *accuracy = iaccuracy; if (iyear < 2000) iyear += 2000; if (year != nullptr) *year = iyear; if (month != nullptr) *month = imonth; if (day != nullptr) *day = iday; if (hour != nullptr) *hour = ihour; if (minute != nullptr) *minute = imin; if (second != nullptr) *second = static_cast<int>(secondWithSS); waitResponse(); // Final OK return true; } /* * Time functions */ protected: String getGSMDateTimeImpl(TinyGSMDateTimeFormat format) { sendAT(GF("+QLTS=2")); if (waitResponse(2000L, GF("+QLTS: \"")) != 1) { return ""; } String res; switch (format) { case DATE_FULL: res = stream.readStringUntil('"'); break; case DATE_TIME: streamSkipUntil(','); res = stream.readStringUntil('"'); break; case DATE_DATE: res = stream.readStringUntil(','); break; } waitResponse(); // Ends with OK return res; } // The BG96 returns UTC time instead of local time as other modules do in // response to CCLK, so we're using QLTS where we can specifically request // local time. bool getNetworkUTCTimeImpl(int* year, int* month, int* day, int* hour, int* minute, int* second, float* timezone) { sendAT(GF("+QLTS=1")); if (waitResponse(2000L, GF("+QLTS: \"")) != 1) { return false; } int iyear = 0; int imonth = 0; int iday = 0; int ihour = 0; int imin = 0; int isec = 0; int itimezone = 0; // Date & Time iyear = streamGetIntBefore('/'); imonth = streamGetIntBefore('/'); iday = streamGetIntBefore(','); ihour = streamGetIntBefore(':'); imin = streamGetIntBefore(':'); isec = streamGetIntLength(2); char tzSign = stream.read(); itimezone = streamGetIntBefore(','); if (tzSign == '-') { itimezone = itimezone * -1; } streamSkipUntil('\n'); // DST flag // Set pointers if (iyear < 2000) iyear += 2000; if (year != nullptr) *year = iyear; if (month != nullptr) *month = imonth; if (day != nullptr) *day = iday; if (hour != nullptr) *hour = ihour; if (minute != nullptr) *minute = imin; if (second != nullptr) *second = isec; if (timezone != nullptr) *timezone = static_cast<float>(itimezone) / 4.0; // Final OK waitResponse(); // Ends with OK return true; } // The BG96 returns UTC time instead of local time as other modules do in // response to CCLK, so we're using QLTS where we can specifically request // local time. bool getNetworkTimeImpl(int* year, int* month, int* day, int* hour, int* minute, int* second, float* timezone) { sendAT(GF("+QLTS=2")); if (waitResponse(2000L, GF("+QLTS: \"")) != 1) { return false; } int iyear = 0; int imonth = 0; int iday = 0; int ihour = 0; int imin = 0; int isec = 0; int itimezone = 0; // Date & Time iyear = streamGetIntBefore('/'); imonth = streamGetIntBefore('/'); iday = streamGetIntBefore(','); ihour = streamGetIntBefore(':'); imin = streamGetIntBefore(':'); isec = streamGetIntLength(2); char tzSign = stream.read(); itimezone = streamGetIntBefore(','); if (tzSign == '-') { itimezone = itimezone * -1; } streamSkipUntil('\n'); // DST flag // Set pointers if (iyear < 2000) iyear += 2000; if (year != nullptr) *year = iyear; if (month != nullptr) *month = imonth; if (day != nullptr) *day = iday; if (hour != nullptr) *hour = ihour; if (minute != nullptr) *minute = imin; if (second != nullptr) *second = isec; if (timezone != nullptr) *timezone = static_cast<float>(itimezone) / 4.0; // Final OK waitResponse(); // Ends with OK return true; } /* * NTP server functions */ byte NTPServerSyncImpl(String server = "pool.ntp.org", byte = -5) { // Request network synchronization // AT+QNTP=<contextID>,<server>[,<port>][,<autosettime>] sendAT(GF("+QNTP=1,\""), server, '"'); if (waitResponse(10000L, GF("+QNTP:"))) { String result = stream.readStringUntil(','); streamSkipUntil('\n'); result.trim(); if (TinyGsmIsValidNumber(result)) { return result.toInt(); } } else { return -1; } return -1; } String ShowNTPErrorImpl(byte error) TINY_GSM_ATTR_NOT_IMPLEMENTED; /* * BLE functions */ // No functions of this type supported /* * Battery functions */ // Follows all battery functions as inherited from TinyGsmBattery.tpp /* * Temperature functions */ protected: // get temperature in degree celsius uint16_t getTemperatureImpl() { sendAT(GF("+QTEMP")); if (waitResponse(GF(AT_NL "+QTEMP:")) != 1) { return 0; } // return temperature in C uint16_t res = streamGetIntBefore(','); // read PMIC (primary ic) temperature streamSkipUntil(','); // skip XO temperature ?? streamSkipUntil('\n'); // skip PA temperature ?? // Wait for final OK waitResponse(); return res; } /* * Client related functions */ protected: bool modemConnect(const char* host, uint16_t port, uint8_t mux, int timeout_s = 150) { uint32_t timeout_ms = ((uint32_t)timeout_s) * 1000; bool ssl = sockets[mux]->ssl_sock; if (ssl) { // set the ssl version // AT+QSSLCFG="sslversion",<ctxindex>,<sslversion> // <ctxindex> PDP context identifier // <sslversion> 0: QAPI_NET_SSL_3.0 // 1: QAPI_NET_SSL_PROTOCOL_TLS_1_0 // 2: QAPI_NET_SSL_PROTOCOL_TLS_1_1 // 3: QAPI_NET_SSL_PROTOCOL_TLS_1_2 // 4: ALL // NOTE: despite docs using caps, "sslversion" must be in lower case sendAT(GF("+QSSLCFG=\"sslversion\",0,3")); // TLS 1.2 if (waitResponse(5000L) != 1) return false; // set the ssl cipher_suite // AT+QSSLCFG="ciphersuite",<ctxindex>,<cipher_suite> // <ctxindex> PDP context identifier // <cipher_suite> 0: TODO // 1: TODO // 0X0035: TLS_RSA_WITH_AES_256_CBC_SHA // 0XFFFF: ALL // NOTE: despite docs using caps, "sslversion" must be in lower case sendAT(GF( "+QSSLCFG=\"ciphersuite\",0,0X0035")); // TLS_RSA_WITH_AES_256_CBC_SHA if (waitResponse(5000L) != 1) return false; // set the ssl sec level // AT+QSSLCFG="seclevel",<ctxindex>,<sec_level> // <ctxindex> PDP context identifier // <sec_level> 0: TODO // 1: TODO // 0X0035: TLS_RSA_WITH_AES_256_CBC_SHA // 0XFFFF: ALL // NOTE: despite docs using caps, "sslversion" must be in lower case sendAT(GF("+QSSLCFG=\"seclevel\",0,1")); if (waitResponse(5000L) != 1) return false; if (certificates[mux] != "") { // apply the correct certificate to the connection // AT+QSSLCFG="cacert",<ctxindex>,<caname> // <ctxindex> PDP context identifier // <certname> certificate name // sendAT(GF("+CASSLCFG="), mux, ",CACERT,\"", // certificates[mux].c_str(), // "\""); sendAT(GF("+QSSLCFG=\"cacert\",0,\""), certificates[mux].c_str(), GF("\"")); if (waitResponse(5000L) != 1) return false; } // <PDPcontextID>(1-16), <connectID>(0-11), // "TCP/UDP/TCP LISTENER/UDPSERVICE", "<IP_address>/<domain_name>", // <remote_port>,<local_port>,<access_mode>(0-2; 0=buffer) // may need previous AT+QSSLCFG sendAT(GF("+QSSLOPEN=1,1,"), mux, GF(",\""), host, GF("\","), port, GF(",0")); waitResponse(); if (waitResponse(timeout_ms, GF(AT_NL "+QSSLOPEN:")) != 1) { return false; } // 20230629 -> +QSSLOPEN: <clientID>,<err> // clientID is mux // err must be 0 if (streamGetIntBefore(',') != mux) { return false; } // Read status return (0 == streamGetIntBefore('\n')); } else { // AT+QIOPEN=1,0,"TCP","220.180.239.212",8009,0,0 // <PDPcontextID>(1-16), <connectID>(0-11), // "TCP/UDP/TCP LISTENER/UDPSERVICE", "<IP_address>/<domain_name>", // <remote_port>,<local_port>,<access_mode>(0-2; 0=buffer) sendAT(GF("+QIOPEN=1,"), mux, GF(",\""), GF("TCP"), GF("\",\""), host, GF("\","), port, GF(",0,0")); waitResponse(); if (waitResponse(timeout_ms, GF(AT_NL "+QIOPEN:")) != 1) { return false; } if (streamGetIntBefore(',') != mux) { return false; } } // Read status return (0 == streamGetIntBefore('\n')); } int16_t modemSend(const void* buff, size_t len, uint8_t mux) { bool ssl = sockets[mux]->ssl_sock; if (ssl) { sendAT(GF("+QSSLSEND="), mux, ',', (uint16_t)len); } else { sendAT(GF("+QISEND="), mux, ',', (uint16_t)len); } if (waitResponse(GF(">")) != 1) { return 0; } stream.write(reinterpret_cast<const uint8_t*>(buff), len); stream.flush(); if (waitResponse(GF(AT_NL "SEND OK")) != 1) { return 0; } // TODO(?): Wait for ACK? (AT+QISEND=id,0 or AT+QSSLSEND=id,0) return len; } size_t modemRead(size_t size, uint8_t mux) { if (!sockets[mux]) return 0; bool ssl = sockets[mux]->ssl_sock; if (ssl) { sendAT(GF("+QSSLRECV="), mux, ',', (uint16_t)size); if (waitResponse(GF("+QSSLRECV:")) != 1) { DBG("### READ: For unknown reason close"); return 0; } } else { sendAT(GF("+QIRD="), mux, ',', (uint16_t)size); if (waitResponse(GF("+QIRD:")) != 1) { return 0; } } int16_t len = streamGetIntBefore('\n'); for (int i = 0; i < len; i++) { moveCharFromStreamToFifo(mux); } waitResponse(); // DBG("### READ:", len, "from", mux); sockets[mux]->sock_available = modemGetAvailable(mux); return len; } size_t modemGetAvailable(uint8_t mux) { if (!sockets[mux]) return 0; bool ssl = sockets[mux]->ssl_sock; size_t result = 0; if (ssl) { sendAT(GF("+QSSLRECV="), mux, GF(",0")); if (waitResponse(GF("+QSSLRECV:")) == 1) { streamSkipUntil(','); // Skip total received streamSkipUntil(','); // Skip have read result = streamGetIntBefore('\n'); if (result) { DBG("### DATA AVAILABLE:", result, "on", mux); } waitResponse(); } } else { sendAT(GF("+QIRD="), mux, GF(",0")); if (waitResponse(GF("+QIRD:")) == 1) { streamSkipUntil(','); // Skip total received streamSkipUntil(','); // Skip have read result = streamGetIntBefore('\n'); if (result) { DBG("### DATA AVAILABLE:", result, "on", mux); } waitResponse(); } } if (!result) { sockets[mux]->sock_connected = modemGetConnected(mux); } return result; } bool modemGetConnected(uint8_t mux) { bool ssl = sockets[mux]->ssl_sock; if (ssl) { sendAT(GF("+QSSLSTATE=1,"), mux); // +QSSLSTATE: 0,"TCP","151.139.237.11",80,5087,4,1,0,0,"uart1" if (waitResponse(GF("+QSSLSTATE:")) != 1) { return false; } streamSkipUntil(','); // Skip clientID streamSkipUntil(','); // Skip "SSLClient" streamSkipUntil(','); // Skip remote ip streamSkipUntil(','); // Skip remote port streamSkipUntil(','); // Skip local port int8_t res = streamGetIntBefore(','); // socket state waitResponse(); // 0 Initial, 1 Opening, 2 Connected, 3 Listening, 4 Closing return 2 == res; } else { sendAT(GF("+QISTATE=1,"), mux); // +QISTATE: 0,"TCP","151.139.237.11",80,5087,4,1,0,0,"uart1" if (waitResponse(GF("+QISTATE:")) != 1) { return false; } streamSkipUntil(','); // Skip mux streamSkipUntil(','); // Skip socket type streamSkipUntil(','); // Skip remote ip streamSkipUntil(','); // Skip remote port streamSkipUntil(','); // Skip local port int8_t res = streamGetIntBefore(','); // socket state waitResponse(); // 0 Initial, 1 Opening, 2 Connected, 3 Listening, 4 Closing return 2 == res; } } /* * Utilities */ public: bool handleURCs(String& data) { if (data.endsWith(GF(AT_NL "+QIURC:"))) { streamSkipUntil('\"'); String urc = stream.readStringUntil('\"'); streamSkipUntil(','); if (urc == "recv") { int8_t mux = streamGetIntBefore('\n'); DBG("### URC RECV:", mux); if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { sockets[mux]->got_data = true; } } else if (urc == "closed") { int8_t mux = streamGetIntBefore('\n'); DBG("### URC CLOSE:", mux); if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { sockets[mux]->sock_connected = false; } } else { streamSkipUntil('\n'); } data = ""; return true; } return false; } public: Stream& stream; protected: GsmClientBG96* sockets[TINY_GSM_MUX_COUNT]; String certificates[TINY_GSM_MUX_COUNT]; }; #endif // SRC_TINYGSMCLIENTBG96_H_ ```
Wyss () is an Alemannic form of the German surname Weiß used predominantly in Switzerland. It comes from Middle High German wīz (white, blonde) and Old High German wîs (wise, clever, experienced, knows). Notable persons with the surname include: Amanda Wyss (born 1960), American actress Amy Wyss (born 1970/1971), Swiss-American billionaire businesswoman and philanthropist. Andre Wyss (contemporary), American professor of paleontology (1852–1900), German historian and archivist (1833–1890), Swiss writer (1905–1986), Swiss philologist Brigit Wyss (born 1960), Swiss politician Danilo Wyss (born 1985), Swiss road racing bicyclist (1763–1839), Swiss politician David Wyss, American economist Denise Wyss (born 1965), first priestess of the Christian Catholic Church of Switzerland (1923–1994), German anthropologist and professor in Würzburg Dorothea Wyss (born around 1430/32, died after 1487) married Niklaus von Flüe, the patron saint of Switzerland (born 1952), Swiss politician (CVP) Franz Anatol Wyss (born 1940), Swiss painter Georg von Wyss (1816–1893), Swiss historian Hansjörg Wyss (contemporary), Swiss billionaire Johann David Wyss (1743–1818), Swiss author of The Swiss Family Robinson (1782–1837), Swiss painter and draftsman Johann Rudolf Wyss (1782–1830), Swiss author and folklorist; son of Johann David (1763–1845), Swiss country priest and poet (1913–2002), Swiss journalist and writer Marcel Wyss (born 1986), Swiss road cyclist (1908–1977), Swiss journalist and photographer (born 1959), Swiss Swiss Roman Catholic "priestess" (not officially recognized) Orville Wyss (1912–1993), American microbiologist Paul Wyss (born 1928), Swiss politician and former ice hockey player (1844–1888), Swiss jurist and legal scholar (1932–2007), Swiss musician and composer Sophie Wyss (1897–1983), Swiss soprano Thomas Wyss (born 1966), Swiss professional football player Ursula Wyss (born 1973), Swiss economist and politician (born 1945), Swiss writer (born 1965), Swiss communication scientists Patrician families: See also Escher Wyss (Zürich), quarter of Zürich, Switzerland Escher Wyss & Cie., former engineering company in Switzerland Wyss Institute for Biologically Inspired Engineering, in the United States Wyss Center for Bio and Neuroengineering, in Switzerland , Swiss horticultural company WYSS, a radio station in Sault Sainte Marie, Michigan Notes Swiss-German surnames
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <report> <errors count="2"> <error> <message>PdfString. Characters are different. First characters difference is encountered at index 6. Expected: r (Courier Std). Found: w (Couriew Std). Total number of different characters: 1</message> <path> <base cmp="3 0 obj" out="3 0 obj"/> <dictKey>/FontFamily</dictKey> <offset>6</offset> </path> </error> <error> <message>PdfString. Characters are different. First characters difference is encountered at index 0. Expected: P (Page 1). Found: W (Wage 1). Total number of different characters: 1</message> <path> <base cmp="12 0 obj" out="12 0 obj"/> <dictKey>/T</dictKey> <offset>0</offset> </path> </error> </errors> </report> ```
```c /* $OpenBSD: hack.tty.c,v 1.16 2019/06/28 13:32:52 deraadt 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. */ /* * Amsterdam * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * - 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. * * - Neither the name of the Stichting Centrum voor Wiskunde en * Informatica, 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 COPYRIGHT HOLDERS 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 COPYRIGHT OWNER * 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. */ /* * 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. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED ``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 AUTHOR 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. */ /* hack.tty.c - version 1.0.3 */ /* With thanks to the people who sent code for SYSV - hpscdi!jon, arnold@ucsf-cgl, wcs@bo95b, cbcephus!pds and others. */ #include <stdio.h> #include <stdlib.h> #include <termios.h> #include "hack.h" static char erase_char, kill_char; static boolean settty_needed = FALSE; struct termios inittyb, curttyb; static void setctty(void); /* * Get initial state of terminal, * and switch off tab expansion if necessary. * Called by startup() in termcap.c and after returning from ! or ^Z */ void gettty(void) { if(tcgetattr(0, &inittyb) == -1) perror("Hack (gettty)"); curttyb = inittyb; erase_char = inittyb.c_cc[VERASE]; kill_char = inittyb.c_cc[VKILL]; getioctls(); /* do not expand tabs - they might be needed inside a cm sequence */ if(curttyb.c_oflag & OXTABS) { curttyb.c_oflag &= ~OXTABS; setctty(); } settty_needed = TRUE; } /* reset terminal to original state */ void settty(char *s) { clr_screen(); end_screen(); if(s) printf("%s", s); (void) fflush(stdout); if(tcsetattr(0, TCSADRAIN, &inittyb) == -1) perror("Hack (settty)"); flags.echo = (inittyb.c_lflag & ECHO) ? ON : OFF; flags.cbreak = (inittyb.c_lflag & ICANON) ? OFF : ON; setioctls(); } static void setctty(void) { if(tcsetattr(0, TCSADRAIN, &curttyb) == -1) perror("Hack (setctty)"); } void setftty(void) { int change = 0; flags.cbreak = ON; flags.echo = OFF; /* Should use (ECHO|CRMOD) here instead of ECHO */ if(curttyb.c_lflag & ECHO){ curttyb.c_lflag &= ~ECHO; change++; } if(curttyb.c_lflag & ICANON){ curttyb.c_lflag &= ~ICANON; /* be satisfied with one character; no timeout */ curttyb.c_cc[VMIN] = 1; curttyb.c_cc[VTIME] = 0; /* we need to be able to read ^Z */ curttyb.c_cc[VSUSP] = _POSIX_VDISABLE; change++; } if(change){ setctty(); } start_screen(); } /* fatal error */ void error(const char *s, ...) { va_list ap; if(settty_needed) settty(NULL); va_start(ap, s); vprintf(s, ap); va_end(ap); putchar('\n'); exit(1); } /* * Read a line closed with '\n' into the array char bufp[BUFSZ]. * (The '\n' is not stored. The string is closed with a '\0'.) * Reading can be interrupted by an escape ('\033') - now the * resulting string is "\033". */ void getlin(char *bufp) { char *obufp = bufp; int c; flags.toplin = 2; /* nonempty, no --More-- required */ for(;;) { (void) fflush(stdout); if((c = getchar()) == EOF) { *bufp = 0; return; } if(c == '\033') { *obufp = c; obufp[1] = 0; return; } if(c == erase_char || c == '\b') { if(bufp != obufp) { bufp--; putstr("\b \b"); /* putsym converts \b */ } else hackbell(); } else if(c == '\n') { *bufp = 0; return; } else if(' ' <= c && c < '\177') { /* avoid isprint() - some people don't have it ' ' is not always a printing char */ *bufp = c; bufp[1] = 0; putstr(bufp); if(bufp-obufp < BUFSZ-1 && bufp-obufp < COLNO) bufp++; } else if(c == kill_char || c == '\177') { /* Robert Viduya */ /* this test last - @ might be the kill_char */ while(bufp != obufp) { bufp--; putstr("\b \b"); } } else hackbell(); } } void getret(void) { cgetret(""); } void cgetret(char *s) { putsym('\n'); if(flags.standout) standoutbeg(); putstr("Hit "); putstr(flags.cbreak ? "space" : "return"); putstr(" to continue: "); if(flags.standout) standoutend(); xwaitforspace(s); } char morc; /* tell the outside world what char he used */ /* s: chars allowed besides space or return */ void xwaitforspace(char *s) { int c; morc = 0; while((c = readchar()) != '\n') { if(flags.cbreak) { if(c == ' ') break; if(s && strchr(s,c)) { morc = c; break; } hackbell(); } } } char * parse(void) { static char inputline[COLNO]; int foo; flags.move = 1; if(!Invisible) curs_on_u(); else home(); while((foo = readchar()) >= '0' && foo <= '9') multi = 10*multi+foo-'0'; if(multi) { multi--; save_cm = inputline; } inputline[0] = foo; inputline[1] = 0; if(foo == 'f' || foo == 'F'){ inputline[1] = getchar(); #ifdef QUEST if(inputline[1] == foo) inputline[2] = getchar(); else #endif /* QUEST */ inputline[2] = 0; } if(foo == 'm' || foo == 'M'){ inputline[1] = getchar(); inputline[2] = 0; } clrlin(); return(inputline); } char readchar(void) { int sym; (void) fflush(stdout); if((sym = getchar()) == EOF) end_of_input(); if(flags.toplin == 1) flags.toplin = 2; return((char) sym); } void end_of_input(void) { settty("End of input?\n"); clearlocks(); exit(0); } ```
Brodnax is a town in Brunswick and Mecklenburg counties in the U.S. state of Virginia. The population was 298 at the 2010 census. History Brodnax, Virginia was a stop on the Atlantic and Danville Railway. Due to Virginia Law, alcoholic spirits could not be sold on the Atlantic and Danville Railway train within 2 miles of Brodnax in 1896. The Southern Railway Company, which leased the A&D starting in 1899, made significant improvements to the passenger depot in Brodnax in 1904. Today, the Tobacco Heritage Trail runs through the town on the old Atlantic and Danville Railway. The Church Home for Aged, Infirm and Disabled Colored People was listed on the National Register of Historic Places in 2004. Geography Brodnax is located on the border of Brunswick and Mecklenburg counties at (36.703422, −78.031570). U.S. Route 58 passes through the town, leading west to South Hill and Interstate 85 and east to Emporia and Interstate 95. According to the United States Census Bureau, the town has a total area of , of which is land and , or 0.94%, is water. Demographics At the 2000 census there were 317 people, 122 households, and 80 families living in the town. The population density was 450.1 people per square mile (174.8/km). There were 139 housing units at an average density of 197.4 per square mile (76.7/km). The racial makeup of the town was 51.42% White and 48.58% African American. Hispanic or Latino of any race were 1.89%. Of the 122 households 27.9% had children under the age of 18 living with them, 47.5% were married couples living together, 16.4% had a female householder with no husband present, and 34.4% were non-families. 30.3% of households were one person and 18.0% were one person aged 65 or older. The average household size was 2.60 and the average family size was 3.29. The age distribution was 26.2% under the age of 18, 6.3% from 18 to 24, 27.8% from 25 to 44, 21.1% from 45 to 64, and 18.6% 65 or older. The median age was 39 years. For every 100 females, there were 86.5 males. For every 100 females age 18 and over, there were 82.8 males. The median household income was $24,706 and the median family income was $38,750. Males had a median income of $22,045 versus $19,250 for females. The per capita income for the town was $14,785. About 10.8% of families and 18.3% of the population were below the poverty line, including 30.5% of those under age 18 and 20.3% of those age 65 or over. References Towns in Virginia Towns in Brunswick County, Virginia Towns in Mecklenburg County, Virginia
```c /* 7zMethodID.c */ #include "7zMethodID.h" /* int AreMethodsEqual(CMethodID *a1, CMethodID *a2) { return (*a1 == *a2) ? 1 : 0; } */ ```
```smalltalk using System.Collections.Generic; using System.Windows; using System.Windows.Media; namespace Xamarin.Forms.Platform.WPF.Helpers { /// <summary> /// Helper methods for UI-related tasks. /// This class was obtained from Philip Sumi (a fellow WPF Disciples blog) /// path_to_url /// </summary> public static class TreeHelper { /// <summary> /// Finds a parent of a given item on the visual tree. /// </summary> /// <typeparam name="T">The type of the queried item.</typeparam> /// <param name="child">A direct or indirect child of the /// queried item.</param> /// <returns>The first parent item that matches the submitted /// type parameter. If not matching item can be found, a null /// reference is being returned.</returns> public static T TryFindParent<T>(this DependencyObject child) where T : DependencyObject { //get parent item DependencyObject parentObject = GetParentObject(child); //we've reached the end of the tree if (parentObject == null) return null; //check if the parent matches the type we're looking for T parent = parentObject as T; return parent ?? TryFindParent<T>(parentObject); } /// <summary> /// Finds a Child of a given item in the visual tree. /// </summary> /// <param name="parent">A direct parent of the queried item.</param> /// <typeparam name="T">The type of the queried item.</typeparam> /// <param name="childName">x:Name or Name of child. </param> /// <returns>The first parent item that matches the submitted type parameter. /// If not matching item can be found, /// a null parent is being returned.</returns> public static T FindChild<T>(this DependencyObject parent, string childName) where T : DependencyObject { // Confirm parent and childName are valid. if (parent == null) return null; T foundChild = null; int childrenCount = VisualTreeHelper.GetChildrenCount(parent); for (int i = 0; i < childrenCount; i++) { var child = VisualTreeHelper.GetChild(parent, i); // If the child is not of the request child type child T childType = child as T; if (childType == null) { // recursively drill down the tree foundChild = FindChild<T>(child, childName); // If the child is found, break so we do not overwrite the found child. if (foundChild != null) break; } else if (!string.IsNullOrEmpty(childName)) { var frameworkElement = child as FrameworkElement; // If the child's name is set for search if (frameworkElement != null && frameworkElement.Name == childName) { // if the child's name is of the request name foundChild = (T)child; break; } } else { // child element found. foundChild = (T)child; break; } } return foundChild; } /// <summary> /// This method is an alternative to WPF's /// <see cref="VisualTreeHelper.GetParent"/> method, which also /// supports content elements. Keep in mind that for content element, /// this method falls back to the logical tree of the element! /// </summary> /// <param name="child">The item to be processed.</param> /// <returns>The submitted item's parent, if available. Otherwise /// null.</returns> public static DependencyObject GetParentObject(this DependencyObject child) { if (child == null) return null; //handle content elements separately var contentElement = child as ContentElement; if (contentElement != null) { DependencyObject parent = ContentOperations.GetParent(contentElement); if (parent != null) return parent; var fce = contentElement as FrameworkContentElement; return fce != null ? fce.Parent : null; } //also try searching for parent in framework elements (such as DockPanel, etc) var frameworkElement = child as FrameworkElement; if (frameworkElement != null) { DependencyObject parent = frameworkElement.Parent; if (parent != null) return parent; } //if it's not a ContentElement/FrameworkElement, rely on VisualTreeHelper return VisualTreeHelper.GetParent(child); } /// <summary> /// Analyzes both visual and logical tree in order to find all elements of a given /// type that are descendants of the <paramref name="source"/> item. /// </summary> /// <typeparam name="T">The type of the queried items.</typeparam> /// <param name="source">The root element that marks the source of the search. If the /// source is already of the requested type, it will not be included in the result.</param> /// <param name="forceUsingTheVisualTreeHelper">Sometimes it's better to search in the VisualTree (e.g. in tests)</param> /// <returns>All descendants of <paramref name="source"/> that match the requested type.</returns> public static IEnumerable<T> FindChildren<T>(this DependencyObject source, bool forceUsingTheVisualTreeHelper = false) where T : DependencyObject { if (source != null) { var childs = GetChildObjects(source, forceUsingTheVisualTreeHelper); foreach (DependencyObject child in childs) { //analyze if children match the requested type if (child != null && child is T) { yield return (T)child; } //recurse tree foreach (T descendant in FindChildren<T>(child, forceUsingTheVisualTreeHelper)) { yield return descendant; } } } } /// <summary> /// This method is an alternative to WPF's /// <see cref="VisualTreeHelper.GetChild"/> method, which also /// supports content elements. Keep in mind that for content elements, /// this method falls back to the logical tree of the element. /// </summary> /// <param name="parent">The item to be processed.</param> /// <param name="forceUsingTheVisualTreeHelper">Sometimes it's better to search in the VisualTree (e.g. in tests)</param> /// <returns>The submitted item's child elements, if available.</returns> public static IEnumerable<DependencyObject> GetChildObjects(this DependencyObject parent, bool forceUsingTheVisualTreeHelper = false) { if (parent == null) yield break; if (!forceUsingTheVisualTreeHelper && (parent is ContentElement || parent is FrameworkElement)) { //use the logical tree for content / framework elements foreach (object obj in LogicalTreeHelper.GetChildren(parent)) { var depObj = obj as DependencyObject; if (depObj != null) yield return (DependencyObject)obj; } } else { //use the visual tree per default int count = VisualTreeHelper.GetChildrenCount(parent); for (int i = 0; i < count; i++) { yield return VisualTreeHelper.GetChild(parent, i); } } } /// <summary> /// Tries to locate a given item within the visual tree, /// starting with the dependency object at a given position. /// </summary> /// <typeparam name="T">The type of the element to be found /// on the visual tree of the element at the given location.</typeparam> /// <param name="reference">The main element which is used to perform /// hit testing.</param> /// <param name="point">The position to be evaluated on the origin.</param> public static T TryFindFromPoint<T>(UIElement reference, System.Windows.Point point) where T : DependencyObject { var element = reference.InputHitTest(point) as DependencyObject; if (element == null) return null; if (element is T) return (T)element; return TryFindParent<T>(element); } public static IEnumerable<T> FindVisualChildren<T>(this DependencyObject parent) where T : DependencyObject { int childrenCount = VisualTreeHelper.GetChildrenCount(parent); for (int i = 0; i < childrenCount; i++) { var child = VisualTreeHelper.GetChild(parent, i); if (child is T childType) { yield return (T)child; } foreach (var other in FindVisualChildren<T>(child)) { yield return other; } } } public static T FindVisualChild<T>(this DependencyObject parent) where T : Visual { var child = default(T); int numVisuals = VisualTreeHelper.GetChildrenCount(parent); for (var i = 0; i < numVisuals; i++) { var v = (Visual)VisualTreeHelper.GetChild(parent, i); child = v as T ?? FindVisualChild<T>(v); if (child != null) { break; } } return child; } } } ```
Pierrot Vervroegen (born in Belgium) was a Belgian Grand Prix motorcycle road racer. He was a regular front runner in the Belgian motorcycle Championships and won the national 250cc title in 1959 riding a MOTOBI Catria Sport. In 1961 he won the first round of the FIM's 50cc Coupe d'Europe riding an Itom. He entered four world championship Grand Prix's in 1955, 1960, 1961 and 1962, and gained a single World Championship point in the 1962 250cc World Championship. References 125cc World Championship riders 250cc World Championship riders Belgian motorcycle racers Living people Year of birth missing (living people)
```scss .footer { -webkit-app-region: drag; bottom: 3px; font-weight: normal; height: 21px; padding: 0 11px; position: fixed; width: 100%; z-index: 9; font-size: 12px; b { font-weight: 500; } i { font-size: 16px; } .loader { width: 7px; display: inline-block; line-height: 2px; i { width: 7px; min-width: 10px; position: relative; text-align: center; font-size: 5px; top: -1px; color: $color-muted; &.available { color: $color-green; } &.unavailable { color: $color-error; } } &.loading { i { animation: toggleOpacity .4s linear infinite; &:first-child { animation: toggleOpacityInverse .25s linear infinite; } } } } span { &.badge-version { small { font-size: 10px; } i { font-size: 11px; color: $color-positive; } } &.npm-status { i { &.checking { color: $color-muted; } &.unavailable { color: $color-error; } } } } button { margin-left: 6px; margin-right: 5px; font-size: 11.5px; line-height: 12px; padding: 0 2px 0 0; height: 19px; i { color: $color-positive; position: relative; top: -1px; } } } ```
The Ashland Academy of Art was an art school located in Ashland, Oregon, United States. The Ashland Academy of Art was a classically based and independent school. The academy's program was mainly based on the Russian Academic System. This system followed the artistic achievements of the Renaissance, developed and practiced by European academies until the end of the 19th century. The Ashland Academy's curriculum combined academic art education with the latest advancements in psychology of visual perception. The academy's drawing curriculum was rooted in the Construction Method. This analytical method emphasizes a sculptural approach to form, by studying comparative measurements, structure, planes, function, and perspective. History Preserving the unique academic system of the classical European academies, Semyon Bilmes, founded the Bilmes Art School in 1990 in Medford, Oregon. In 2003, Semyon Bilmes founded The Ashland Academy of Art. In 2004, the Ashland Academy was listed as one of Art Renewal Center approved teliers. The school was located in the former Temple Emek Shalom synagog. In late 2009, the Bilmes Family announced that the school would close in October 2010, with the faculty and some students relocating immediately to another facility in Portland, where the school's classes would continue, uninterrupted. In February 2010, Semyon Bilmes announced that instead of moving to Portland, he would relocate to Hawaii and take ten students with him. See also Atelier Method Classical Realism Russian Academic System References External links The Ashland Academy of Art (official website) Art schools in Oregon American artist groups and collectives Education in Jackson County, Oregon Buildings and structures in Ashland, Oregon Educational institutions established in 2003 2003 establishments in Oregon Arts organizations established in 2003
Crosby is a small village in the county of Cumbria, historically within Cumberland, near the Lake District National Park. It is north-east of Maryport + south-west of Carlisle, on the A596 road. In 2020 the built-up area had an estimated population of 791. In 1870-72 the township had a population of 506. The local primary school is Crosscanonby St. John's Church of England School. The only remaining public house in the village is The Stag Inn. Governance The village is in the parliamentary constituency of Workington. In the December 2019 general election, the Tory candidate for Workington, Mark Jenkinson, was elected the MP, overturning a 9.4 per cent Labour majority from the 2017 election to eject shadow environment secretary Sue Hayman by a margin of 4,136 votes. Until the December 2019 general election, the Labour Party had won the seat in every general election since 1979.The Conservative Party had only been elected once in Workington since World War II, at the 1976 by-election. Historically Crosby has been a Labour supporting area. Before Brexit for the European Parliament its residents voted to elect MEP's for the North West England constituency. For Local Government purposes it is in the Cumberland unitiary authority area. The village also has its own Parish Council; Crosscanonby Parish Council. See also List of places in Cumbria References External links Cumbria County History Trust: Crosscanonby (nb: provisional research only – see Talk page) Villages in Cumbria Crosscanonby
Anka Wachana (Quechua anka eagle, wacha birth, to give birth, -na a suffix, "where the eagle is born", Hispanicized spelling Ancahuachana), Anka Wachanan or Ankap Wachanan (-n, -p suffixes, Hispanicized Ancahuachanan, Ancapuachana, Ancapuachanan) may refer to: Anka Wachana (Chumbivilcas), a mountain in the Chumbivilcas Province, Cusco Region, Peru Anka Wachana (Quispicanchi), a mountain in the districts of Camanti and Marcapata, Quispicanchi Province, Cusco Region, Peru Anka Wachanan, a mountain in the Ocongate District, Quispicanchi Province, Cusco Region, Peru Ankap Wachanan, a lake in the Junín Region, Peru
```smalltalk using System; using System.Diagnostics.CodeAnalysis; using Android.App; using Android.Content.Res; using Android.Graphics; using Android.Graphics.Drawables; using Android.Runtime; using NUnit.Framework; namespace Android.GraphicsTests { // path_to_url [TestFixture] public class NinePatchTests { object[] NinePatchDrawables = { new object[] { Xamarin.Android.RuntimeTests.Resource.Drawable.image, "image" // Drawable from App project. }, new object[] { Mono.Android_Test.Library.Resource.Drawable.tile, "tile" // Drawable from Library project. } }; [Test, TestCaseSource (nameof (NinePatchDrawables))] [DynamicDependency (DynamicallyAccessedMemberTypes.All, typeof (NinePatchDrawable))] public void DrawableFromRes_ShouldBeTypeNinePatchDrawable (int resId, string name) { var d = Application.Context.Resources.GetDrawable (resId); Assert.IsNotNull (d, $"An image should have been retrieved from resource `{name}`."); Assert.IsNotNull (d as NinePatchDrawable, $"The drawable created from resource `{name}` should be a NinePatchDrawable."); } [Test, TestCaseSource (nameof (NinePatchDrawables))] [DynamicDependency (DynamicallyAccessedMemberTypes.All, typeof (NinePatchDrawable))] public void DrawableFromResStream_ShouldBeTypeNinePatchDrawable (int resId, string name) { var value = new Android.Util.TypedValue (); InputStreamInvoker si = GetResourceStream (resId, value); var d = Drawable.CreateFromResourceStream (Application.Context.Resources, value, si, value.String.ToString (), null); Assert.IsNotNull (d, $"An image should have been retrieved from resource `{name}`."); Assert.IsNotNull (d as NinePatchDrawable, $"The drawable created from resource `{name}` should be a NinePatchDrawable."); } [Test, TestCaseSource (nameof (NinePatchDrawables))] public void BitmapFromDecodeRes_ShouldContainNinePatchChunk (int resId, string name) { Bitmap bm = BitmapFactory.DecodeResource (Application.Context.Resources, resId); byte[] chunk = bm.GetNinePatchChunk (); Assert.IsTrue (NinePatch.IsNinePatchChunk (chunk), $"Bitmap decoded from resource `{name}` did not contain a valid NinePatch chunk."); } [Test, TestCaseSource (nameof (NinePatchDrawables))] public void BitmapFromDecodeResStream_ShouldContainNinePatchChunk (int resId, string name) { var value = new Android.Util.TypedValue(); InputStreamInvoker si = GetResourceStream (resId, value); Bitmap bm = BitmapFactory.DecodeResourceStream (Application.Context.Resources, value, si, null, null); byte[] chunk = bm.GetNinePatchChunk (); Assert.IsTrue(NinePatch.IsNinePatchChunk (chunk), $"Bitmap decoded from resource stream with id `{name}` did not contain a valid NinePatch chunk."); } InputStreamInvoker GetResourceStream (int resId, Android.Util.TypedValue outValue) { Application.Context.Resources.GetValue (resId, outValue, true); IntPtr sp = OpenNonAsset(Application.Context.Resources.Assets, outValue.AssetCookie, outValue.String.ToString (), 2 /* AssetManager.ACCESS_STREAMING */); Java.IO.InputStream s = Java.Lang.Object.GetObject<Java.IO.InputStream> (sp, JniHandleOwnership.TransferLocalRef); return new InputStreamInvoker (s); } IntPtr AssetManager_openNonAsset; IntPtr OpenNonAsset (AssetManager manager, int cookie, string fileName, int accessMode) { if (AssetManager_openNonAsset == IntPtr.Zero) AssetManager_openNonAsset = JNIEnv.GetMethodID (manager.Class.Handle, "openNonAsset", "(ILjava/lang/String;I)Ljava/io/InputStream;"); using (var f = new Java.Lang.String (fileName)) { return JNIEnv.CallObjectMethod (manager.Handle, AssetManager_openNonAsset, new JValue (cookie), new JValue (f), new JValue (accessMode)); } } } } ```
Euastacus yigara is a species of southern crawfish in the family Parastacidae. The IUCN conservation status of Euastacus yigara is "CR", critically endangered. The species faces an extremely high risk of extinction in the immediate future. The IUCN status was reviewed in 2010. References Further reading Euastacus Articles created by Qbugbot Crustaceans described in 1993
```xml import React from "react"; import { useSelector } from "react-redux"; import { SidebarToggleButton } from "./components/SidebarToggleButton/SidebarToggleButton"; import { SecondarySidebarItem } from "./components/SecondarySidebarItem/SecondarySidebarItem"; import { getIsSecondarySidebarCollapsed } from "store/selectors"; import "./SecondarySidebar.scss"; import { m, AnimatePresence } from "framer-motion"; export interface SecondarySidebarProps { items: { title: string; path: string; icon: React.ReactNode; }[]; } const SecondarySidebar: React.FC<SecondarySidebarProps> = ({ items }) => { // Move this to local state once button is also moved to this component const isSecondarySidebarCollapsed = useSelector(getIsSecondarySidebarCollapsed); return ( <AnimatePresence> {isSecondarySidebarCollapsed ? null : ( <m.div initial={{ width: "217px" }} // TODO: Change this to 0 once shared and templates use same container animate={{ width: "217px" }} exit={{ width: "0" }} transition={{ ease: "easeInOut", duration: 0.2, }} className="secondary-sidebar-container" > <SidebarToggleButton /> <ul> {items.map(({ path, title, icon }) => { return ( <li key={title}> <SecondarySidebarItem icon={icon} path={path} title={title} /> </li> ); })} </ul> </m.div> )} </AnimatePresence> ); }; export default SecondarySidebar; ```
Tambar () is an offshore oil field located in the southern Norwegian section of North Sea along with Ula and Gyda fields making up the UGT area, usually attributed to DONG Energy's main areas of exploration and production activity. The Ula field was discovered in 1983 and came online in 2001. Tambar was discovered in 1983 and became operational in July 2001. It contains confirmed 46.9 million m3 of oil. Ownership Aker BP is the operator of the field with 55% of interest in the project. DNO holds 45% of interest. Production The sea depth at Tambar is approximately . The main reservoir stands at in the Upper Jurassic Ula Formation. Tambar has 4 production wells and 6 slots. The field has one unmanned wellhead facility without the processing equipment. It is remotely controlled from the facility at the Ula field which is located southeast of Tambar. However, the facility does have conditions to accommodate 12 people. Current production at Tambar field is . Gas injection is used at Tambar and the produced oil is pumped to Ula facilities via Tambar-Ula pipeline which came online in 2007 and is then transported by a pipeline to Ekofisk oil field and on to Teesside for refining. The gas produced at Tambar field is injected into Ula field to increase oil production. The field is expected to produce until 2021. Tambar WHP Platform Tambar WHP Platform was designed by Aker Solutions Engineering in 2000-2001. Tambar Øst Tambar Øst (East) is located just a few kilometers away from Tambar. It was discovered in 2007 and lies deep in the Late Jurassic Formation. It has been developed with a production well from Tambar's main facility. Production started on October 2, 2007. The produced oil is pumped to Tambar and then onto Ula field. Ownership Tambar Øst is also operated by BP. BP holds 46.2%, while DONG Energyholds 43.24%, Talisman Energy - 9.76%, Norske AEDC AS (NAEDC) - 0.8%. See also Ula oil field Gyda oil field Oselvar oil field Ekofisk oil field Norpipe North Sea oil Economy of Norway References External links BP official website Image of the Tambar's unmanned remotely controlled facility from Offshore Magazine BP oil and gas fields Former Ørsted (company) oil and gas fields North Sea oil fields Oil fields in Norway
```go /* See path_to_url */ package base import ( "testing" "github.com/openark/golib/log" test "github.com/openark/golib/tests" ) func init() { log.SetLevel(log.ERROR) } func TestParseLoadMap(t *testing.T) { { loadList := "" m, err := ParseLoadMap(loadList) test.S(t).ExpectNil(err) test.S(t).ExpectEquals(len(m), 0) } { loadList := "threads_running=20,threads_connected=10" m, err := ParseLoadMap(loadList) test.S(t).ExpectNil(err) test.S(t).ExpectEquals(len(m), 2) test.S(t).ExpectEquals(m["threads_running"], int64(20)) test.S(t).ExpectEquals(m["threads_connected"], int64(10)) } { loadList := "threads_running=20=30,threads_connected=10" _, err := ParseLoadMap(loadList) test.S(t).ExpectNotNil(err) } { loadList := "threads_running=20,threads_connected" _, err := ParseLoadMap(loadList) test.S(t).ExpectNotNil(err) } } func TestString(t *testing.T) { { m, _ := ParseLoadMap("") s := m.String() test.S(t).ExpectEquals(s, "") } { loadList := "threads_running=20,threads_connected=10" m, _ := ParseLoadMap(loadList) s := m.String() test.S(t).ExpectEquals(s, "threads_connected=10,threads_running=20") } } ```
Wilhelmine of Prussia (Friederike Luise Wilhelmine; 18 November 1774 – 12 October 1837) was the first Queen consort of the Netherlands as the first wife of King William I of the Netherlands. She had a modest public role but acted as a patron of the arts. Biography Princess Wilhelmine was born in Potsdam. She was the fourth child of eight born to King Frederick William II of Prussia and Queen Frederica Louisa. Her upbringing was dominated by the strict regime of her great-uncle, Frederick the Great, but in general very little is known about her youth. She was given a conventional education for a girl of her time and tutored in needlework and the arts, and described as pretty and sweet. Marriage On 1 October 1791, she married her cousin William of the Netherlands, son of Stadtholder William V, Prince of Orange and Princess Wilhelmina of Prussia, in Berlin. The marriage was arranged as a part of an alliance between the House of Orange and Prussia, but it was also, in fact, a love match and became a happy one. The young couple went to live at Noordeinde Palace in The Hague. In 1795, the French invaded the Dutch Republic, and the princely family went into exile. They first stayed in England, and from 1796 in Berlin. In Berlin, the couple lived with her birth family in royal state in the "Niederländischen Palais" ('Dutch Palace'). In 1806, Wilhelmine was again forced to flee from the French army, and settled under difficult economic circumstances in Poland. Wilhelmine returned to The Hague at the beginning of 1814. Queen Wilhelmine became Queen of the Netherlands in 1815. At the time, the Netherlands included the present-day country of Belgium. The court divided their time between the two and divided their winters between The Hague and Brussels, and their summers between Het Loo and Laeken. Wilhelmine personally visited Berlin once a year until her death, where she continued to live in the "Niederländischen Palast" during her visit. She participated in royal representation during her stay in Berlin, as well as attending to her estates in Silesia. Queen Wilhelmine was modest and stayed in the background, and she did not play any dominant role as queen. She was beloved by her family but was not a popular queen, and was criticized in The Netherlands for isolating the royal family, and later Belgium for her German fashion. Beginning in 1820, her health worsened, and after 1829, she was rarely seen in public, though she continued her trips to Berlin and visiting relatives. She was interested in painting, attended exhibitions, and helped to protect museums and support artists. She was herself a student of art and regarded as a talented dilettante, ultimately being inducted as an honorary member to the Royal Academy of Fine Arts in Amsterdam. She was a student of Friedrich Bury, financed an Italian study trip for Bonaventura Genelli, and supported the renovation of the royal museum. She died at Noordeinde Palace in The Hague in 1837, aged 62, and is entombed in the New Church in Delft. Issue Ancestry References Wilhelmina van Pruisen (in Dutch) External links Royal House of the Netherlands and Grand-Ducal House of Luxembourg |- |- 1774 births 1837 deaths 18th-century German people 19th-century German people 18th-century German women 19th-century German women Queens consort of the Netherlands Grand Ducal Consorts of Luxembourg Princesses of Orange Dutch royalty House of Hohenzollern House of Orange-Nassau Prussian princesses People from Potsdam Burials in the Royal Crypt at Nieuwe Kerk, Delft William I of the Netherlands Daughters of kings Women who experienced pregnancy loss Children of Frederick William II of Prussia German patrons of the arts
House is a steamboat term referring to the cabin structure of a steamboat. Generally the house includes every structure on steamboat built above the first deck, which is usually called the freight deck or the engine deck. References Steamboats
were officials of the Tokugawa shogunate with responsibility for holding and defending Sunpu Castle (Sunpu-jō), also called Shizuoka Castle. Appointments to the prominent office of castle warden at Sunpu Domain were exclusively fudai daimyōs. Conventional interpretations have construed this Japanese titles as "commissioner" or "overseer" or "governor". List of Sunpu jōdai Toki Tomoaki, 1859–1863. See also Bugyō Notes References Beasley, William G. (1955). Select Documents on Japanese Foreign Policy, 1853–1868. London: Oxford University Press. [reprinted by RoutledgeCurzon, London, 2001. (cloth)] Brinkley, Frank et al.. (1915). A History of the Japanese People from the Earliest Times to the End of the Meiji Era. New York: Encyclopædia Britannica. Government of feudal Japan Officials of the Tokugawa shogunate
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package config import ( "context" ) // Value is a single config value. type Value struct { value string secure bool object bool } func NewSecureValue(v string) Value { return Value{value: v, secure: true} } func NewValue(v string) Value { return Value{value: v, secure: false} } func NewSecureObjectValue(v string) Value { return Value{value: v, secure: true, object: true} } func NewObjectValue(v string) Value { return Value{value: v, secure: false, object: true} } // Value fetches the value of this configuration entry, using decrypter to decrypt if necessary. If the value // is a secret and decrypter is nil, or if decryption fails for any reason, a non-nil error is returned. func (c Value) Value(decrypter Decrypter) (string, error) { if decrypter == NopDecrypter { return c.value, nil } obj, err := c.unmarshalObject() if err != nil { return "", err } plaintext, err := obj.Decrypt(context.TODO(), decrypter) if err != nil { return "", err } return plaintext.marshalText() } func (c Value) Decrypt(ctx context.Context, decrypter Decrypter) (Plaintext, error) { obj, err := c.unmarshalObject() if err != nil { return Plaintext{}, err } return obj.Decrypt(ctx, decrypter) } func (c Value) Merge(base Value) (Value, error) { obj, err := c.unmarshalObject() if err != nil { return Value{}, err } baseObj, err := base.unmarshalObject() if err != nil { return Value{}, err } return obj.Merge(baseObj).marshalValue() } func (c Value) Copy(decrypter Decrypter, encrypter Encrypter) (Value, error) { obj, err := c.unmarshalObject() if err != nil { return Value{}, err } plaintext, err := obj.Decrypt(context.TODO(), decrypter) if err != nil { return Value{}, err } return plaintext.Encrypt(context.TODO(), encrypter) } func (c Value) SecureValues(decrypter Decrypter) ([]string, error) { obj, err := c.unmarshalObject() if err != nil { return nil, err } return obj.SecureValues(decrypter) } func (c Value) Secure() bool { return c.secure } func (c Value) Object() bool { return c.object } func (c Value) unmarshalObject() (object, error) { var obj object err := obj.UnmarshalString(c.value, c.secure, c.object) return obj, err } // ToObject returns the string value (if not an object), or the unmarshalled JSON object (if an object). func (c Value) ToObject() (any, error) { obj, err := c.unmarshalObject() if err != nil { return nil, err } return obj.marshalObjectValue(true), nil } func (c Value) MarshalJSON() ([]byte, error) { obj, err := c.unmarshalObject() if err != nil { return nil, err } return obj.MarshalJSON() } func (c *Value) UnmarshalJSON(b []byte) (err error) { var obj object if err = obj.UnmarshalJSON(b); err != nil { return err } c.value, c.secure, c.object, err = obj.MarshalString() return err } func (c Value) MarshalYAML() (interface{}, error) { obj, err := c.unmarshalObject() if err != nil { return "", err } return obj.MarshalYAML() } func (c *Value) UnmarshalYAML(unmarshal func(interface{}) error) (err error) { var obj object if err = obj.UnmarshalYAML(unmarshal); err != nil { return err } c.value, c.secure, c.object, err = obj.MarshalString() return err } ```
```objective-c // // JSPatchHelper.h // MobileProject // // Created by wujunyang on 16/6/13. // #import <Foundation/Foundation.h> #import <JPEngine.h> @interface JSPatchHelper : NSObject + (instancetype)sharedInstance; /** * @author wujunyang, 16-06-13 14:06:13 * * @brief JSPatch */ +(void)HSDevaluateScript; /** * @author wujunyang, 16-06-13 14:06:21 * * @brief JS ** JSON JSURL** */ +(void)loadJSPatch; @end ```
```java /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ package io.camunda.zeebe.backup.common; import io.camunda.zeebe.backup.api.Backup; import io.camunda.zeebe.backup.api.BackupDescriptor; import io.camunda.zeebe.backup.api.BackupIdentifier; import io.camunda.zeebe.backup.api.NamedFileSet; public record BackupImpl( BackupIdentifier id, BackupDescriptor descriptor, NamedFileSet snapshot, NamedFileSet segments) implements Backup {} ```
```javascript import CommandHistoryInternalBase from '../base/command-history-internal-base'; export class DeleteLog extends CommandHistoryInternalBase { apply( args ) { if ( args.id ) { this.history.deleteItem( args.id ); } } } export default DeleteLog; ```
Aalesunds Socialdemokrat (The Ålesund Social Democrat) was a newspaper published in Ålesund, Norway from 1908 to 1910. The newspaper was a successor of another paper, called Nybrot. The editorial team consisted of Julius Berge and Elias Røsvik. References Defunct newspapers published in Norway Norwegian-language newspapers Mass media in Møre og Romsdal Ålesund Newspapers established in 1908 Publications disestablished in 1910 1908 establishments in Norway 1910 disestablishments in Norway
Bombus chinensis is a species of cuckoo bumblebee. It is one the endemic pollinators of China, where its populations have been decreasing. References Bumblebees Insects described in 1890
```javascript x + y + z ```
One Show may refer to: The One Club, an American non-profit organization The One Show, a British television newsmagazine programme
```javascript 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _rejectLimit = require('./rejectLimit'); var _rejectLimit2 = _interopRequireDefault(_rejectLimit); var _doLimit = require('./internal/doLimit'); var _doLimit2 = _interopRequireDefault(_doLimit); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time. * * @name rejectSeries * @static * @memberOf module:Collections * @method * @see [async.reject]{@link module:Collections.reject} * @category Collection * @param {Array|Iterable|Object} coll - A collection to iterate over. * @param {Function} iteratee - An async truth test to apply to each item in * `coll`. * The should complete with a boolean value as its `result`. * Invoked with (item, callback). * @param {Function} [callback] - A callback which is called after all the * `iteratee` functions have finished. Invoked with (err, results). */ exports.default = (0, _doLimit2.default)(_rejectLimit2.default, 1); module.exports = exports['default']; ```
Christian Kühn (born 9 April 1979) is a German politician of Alliance 90/The Greens who has been serving as a member of the Bundestag from the state of Baden-Württemberg since 2013. In addition to his parliamentary work, he has been a Parliamentary State Secretary in the Federal Ministry for the Environment, Nature Conservation, Nuclear Safety and Consumer Protection in the coalition government of Chancellor Olaf Scholz since 2021. Early life and career Kühn grew up in Göppingen, where he completed his high school diploma and community service and then studied political science and sociology at the University of Tübingen. After graduating in 2009, he worked as a staff member in the Dean's office of the Faculty of Economic Sciences. Political career From 2009 until 2013, Kühn served as co-chair (alongside Silke Krebs) of the Green Party in Baden Württemberg. In the negotiations on a coalition government following the 2011 state elections in Baden-Württemberg, he led the Green Party's delegation alongside Krebs and Winfried Kretschmann in the Bundestag. Kühn first became a member of the 18th Bundestag in the 2013 federal elections, representing Tübingen. In parliament, he was a member of the Committee on Construction, Housing, Urban Development and Municipalities and served as his parliamentary group's spokesman on construction and housing policy. In addition to his committee assignments, he is part of the German-Mexican Parliamentary Friendship Group. Other activities Federal Company for Radioactive Waste Disposal (BGE), Ex-Officio Chair of the Supervisory Board (since 2022) German Industry Initiative for Energy Efficiency (DENEFF), Member of the Parliamentary Advisory Board References External links Bundestag biography 1979 births Living people Members of the Bundestag for Baden-Württemberg Members of the Bundestag 2021–2025 Members of the Bundestag 2017–2021 Members of the Bundestag 2013–2017 Members of the Bundestag for Alliance 90/The Greens
```javascript define("ace/snippets/mushcode",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText =undefined; exports.scope = "mushcode"; }); ```
```c++ /*============================================================================= file LICENSE_1_0.txt or copy at path_to_url ==============================================================================*/ #if !defined(FUSION_IS_SEQUENCE_05052005_1002) #define FUSION_IS_SEQUENCE_05052005_1002 #include <boost/fusion/support/sequence_base.hpp> #include <boost/fusion/support/tag_of.hpp> #include <boost/mpl/is_sequence.hpp> #include <boost/mpl/or.hpp> #include <boost/mpl/bool.hpp> #include <boost/type_traits/is_convertible.hpp> #include <boost/type_traits/is_same.hpp> namespace boost { namespace fusion { // Special tags: struct non_fusion_tag; struct boost_tuple_tag; // boost::tuples::tuple tag struct boost_array_tag; // boost::array tag struct mpl_sequence_tag; // mpl sequence tag struct std_pair_tag; // std::pair tag namespace extension { template <typename T> struct is_sequence_impl { template <typename Sequence> struct apply : is_convertible<Sequence, detail::from_sequence_convertible_type> {}; }; template <> struct is_sequence_impl<non_fusion_tag> { template <typename T> struct apply : mpl::false_ {}; }; template <> struct is_sequence_impl<boost_tuple_tag>; template <> struct is_sequence_impl<boost_array_tag>; template <> struct is_sequence_impl<mpl_sequence_tag>; template <> struct is_sequence_impl<std_pair_tag>; } namespace traits { template <typename T> struct is_sequence : mpl::bool_< (bool)extension::is_sequence_impl< typename fusion::detail::tag_of<T>::type >::template apply<T>::type::value > {}; template <typename Sequence, typename Enable = void> struct is_native_fusion_sequence : is_convertible<Sequence, detail::from_sequence_convertible_type> {}; } }} #endif ```
```javascript import DropdownItem from '../dropdown/dropdown-item.vue'; export default DropdownItem; ```