text
stringlengths
1
22.8M
Sarbinowo may refer to the following places in Poland: Sarbinowo, Gostyń County in Greater Poland Voivodeship (west-central Poland) Sarbinowo, Poznań County in Greater Poland Voivodeship (west-central Poland) Sarbinowo, Kuyavian-Pomeranian Voivodeship (north-central Poland) Sarbinowo, Lubusz Voivodeship (west Poland) Sarbinowo, Gmina Dębno in West Pomeranian Voivodeship (north-west Poland) Sarbinowo, Koszalin County in West Pomeranian Voivodeship (north-west Poland), on the Baltic coast
Salman Farooq (born 26 November 1981) is an Emarati cricketer who played for the United Arab Emirates national cricket team. He made his One Day International debut for the United Arab Emirates against Afghanistan on 30 November 2014. Farooq was a part of the UAE squad for the Asia Cup in 2008 held in Pakistan and named in the squad for the 2015 ICC Cricket World Cup. He has also represented the UAE under-19 cricket team in the Youth Asia Cup. References External links 1981 births Living people Emirati cricketers United Arab Emirates One Day International cricketers Cricketers from Karachi Pakistani emigrants to the United Arab Emirates Pakistani expatriate sportspeople in the United Arab Emirates
The Kymco People is a two-wheeled scooter from the Taiwanese manufacturer Kymco. History Designed by Massimo Zaniboni, director of italian style centre Arkema Studio, the People was Kymco's first compact scooter with "high wheels" intended primarily for the European market competing with Aprilia Scarabeo, Piaggio Liberty, Malaguti Ciak and Honda SH. It was presented at the Munich Intermot in 1998 and from the first months of 1999 it was put on sale in the main European markets. It is equipped with three engines: a two-stroke with 50 cm³ of displacement or a four-stroke engine of 125 cm³ and 150 cm³. The cooling system is air-forced and has an electric start and kick starter. The colors available are: black, silver, anthracite, blue, gray, orange and red. In 2008, the “Anniversary” version was presented to celebrate the ten years of the model. In 2012 Kymco presented the successor, the People One, but the old People will remain in production until 2017 as it continued to enjoy good commercial success especially in Europe. Kymco People 250 Presented in prototype form at the Munich show in 2001 and subsequently at the EICMA show, the People 250 went into production in the early months of 2002 and positioned itself as the top model of the People range. Characterized by a specific "vintage" design, it has a specific chassis and frame to support the new engine. The frame is made of steel tubes and has a fork with 37 mm diameter stems with an excursion of 115 mm, at the rear there is a pair of adjustable shock absorbers in spring preload and 105 mm excursion, the tires are 110/70 front and 140/70 rear with 16” 5-spoke wheels. The engine is a liquid-cooled, single-cylinder 251 cm³ four-stroke engine that delivers 19.6 hp at 7250 rpm and 19.6 Nm of maximum torque at 6500 rpm. It is approved Euro 2. In the spring of 2004 a slight restyling was presented which brought with it a new grille with chromed slats, a new saddle with better padding, the radiator air vents were redesigned and now adjustable and the set-up was improved by adopting new steering bearings and a different calibration. fork. The 250 went out of production in 2008. Kymco People range Othe year the People range has been enriched with numerous models: in addition to the People base, in 2005 the People S was presented, a more refined and expensive scooter. In 2012 the People One went into production, direct heir to the People base launched in 1998. The People One is the cheapest model of the range. In 2010, the People GT was launched, a more expensive top-of-the-range model positioned higher than the People S. People S (from 2005) People GT (from 2010) People One (from 2012) References Motor scooters People
Rumor Had It was the first EP released by A Balladeer. It was released by the band itself, not being signed by a record label. It was re-issued in December 2007. Track listing (All songs written by Marinus de Goederen unless otherwise noted) "I Saw You Hiding From The Rain Today" - 1:05 "Rumor Had It" - 3:52 "They've Shut Down Marks & Spencer" - 3:49 "Left-Over Tears, Lost" - 2:30 2004 EPs
Kelso Township is one of fourteen townships in Dearborn County, Indiana, United States. As of the 2010 census, its population was 2,341 and it contained 919 housing units. History Kelso Township is one of the original townships of Dearborn County that also included what is now Jackson Township. Kelso Township was organized in the November 1826 session of the County Supervisors. Kelso Township was named for John Kelso, an Irish immigrant and pioneer settler. In 1832 Jackson Township was created from the western portion of Kelso Township. Geography According to the 2010 census, the township has a total area of , of which (or 99.88%) is land and (or 0.16%) is water. Town Saint Leon Unincorporated towns Dover New Alsace (This list is based on USGS data and may include former settlements.) Major highways Interstate 74 Indiana State Road 1 Indiana State Road 46 References United States Census Bureau cartographic boundary files External links Indiana Township Association United Township Association of Indiana Townships in Dearborn County, Indiana Townships in Indiana 1826 establishments in Indiana Populated places established in 1826
```javascript // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax // We have to patch mjsunit because normal assertion failures just throw // exceptions which are swallowed in a then clause. failWithMessage = (msg) => %AbortJS(msg); function newPromise() { var outerResolve; var outerReject; let promise = new Promise((resolve, reject) => { outerResolve = resolve; outerReject = reject; }); Promise.resolve(promise); return { resolve: outerResolve, reject: outerReject, then: (f, g) => promise.then(f, g) }; } (function ResolveOK() { let promise = newPromise(); promise.then(msg => {print("resolved: " + msg); assertEquals("ok", msg); }, ex => {print("rejected: " + ex); %AbortJS("" + ex); }); promise.resolve("ok"); promise.reject(11); // ignored })(); (function RejectOK() { let promise = newPromise(); promise.then(msg => {print("resolved: " + msg); %AbortJS("fail"); }, ex => {print("rejected: " + ex); assertEquals(42, ex); }); promise.reject(42); promise.resolve("fail"); // ignored })(); ```
Thomas Barnard ( 1726–1806) was an Irish Anglican bishop. Thomas Barnard may also refer to: Thomas Barnard (MP) (1830–1909), Whig Member of Parliament for Bedford Tom Barnard (born 1951), American radio host See also Thomas Barnard Flint (1847–1919), Canadian lawyer and politician
Stephen Dabiša (; ; died on 8 September 1395) was as a member of the Kotromanić dynasty who reigned as King of Bosnia from March 1391 until his death. Elected to succeed the first king, Tvrtko I, Dabiša at first maintained the integrity of the Kingdom of Bosnia. He successfully resisted Hungary, Naples, and even Ottoman Turks. The latter part of his reign, however, saw the ascent of magnates and considerable loss of Bosnia's territory and influence. Background Dabiša's relationship with the rest of the Kotromanić family is uncertain. In a letter, Dabiša called himself younger brother of Tvrtko I, who became Ban of Bosnia in 1353, but this should not be taken literally. Influenced by the writings of the 16th century Ragusan chronicler Mavro Orbini, modern historiography usually describes Dabiša as the illegitimate son of Ninoslav, who was the brother of Tvrtko's father Vladislav. According to Orbini, Dabiša ruled the župa (county) of Neretva (corresponding to the area around the Upper Neretva and the town of Konjic) and, supporting Tvrtko's brother Vuk, took part in the rebellion that led to the deposition of Tvrtko in 1366. Dabiša, however, is the only rebel mentioned by Orbini whose name does not appear in contemporary accounts of the uprising. Tvrtko prevailed in 1367 and banished Dabiša, revoking his lands. Dabiša spent the following two decades in obscurity, while Tvrtko had himself crowned King of Bosnia in 1377. Election and initial success Dabiša appears to have mended his relations with King Tvrtko I in the late 1380s, as he is recorded at royal court in Sutjeska in June 1390. Under unclear circumstances following Tvrtko's sudden death on 10 March 1391, Dabiša was elected king by the rusag. He immediately notified the authorities of the neighbouring republics of Venice and Ragusa, which recognized his accession on 1 and 15 June respectively, as well as the kings Sigismund of Hungary and Ladislaus of Naples. Following in his predecessor's footsteps, Dabiša took up using the royal name Stephen. In the first years of his reign, Dabiša successfully maintained the integrity of Tvrtko's Kingdom of Bosnia, which included not only Bosnia proper, but also Croatia proper, Dalmatia, Zachlumia, and Rascia. The former two had been conquered from King Sigismund and Queen Mary of Hungary, and the Republic of Ragusa's immediate attempts to convince the Dalmatian cities to return to the fold of the Hungarian Crown ended in failure. Sigismund and Mary were not the only one claiming Dalmatia - or the Hungarian lands in general. Insisting that Dabiša did not support his bid for the Hungarian throne as effectively as his predecessor had, King Ladislaus of Naples started to enforce his own claim to Dalmatia and Croatia. Tvrtko I had professed to support Ladislaus when he expanded his realm to include those lands. Dabiša nevertheless remained at Ladislaus' side in his struggle against Sigismund. From Tvrtko I, Dabiša also inherited the hostility of the Hungarian king, who strived to recover the territories lost to Tvrtko. Sigismund's wish to have his war against Bosnia equated to a crusade obtained Pope Boniface IX's approval. Dabiša was Roman Catholic, but a substantial population of his kingdom consisted of adherents of the Bosnian Church and the Serbian Orthodox Church, branded "heretics and schismatics" respectively in Sigismund's letter to Boniface. It is not known what came about this planned offensive. In the spring of 1392, Dabiša's troops defeated an Ottoman Turkish incursion, reminiscing Tvrtko's victory at the Battle of Bileća. Within a year, Dabiša and Sigismund had agreed to a truce. Signs of decline While the Kingdom of Bosnia retained its standing among neighbouring states in the immediate aftermath of Tvrtko I's death, it was already during Dabiša's reign that conditions within the state started deteriorating. The nobility grew stronger and for the first time acted independently of the king, starting with the Zachlumian Sanković noble family. Dabiša curbed the Sanković power, but the trend was irreversible and eventually led to the weakening of the royal authority. Hrvoje Vukčić Hrvatinić, the kingdom's leading magnate, who governed Croatia on behalf of the Bosnian crown and in defiance of Hungarian claims, came into agreement with Sigismund and Mary but remained loyal to Dabiša. Dabiša and his other vassals were coming closer to an agreement with Sigismund as well, and the two kings were expected to make the Compromise of Đakovo in May 1393. In the end, the meeting did not take place. By June 1394, King Dabiša was in open conflict with John Horvat, a fervent supporter of Ladislaus and enemy of Sigismund. He ordered that men from his islands of Brač, Hvar, and Korčula assist in the siege of Omiš, a city ruled by Horvat. Sigismund, who had been amassing an army since April, took advantage of the discord. The Battle of Dobor saw John Horvat's defeat and execution as well as destruction of the eponymous town on the river Bosna by Sigismund's troops. Soon thereafter, in a camp near the ruins of the town, Dabiša submitted to Sigismund. He resigned Croatia and Dalmatia to the Hungarian king and, with the agreement of his vassals, recognized him as his feudal overlord as well as heir designate to the Bosnian throne. It is not clear what prompted Dabiša to agree to such harsh terms. In return, as evident from a treaty issued in July 1394, Sigismund included Dabiša among the highest ranking Hungarian officials and named him ispán (count) of Somogy. Death and legacy The agreement to recognize Sigismund as king following Dabiša indicates that the latter was by then of advanced age. Indeed, King Dabiša's health deteriorated in early 1395. At the end of March, writing from Bišće in Zachlumia, Dabiša requested that Ragusan authorities send a physician. The following month, in Sutjeska, he issued a charter granting the Zachlumian village of Veljaci to his daughter Stana, whose daughter Vladika was married to the nobleman Juraj Radivojević. He died on 8 September 1395. Despite initially consenting to his agreement with Sigismund, it was Dabiša's widow, Helen, who succeeded in ascending the throne with the support of the magnates. Despite an auspicious start, Dabiša's reign ended with the Kingdom of Bosnia displaying first signs of decay. Much of Tvrtko's extraordinary legacy was lost in the summer of 1394, and the state resumed its previous boundaries. Dabiša left the Bosnian state more dependent on Hungary than ever before, and the kingdom's influence in the Balkans waned. References Bibliography |- Bosnian monarchs 14th-century monarchs in Europe 14th-century births 1395 deaths Kotromanić dynasty Roman Catholic monarchs Bosnia and Herzegovina Roman Catholics 14th-century Bosnian people 14th century in Hungary Year of birth unknown Burials in Royal Chapel on Bobovac Kings of Bosnia
MKS FunFloor Lublin is a women's handball club from Lublin, Poland, that plays in the Superliga. Kits European record Team Current squad Squad for the 2022–23 season Goalkeepers 12 Weronika Gawlik 26 Paulina Wdowiak Left wingers 3 Oktawia Płomińska 23 Julia Pietras Right wingers 21 Daria Szynkaruk Line players 6 Joanna Andruszak 66 Patrycja Noga 77 Maria Szczepaniak Left backs 8 Dominika Więckowska Centre backs 10 Romana Roszak 19 Michalina Pastuszka 89 Kinga Achruk Right backs 17 Magda Wieckowska 79 Paulina Masna 99 Julia Zagrajek Staff members Staff for the 2022-23 season. Head Coach: Monika Marzec Assistant Coach: Piotr Dropek Team Leader: Radoslaw Kozaczuk Physiotherapist: Beata Gwizdek Physiotherapist: Tomasz Pietras Physical coach: Paweł Woliński Physical coach: Mateusz Nowicki Mental coach: Beata Drewienkowska Transfers Transfers for the 2023-24 season Joining Leaving Katarzyna Portasińska (RW) (to Viborg HK) Notable players Jessica Quintino Ivana Božović Valentina Blažević Ekaterina Dzhukeva Iwona Niedźwiedź Anna Wysokińska Joanna Drabik  Agnieszka Kocela Dagmara Nocuń Kristina Repelewska Małgorzata Stasiak Joanna Szarawaga Alina Wojtas Aleksandra Baranowska References External links Official website Handball clubs in Poland Sport in Lublin
Chaplain (Major General) Norris Leonard Einertson, USA (born August 6, 1930) is a retired American Army officer who served as the 17th Chief of Chaplains of the United States Army from 1986 to 1990. Einertson held degrees from Luther Theological Seminary and New York Theological Seminary. He was endorsed by the Evangelical Lutheran Church in America. Awards and decorations References Further reading 1930 births Living people United States Army generals United States Army personnel of the Vietnam War Recipients of the Legion of Merit Chiefs of Chaplains of the United States Army Vietnam War chaplains Deputy Chiefs of Chaplains of the United States Army 20th-century American clergy
Richard Georg Strauss (; 11 June 1864 – 8 September 1949) was a German composer and conductor best known for his tone poems and operas. Considered a leading composer of the late Romantic and early modern eras, he has been described as a successor of Richard Wagner and Franz Liszt. Along with Gustav Mahler, he represents the late flowering of German Romanticism, in which pioneering subtleties of orchestration are combined with an advanced harmonic style. Strauss's compositional output began in 1870 when he was just six years old and lasted until his death nearly eighty years later. His first tone poem to achieve wide acclaim was Don Juan, and this was followed by other lauded works of this kind, including Death and Transfiguration, Till Eulenspiegel's Merry Pranks, Also sprach Zarathustra, Don Quixote, Ein Heldenleben, Symphonia Domestica, and An Alpine Symphony. His first opera to achieve international fame was Salome which used a libretto by Hedwig Lachmann that was a German translation of the French play Salomé by Oscar Wilde. This was followed by several critically acclaimed operas with librettist Hugo von Hofmannsthal: Elektra, Der Rosenkavalier, Ariadne auf Naxos, Die Frau ohne Schatten, Die ägyptische Helena, and Arabella. His last operas, Daphne, Friedenstag, Die Liebe der Danae and Capriccio used libretti written by Joseph Gregor, the Viennese theatre historian. Other well-known works by Strauss include two symphonies, lieder (especially the Four Last Songs), the Violin Concerto in D minor, the Horn Concerto No. 1, Horn Concerto No. 2, his Oboe Concerto and other instrumental works such as Metamorphosen. A prominent conductor in Western Europe and the Americas, Strauss enjoyed quasi-celebrity status as his compositions became standards of orchestral and operatic repertoire. He was chiefly admired for his interpretations of the works of Liszt, Mozart, and Wagner in addition to his own works. A conducting disciple of Hans von Bülow, Strauss began his conducting career as Bülow's assistant with the Meiningen Court Orchestra in 1883. After Bülow resigned in 1885, Strauss served as that orchestra's primary conductor for five months before being appointed to the conducting staff of the Bavarian State Opera where he worked as third conductor from 1886 to 1889. He then served as principal conductor of the Deutsches Nationaltheater und Staatskapelle Weimar from 1889 to 1894. In 1894 he made his conducting debut at the Bayreuth Festival, conducting Wagner's Tannhäuser with his wife, soprano Pauline de Ahna, singing Elisabeth. He then returned to the Bavarian State Opera, this time as principal conductor, from 1894 to 1898, after which he was principal conductor of the Berlin State Opera from 1898 to 1913. From 1919 to 1924 he was principal conductor of the Vienna State Opera, and in 1920 he co-founded the Salzburg Festival. In addition to these posts, Strauss was a frequent guest conductor in opera houses and with orchestras internationally. In 1933 Strauss was appointed to two important positions in the musical life of Nazi Germany: head of the Reichsmusikkammer and principal conductor of the Bayreuth Festival. The latter role he accepted after conductor Arturo Toscanini had resigned from the position in protest against the Nazi Party. These positions have led some to criticize Strauss for his seeming collaboration with the Nazis. However, Strauss's daughter-in-law, Alice Grab Strauss [née von Hermannswörth], was Jewish and much of his apparent acquiescence to the Nazi Party was done to save her life and the lives of her children (his Jewish grandchildren). He was also apolitical, and took the Reichsmusikkammer post to advance copyright protections for composers, attempting as well to preserve performances of works by banned composers such as Mahler and Felix Mendelssohn. Further, Strauss insisted on using a Jewish librettist, Stefan Zweig, for his opera Die schweigsame Frau which ultimately led to his firing from the Reichsmusikkammer and Bayreuth. His opera Friedenstag, which premiered just before the outbreak of World War II, was a thinly veiled criticism of the Nazi Party that attempted to persuade Germans to abandon violence for peace. Thanks to his influence, his daughter-in-law was placed under protected house arrest during the war, but despite extensive efforts he was unable to save dozens of his in-laws from being killed in Nazi concentration camps. In 1948, a year before his death, he was cleared of any wrongdoing by a denazification tribunal in Munich. Life Early life and career (1864–1886) Strauss was born on 11 June 1864 in Munich, the son of Josephine (née Pschorr) and Franz Strauss, who was the principal horn player at the Court Opera in Munich and a professor at the Königliche Musikschule. His mother was the daughter of Georg Pschorr, a financially prosperous brewer from Munich. Strauss began his musical studies at the age of four, studying piano with August Tombo who was the harpist in the Munich Court Orchestra. Soon after, he began attending the rehearsals of the orchestra, and began getting lessons in music theory and orchestration from the ensemble's assistant conductor. He wrote his first composition at the age of six, and continued to write music almost until his death. In 1872, he started receiving violin instruction from Benno Walter, the director of the Munich Court Orchestra and his father's cousin, and at 11 began five years of compositional study with Friedrich Wilhelm Meyer. In 1882 he graduated from the Ludwigsgymnasium and afterwards attended only one year at the University of Munich in 1882–1883. In addition to his formal teachers, Strauss was profoundly influenced musically by his father who made instrumental music-making central to the Strauss home. The Strauss family was frequently joined in their home for music making, meals, and other activities by the orphaned composer and music theorist Ludwig Thuille who was viewed as an adopted member of the family. Strauss's father taught his son the music of Beethoven, Haydn, Mozart, and Schubert. His father further assisted his son with his musical composition during the 1870s and into the early 1880s, providing advice, comments, and criticisms. His father also provided support by showcasing his son's compositions in performance with the 'Wilde Gung'l', an amateur orchestra he conducted from 1875 to 1896. Many of his early symphonic compositions were written for this ensemble. His compositions at this time were indebted to the style of Robert Schumann and Felix Mendelssohn, true to his father's teachings. His father undoubtedly had a crucial influence on his son's developing taste, not least in Strauss's abiding love for the horn. His Horn Concerto No. 1, is representative of this period and is a staple of the modern horn repertoire. In 1874, Strauss heard his first Wagner operas, Lohengrin and Tannhäuser. In 1878 he attended performances of Die Walküre and Siegfried in Munich, and in 1879 he attended performances of the entire Ring Cycle, Die Meistersinger von Nürnberg, and Tristan und Isolde. The influence of Wagner's music on Strauss's style was to be profound, but at first his musically conservative father forbade him to study it. Indeed, in the Strauss household, the music of Richard Wagner was viewed with deep suspicion, and it was not until the age of 16 that Strauss was able to obtain a score of Tristan und Isolde. In 1882 he went to the Bayreuth Festival to hear his father perform in the world premiere of Wagner's Parsifal; after which surviving letters to his father and to Thuille detail his seemingly negative impression of Wagner and his music. In later life, Strauss said that he deeply regretted the conservative hostility to Wagner's progressive works. In early 1882, in Vienna, Strauss gave the first performance of his Violin Concerto in D minor, playing a piano reduction of the orchestral part himself, with his teacher Benno Walter as soloist. The same year he entered Ludwig Maximilian University of Munich, where he studied philosophy and art history, but not music. He left a year later to go to Berlin, where he studied briefly before securing a post with the Meiningen Court Orchestra as assistant conductor to Hans von Bülow, who had been enormously impressed by the young composer's Serenade (Op. 7) for wind instruments, composed when he was only 16 years of age. Strauss learned the art of conducting by observing Bülow in rehearsal. Bülow was very fond of the young man, and Strauss considered him as his greatest conducting mentor, often crediting him as teaching him "the art of interpretation". Notably, under Bülow's baton he made his first major appearance as a concert pianist, performing Mozart's Piano Concerto No. 24, for which he composed his own cadenzas. In December 1885, Bülow unexpectedly resigned from his post, and Strauss was left to lead the Meiningen Court Orchestra as interim principal conductor for the remainder of the artistic season through April 1886. He notably helped prepare the orchestra for the world premiere performance of Johannes Brahms's Symphony No. 4, which Brahms himself conducted. He also conducted his Symphony No. 2 for Brahms, who advised Strauss: "Your symphony contains too much playing about with themes. This piling up of many themes based on a triad, which differ from one another only in rhythm, has no value." Brahms' music, like Wagner's, also left a tremendous impression upon Strauss, and he often referred to this time of his life as his 'Brahmsschwärmerei' ('Brahms adoration') during which several his compositions clearly show Brahms' influence, including the Piano Quartet in C minor, Op. 13 (1883–84), Wandrers Sturmlied (1884) and Burleske (1885–86)." Success in conducting and tone poems (1885–1898) In 1885 Strauss met the composer Alexander Ritter who was a violinist in the Meiningen orchestra and the husband of one of Richard Wagner's nieces. An avid champion of the ideals of Wagner and Franz Liszt, Ritter had a tremendous impact on the trajectory of Strauss's work as a composer from 1885 onward. Ritter convinced Strauss to abandon his more conservative style of composing and embrace the "music of the future" by modeling his compositional style on Wagner and Liszt. He further influenced Strauss by engaging him in studies and conversations on the writings of Arthur Schopenhauer, Wagner, and Friedrich von Hausegger. All of this together gave a new aesthetic anchor to Strauss which first became evident in his embrace of the tone poem genre. After leaving his post in Meiningen in 1886, Strauss spent several weeks traveling throughout Italy before assuming a new post as third conductor at the Bavarian State Opera (then known as the Munich Hofoper). While traveling he wrote down descriptions of the various sites he was seeing along with tonal impressions that went with those descriptions. These he communicated in a letter to his mother, and they ultimately were used as the beginning of his first tone poem, Aus Italien (1886). Shortly after Strauss assumed his opera conducting duties in Munich, Ritter himself moved to the city in September 1886. For the next three years the two men would meet regularly, often joined by Thuille and Anton Seidl, to discuss music, particularly Wagner and Liszt, and discuss poetry, literature, and philosophy. Strauss's tenure at the Bavarian State Opera was not a happy one. With the death of Ludwig II of Bavaria in June 1886, the opera house was not as well financially supported by his successor Otto of Bavaria which meant that much of the more ambitious and expensive repertoire that he wanted to stage, such as Wagner's operas, were unfeasible. The opera assignments he was given, works by Boieldieu, Auber and Donizetti, bored him, and to make matters worse Hermann Levi, the senior conductor at the house, was often ill and Strauss was required to step in at the last minute to conduct performance for operas which he had never rehearsed. This caused problems for him, the singers, and the orchestra. During this time, Strauss did find much more enjoyable conducting work outside Munich in Berlin, Dresden, and Leipzig. In the latter city he met and befriended the composer Gustav Mahler in the autumn of 1887. Also happily, Strauss met his future wife, soprano Pauline de Ahna, in 1887. De Ahna was then a voice student at the Munich Musikschule (now the University of Music and Performing Arts Munich), but soon switched to private lessons with Strauss who became her principal teacher. In May 1889 Strauss left his post with the Bavarian State Opera after being appointed Kapellmeister to Charles Alexander, Grand Duke of Saxe-Weimar-Eisenach in Weimar, beginning in the autumn of 1889. During the summer of 1889 he served as the assistant conductor of the Bayreuth Festival during which time he befriended Cosima Wagner who became a longterm close friend. Pauline De Ahna went with Strauss to Weimar and he later married her on 10 September 1894. She was famous for being irascible, garrulous, eccentric and outspoken, but to all appearances the marriage was essentially happy, and she was a great source of inspiration to him. Throughout his life, from his earliest songs to the final Four Last Songs of 1948, he preferred the soprano voice to all others, and all his operas contain important soprano roles. In Weimar she created the role of Freihild in Strauss's first opera, Guntram, in 1894. The opera was received with mixed reviews in Weimar, but its later production in Munich was met with scorn and was Strauss's first major failure. In spite of the failure of his first opera, Strauss's tenure in Weimar brought about several important successes for his career. His tone poem Don Juan premiered in Weimar on 11 November 1889 to tremendous critical response, and the work quickly brought him international fame and success. This was followed by another lauded achievement, the premiere of his tone poem Death and Transfiguration in 1890. Both of these works, along with the earlier Burleske, became internationally known and established him as a leading modernist composer. He also had much success as a conductor in Weimar, particularly with the symphonic poems of Liszt and an uncut production of Tristan und Isolde in 1892. In the summer of 1894 Strauss made his conducting debut at the Bayreuth Festival, conducting Wagner's Tannhäuser with Pauline singing Elisabeth. Just prior to their marriage the following September, Strauss left his post in Weimar when he was appointed Kapellmeister, or first conductor, of the Bavarian State Opera where he became responsible for the operas of Wagner. While working in Munich for the next four years he had his largest creative period of tone poem composition, producing Till Eulenspiegel's Merry Pranks (1895), Also sprach Zarathustra (1896), Don Quixote (1897), and Ein Heldenleben (1898). He also served as principal conductor of the Berlin Philharmonic in 1894–1895. In 1897, the Strausses' only child, their son Franz, was born. In 1906, Strauss purchased a block of land at Garmisch-Partenkirchen and had a villa () built there with the down payments from the publisher Adolph Fürstner for his opera Salome, residing there until his death. Fame and success with operas (1898–1933) Strauss left the Bavarian State Opera in 1898 when he became principal conductor of the Staatskapelle Berlin at the Berlin State Opera in the fall of 1898; a position he remained in for 15 years. By this time in his career, he was in constant demand as a guest conductor internationally and enjoyed celebrity status as a conductor; particularly in the works of Wagner, Mozart, and Liszt in addition to his own compositions. He became president of the Allgemeiner Deutscher Musikverein in 1901, and that same year became leader of the Berliner Tonkünstlerverein. He also served as editor of the book series Die Musik. He used all of these posts to champion contemporary German composers like Mahler. His own compositions were becoming increasingly popular, and the first major orchestra to perform an entire concert of only his music was the Vienna Philharmonic in 1901. In 1903 Strauss Festivals dedicated to his music were established in London and Heidelberg. At the latter festival his cantata Taillefer was given its world premiere. In 1904 Strauss embarked on his first North American tour, with stops in Boston, Chicago, Cleveland, Cincinnati, New York City, and Pittsburgh. At Carnegie Hall he conducted the world premiere of his Symphonia Domestica on 21 March 1904 with the Wetzler Symphony Orchestra. He also conducted several other works in collaboration with composer Hermann Hans Wetzler and his orchestra that year at Carnegie Hall, and also performed a concert of lieder with his wife. During this trip he was working intensively on composing his third opera, Salome, based on Oscar Wilde's 1891 play Salome. The work, which premiered in Dresden in 1905, became Strauss's greatest triumph in his career up to that point, and opera houses all over the world quickly began programing the opera. After Salome, Strauss had a string of critically successful operas which he created with the librettist and poet Hugo von Hofmannsthal. These operas included Elektra (1909), Der Rosenkavalier (1911), Ariadne auf Naxos (1912, rev. 1916), Die Frau ohne Schatten (1919), Die ägyptische Helena (1928), and Arabella (1933). While all of these works remain part of the opera repertoire, his opera Der Rosenkavalier is generally considered his finest achievement. During this time he continued to work internationally as a celebrity conductor, and from 1919 to 1924 he was principal conductor of the Vienna State Opera. In 1920 he co-founded the Salzburg Festival with Max Reinhardt and the set designer Alfred Rolle. In 1924 Strauss's opera Intermezzo premiered at the Dresden Semperoper with both the music and the libretto by Strauss. For this opera, Strauss wanted to move away from post-Wagnerian metaphysics which had been the philosophical framework of Hofmannsthal's libretti, and instead embrace a modern domestic comedy to Hofmannsthal's chagrin. The work proved to be a success. At the outbreak of World War I Strauss was invited to sign the Manifesto of German artists and intellectuals supporting the German role in the conflict. Several colleagues, including Max Reinhardt, signed, but Strauss refused, and his response was recorded with approval by the French critic Romain Rolland in his diary for October 1914: "Declarations about war and politics are not fitting for an artist, who must give his attention to his creations and his works." In 1924 Strauss's son Franz married Alice von Grab-Hermannswörth, daughter of a Jewish industrialist, in a Roman Catholic ceremony. Franz and Alice had two sons, Richard and Christian. Nazi Germany (1933–1945) Reichsmusikkammer In March 1933, when Strauss was 68, Adolf Hitler and the Nazi Party rose to power. Strauss never joined the Nazi Party, and studiously avoided Nazi forms of greeting. For reasons of expediency, however, he was initially drawn into cooperating with the early Nazi regime in the hope that Hitler—an ardent Wagnerian and music lover who had admired Strauss's work since viewing Salome in 1907—would promote German art and culture. Strauss's need to protect his Jewish daughter-in-law and Jewish grandchildren also motivated his behavior, in addition to his determination to preserve and conduct the music of banned composers such as Gustav Mahler and Claude Debussy. In 1933, Strauss wrote in his private notebook: I consider the Streicher–Goebbels Jew-baiting as a disgrace to German honour, as evidence of incompetence—the basest weapon of untalented, lazy mediocrity against a higher intelligence and greater talent. Meanwhile, far from being an admirer of Strauss's work, Joseph Goebbels maintained expedient cordiality with Strauss only for a period. Goebbels wrote in his diary: Unfortunately we still need him, but one day we shall have our own music and then we shall have no further need of this decadent neurotic. Nevertheless, because of Strauss's international eminence, in November 1933 he was appointed to the post of president of the newly founded Reichsmusikkammer, the Reich Music Chamber. Strauss, who had lived through numerous political regimes and had no interest in politics, decided to accept the position but to remain apolitical, a decision which would eventually become untenable. He wrote to his family, "I made music under the Kaiser, and under Ebert. I'll survive under this one as well." In 1935 he wrote in his journal: In November 1933, the minister Goebbels nominated me president of the Reichsmusikkammer without obtaining my prior agreement. I was not consulted. I accepted this honorary office because I hoped that I would be able to do some good and prevent worse misfortunes, if from now onwards German musical life were going to be, as it was said, "reorganized" by amateurs and ignorant place-seekers. Strauss privately scorned Goebbels and called him "a pipsqueak". However, in 1933 he dedicated an orchestral song, "Das Bächlein" ("The Little Brook"), to Goebbels, to gain his cooperation in extending German music copyright laws from 30 years to 50 years. Also in 1933, he replaced Arturo Toscanini as director of the Bayreuth Festival after Toscanini had resigned in protest against the Nazi regime. Strauss attempted to ignore Nazi bans on performances of works by Debussy, Mahler, and Mendelssohn. He also continued to work on a comic opera, Die schweigsame Frau, with his Jewish friend and librettist Stefan Zweig. When the opera was premiered in Dresden in 1935, Strauss insisted that Zweig's name appear on the theatrical billing, much to the ire of the Nazi regime. Hitler and Goebbels avoided attending the opera, and it was halted after three performances and subsequently banned by the Third Reich. On 17 June 1935, Strauss wrote a letter to Stefan Zweig, in which he stated: Do you believe I am ever, in any of my actions, guided by the thought that I am 'German'? Do you suppose Mozart was consciously 'Aryan' when he composed? I recognise only two types of people: those who have talent and those who have none. This letter to Zweig was intercepted by the Gestapo and sent to Hitler. Strauss was subsequently dismissed from his post as Reichsmusikkammer president in 1935. The 1936 Berlin Summer Olympics nevertheless used Strauss's Olympische Hymne, which he had composed in 1934. Strauss's seeming relationship with the Nazis in the 1930s attracted criticism from some noted musicians, including Toscanini, who in 1933 had said, "To Strauss the composer I take off my hat; to Strauss the man I put it back on again", when Strauss had accepted the presidency of the Reichsmusikkammer. Much of Strauss's motivation in his conduct during the Third Reich was, however, to protect his Jewish daughter-in-law Alice and his Jewish grandchildren from persecution. Both of his grandsons were bullied at school, but Strauss used his considerable influence to prevent the boys or their mother being sent to concentration camps. Late operas and family tragedy Frustrated that he could no longer work with Zweig as his librettist, Strauss turned to Joseph Gregor, a Viennese theatre historian, at Gregor's request. The first opera they worked on together was Daphne, but it ultimately became the second of their operas to be premiered. Their first work to be staged was in 1938, when the entire nation was preparing for war, they presented Friedenstag (Peace Day), a one-act opera set in a besieged fortress during the Thirty Years' War. The work is essentially a hymn to peace and a thinly veiled criticism of the Third Reich. With its contrasts between freedom and enslavement, war and peace, light and dark, this work has a close affinity with Beethoven's Fidelio. Productions of the opera ceased shortly after the outbreak of war in 1939. The two men collaborated on two more operas which proved to be Strauss's last: Die Liebe der Danae (1940) and Capriccio (1942). When his Jewish daughter-in-law Alice was placed under house arrest in Garmisch-Partenkirchen in 1938, Strauss used his connections in Berlin, including opera-house General Intendant Heinz Tietjen, to secure her safety. He drove to the Theresienstadt concentration camp to argue, albeit unsuccessfully, for the release of Alice's grandmother, Paula Neumann. In the end, Neumann and 25 other relatives were murdered in the camps. While Alice's mother, Marie von Grab, was safe in Lucerne, Switzerland, Strauss also wrote several letters to the SS pleading for the release of her children who were also held in camps; his letters were ignored. In 1942, Strauss moved with his family back to Vienna, where Alice and her children could be protected by Baldur von Schirach, the Gauleiter of Vienna. However, Strauss was unable to protect his Jewish relatives completely; in early 1944, while Strauss was away, Alice and her son Franz were abducted by the Gestapo and imprisoned for two nights. Strauss's personal intervention at this point saved them, and he was able to take them back to Garmisch, where the two remained under house arrest until the end of the war. Metamorphosen and apprehension by US troops Strauss completed the composition of Metamorphosen, a work for 23 solo strings, in 1945. The title and inspiration for the work comes from a profoundly self-examining poem by Goethe, which Strauss had considered setting as a choral work. Generally regarded as one of the masterpieces of the string repertoire, Metamorphosen contains Strauss's most sustained outpouring of tragic emotion. Conceived and written during the blackest days of World War II, the piece expresses Strauss's mourning of, among other things, the destruction of German culture—including the bombing of every great opera house in the nation. At the end of the war, Strauss wrote in his private diary: The most terrible period of human history is at an end, the twelve year reign of bestiality, ignorance and anti-culture under the greatest criminals, during which Germany's 2000 years of cultural evolution met its doom. In April 1945, Strauss was apprehended by American soldiers at his Garmisch estate. As he descended the staircase he announced to Lieutenant Milton Weiss of the U.S. Army, "I am Richard Strauss, the composer of Rosenkavalier and Salome." Lt. Weiss, who was also a musician, nodded in recognition. An "Off Limits" sign was subsequently placed on the lawn to protect Strauss. The American oboist John de Lancie, who knew Strauss's orchestral writing for oboe thoroughly, was in the army unit, and asked Strauss to compose an oboe concerto. Initially dismissive of the idea, Strauss completed this late work, his Oboe Concerto, before the end of the year. Final years and death (1942–1949) The metaphor "Indian summer" has been used by journalists, biographers, and music critics, notably Norman Del Mar in 1964 to describe Strauss's late creative upsurge from 1942 to the end of his life. The events of World War II seemed to bring the composer —who had grown old, tired, and a little jaded — into focus. The major works of the last years of Strauss's life, written in his late 70s and 80s, include, among others, his Horn Concerto No. 2, Metamorphosen, his Oboe Concerto, his Duet Concertino for clarinet and bassoon, and his Four Last Songs. Like those of most Germans, Strauss's bank accounts were frozen, and many of his assets seized by American forces. Now elderly and with very few resources remaining, Strauss and his wife left Germany for Switzerland in October 1945 where they settled in a hotel just outside Zürich. There they met the Swiss music critic Willy Schuh, who became Strauss's biographer. Short of money, in 1947 Strauss embarked on his last international tour, a three-week trip to London, in which he conducted several of his tone poems and excerpts of his operas, and was present during a complete staging of Elektra by the BBC. The trip was a critical success and provided him and his wife with some much needed money. From May to September 1948, just before his death, Strauss composed the Four Last Songs which deal with the subject of dying. The last one, "Im Abendrot" (At Sunset), ends with the line "Is this perhaps death?" The question is not answered in words, but instead Strauss quotes the "transfiguration theme" from his earlier tone poem Death and Transfiguration — meant to symbolize the transfiguration and fulfilment of the soul after death. In June 1948, he was cleared of any wrong-doing by a denazification tribunal in Munich. That same month he orchestrated Ruhe, meine Seele!, a song that he had originally composed in 1894. In December 1948, Strauss was hospitalized for several weeks after undergoing bladder surgery. His health rapidly deteriorated after that, and he conducted his last performance, the end of Act 2 of Der Rosenkavalier at the Prinzregententheater in Munich, during celebrations of his 85th birthday on 10 June 1949. On 15 August, he suffered a heart attack and he quietly died of kidney failure in his sleep shortly after 2 PM on 8 September 1949, in Garmisch-Partenkirchen, West Germany. From his death-bed, typical of his enduring sense of humour, he commented to his daughter-in-law Alice, "dying is just as I composed it in Tod und Verklärung". Georg Solti, who had arranged Strauss's 85th birthday celebration, also directed an orchestra during Strauss's burial. The conductor later described how, during the singing of the famous trio from Rosenkavalier, "each singer broke down in tears and dropped out of the ensemble, but they recovered themselves and we all ended together". Strauss's wife, Pauline de Ahna, died eight months later on 13 May 1950 at the age of 88. Strauss's late works (as an octogenarian composer) were modelled on "the divine Mozart at the end of a life full of thankfulness". Strauss himself declared in 1947 with characteristic self-deprecation: "I may not be a first-rate composer, but I am a first-class second-rate composer." The Canadian pianist Glenn Gould described Strauss in 1962 as "the greatest musical figure who has lived in this century". Music Solo and chamber works Some of Strauss's first compositions were solo instrumental and chamber works. These pieces include early compositions for piano solo in a conservative harmonic style, many of which are lost: two piano trios (1877 and 1878), a string quartet (1881), a piano sonata (1882), a cello sonata (1883), a piano quartet (1885), a violin sonata (1888), as well as a serenade (1882) and a longer suite (1884), both scored for double wind quintet plus two additional horns and contrabassoon. After 1890, Strauss composed very infrequently for chamber groups, his energies being almost completely absorbed with large-scale orchestral works and operas. Four of his chamber pieces are actually arrangements of portions of his operas, including the Daphne-Etude for solo violin and the String Sextet, which is the overture to his final opera Capriccio. His last independent chamber work, an Allegretto in E major for violin and piano, dates from 1948. He also composed two large-scale works for wind ensemble during this period: Sonatina No. 1 "From an Invalid's Workshop" (1943) and Sonatina No. 2 "Happy Workshop" (1946)—both scored for double wind quintet plus two additional horns, a third clarinet in C, bassett horn, bass clarinet, and contrabassoon. Tone poems and other orchestral works Strauss wrote two early symphonies: Symphony No. 1 (1880) and Symphony No. 2 (1884). However, Strauss's style began to truly develop and change when, in 1885, he met Alexander Ritter, a noted composer and violinist, and the husband of one of Richard Wagner's nieces. It was Ritter who persuaded Strauss to abandon the conservative style of his youth and begin writing tone poems. He also introduced Strauss to the essays of Wagner and the writings of Arthur Schopenhauer. Strauss went on to conduct one of Ritter's operas, and at Strauss's request Ritter later wrote a poem describing the events depicted in Strauss's tone poem Death and Transfiguration. The new influences from Ritter resulted in what is widely regarded as Strauss's first piece to show his mature personality, the tone poem Don Juan (1888), which displays a new kind of virtuosity in its bravura orchestral manner. Strauss went on to write a series of increasingly ambitious tone poems: Death and Transfiguration (1889), Till Eulenspiegel's Merry Pranks (1895), Also sprach Zarathustra (1896), Don Quixote (1897), Ein Heldenleben (1898), Symphonia Domestica (1903) and An Alpine Symphony (1911–1915). One commentator has observed of these works that "no orchestra could exist without his tone poems, written to celebrate the glories of the post-Wagnerian symphony orchestra." James Hepokoski notes a shift in Strauss's technique in the tone poems, occurring between 1892 and 1893. It was after this point that Strauss rejected the philosophy of Schopenhauer and began more forcefully critiquing the institution of the symphony and the symphonic poem, thereby differentiating the second cycle of tone poems from the first. Concertos Strauss's output of works for solo instrument or instruments with orchestra was fairly extensive. The most famous include two concertos for horn, which are still part of the standard repertoire of most horn soloists—Horn Concerto No. 1 (1883) and Horn Concerto No. 2 (1942); the Romanze for cello and orchestra (1883); a Violin Concerto in D minor (1882); the Burleske for piano and orchestra (1885, revised 1889); the tone poem Don Quixote for cello, viola and orchestra (1897); the well-known late Oboe Concerto in D major (1945); and the Duet concertino for clarinet and bassoon with string orchestra, which was one of his last works (1948). Opera Around the end of the 19th century, Strauss turned his attention to opera. His first two attempts in the genre, Guntram (1894) and Feuersnot (1901), were controversial works; Guntram was the first significant critical failure of Strauss's career, and Feuersnot was considered obscene by some critics. In 1905, Strauss produced Salome, a somewhat dissonant modernist opera based on the play by Oscar Wilde, which produced a passionate reaction from audiences. The premiere was a major success, with the artists taking more than 38 curtain calls. Many later performances of the opera were also successful, not only with the general public but also with Strauss's peers: Maurice Ravel said that Salome was "stupendous", and Gustav Mahler described it as "a live volcano, a subterranean fire". Strauss reputedly financed his house in Garmisch-Partenkirchen completely from the revenues generated by the opera. As with the later Elektra, Salome features an extremely taxing lead soprano role. Strauss often remarked that he preferred writing for the female voice, which is apparent in these two sister operas—the male parts are almost entirely smaller roles, included only to supplement the soprano's performance. Strauss's next opera was Elektra (1909), which took his use of dissonance even further, in particular with the Elektra chord. Elektra was also the first opera in which Strauss collaborated with the poet Hugo von Hofmannsthal as his librettist. The two subsequently worked together on numerous occasions. For his later works with Hofmannsthal, Strauss moderated his harmonic language: he used a more lush, melodic late-Romantic style based on Wagnerian chromatic harmonies that he had used in his tone poems, with much less dissonance, and exhibiting immense virtuosity in orchestral writing and tone color. This resulted in operas such as Der Rosenkavalier (1911) having great public success. Strauss continued to produce operas at regular intervals until 1942. With Hofmannsthal he created Ariadne auf Naxos (1912), Die Frau ohne Schatten (1919), Die ägyptische Helena (1928), and Arabella (1933). For Intermezzo (1924) Strauss provided his own libretto. Die schweigsame Frau (1935) was composed with Stefan Zweig as librettist; Friedenstag (1935–36) and Daphne (1937) both had a libretto by Joseph Gregor and Stefan Zweig; and Die Liebe der Danae (1940) was with Joseph Gregor. Strauss's final opera, Capriccio (1942), had a libretto by Clemens Krauss, although the genesis for it came from Stefan Zweig and Joseph Gregor. Lieder Strauss was a prolific composer of lieder. He often composed them with the voice of his wife in mind. His lieder were written for voice and piano, and he orchestrated several of them after the fact. In 1894–1895, around the age of 30, he published several well-known songs including "Ruhe, meine Seele!", "Cäcilie", "Morgen!", "Heimliche Aufforderung", and "Traum durch die Dämmerung". In 1918, after a long hiatus devoted to opera, he wrote Sechs Lieder, Op. 68, also called Brentano Lieder. He completed his works in the genre in 1948 with Four Last Songs for soprano and orchestra. He reportedly composed these with Kirsten Flagstad in mind and she gave the first performance, which was recorded. Strauss's songs have always been popular with audiences and performers, and are generally considered by musicologists—along with many of his other compositions—to be masterpieces. Legacy TIME magazine suggested in 1927 that he wrote music to test how much "cacophony, dissonance, exaggeration, and clowning" his audiences would applaud. Early in Strauss' career, eminent musicologist Hugo Riemann reflected "His last works only too clearly reveal his determination to make a sensation at all costs". Until the 1980s, Strauss was regarded by some post-modern musicologists as a conservative, backward-looking composer, but re-examination of and new research on the composer has re-evaluated his place as that of a modernist, albeit one who still utilized and sometimes revered tonality and lush orchestration. Strauss is noted for his pioneering subtleties of orchestration, combined with an advanced harmonic style; when he first played Strauss at a university production of Ariadne auf Naxos, the conductor Mark Elder "was flabbergasted. I had no idea music could do the things he was doing with harmony and melody." Strauss's music had a considerable influence on composers at the start of the 20th century. Béla Bartók heard Also sprach Zarathustra in 1902, and later said that the work "contained the seeds for a new life"; a Straussian influence is clearly present in his works of that period, including his First String Quartet, Kossuth, and Bluebeard's Castle. Karol Szymanowski was also greatly influenced by Strauss, reflected in such pieces as his Concert Overture and his first and second symphonies, and his opera Hagith which was modeled after Salome. English composers were also influenced by Strauss, from Edward Elgar in his concert overture In the South (Alassio) and other works to Benjamin Britten in his opera writing. Many contemporary composers recognise a debt to Strauss, including John Adams and John Corigliano. Strauss's musical style played a major role in the development of film music in the middle of the 20th century. The style of his musical depictions of character (Don Juan, Till Eulenspiegel, the Hero) and emotions found their way into the lexicon of film music. Film music historian Timothy Schuerer wrote, "The elements of post (late) romantic music that had greatest impact on scoring are its lush sound, expanded harmonic language, chromaticism, use of program music and use of Leitmotifs. Hollywood composers found the post-romantic idiom compatible with their efforts in scoring film". Max Steiner and Erich Korngold came from the same musical world as Strauss and were quite naturally drawn to write in his style. As film historian Roy Prendergast wrote, "When confronted with the kind of dramatic problem films presented to them, Steiner, Korngold and Newman ... looked to Wagner, Puccini, Verdi and Strauss for the answers to dramatic film scoring." Later, the opening to Also sprach Zarathustra became one of the best-known pieces of film music when Stanley Kubrick used it in his 1968 movie 2001: A Space Odyssey. The film music of John Williams has continued the Strauss influence, in scores for mainstream hits such as Superman and Star Wars. Strauss has always been popular with audiences in the concert hall and continues to be so. He has consistently been in the top 10 composers most performed by symphony orchestras in the US and Canada over the period 2002–2010. He is also in the top 5 of 20th-century composers (born after 1860) in terms of the number of currently available recordings of his works. Recordings as a conductor Strauss, as conductor, made a large number of recordings, both of his own music as well as music by German and Austrian composers. His 1929 performances of Till Eulenspiegel's Merry Pranks and Don Juan with the Berlin State Opera Orchestra have long been considered the best of his early electrical recordings. In the first complete performance of his An Alpine Symphony, made in 1941 and later released by EMI, Strauss used the full complement of percussion instruments required in this work. Koch Legacy has also released Strauss's recordings of overtures by Gluck, Carl Maria von Weber, Peter Cornelius, and Wagner. The preference for German and Austrian composers in Germany in the 1920s through the 1940s was typical of the German nationalism that existed after World War I. Strauss clearly capitalized on national pride for the great German-speaking composers. There were many other recordings, including some taken from radio broadcasts and concerts during the 1930s and early 1940s. The sheer volume of recorded performances would undoubtedly yield some definitive performances from a very capable and rather forward-looking conductor. In 1944, Strauss celebrated his 80th birthday and conducted the Vienna Philharmonic in recordings of his own major orchestral works, as well as his seldom-heard Schlagobers (Whipped Cream) ballet music. Some find more feeling in these performances than in Strauss's earlier recordings, which were recorded on the Magnetophon tape recording equipment. Vanguard Records later issued the recordings on LPs. Some of these recordings have been reissued on CD by Preiser. The last recording made by Strauss was on 19 October 1947 live at the Royal Albert Hall in London, where he conducted the Philharmonia Orchestra in his Burleske for piano and orchestra (Alfred Blumen piano), Don Juan and Sinfonia Domestica. Strauss also made live-recording player piano music rolls for the Hupfeld system and in 1906 ten recordings for the reproducing piano Welte-Mignon all of which survive today. Strauss was also the composer of the music on the first CD to be commercially released: Deutsche Grammophon's 1983 release of their 1980 recording of Herbert von Karajan conducting the Alpine Symphony. Pierre Boulez has said that Strauss the conductor was "a complete master of his trade". Music critic Harold C. Schonberg writes that, while Strauss was a very fine conductor, he often put scant effort into his recordings. Schonberg focused primarily on Strauss's recordings of Mozart's Symphony No. 40 and Beethoven's Symphony No. 7, as well as noting that Strauss played a breakneck version of Beethoven's 9th Symphony in about 45 minutes. Concerning Beethoven's 7th Symphony, Schonberg wrote, "There is almost never a ritard or a change in expression or nuance. The slow movement is almost as fast as the following vivace; and the last movement, with a big cut in it, is finished in 4 minutes, 25 seconds. (It should run between 7 and 8 minutes.)" He also complained that the Mozart symphony had "no force, no charm, no inflection, with a metronomic rigidity". Peter Gutmann's 1994 review for ClassicalNotes.com says the performances of the Beethoven 5th and 7th symphonies, as well as Mozart's last three symphonies, are actually quite good, even if they are sometimes unconventional. Gutmann wrote: It is true, as the critics suggest, that the readings forego overt emotion, but what emerges instead is a solid sense of structure, letting the music speak convincingly for itself. It is also true that Strauss's tempos are generally swift, but this, too, contributes to the structural cohesion and in any event is fully in keeping with our modern outlook in which speed is a virtue and attention spans are defined more by MTV clips and news sound bites than by evenings at the opera and thousand page novels. Honors His honors included: 1903: Honorary Doctorate, Heidelberg University. 1907: Ordre national de la Légion d'honneur, Croix de Chevalier, Paris, France. Officier, (14 June 1914). 1910: Bavarian Maximilian Order for Science and Art. 1914: Honorary Doctorate, Oxford University. Honorary citizen of Munich. 1924: Pour le Mérite for Sciences and Art, German award. 1924: Honorary Doctorate, University of Music and Performing Arts, Vienna. Freedom of the cities of Vienna and Salzburg. 1932: New York College of Music Medal. 1936: the Royal Philharmonic Society's gold medal. 1939: Commandeur de L'Ordre de la Couronne, presented by Leopold III of Belgium. 1949: Honorary Doctorate, University of Munich. References Citations Cited sources (This article is very different from the one in the 1980 Grove; in particular, the analysis of Strauss's behavior during the Nazi period is more detailed.) Further reading Del Mar, Norman (3 vols. 1962–1973). Richard Strauss: A Critical Commentary on his Life and Works. London: Barrie & Jenkins. . Ithaca, New York: Cornell Univ Press, 1986. Dubal, David (2003), The Essential Canon of Classical Music, North Point Press, . Gilliam, Bryan (1999). The Life of Richard Strauss. Cambridge: Cambridge University Press. . Kennedy, Michael. "Richard Strauss", in The New Grove Dictionary of Music and Musicians, ed. Stanley Sadie. London, Macmillan Publishers, 1998. Kennedy, Michael (2006). The Oxford Dictionary of Music, 985 pages, Murray, David (1998), "Richard Strauss", in Stanley Sadie, (Ed.), The New Grove Dictionary of Opera, vol. 3, pp. 565–575. London: Macmillan Publishers. 1998. . Osborne, Charles (1991). The Complete Operas of Richard Strauss. New York City: Da Capo Press. . Tuchman, Barbara W. (1966, reprinted 1980). The Proud Tower chapter 6. Macmillan, London. . Youmans, Charles (2005). Richard Strauss's Orchestral Music and the German Intellectual Tradition: The Philosophical Roots of Musical Modernism. Bloomington: Indiana University Press. . External links Richard Strauss online Richard Strauss Institute (in German) Richard-Strauss-Quellenverzeichnis (RSQV) 1864 births 1949 deaths 19th-century classical composers 19th-century classical pianists 19th-century classical violinists 19th-century conductors (music) 19th-century German composers 20th-century classical composers 20th-century classical pianists 20th-century classical violinists 20th-century German conductors (music) 20th-century German male musicians 20th-century German composers Articles containing video clips Ballet composers Ballets Russes composers Deaths from kidney failure General Directors of the Vienna State Opera German anti-fascists German classical pianists German classical violinists German male classical composers German male classical pianists German male conductors (music) German male violinists German opera composers German Romantic composers Honorary Members of the Royal Philharmonic Society Recipients of the Legion of Honour Recipients of the Order of the Crown (Belgium) Male classical pianists Male classical violinists Male opera composers Modernist composers Music directors of the Berlin State Opera Composers from Munich Opera managers People from Garmisch-Partenkirchen Musicians from the Kingdom of Bavaria Recipients of the Pour le Mérite (civil class) Royal Philharmonic Society Gold Medallists
Harkort is a surname. Notable people with the surname include: Eduard Harkort (1797–1836), German-born colonel in the Texas Revolution Friedrich Harkort (1793–1880), German industrialist Gustav Harkort (1795–1865), German entrepreneur and railroad pioneer Louisa Catharina Harkort (1718–1795), German ironmaster
James Billington (5 March 1847 – 13 December 1901) was a hangman for the British government from 1884 until 1901. He was the patriarch of the Billington family of executioners. Billington died at home from emphysema in the early hours of 13 December 1901, ten days after having executed Patrick McKenna, a man he knew well. Early life Billington was born in Preston, Lancashire, the son of James, a labourer from Preston, and Mary Haslam of Bolton. In 1859 he moved with his family to Farnworth, northwest of Manchester. After leaving school he worked in a cotton mill for a time, but by the early 1880s he had become a Sunday school teacher and was running a barbershop in Market Street, Farnworth. He also worked for some time as a wrestler, miner and pub singer. Billington had a "lifelong fascination" with hanging, and made replica gallows in his back yard on which he practised with weights and dummies and, it was rumoured locally, stray dogs and cats. In an interview published in the Edinburgh Evening News on 28 August 1884, however, he refuted this claim, saying: "I have experimented in my own way, though I have not, as has been said, taken the lives of cats and other domestic animals. For the purpose of my experiments I made a small scaffold and erected in my yard at home, using dummies and weights as my subjects." Following the death of William Marwood in 1883, a vacancy arose for the post of Executioner for the City of London and Middlesex. Of the more than 100 applicants, Billington was one of three short-listed to be interviewed, but the job was offered to Bartholomew Binns. Undaunted, Billington wrote to other English prison authorities offering his services as a hangman, an offer that was eventually taken up by the authorities in Yorkshire. Career as an executioner, 1884–1901 Billington's first engagement was the execution of Joseph Laycock at Armley Gaol in Leeds, on 26 August 1884. Laycock, a hawker from Sheffield, had been convicted of the murder of his wife and four children. In 1891, Billington succeeded James Berry as chief executioner of Great Britain and Ireland. The 1896 execution of Charles Thomas Wooldridge was immortalised by Oscar Wilde in his The Ballad of Reading Gaol. Wooldridge, known as "C.T.W" in the poem, was a trooper serving with the Royal Horse Guards in Windsor who had killed his wife Laura with a cut-throat razor during a fit of jealous rage. Wilde recounts that the condemned man seemed resigned to his fate on the gallows, and Wooldridge even petitioned the Home Secretary requesting that he not be reprieved, despite a plea for clemency submitted by the jury at his trial and various petitions organised by the residents of Berkshire. He told the prison chaplain that he wanted to die in payment for his crime, and he was allowed to carry his regimental colours to the gallows. Given a drop longer than specified by the official Table of Drops, the force of his fall when the trapdoor was released stretched his neck by "an almost incredible eleven inches". Billington executed serial poisoner Thomas Neill Cream on 15 November 1892. Billington claimed that Cream's last words as he fell were "I am Jack the...", and that this was a confession to having been Jack the Ripper. Cream had, however, been confined in Chicago's Joliet State Penitentiary at the time of the Ripper murders. Billington's final execution was of a man he knew well, Patrick McKenna. The pair knew each other because McKenna was a regular at the Derby Arms public house in Churchgate, Bolton, at that time Billington's home. McKenna killed his wife after she refused to give him money to buy beer, and Billington was one of a number of men who happened to be near the scene of the crime and succeeded in detaining McKenna until the arrival of the police. McKenna was sentenced on 13 November 1901, and was hanged at Strangeways Prison on 3 December. Although Billington was suffering badly from chronic emphysema, he managed to perform the execution, but immediately returned home to Bolton, where he died ten days later, at the age of 54. Legacy All three of Billington's sons – Thomas, William, and John – followed in their father's footsteps and became hangmen. Thomas died within a month of his father, but William and John carried on their occupation until 1905. William was removed from the list of official executioners after he was sentenced to serve one month in Wakefield Gaol for failing to maintain his wife and their two children, who had been admitted to a workhouse in Bolton. His brother John died of pleurisy in October 1905, brought on by injuries he had sustained two months earlier at Leeds Gaol when he fell through the open trapdoor of the gallows. William Billington attempted to shun his past as an executioner in his later years, and died in 1952. Some of Billington's descendants would venture into the world of combat sports and professional wrestling, such as Tom Billington (better known as Dynamite Kid) and Davey Boy Smith. Notable executions Thomas Neill Cream, serial killer; hanged on 15 November 1892 James Canham Read, murderer; hanged on 4 December 1894 Amelia Dyer, serial killer; hanged on 10 June 1896 Charles Thomas Wooldridge, royal trooper who killed his wife; hanged on 7 July 1896 References Citations Bibliography Further reading 1847 births 1901 deaths English executioners English male wrestlers James People from Preston, Lancashire Deaths from bronchitis
List by departments of the senators of Senate of France (2008-2011) elected in the various renewals. List of senators by departments See also Senate of France List
State Road 453 (SR 453), part of the Wekiva Parkway system, is a limited access toll road built and maintained by the Central Florida Expressway Authority (CFX). SR 453 connects SR 429 to SR 46, and it opened on March 31, 2018. Route description SR 453 heads northwest–southeast from interchange 39 on SR 429 to a loop interchange with SR 46 near Mount Dora as a spur route of SR 429. There is a toll plaza between the Lake County line and the SR 46 interchange. There are no planned intermediate exits. History SR 453 opened on March 31, 2018. Exit list See also Central Florida Expressway Authority Florida State Road 429 References External links SR 453 – Central Florida Expressway Authority Wekiva Parkway – Central Florida Expressway Authority 453 453 453 Apopka, Florida Mount Dora, Florida
Georg Mathias "Matti" Schreck (19 December 1897 – 19 October 1946) was a Finnish banker and film producer. He produced a total of 50 films between 1935–1945. Selected filmography Jääkärin morsian (1938) Rikas tyttö (1939) Jumalan myrsky (1940) Kirkastettu sydän (1943) Linnaisten vihreä kamari (1945) References External links 1897 births 1946 deaths People from Tampere People from Häme Province (Grand Duchy of Finland) Finnish film producers
Stelidota octomaculata is a species of sap-feeding beetle in the family Nitidulidae. It is endemic to North America. References Further reading Nitidulidae Articles created by Qbugbot Beetles described in 1825
```html <html lang="en"> <head> <title>Syscalls - Untitled</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Untitled"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="prev" href="Misc.html#Misc" title="Misc"> <link rel="next" href="Arglists.html#Arglists" title="Arglists"> <link href="path_to_url" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <p> <a name="Syscalls"></a> Next:&nbsp;<a rel="next" accesskey="n" href="Arglists.html#Arglists">Arglists</a>, Previous:&nbsp;<a rel="previous" accesskey="p" href="Misc.html#Misc">Misc</a>, Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a> <hr> </div> <h2 class="chapter">12 System Calls</h2> <p><a name="index-linking-the-C-library-512"></a>The C subroutine library depends on a handful of subroutine calls for operating system services. If you use the C library on a system that complies with the POSIX.1 standard (also known as IEEE 1003.1), most of these subroutines are supplied with your operating system. <p>If some of these subroutines are not provided with your system&mdash;in the extreme case, if you are developing software for a &ldquo;bare board&rdquo; system, without an OS&mdash;you will at least need to provide do-nothing stubs (or subroutines with minimal functionality) to allow your programs to link with the subroutines in <code>libc.a</code>. <ul class="menu"> <li><a accesskey="1" href="Stubs.html#Stubs">Stubs</a>: Definitions for OS interface <li><a accesskey="2" href="Reentrant-Syscalls.html#Reentrant-Syscalls">Reentrant Syscalls</a>: Reentrant covers for OS subroutines </ul> </body></html> ```
Tarn may refer to: Places Tarn (lake), a mountain lake or pool formed in a cirque excavated by a glacier England The Tarn, a park, nature reserve, and lake in Mottingham, Royal Borough of Greenwich. Tarn or Barnsley, South Yorkshire, England Tarn Crag (disambiguation), a number of hills in the English Lake District Tarns, Cumbria Tarn Wadling, a former lake near High Hesket in Cumbria France Tarn (department), a department in southwest France Lisle-sur-Tarn, France, a commune in the Tarn department Marssac-sur-Tarn, France, a commune in the Tarn département Tarn (river), a river in France Gorges du Tarn, France, a canyon along the course of the Tarn River Tarn-et-Garonne, a department in southwest France United States Tarn Oil Field, an oil field in Alaska, U.S. Chile Mount Tarn, a summit on the southern part of the Strait of Magellan, Chile Outer space 13032 Tarn, a main-belt minor planet People Aleks Tarn (born 1955), journalist and author Gary Tarn (born 1962), British filmmaker and composer Maria Dyer (née Tarn, 1803–1846), British Protestant Christian missionary to the Chinese Michael Tarn (born 1953), British film and television actor Nathaniel Tarn (born 1928), British-American poet Tarn Adams (born 1978), American co-creator of the video game Dwarf Fortress Tarn Mann, Indian writer, producer and director William Woodthorpe Tarn (1869–1957), 20th century British historian and author Transport HMS Tarn (P336), a Second World War British T class submarine Tarn Light Railway Fiction Tarn, a type of large bird ridden by characters in the Gor fiction series by John Norman Tarn, a Decepticon in the Transformers franchise See also Tarn Taran (disambiguation), various places Tarne, a spider genus of the family Salticidae (jumping spiders)
```ocaml (**************************************************************************) (* *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) open OpamStateTypes (** This module polls various aspects of the host, to define the [arch], [os], etc. variables *) (** Functions to get host specification. It checks if variables value is defined in the environment map before polling. *) val arch: gt_variables -> string option val os: gt_variables -> string option val os_distribution: gt_variables -> string option val os_version: gt_variables -> string option val os_family: gt_variables -> string option val variables: (OpamVariable.t * OpamTypes.variable_contents option Lazy.t) list (** The function used internally to get our canonical names for architectures (returns its input lowercased if not a recognised arch). This is typically called on the output of [uname -m] *) val normalise_arch: string -> string (** The function used internally to get our canonical names for OSes (returns its input lowercased if not a recognised OS). This is typically called on the output of [uname -s] *) val normalise_os: string -> string (* Number of cores *) val cores: unit -> int (** Returns a string containing arch, os, os-distribution & os-version values, unknown if they are not available. [env] is used to determine host specification. *) val to_string: gt_variables -> string ```
```html <div class="tw-my-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-secondary-600" role="separator" aria-hidden="true" ></div> ```
Scholes Butler Birch (30 July 1826 – 13 April 1910) was an English first-class cricketer and medical doctor. The son of the first-class cricketer Lea Birch, he was born at Failsworth, Lancashire and studied medicine at the University of St Andrews School of Medicine. He made his debut in first-class cricket for Manchester against Yorkshire at Manchester. He played in first-class matches for Manchester on six occasions between 1845 and 1852, including on three occasions when the matches were billed as Lancashire v Yorkshire in 1849 and 1851. Across six first-class matches, Birch scored 84 runs at an average of 7.00, with a high score of 33. He was one of the earliest members of the Free Foresters Cricket Club. He died in April 1910 at Cheshunt, Hertfordshire. References External links 1826 births 1910 deaths People from Failsworth Cricketers from Greater Manchester Sportspeople from the Metropolitan Borough of Oldham English cricketers Manchester Cricket Club cricketers Lancashire cricketers Alumni of the University of St Andrews 19th-century English medical doctors 20th-century English medical doctors
```xml import type { Expression, Module } from '@swc/core'; import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import { validate } from './validation'; export type Value = | undefined | null | boolean | string | number | any[] | Record<string, any>; export class UnsupportedValueError extends Error {} function extractValue(node: Expression): Value { if (node.type === 'NullLiteral') { return null; } else if (node.type === 'BooleanLiteral') { // e.g. true / false return node.value; } else if (node.type === 'StringLiteral') { // e.g. "abc" return node.value; } else if (node.type === 'NumericLiteral') { // e.g. 123 return node.value; } else if (node.type === 'Identifier') { switch (node.value) { case 'undefined': return undefined; default: throw new UnsupportedValueError(); } } else if (node.type === 'ArrayExpression') { // e.g. [1, 2, 3] const arr = []; for (const elem of node.elements) { if (elem) { if (elem.spread) { // e.g. [ ...a ] throw new UnsupportedValueError(); } arr.push(extractValue(elem.expression)); } else { // e.g. [1, , 2] // ^^ arr.push(undefined); } } return arr; } else if (node.type === 'ObjectExpression') { // e.g. { a: 1, b: 2 } const obj: Record<string, any> = {}; for (const prop of node.properties) { if (prop.type !== 'KeyValueProperty') { // e.g. { ...a } throw new UnsupportedValueError(); } let key: string; if (prop.key.type === 'Identifier') { // e.g. { a: 1, b: 2 } key = prop.key.value; } else if (prop.key.type === 'StringLiteral') { // e.g. { "a": 1, "b": 2 } key = prop.key.value; } else { throw new UnsupportedValueError(); } obj[key] = extractValue(prop.value); } return obj; } else { throw new UnsupportedValueError(); } } // Extracts the value of an exported const variable named `exportedName` // (e.g. "export const config = { runtime: 'edge' }") from swc's AST. // // The value must be one of (or throws UnsupportedValueError): // // - string // - boolean // - number // - null // - undefined // - array containing values listed in this list // - object containing values listed in this list // export function extractExportedConstValue( module: Module, exportedName: string ): Value | null { for (const moduleItem of module.body) { if (moduleItem.type !== 'ExportDeclaration') { continue; } const { declaration } = moduleItem; if (declaration.type !== 'VariableDeclaration') { continue; } if (declaration.kind !== 'const') { continue; } for (const decl of declaration.declarations) { if ( decl.id.type === 'Identifier' && decl.id.value === exportedName && decl.init ) { return extractValue(decl.init); } } } return null; } // Extracts the value of `export const config` in the given swc AST (`module`). // // Returns null if the declaration is not found. // // Throws exceptions if it contains a syntax node which're not literal or // the validation fails. export function getConfig<T extends JSONSchema>( module: Module, schema?: T ): FromSchema<T> | null { const data = extractExportedConstValue(module, 'config'); if (!data) { return null; } if (schema) { validate(schema, data); } // @ts-expect-error - this seems to work just fine, but TS complains it could be infinite nesting return data as FromSchema<T>; } ```
VII (7th) Corps is a military corps of the Korean People's Army headquartered in Hamhung. On 2015 a soldier from the corps defected to South Korea. References Corps0007
Gordon Rintoul (born 29 May 1955) CBE FRSE is the former Director of National Museums Scotland in Edinburgh, Scotland. Rintoul was born in Glasgow, Scotland in 1955 and was educated at Allan Glen's School, a science-orientated school in the city. He studied physics at the University of Edinburgh and received a PhD from the University of Manchester in the history of science and technology. In 1984, he was appointed as curator of the Colour Museum in Bradford, West Yorkshire. Between 1987 and 1998, he was Director of Catalyst, a museum in Widnes, Cheshire on the chemical industry. In 1989, he was awarded the Diploma of the Museums Association. In 1998, he became Chief Executive of the Sheffield Galleries and Museums Trust. In 2001, he led the opening of the Millennium Galleries, an art gallery in Sheffield, South Yorkshire, with funding from the Millennium Commission and in partnership with the Victoria and Albert Museum. He became Director of National Museums Scotland in 2002, where he has led the project to restore the Royal Museum. Honours and awards Rintoul was appointed Commander of the Order of the British Empire (CBE) in the 2012 Birthday Honours for services to the museum sector. He won the top award from the Glenfiddich Spirit of Scotland Awards in 2014. In 2018 he was elected a Fellow of the Royal Society of Edinburgh. References 1955 births Living people Civil servants from Glasgow People from Widnes Alumni of the University of Edinburgh Alumni of the University of Manchester Commanders of the Order of the British Empire Scottish curators Directors of museums in the United Kingdom People educated at Allan Glen's School
```php <?php declare(strict_types=1); namespace Doctrine\DBAL\Driver; /** @internal */ final class FetchUtils { /** * @return mixed|false * * @throws Exception */ public static function fetchOne(Result $result) { $row = $result->fetchNumeric(); if ($row === false) { return false; } return $row[0]; } /** * @return list<list<mixed>> * * @throws Exception */ public static function fetchAllNumeric(Result $result): array { $rows = []; while (($row = $result->fetchNumeric()) !== false) { $rows[] = $row; } return $rows; } /** * @return list<array<string,mixed>> * * @throws Exception */ public static function fetchAllAssociative(Result $result): array { $rows = []; while (($row = $result->fetchAssociative()) !== false) { $rows[] = $row; } return $rows; } /** * @return list<mixed> * * @throws Exception */ public static function fetchFirstColumn(Result $result): array { $rows = []; while (($row = $result->fetchOne()) !== false) { $rows[] = $row; } return $rows; } } ```
The following list is a discography of production by Spellz, a Nigeria record producer from Lagos State. Singles produced References Discographies of Nigerian artists Albums produced by Spellz
```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 cache import ( "fmt" "strconv" "sync" "time" "k8s.io/klog" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" utilcache "k8s.io/apimachinery/pkg/util/cache" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/sets" ) // MutationCache is able to take the result of update operations and stores them in an LRU // that can be used to provide a more current view of a requested object. It requires interpreting // resourceVersions for comparisons. // Implementations must be thread-safe. // TODO find a way to layer this into an informer/lister type MutationCache interface { GetByKey(key string) (interface{}, bool, error) ByIndex(indexName, indexKey string) ([]interface{}, error) Mutation(interface{}) } // ResourceVersionComparator is able to compare object versions. type ResourceVersionComparator interface { CompareResourceVersion(lhs, rhs runtime.Object) int } // NewIntegerResourceVersionMutationCache returns a MutationCache that understands how to // deal with objects that have a resource version that: // // - is an integer // - increases when updated // - is comparable across the same resource in a namespace // // Most backends will have these semantics. Indexer may be nil. ttl controls how long an item // remains in the mutation cache before it is removed. // // If includeAdds is true, objects in the mutation cache will be returned even if they don't exist // in the underlying store. This is only safe if your use of the cache can handle mutation entries // remaining in the cache for up to ttl when mutations and deletes occur very closely in time. func NewIntegerResourceVersionMutationCache(backingCache Store, indexer Indexer, ttl time.Duration, includeAdds bool) MutationCache { return &mutationCache{ backingCache: backingCache, indexer: indexer, mutationCache: utilcache.NewLRUExpireCache(100), comparator: etcdObjectVersioner{}, ttl: ttl, includeAdds: includeAdds, } } // mutationCache doesn't guarantee that it returns values added via Mutation since they can page out and // since you can't distinguish between, "didn't observe create" and "was deleted after create", // if the key is missing from the backing cache, we always return it as missing type mutationCache struct { lock sync.Mutex backingCache Store indexer Indexer mutationCache *utilcache.LRUExpireCache includeAdds bool ttl time.Duration comparator ResourceVersionComparator } // GetByKey is never guaranteed to return back the value set in Mutation. It could be paged out, it could // be older than another copy, the backingCache may be more recent or, you might have written twice into the same key. // You get a value that was valid at some snapshot of time and will always return the newer of backingCache and mutationCache. func (c *mutationCache) GetByKey(key string) (interface{}, bool, error) { c.lock.Lock() defer c.lock.Unlock() obj, exists, err := c.backingCache.GetByKey(key) if err != nil { return nil, false, err } if !exists { if !c.includeAdds { // we can't distinguish between, "didn't observe create" and "was deleted after create", so // if the key is missing, we always return it as missing return nil, false, nil } obj, exists = c.mutationCache.Get(key) if !exists { return nil, false, nil } } objRuntime, ok := obj.(runtime.Object) if !ok { return obj, true, nil } return c.newerObject(key, objRuntime), true, nil } // ByIndex returns the newer objects that match the provided index and indexer key. // Will return an error if no indexer was provided. func (c *mutationCache) ByIndex(name string, indexKey string) ([]interface{}, error) { c.lock.Lock() defer c.lock.Unlock() if c.indexer == nil { return nil, fmt.Errorf("no indexer has been provided to the mutation cache") } keys, err := c.indexer.IndexKeys(name, indexKey) if err != nil { return nil, err } var items []interface{} keySet := sets.NewString() for _, key := range keys { keySet.Insert(key) obj, exists, err := c.indexer.GetByKey(key) if err != nil { return nil, err } if !exists { continue } if objRuntime, ok := obj.(runtime.Object); ok { items = append(items, c.newerObject(key, objRuntime)) } else { items = append(items, obj) } } if c.includeAdds { fn := c.indexer.GetIndexers()[name] // Keys() is returned oldest to newest, so full traversal does not alter the LRU behavior for _, key := range c.mutationCache.Keys() { updated, ok := c.mutationCache.Get(key) if !ok { continue } if keySet.Has(key.(string)) { continue } elements, err := fn(updated) if err != nil { klog.V(4).Infof("Unable to calculate an index entry for mutation cache entry %s: %v", key, err) continue } for _, inIndex := range elements { if inIndex != indexKey { continue } items = append(items, updated) break } } } return items, nil } // newerObject checks the mutation cache for a newer object and returns one if found. If the // mutated object is older than the backing object, it is removed from the Must be // called while the lock is held. func (c *mutationCache) newerObject(key string, backing runtime.Object) runtime.Object { mutatedObj, exists := c.mutationCache.Get(key) if !exists { return backing } mutatedObjRuntime, ok := mutatedObj.(runtime.Object) if !ok { return backing } if c.comparator.CompareResourceVersion(backing, mutatedObjRuntime) >= 0 { c.mutationCache.Remove(key) return backing } return mutatedObjRuntime } // Mutation adds a change to the cache that can be returned in GetByKey if it is newer than the backingCache // copy. If you call Mutation twice with the same object on different threads, one will win, but its not defined // which one. This doesn't affect correctness, since the GetByKey guaranteed of "later of these two caches" is // preserved, but you may not get the version of the object you want. The object you get is only guaranteed to // "one that was valid at some point in time", not "the one that I want". func (c *mutationCache) Mutation(obj interface{}) { c.lock.Lock() defer c.lock.Unlock() key, err := DeletionHandlingMetaNamespaceKeyFunc(obj) if err != nil { // this is a "nice to have", so failures shouldn't do anything weird utilruntime.HandleError(err) return } if objRuntime, ok := obj.(runtime.Object); ok { if mutatedObj, exists := c.mutationCache.Get(key); exists { if mutatedObjRuntime, ok := mutatedObj.(runtime.Object); ok { if c.comparator.CompareResourceVersion(objRuntime, mutatedObjRuntime) < 0 { return } } } } c.mutationCache.Add(key, obj, c.ttl) } // etcdObjectVersioner implements versioning and extracting etcd node information // for objects that have an embedded ObjectMeta or ListMeta field. type etcdObjectVersioner struct{} // ObjectResourceVersion implements Versioner func (a etcdObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error) { accessor, err := meta.Accessor(obj) if err != nil { return 0, err } version := accessor.GetResourceVersion() if len(version) == 0 { return 0, nil } return strconv.ParseUint(version, 10, 64) } // CompareResourceVersion compares etcd resource versions. Outside this API they are all strings, // but etcd resource versions are special, they're actually ints, so we can easily compare them. func (a etcdObjectVersioner) CompareResourceVersion(lhs, rhs runtime.Object) int { lhsVersion, err := a.ObjectResourceVersion(lhs) if err != nil { // coder error panic(err) } rhsVersion, err := a.ObjectResourceVersion(rhs) if err != nil { // coder error panic(err) } if lhsVersion == rhsVersion { return 0 } if lhsVersion < rhsVersion { return -1 } return 1 } ```
The Ingquza Hill Local Municipality council consists of sixty-four members elected by mixed-member proportional representation. Thirt-two councillors are elected by first-past-the-post voting in thirty-two wards, while the remaining thirty-two are chosen from party lists so that the total number of party representatives is proportional to the number of votes received. In the election of 1 November 2021 the African National Congress (ANC) won a majority of forty-six seats. Results The following table shows the composition of the council after past elections. December 2000 election The following table shows the results of the 2000 election. March 2006 election The following table shows the results of the 2006 election. May 2011 election The following table shows the results of the 2011 election. August 2016 election The following table shows the results of the 2016 election. November 2021 election The following table shows the results of the 2021 election. By-elections from November 2021 The following by-elections were held to fill vacant ward seats in the period since the election in November 2021. In a by-election in ward 15, held on 8 March 2023 after the previous ANC councillor was assassinated, the ANC candidate retained the seat for the party with a solid majority. References Ingquza Hill Elections in the Eastern Cape OR Tambo District Municipality
Rainci Gornji (Cyrillic: Раинци Горњи) is a village in the municipality of Kalesija, Bosnia and Herzegovina. Demographics According to the 2013 census, its population was 1,924. References Populated places in Kalesija
```xml export * from './LogHelper'; ```
```objective-c // // file LICENSE or copy at path_to_url #ifndef CDSLIB_OS_LINUX_TOPOLOGY_H #define CDSLIB_OS_LINUX_TOPOLOGY_H #ifndef CDSLIB_OS_TOPOLOGY_H # error "<cds/os/topology.h> must be included instead" #endif #include <cds/details/defs.h> #include <cds/threading/model.h> #include <sys/syscall.h> #include <sched.h> namespace cds { namespace OS { /// Linux-specific wrappers inline namespace Linux { /// System topology /** The implementation assumes that processor IDs are in numerical order from 0 to N - 1, where N - count of processor in the system */ struct topology { private: //@cond static unsigned int s_nProcessorCount; //@endcond public: /// Logical processor count for the system static unsigned int processor_count() { return s_nProcessorCount; } /// Get current processor number /** Caveat: \p current_processor calls system \p sched_getcpu function that may not be defined for target system (\p sched_getcpu is available since glibc 2.6). If \p sched_getcpu is not defined the function emulates "current processor number" using thread-specific data. You may manually disable the \p sched_getcpu usage compiling with <tt>-DCDS_LINUX_NO_sched_getcpu</tt>. */ static unsigned int current_processor() { // Compile libcds with -DCDS_LINUX_NO_sched_getcpu if your linux does not have sched_getcpu (glibc version less than 2.6) # if !defined(CDS_LINUX_NO_sched_getcpu) && defined(SYS_getcpu) int nProcessor = ::sched_getcpu(); return nProcessor == -1 ? 0 : (unsigned int) nProcessor; # else // Use fake "current processor number" assigned for current thread return (unsigned int) threading::Manager::fake_current_processor(); /* Another way (for x86/amd64 only) Using cpuid and APIC ID (path_to_url for x86 and amd64 { _asm {mov eax, 1} _asm {cpuid} _asm {shr ebx, 24} _asm {mov eax, ebx} } However: - cpuid is full sync barrier - it is only for x86/amd64 architecture */ # endif } /// Synonym for \ref current_processor static unsigned int native_current_processor() { return current_processor(); } //@cond static void init(); static void fini(); //@endcond }; } // namespace Linux }} // namespace cds::OS #endif // #ifndef CDSLIB_OS_LINUX_TOPOLOGY_H ```
```javascript module.exports = { 'extends': [ 'rax' ], 'root': true, }; ```
Albert Stotland Ruddy (born March 28, 1930) is a Canadian-American film and television producer. He is known for producing The Godfather (1972) and Million Dollar Baby (2004), both of which won him the Academy Award for Best Picture, as well as co-creating the CBS sitcom Hogan's Heroes (1965–1971). Early life Albert S. Ruddy was born to Ruth (née Ruddy) Hertz and Hy Stotland, a Jewish family in Montreal, and raised in New York City and in Miami Beach, Florida, by his mother. Ruddy attended Brooklyn Technical High School before earning a scholarship to allow him to study chemical engineering at City College of New York. In 1956, he graduated from the University of Southern California with a degree in architectural design. Career Ruddy worked designing homes for a construction company, in Hackensack, New Jersey. After a short stint at Warner Brothers, brought about by a chance meeting with studio chief Jack L. Warner, Ruddy moved on to become a programmer trainee at the RAND Corporation in Santa Monica, California. Returning to entertainment, Ruddy was a television writer at Universal Studios, but left when Marlon Brando Sr., father of the legendary actor, hired him to produce Wild Seed (1965). With this film completed, Ruddy co-created Hogan's Heroes (CBS, 1965–1971), which was a critical and commercial success and ran for six seasons. As the sitcom wound down its run, Ruddy returned to films, producing two comedies: Little Fauss and Big Halsy (1970), about two motorcycle racers, and Making It (1971), about a sexually triumphant high school student who beds the gerontophobic wife of his gym teacher. In 1972, he produced The Godfather, an adaptation of Mario Puzo's novel. The film was a massive success both commercially and critically, and is regarded as one of the best films ever made, as well as a landmark of the gangster genre. The film was nominated for eleven Academy Awards and won three – including Ruddy's first of two Oscars for Best Picture. In 1974, Ruddy produced an adaptation of his own story treatment as The Longest Yard. The film, which has been described as "the first successful modern sports movie", was very successful financially and was subsequently remade twice with Ruddy as executive producer (as Mean Machine (2001) and as The Longest Yard (2005)). The following year, Ruddy produced director and animator Ralph Bakshi's satirical film Coonskin (1975). The film was extremely controversial and initially received negative reviews, but it would eventually earn critical acclaim and develop a cult following with cinema devotees around the globe. It remains one of director Quentin Tarantino's favorite movies. In 1976, he produced a western made-for-TV movie called The Macahans, which was subsequently developed into the series How the West Was Won (1977–1979). For some time, Ruddy worked with writer-philosopher Ayn Rand to produce her 1957 epic novel Atlas Shrugged as a movie, the rights to which he purchased in the mid-1970s, but the movie never moved beyond the planning stages. Rand demanded unprecedented final script approval, which Ruddy agreed to. However, her friends pointed out that Ruddy could shoot the approved script but still leave all her speeches on the cutting room floor. Rand asked for final editing approval, which neither Ruddy nor the director had the power to give her, so she responded by withdrawing her support from the film and vowing to ensure that Ruddy was never involved in any adaptation of her novel. Ruddy then started to work with Hong Kong's Golden Harvest, producing The Cannonball Run (1981), a hugely successful film at the box office that received mixed reviews by critics. However today, this Burt Reynolds film enjoys a devoted following from followers of the Rat Pack. Ruddy next produced two action films, Death Hunt (1981) starring Lee Marvin and Charles Bronson, and Megaforce (1982). Ruddy returned to produce Cannonball Run II (1984), which was another commercial success for the Rat-Pack-prominent cast, and featured a guest appearance by Frank Sinatra. The film also features a rare on-screen cameo by Ruddy in a scene spoofing his film The Godfather, and including Godfather supporting actors Alex Rocco and Abe Vigoda. In 1985, after leaving Golden Harvest, Ruddy and Andre Morgan set up the Ruddy Morgan Organization which produces films budgeted for the $8.5-16 million range, and arranges the financing and developing of "high-visibility" pictures the company is placing up. In the early 1990s, he helped create the successful series Walker, Texas Ranger. Also in 1992, he licensed the rights from Kevin McClory to make a James Bond television show, but Eon Productions blocked it, and winning the suit, ended any hopes of a television show. On March 5, 2022, Amazon, MGM Television, and 72 Films announced a James Bond reality show. In 2004, he produced Million Dollar Baby, which earned him his second Oscar for Best Picture. He shared the award with Clint Eastwood, who had presented Ruddy with the Best Picture Oscar for The Godfather over 30 years earlier. In late 2015, it was announced that he had acquired the rights to Rand's Atlas Shrugged and would be making a movie for worldwide release. In 2021, his daughter Alexandra Ruddy became co-principal at Albert S. Ruddy Productions. Personal life Ruddy was originally married to and divorced from Francoise Ruddy, who was also Jewish. This was prior to her name change to Ma Prem Hasya as part of the Rajneeshpuram Commune in Central Oregon. Francoise saw him through the production of The Godfather, even lending her name to the production company title. Ruddy is currently married to Wanda McDaniel, the mother of his two children, John Ruddy and Alexandra Ruddy. Since 1980, McDaniel has been an executive vice president for the Italian designer Giorgio Armani, where she is credited with inventing the red carpet and helping to make Armani into a fashion icon. In the 2022 biographical drama miniseries The Offer, which dramatizes the making of The Godfather and is executive produced by Ruddy, he is played by Miles Teller. Filmography He was a producer in all films unless otherwise noted. Film As writer Art director Soundtrack Thanks Television As writer Miscellaneous crew As an actor Thanks Awards Won: 1973 Academy Award for Best Picture: The Godfather Won: 1973 David di Donatello for Best Foreign Film: The Godfather Won: 1973 Golden Globe Award for Best Motion Picture – Drama: The Godfather Won: 1975 Golden Globe Award for Best Motion Picture – Musical or Comedy: The Longest Yard Nomination: 1983 Golden Raspberry Award for Worst Picture: Megaforce Nomination: 1984 Golden Raspberry Award for Worst Picture: Cannonball Run II Nomination: 1985 Golden Raspberry Award for Worst Screenplay: Cannonball Run II (with Hal Needham and Harvey Miller) Won: 2005 Academy Award for Best Picture: Million Dollar Baby See also Canadian pioneers in early Hollywood References External links "The Godfather Wars" Vanity Fair Profile from Mass Hysteria Entertainment Ruddy Morgan Organization 1930 births Living people Film producers from Quebec Jewish Canadian filmmakers 20th-century American Jews Mass media people from New York City Mass media people from Montreal Producers who won the Best Picture Academy Award USC School of Architecture alumni City College of New York alumni Golden Globe Award-winning producers Brooklyn Technical High School alumni 21st-century American Jews
```ruby # frozen_string_literal: true require "spec_helper" describe "Manage proposal wizard steps help texts" do include_context "when admin manages proposals" before do current_component.update!( step_settings: { current_component.participatory_space.active_step.id => { creation_enabled: true } } ) end let!(:proposal) { create(:proposal, component: current_component, users: [user]) } it "customize the help text for step 1 of the proposal wizard" do visit edit_component_path(current_component) fill_in_i18n_editor( :component_settings_proposal_wizard_step_1_help_text, "#global-settings-proposal_wizard_step_1_help_text-tabs", en: "This is the first step of the Proposal creation wizard.", es: "Este es el primer paso del asistente de creacin de propuestas.", ca: "Aquest s el primer pas de l'assistent de creaci de la proposta." ) click_on "Update" visit new_proposal_path(current_component) within "#proposal_wizard_help_text" do expect(page).to have_content("This is the first step of the Proposal creation wizard.") end end it "customize the help text for step 2 of the proposal wizard" do visit edit_component_path(current_component) fill_in_i18n_editor( :component_settings_proposal_wizard_step_2_help_text, "#global-settings-proposal_wizard_step_2_help_text-tabs", en: "This is the second step of the Proposal creation wizard.", es: "Este es el segundo paso del asistente de creacin de propuestas.", ca: "Aquest s el segon pas de l'assistent de creaci de la proposta." ) click_on "Update" create(:proposal, title: "More sidewalks and less roads", body: "Cities need more people, not more cars", component:, users: [user]) create(:proposal, title: "More trees and parks", body: "Green is always better", component:, users: [user]) visit_component click_on "New proposal" within ".new_proposal" do fill_in :proposal_title, with: "More sidewalks and less roads" fill_in :proposal_body, with: "Cities need more people, not more cars" find("*[type=submit]").click end within "#proposal_wizard_help_text" do expect(page).to have_content("This is the second step of the Proposal creation wizard.") end end private def new_proposal_path(current_component) Decidim::EngineRouter.main_proxy(current_component).new_proposal_path(current_component.id) end end ```
Alakava (, also Romanized as Ālakāvā) is a village in Oshnavieh-ye Shomali Rural District, in the Central District of Oshnavieh County, West Azerbaijan Province, Iran. At the 2006 census, its population was 77, in 15 families. References Populated places in Oshnavieh County
```python #!/usr/bin/env python ############################################################################# ## ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: ## ## "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 Nokia Corporation and its Subsidiary(-ies) 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." ## $QT_END_LICENSE$ ## ############################################################################# import random from PyQt5.QtCore import (pyqtSignal, QByteArray, QDataStream, QIODevice, QThread) from PyQt5.QtWidgets import (QApplication, QDialog, QHBoxLayout, QLabel, QMessageBox, QPushButton, QVBoxLayout) from PyQt5.QtNetwork import (QHostAddress, QNetworkInterface, QTcpServer, QTcpSocket) class FortuneThread(QThread): error = pyqtSignal(QTcpSocket.SocketError) def __init__(self, socketDescriptor, fortune, parent): super(FortuneThread, self).__init__(parent) self.socketDescriptor = socketDescriptor self.text = fortune def run(self): tcpSocket = QTcpSocket() if not tcpSocket.setSocketDescriptor(self.socketDescriptor): self.error.emit(tcpSocket.error()) return block = QByteArray() outstr = QDataStream(block, QIODevice.WriteOnly) outstr.setVersion(QDataStream.Qt_4_0) outstr.writeUInt16(0) outstr.writeQString(self.text) outstr.device().seek(0) outstr.writeUInt16(block.size() - 2) tcpSocket.write(block) tcpSocket.disconnectFromHost() tcpSocket.waitForDisconnected() class FortuneServer(QTcpServer): FORTUNES = ( "You've been leading a dog's life. Stay off the furniture.", "You've got to think about tomorrow.", "You will be surprised by a loud noise.", "You will feel hungry again in another hour.", "You might have mail.", "You cannot kill time without injuring eternity.", "Computers are not intelligent. They only think they are.") def incomingConnection(self, socketDescriptor): fortune = self.FORTUNES[random.randint(0, len(self.FORTUNES) - 1)] thread = FortuneThread(socketDescriptor, fortune, self) thread.finished.connect(thread.deleteLater) thread.start() class Dialog(QDialog): def __init__(self, parent=None): super(Dialog, self).__init__(parent) self.server = FortuneServer() statusLabel = QLabel() statusLabel.setWordWrap(True) quitButton = QPushButton("Quit") quitButton.setAutoDefault(False) if not self.server.listen(): QMessageBox.critical(self, "Threaded Fortune Server", "Unable to start the server: %s." % self.server.errorString()) self.close() return for ipAddress in QNetworkInterface.allAddresses(): if ipAddress != QHostAddress.LocalHost and ipAddress.toIPv4Address() != 0: break else: ipAddress = QHostAddress(QHostAddress.LocalHost) ipAddress = ipAddress.toString() statusLabel.setText("The server is running on\n\nIP: %s\nport: %d\n\n" "Run the Fortune Client example now." % (ipAddress, self.server.serverPort())) quitButton.clicked.connect(self.close) buttonLayout = QHBoxLayout() buttonLayout.addStretch(1) buttonLayout.addWidget(quitButton) buttonLayout.addStretch(1) mainLayout = QVBoxLayout() mainLayout.addWidget(statusLabel) mainLayout.addLayout(buttonLayout) self.setLayout(mainLayout) self.setWindowTitle("Threaded Fortune Server") if __name__ == '__main__': import sys app = QApplication(sys.argv) dialog = Dialog() dialog.show() sys.exit(dialog.exec_()) ```
```sqlpl CREATE TABLE IF NOT EXISTS `{{ index .Options "Namespace" }}users` ( `instance_id` varchar(255) DEFAULT NULL, `id` varchar(255) NOT NULL, `aud` varchar(255) DEFAULT NULL, `role` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `encrypted_password` varchar(255) DEFAULT NULL, `confirmed_at` timestamp NULL DEFAULT NULL, `invited_at` timestamp NULL DEFAULT NULL, `confirmation_token` varchar(255) DEFAULT NULL, `confirmation_sent_at` timestamp NULL DEFAULT NULL, `recovery_token` varchar(255) DEFAULT NULL, `recovery_sent_at` timestamp NULL DEFAULT NULL, `email_change_token` varchar(255) DEFAULT NULL, `email_change` varchar(255) DEFAULT NULL, `email_change_sent_at` timestamp NULL DEFAULT NULL, `last_sign_in_at` timestamp NULL DEFAULT NULL, `raw_app_meta_data` text DEFAULT NULL, `raw_user_meta_data` text DEFAULT NULL, `is_super_admin` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `users_instance_id_idx` (`instance_id`), KEY `users_instance_id_email_idx` (`instance_id`,`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ```
Merangin is a regency (kabupaten) of Jambi Province on the island of Sumatra, Indonesia. It was created on 4 October 1999 by the division of the former Sarolangun Bangko Regency into a new Sarolangun Regency and this Merangin Regency. The regency covers an area of 7,668.61 km2, and had a population of 333,206 at the 2010 census and 354,052 at the 2020 census; the official estimate as at mid 2022 was 357,577, comprising 181,850 males and 175,727 females. The administrative capital is the town of Bangko. Administrative districts Merangin Regency is divided into twenty-four districts (kecamatan), tabulated below with their areas and their populations at the 2010 census and the 2020 census, together with the official estimates as at mid 2022. The table also includes the locations of the district administrative centres, the number of administrative villages in each district (205 rural desa and 10 urban kelurahan in total), and its post code. However, the last-mentioned eight districts, comprising the northern third of Merangin Regency, are in the process of being separated out to form a new Regency - Kabupaten Tabir Raya; these eight districts cover 2,000.07 km2 and had an estimated combined population of 113,841 at the 2020 census, rising to an estimated 114,527 in mid 2022. Merangin Geopark Merangin Geopark has been proposed to UNESCO to be a World's Heritage Merangin Geopark and a UNESCO team has visited Merangin Geopark. The Geopark has a Araucarioxylon fossil tree complete with the root of 300 million years, the oldest in Asia. Today the ancient Merangin River is usually used for white water sports. References External links Regencies of Jambi Batanghari basin
Nicoletti is an Italian surname derived from the Greek word Νικόλαος, meaning "victory of the people". It may refer to: People Charles "Chuckie" Nicoletti (1916–1977), American hitman Cynthia Nicoletti, American legal historian Chris Nicoletti, former acoustic guitarist and backing vocalist of acoustic/electric rock band Granian Dario Nicoletti (born 1967), Italian former cyclist Davide Nicoletti, American ice hockey player and alternate captain during 2009–10 Alabama–Huntsville Chargers ice hockey season Filippo Nicoletti, Italian criminal and one of the Mazzarino Friars Giuseppe Di Vittorio, pseudonym Nicoletti (1892–1957), Italian syndicalist Ildo Nicoletti, Italian physician who co-developed the Nicoletti assay Joe Nicoletti, American politician Major Nicoletti, Italo-Brazilian revolutionary Julaika Nicoletti (born 1988), Italian female shot putter Manfredi Nicoletti (1930–2017), Italian architect Manuel Nicoletti (born 1998), Italian footballer Michele Nicoletti (born 1956), Italian politician and philosopher Onorato Nicoletti (1872–1929), Italian mathematician Rudy Nicoletti (born Rodolfo Nicoletti, 1976), electronic music producer and dj Susi Nicoletti (1918–2005), German-Dutch actress Walter Nicoletti (1952–2019), Italian professional football coach Loris Nicoletti (1991), Luxembourg Diplomat Other Lago Nicoletti, a lake in the Province of Enna, Sicily, Italy Nicoletti assay, a method in cell biology named after Italian physician Ildo Nicoletti Italian-language surnames Patronymic surnames Surnames from given names
```css * { box-sizing: border-box; } body { background: #218380; } h1, h2, h3, h4, h5, h6 { color: #fff; font-family: 'Source Code Pro', monospace; } p { color: #fff; font-family: 'Work Sans', sans-serif; line-height: 1.4; } a { font-family: 'Source Code Pro', monospace; } ```
Bagienice () is a village in the administrative district of Gmina Wąsosz, within Grajewo County, Podlaskie Voivodeship, in north-eastern Poland. It lies approximately east of Wąsosz, south of Grajewo, and north-west of the regional capital Białystok. References Bagienice
```c++ // // // file LICENSE_1_0.txt or copy at path_to_url // // Official repository: path_to_url // #ifndef BOOST_BEAST_IMPL_STRING_PARAM_HPP #define BOOST_BEAST_IMPL_STRING_PARAM_HPP namespace boost { namespace beast { template<class T> typename std::enable_if< std::is_integral<T>::value>::type string_param:: print(T const& t) { auto const last = buf_ + sizeof(buf_); auto const it = detail::raw_to_string< char, T, std::char_traits<char>>( last, sizeof(buf_), t); sv_ = {it, static_cast<std::size_t>( last - it)}; } template<class T> typename std::enable_if< ! std::is_integral<T>::value && ! std::is_convertible<T, string_view>::value >::type string_param:: print(T const& t) { os_.emplace(buf_, sizeof(buf_)); *os_ << t; os_->flush(); sv_ = os_->str(); } inline void string_param:: print(string_view sv) { sv_ = sv; } template<class T> typename std::enable_if< std::is_integral<T>::value>::type string_param:: print_1(T const& t) { char buf[detail::max_digits(sizeof(T))]; auto const last = buf + sizeof(buf); auto const it = detail::raw_to_string< char, T, std::char_traits<char>>( last, sizeof(buf), t); *os_ << string_view{it, static_cast<std::size_t>(last - it)}; } template<class T> typename std::enable_if< ! std::is_integral<T>::value>::type string_param:: print_1(T const& t) { *os_ << t; } template<class T0, class... TN> void string_param:: print_n(T0 const& t0, TN const&... tn) { print_1(t0); print_n(tn...); } template<class T0, class T1, class... TN> void string_param:: print(T0 const& t0, T1 const& t1, TN const&... tn) { os_.emplace(buf_, sizeof(buf_)); print_1(t0); print_1(t1); print_n(tn...); os_->flush(); sv_ = os_->str(); } template<class... Args> string_param:: string_param(Args const&... args) { print(args...); } } // beast } // boost #endif ```
```smalltalk using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Volo.Abp.AspNetCore.Middleware; using Volo.Abp.DependencyInjection; using Volo.Abp.Security.Claims; namespace Volo.Abp.AspNetCore.Security.Claims; public class AbpDynamicClaimsMiddleware : AbpMiddlewareBase, ITransientDependency { public async override Task InvokeAsync(HttpContext context, RequestDelegate next) { if (context.User.Identity?.IsAuthenticated == true) { if (context.RequestServices.GetRequiredService<IOptions<AbpClaimsPrincipalFactoryOptions>>().Value.IsDynamicClaimsEnabled) { var authenticationType = context.User.Identity.AuthenticationType; var abpClaimsPrincipalFactory = context.RequestServices.GetRequiredService<IAbpClaimsPrincipalFactory>(); context.User = await abpClaimsPrincipalFactory.CreateDynamicAsync(context.User); if (context.User.Identity?.IsAuthenticated == false) { var authenticationSchemeProvider = context.RequestServices.GetRequiredService<IAuthenticationSchemeProvider>(); if (!authenticationType.IsNullOrWhiteSpace()) { var authenticationScheme = await authenticationSchemeProvider.GetSchemeAsync(authenticationType); if (authenticationScheme != null && typeof(IAuthenticationSignOutHandler).IsAssignableFrom(authenticationScheme.HandlerType)) { await context.SignOutAsync(authenticationScheme.Name); } } } } } await next(context); } } ```
```objective-c #ifndef ring_objfile_h #define ring_objfile_h /* Constants */ /* Object File Source */ #define RING_OBJFILE_READFROMFILE 1 #define RING_OBJFILE_READFROMSTRING 2 /* Embedded Object */ #define RING_OBJFILE_ITEMSPERFUNCTION 100000 #define RING_OBJFILE_ITEMSPERFUNCTION2 100000 /* Version */ #define RING_OBJFILE_VERSION "# OBJECT 1.21" #define RING_OBJFILE_VERSIONSTRINGSIZE 13 /* Key */ #define RING_OBJFILE_KEYSIZE 10 #define RING_OBJFILE_KEYSTRSIZE 11 #define RING_OBJFILE_KEYSTRING "ringstring" /* File Type */ #define RING_OBJFILE_FILETYPESTR "# Ring Object File" #define RING_OBJFILE_FILETYPESTRCOUNT 18 /* Functions */ void ring_objfile_writefile ( RingState *pRingState ) ; void ring_objfile_writelist ( List *pList,FILE *fObj ) ; int ring_objfile_readfile ( RingState *pRingState,char *cFileName ) ; int ring_objfile_readstring ( RingState *pRingState,char *cString ) ; int ring_objfile_readfromsource ( RingState *pRingState,char *cSource,int nSourceType ) ; int ring_objfile_processfile ( RingState *pRingState,char *cFileName,List *pListFunctions,List *pListClasses,List *pListPackages,List *pListCode,List *pListFiles,List *pListStack ) ; int ring_objfile_processstring ( RingState *pRingState,char *cContent,List *pListFunctions,List *pListClasses,List *pListPackages,List *pListCode,List *pListFiles,List *pListStack ) ; RING_API void ring_objfile_updateclassespointers ( RingState *pRingState ) ; void ring_objfile_xorstring ( char *cString,int nStringSize,char *cKey,int nKeySize ) ; void ring_objfile_readc ( RingState *pRingState,char **cSource,char *cDest,int nCount ) ; char ring_objfile_getc ( RingState *pRingState,char **cSource ) ; void ring_objfile_writeCfile ( RingState *pRingState ) ; int ring_objfile_writelistcode ( List *pList,FILE *fCode,int nList,int lSeparate,int nFunction,int nItemsPerFunction ) ; void ring_objfile_writebytecode ( List *pList,FILE *fCode ) ; #endif ```
Senator Perez may refer to: Aníbal Marrero Pérez (1949–2005), Senate of Puerto Rico Joaquin A. Perez (1916–1984), Senate of Guam
```scala package ml.combust.mleap.core.feature import ml.combust.mleap.core.Model import ml.combust.mleap.core.types._ import org.apache.spark.ml.linalg.{Vector, Vectors} /** Class for a one hot encoder model. * * One hot encoders are used to vectorize nominal features * in preparation for models such as linear regression or * logistic regression where binary and not multinomial features * are supported in the feature vector. * */ case class OneHotEncoderModel(categorySizes: Array[Int], handleInvalid: HandleInvalid = HandleInvalid.Error, dropLast: Boolean = true) extends Model { private val oneValue = Array(1.0) private val emptyIndices = Array.empty[Int] private val emptyValues = Array.empty[Double] private val keepInvalid: Boolean = handleInvalid == HandleInvalid.Keep private val configedCategorySizes: Array[Int] = { if (!dropLast && keepInvalid) { // When `handleInvalid` is "keep", an extra category is added as last category // for invalid data. categorySizes.map(_ + 1) } else if (dropLast && !keepInvalid) { // When `dropLast` is true, the last category is removed. categorySizes.map(_ - 1) } else { // When `dropLast` is true and `handleInvalid` is "keep", the extra category for invalid // data is removed. Thus, it is the same as the plain number of categories. categorySizes } } /** Turn an array of labeled features into an array of one hot vectors. * * @param labels array pf labels to convert to vectors * @return array pf one hot vector representations of labels */ def apply(labels: Array[Double]): Array[Vector] = { if (labels.length != categorySizes.length) { throw new IllegalArgumentException(s"invalid input size: ${labels.length}, must be ${categorySizes.length}") } labels.zipWithIndex.map { case (label: Double, colIdx: Int) encoder(label, colIdx) } } private def encoder(label: Double, colIdx: Int): Vector = { val labelInt = label.toInt if(label != labelInt) { throw new IllegalArgumentException(s"invalid label: $label, must be integer") } val origCategorySize = categorySizes(colIdx) val idx = if (label >= 0 && label < origCategorySize) { label } else { if (keepInvalid) { origCategorySize } else { if (label < 0) { throw new IllegalArgumentException(s"Negative value: $label. Input can't be negative. To handle invalid values, set Param handleInvalid to ${HandleInvalid.Keep}") } else { throw new IllegalArgumentException(s"Unseen value: $label. To handle unseen values, set Param handleInvalid to ${HandleInvalid.Keep}") } } } val size = configedCategorySizes(colIdx) if (idx < size) { Vectors.sparse(size, Array(idx.toInt), oneValue) } else { Vectors.sparse(size, emptyIndices, emptyValues) } } override def inputSchema: StructType = { val f = categorySizes.zipWithIndex.map { case (_, i) => StructField(s"input$i", ScalarType.Double.setNullable(false)) } StructType(f).get } override def outputSchema: StructType = { val f = categorySizes.zipWithIndex.map { case (size, i) => StructField(s"output$i", TensorType.Double(size)) } StructType(f).get } } ```
Andy Scott (born 1964) is a Scottish figurative sculptor, working in galvanised steel and bronze. Biography Andy Scott graduated from Glasgow School of Art in 1986 with a Bachelor of Arts (with honours) in Fine Art Sculpture, and in 1987 with a diploma in Postgraduate Studies. Andy Scott is a Los Angeles–based figurative sculptor who works internationally on public and private artworks. His works combine traditional draftsmanship with contemporary fabrication techniques and currently range from in height. Notable works The Kelpies, monumental horses heads completed on 27 November 2013 Falkirk, Scotland "Lulla-Bye", Edinburgh, Scotland Arria, Cumbernauld, Scotland Poised, Marischal Square, Aberdeen Rise, Glasgow Harbour, Scotland COB, Bexley, London Arabesque, Queensland, Australia Argestes Aqua, Victoria, Australia River Spirit, Stride, Foxboy, I Can See For Miles, Journeys End, Lifeline: all Clackmannanshire, Scotland Beacon of Hope, Belfast, Northern Ireland Ibrox Disaster Memorial, Glasgow, Scotland Heavy Horse, on M8 Edinburgh to Glasgow motorway Equus Altüs and The Briggate Minerva, Trinity Leeds shopping centre, Leeds, England Charles Rennie Mackintosh, Glasgow, statue unveiled on the 90th anniversary of his death on 10 December 2018. The DunBear, DunBear Park in Dunbar, statue unveiled on 2019 in honour of Dunbar-born naturalist John Muir. Statues of Vincent Kompany, David Silva, and Sergio Agüero, Etihad Stadium, Manchester Gallery See also Water-horse Falkirk Helix List of sculptors References External links Inception Gallery website Andy Scott Public Art website showing the history and progress of The Kelpies project The Helix website, location of The Kelpies sculptures BBC NEWS, 1 July 2008: Horses inspire landmark sculpture BBC NEWS, 14 November 2007: In Pictures — The Helix Project BBC NEWS, 15 July 2008, Andy Scott sculptures in Clackmannanshire Sculpture Scotland website, listing Andy Scott Scottish sculptors Scottish male sculptors 1964 births Living people Alumni of the Glasgow School of Art Artists from Glasgow People educated at Bellahouston Academy Scottish expatriates in the United States
Events in the year 1948 in Portugal. Incumbents President: Óscar Carmona Prime Minister: António de Oliveira Salazar Events Arts and entertainment March – The Jazz club Hot Club of Portugal established Sports CD Operário founded A.D. Lousada founded C.D. Montijo founded C.D. Pinhalnovense founded C.D. Portosantense founded Births 10 January – Moisés Matias de Andrade, footballer (d. 2008) 17 January – Alfredo Murça, footballer (d. 2007) 29 March – Fernando Tordo, singer and composer 25 June – Manuel Bento, footballer (d. 2007) 25 July – Carlos Silva Valente, footballer 4 August – Braulio Barbosa de Lima, footballer 11 August – António Taí, footballer 21 October – Francisco Mário, footballer 30 October – Ilda Figueiredo, politician 2 November – Manuel Carvalho da Silva, sociologist 6 November – Quinito, footballer 23 November – Leonor Beleza, politician Full date missing Julião Sarmento, painter and multimedia artist Deaths 15 December – João Tamagnini Barbosa, military officer and politician (born 1883) References 1940s in Portugal Portugal Years of the 20th century in Portugal Portugal
Rock and Roll Diary: 1967–1980 is a compilation album by Lou Reed. It was released by Arista Records in 1980 as a double album split between tracks by the Velvet Underground and tracks by Reed, attempting to demonstrate the arc of his songwriting over the first fifteen years of his career. The versions of "Heroin" and "Femme Fatale" are from the Velvet Underground live album 1969: The Velvet Underground Live (1974). "Coney Island Baby" comes from Live: Take No Prisoners. The liner notes for the album were written by Ellen Willis. Track listing "Waiting for the Man" "White Light/White Heat" "I Heard Her Call My Name" "Pale Blue Eyes" "Beginning to See the Light" "Sweet Jane" "Rock & Roll" "Heroin" (live) "Femme Fatale" (live) "Walk on the Wild Side" "Berlin" "Men of Good Fortune" "The Kids" "Coney Island Baby" (live) "Temporary Thing" "All Through the Night" "So Alone" "How Do You Speak to an Angel" "Keep Away" "Street Hassle" An edited version of the album was released on compact disc on September 27, 1994. Track listing (CD) "Waiting for the Man" "White Light/White Heat" "I Heard Her Call My Name" "Pale Blue Eyes" "Sweet Jane" "Rock & Roll" "Heroin" (live) "Femme Fatale" (live) "Walk on the Wild Side" "Berlin" "Temporary Thing" "All Through the Night" "So Alone" "Keep Away" "Street Hassle" References Lou Reed compilation albums 1980 compilation albums Arista Records compilation albums
The 1077th Anti-Aircraft Regiment (Russian: 1077-й зенитный артиллерийский полк, 1077-y zenith artillerymen Polk) was a unit of the Stalingrad Corps Region of the Soviet Air Defense Forces that participated in the Battle of Stalingrad in 1942. Under the leadership of Colonel Raiynin, the regiment operated within the Stalingrad Military District and later came under the command of the Stalingrad Front during the battle for the city. Comprising mostly young female volunteers who had recently completed high school, the regiment demonstrated great bravery in defending the city of Stalingrad (now Volgograd). One notable act of valor was when they engaged an approaching Panzer unit by adjusting their guns to the lowest elevation and directly firing at the advancing tanks. Training and materials English-language sources of information concerning the 1077th unit provide limited and conflicting details. However, it is believed that similar to other anti-aircraft units, they received inadequate training and had insufficient ammunition supplies. Instead of armor-piercing rounds, they were equipped with fragmentation 'flak' rounds, which raises doubts regarding their effectiveness against armored targets. The unit utilized M1939 guns, which were 37-mm replicas of the Bofors guns. The Defense of Stalingrad On August 23, 1942, the German 6th Army initiated an offensive on Stalingrad, preceded by extensive bombing that caused significant damage to the city. The 16th Panzer Division advanced towards Gumrak Airport, located 15 kilometers northwest of the city, and encountered resistance from Soviet anti-aircraft guns. According to the records of the 16th Panzer Division, they encountered determined opposition from tenacious female fighters manning 37 anti-aircraft positions, engaging in a fierce exchange of fire until those positions were destroyed. The official Soviet historical account of the war acknowledges this event, stating that the anti-aircraft troops of the 1077th Anti-Aircraft Regiment, led by Colonel W. S. German, engaged the enemy's tanks and motorized infantry without immediate support from rifle units. The regiment fought alone for two days, successfully repelling the assaults of German submachine gunners. While engaged in combat, they managed to damage or destroy 83 tanks as well as 15 other vehicles carrying infantry. Additionally, the regiment neutralized over three battalions of assault infantry and shot down 14 enemy aircraft. The 1077th Anti-Aircraft Regiment continued to serve in the Soviet forces until the end of the war. In May 1945, the regiment became part of the 86th Air Defense Forces Division, operating on the Southwestern Front. In 1945, the 86th Division was responsible for providing air defense support to the Kharkiv and Odessa Military Regions, as well as the Independent Coastal Army. Notes References Beevor, Antony (1999). Stalingrad (in English). Viking Press, Penguin Books. (Pbk). Gretschko, A. A., et al. (1975). Geschichte des Zweiten Welt Krieges 1939-1945 (German translation of the official Soviet history of the Second World War), Volume 5, page 216. Berlin: Militärverlag der DDR. Stalingrad 1942 External links 1077th AA Regiment: The Women Who Defended The Stalingrad Tractor Factory Against German Panzers Regiments of the Soviet Union All-female military units and formations Artillery units and formations of the Soviet Union Air defence units and formations of the Soviet Union
"Sweet City Woman" is a 1971 song by Canadian rock band The Stampeders, appearing on their debut album Against the Grain (retitled Sweet City Woman in the US). It features a banjo as a primary instrument, which is also mentioned in the lyrics: "The banjo and me, we got a feel for singing." Chart performance The single spent four weeks as a number 1 hit in Canada, and reached number 8 in the US. It also climbed to number 1 on the Canadian country music and adult contemporary charts. The song was also marketed in Canada by Quality Records with instrumental and French lyric versions. Weekly charts Year-end charts Awards The band and song won numerous Juno Awards in 1972, including Best Single, Songwriter of the Year (guitarist Rich Dodson), Record Producer of the Year (Mel Shaw), and the band was named Canada's Top Group. Cover versions The song has been covered by many musicians over the years, most notably: American country music artist Johnny Carver, in 1977. Carver's version peaked at number 48 on the Billboard Hot Country Singles & Tracks charts. Tompall & the Glaser Brothers, whose release went to number 34 on the same chart in 1980. Other less known covers include one by Danish singer and actress Daimi Gentle titled "Jeg kommer" (I'm coming), released in 1973. Use in media The song can be heard during a flashback scene in the Better Call Saul episode "Inflatable," the Adam Sandler film Little Nicky, the Condor episode “Out of His Exile,” and in the Canadian commercial for "Dempster's Bread Farmer". Personnel Produced by Mel Shaw Engineered by Terry Brown Recorded at Toronto Sound, Toronto, Ontario, Canada. Rich Dodson – vocal, banjo, lead electric guitar Ronnie King – bass Kim Berly – drums References External links Origin Stories: Rich Dodson on The Stampeders’ “Sweet City Woman” from JulietteJagger.com. 1971 singles 1977 singles 2008 singles Franglais songs Jo Hikk songs Johnny Carver songs The Stampeders songs Tompall & the Glaser Brothers songs RPM Top Singles number-one singles 1971 songs Bell Records singles Philips Records singles Songs about New Orleans
The discography of Indonesian-born French singer-songwriter Anggun consists of eleven studio albums, two soundtrack albums, three greatest hits albums, seven single compilations, 38 singles and 20 music videos. Anggun began performing at the age of seven and recorded a children's album two years later. Her debut studio album, Dunia Aku Punya, was released in 1986 under Billboard Indonesia, but did not achieve commercial success. Her popularity was later established after the success of the single "Mimpi", which was listed as one of the 150 Greatest Indonesian Songs of All Time. With the release of subsequent singles and three more studio albums— Anak Putih Abu Abu, Nocturno and Anggun C. Sasmi... Lah!!!—Anggun became one of the most successful Indonesian rock singers in the early 1990s. In 1993, she became the youngest Indonesian singer to found her own record company, Bali Cipta Records. By the age of 19, she had sold over four million albums in Indonesia. In 1994, Anggun released a greatest hits album, Yang Hilang, and move to Europe to pursue an international career. In 1996, she signed to Columbia Records and released her first French-language album, Au nom de la lune. "La neige au Sahara" was released as the album first single and quickly became a hit in France, peaking at number 1 on the French Airplay Chart and number 16 on the French Singles Chart. The English version of the album, Snow on the Sahara, was released by Sony Music Entertainment in 33 countries across Asia, Europe and America. It sold over 2 million copies worldwide and received Diamond Export award. The single, "Snow on the Sahara", topped the charts in Italy, Spain and several countries in Asia, and the top five on the UK Club Chart. In the United States, the album peaked at number 23 on the Billboard Heatseekers Albums Chart and shipped 200,000 units. The single also charted at number 16 on the Billboard Hot Dance Music/Club Play and number 22 on the Billboard Adult Top 40. Anggun's second international album, Chrysalis for English version and Desirs contraires for French version, was released in 2000 and was certified Platinum Export award. Its lead single, "Still reminds Me" which reached the top five on the European Border Breakers Chart. Anggun released a soundtrack album to Danish film Open Hearts in 2002. The single, "Open Your Heart", charted at number 51 on the Norwegian Singles Chart and earned Anggun a nomination for Best Song at the 2003 Robert Awards, the Danish equivalent of Academy Awards. Her contract with Columbia and Sony Music ended in 2003 due to the company's structural change. She signed a new record deal with Heben Music, an independent label in France. In 2005, Anggun released her third international studio album, Luminescence, which shares the same title in both English and French. The album sold over 1 million copies worldwide and produced the single "Saviour", which was featured on the soundtrack of the film Transporter 2. The single topped the charts in France, the Ukraine and Indonesia; "Undress Me" was also released in several countries, reaching number 1 in Turkey and Lebanon. In 2008, Anggun released her fourth international album, Elevation, which saw her experiment with hip hop and urban music. Her first single "Crazy" was released in international market, French version of "Si tu l'avoues" and Indonesian version of "Jadi Milikmu". She had collaboration with Russian singer Max Lorens for single "О нас с тобой" a version of Russian single from "No Song". In Indonesia, it sold over 550.000 copies album and certificated Double Platinum by ASIRI. Unfortunately, the album became lowest sales in the whole of international market. Anggun' fifth international album, Echoes (English version) and Échos (French version) was released in May 2011 under the label April Earth, his own record company. It had produced two singles: "Mon meilleur amour" and "Je partirai". The single "Mon meilleur amour" topped the charts at number 1 on Indonesia Airplay Chart and French International Airplay Chart and also earning Platinum Export Award with sales of 300.500 copies. The album was certificated 4× Platinum in 1 week on Indonesia. On November 20, 2015, Anggun has released the sixth French-language album Toujours un ailleurs by TF1 Musique. It debuted at number 43 in the France and Belgium. Albums Studio albums Compilation albums Soundtrack albums Extended plays Singles As lead artist As featured artist Promotional singles Music videos Notes References External links Anggun official website Discography Discographies of Indonesian artists Pop music discographies Contemporary R&B discographies Rock music group discographies
West Pontianak (Pontianak Barat in Indonesian) is a district (Indonesian:kecamatan) of the city of Pontianak. It lies on the south bank of the Kapuas Besar River and covers an area of 16.47 km2. It had a population of 123,029 at the 2010 census; the latest official estimate of population (as at mid 2019) is 143,060. References Pontianak Populated places in West Kalimantan
```swift // swift-tools-version:5.3 import PackageDescription let package = Package( name: "Highlightr", platforms: [ .macOS(.v10_11), .iOS(.v8), ], products: [ .library( name: "Highlightr", targets: ["Highlightr"] ), ], dependencies: [], targets: [ .target( name: "Highlightr", dependencies: [], path: "Pod", exclude: [ "Assets/Highlighter/LICENSE", ], sources: [ "Classes", ], resources: [ .copy("Assets/Highlighter/highlight.min.js"), .copy("Assets/styles/a11y-dark.min.css"), .copy("Assets/styles/a11y-light.min.css"), .copy("Assets/styles/agate.min.css"), .copy("Assets/styles/an-old-hope.min.css"), .copy("Assets/styles/androidstudio.min.css"), .copy("Assets/styles/arduino-light.min.css"), .copy("Assets/styles/arta.min.css"), .copy("Assets/styles/ascetic.min.css"), .copy("Assets/styles/atelier-cave-dark.min.css"), .copy("Assets/styles/atelier-cave-light.min.css"), .copy("Assets/styles/atelier-dune-dark.min.css"), .copy("Assets/styles/atelier-dune-light.min.css"), .copy("Assets/styles/atelier-estuary-dark.min.css"), .copy("Assets/styles/atelier-estuary-light.min.css"), .copy("Assets/styles/atelier-forest-dark.min.css"), .copy("Assets/styles/atelier-forest-light.min.css"), .copy("Assets/styles/atelier-heath-dark.min.css"), .copy("Assets/styles/atelier-heath-light.min.css"), .copy("Assets/styles/atelier-lakeside-dark.min.css"), .copy("Assets/styles/atelier-lakeside-light.min.css"), .copy("Assets/styles/atelier-plateau-dark.min.css"), .copy("Assets/styles/atelier-plateau-light.min.css"), .copy("Assets/styles/atelier-savanna-dark.min.css"), .copy("Assets/styles/atelier-savanna-light.min.css"), .copy("Assets/styles/atelier-seaside-dark.min.css"), .copy("Assets/styles/atelier-seaside-light.min.css"), .copy("Assets/styles/atelier-sulphurpool-dark.min.css"), .copy("Assets/styles/atelier-sulphurpool-light.min.css"), .copy("Assets/styles/atom-one-dark-reasonable.min.css"), .copy("Assets/styles/atom-one-dark.min.css"), .copy("Assets/styles/atom-one-light.min.css"), .copy("Assets/styles/brown-paper.min.css"), .copy("Assets/styles/codepen-embed.min.css"), .copy("Assets/styles/color-brewer.min.css"), .copy("Assets/styles/darcula.min.css"), .copy("Assets/styles/dark.min.css"), .copy("Assets/styles/darkula.min.css"), .copy("Assets/styles/default.min.css"), .copy("Assets/styles/docco.min.css"), .copy("Assets/styles/dracula.min.css"), .copy("Assets/styles/far.min.css"), .copy("Assets/styles/foundation.min.css"), .copy("Assets/styles/github-gist.min.css"), .copy("Assets/styles/github.min.css"), .copy("Assets/styles/gml.min.css"), .copy("Assets/styles/googlecode.min.css"), .copy("Assets/styles/grayscale.min.css"), .copy("Assets/styles/gruvbox-dark.min.css"), .copy("Assets/styles/gruvbox-light.min.css"), .copy("Assets/styles/hopscotch.min.css"), .copy("Assets/styles/hybrid.min.css"), .copy("Assets/styles/idea.min.css"), .copy("Assets/styles/ir-black.min.css"), .copy("Assets/styles/isbl-editor-dark.min.css"), .copy("Assets/styles/isbl-editor-light.min.css"), .copy("Assets/styles/kimbie.dark.min.css"), .copy("Assets/styles/kimbie.light.min.css"), .copy("Assets/styles/lightfair.min.css"), .copy("Assets/styles/magula.min.css"), .copy("Assets/styles/mono-blue.min.css"), .copy("Assets/styles/monokai-sublime.min.css"), .copy("Assets/styles/monokai.min.css"), .copy("Assets/styles/nord.min.css"), .copy("Assets/styles/obsidian.min.css"), .copy("Assets/styles/ocean.min.css"), .copy("Assets/styles/paraiso-dark.min.css"), .copy("Assets/styles/paraiso-light.min.css"), .copy("Assets/styles/pojoaque.min.css"), .copy("Assets/styles/purebasic.min.css"), .copy("Assets/styles/qtcreator_dark.min.css"), .copy("Assets/styles/qtcreator_light.min.css"), .copy("Assets/styles/railscasts.min.css"), .copy("Assets/styles/rainbow.min.css"), .copy("Assets/styles/routeros.min.css"), .copy("Assets/styles/school-book.min.css"), .copy("Assets/styles/shades-of-purple.min.css"), .copy("Assets/styles/solarized-dark.min.css"), .copy("Assets/styles/solarized-light.min.css"), .copy("Assets/styles/sunburst.min.css"), .copy("Assets/styles/tomorrow-night-blue.min.css"), .copy("Assets/styles/tomorrow-night-bright.min.css"), .copy("Assets/styles/tomorrow-night-eighties.min.css"), .copy("Assets/styles/tomorrow-night.min.css"), .copy("Assets/styles/tomorrow.min.css"), .copy("Assets/styles/vs.min.css"), .copy("Assets/styles/vs2015.min.css"), .copy("Assets/styles/xcode.min.css"), .copy("Assets/styles/xcode-dark.min.css"), .copy("Assets/styles/xt256.min.css"), .copy("Assets/styles/zenburn.min.css"), ] ), ] ) ```
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var pkg = require( './../package.json' ).name; var dnanvariancepn = require( './../lib/ndarray.js' ); // FUNCTIONS // /** * Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length * @returns {Function} benchmark function */ function createBenchmark( len ) { var x; var i; x = new Float64Array( len ); for ( i = 0; i < x.length; i++ ) { if ( randu() < 0.2 ) { x[ i ] = NaN; } else { x[ i ] = ( randu()*20.0 ) - 10.0; } } return benchmark; function benchmark( b ) { var v; var i; b.tic(); for ( i = 0; i < b.iterations; i++ ) { v = dnanvariancepn( x.length, 1, x, 1, 0 ); if ( isnan( v ) ) { b.fail( 'should not return NaN' ); } } b.toc(); if ( isnan( v ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); b.end(); } } // MAIN // /** * Main execution sequence. * * @private */ function main() { var len; var min; var max; var f; var i; min = 1; // 10^min max = 6; // 10^max for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); bench( pkg+':ndarray:len='+len, f ); } } main(); ```
I'll Get You For This is a 1946 action thriller novel by British writer James Hadley Chase. Synopsis Chester Cain, a small-time ex hit man and ace gambler, tired of his old life, moves to Paradise Palms, "some seventy miles from Miami", to start a new life with his lifetime savings, only to come across a set of ruthless people who try to use him and implicate him in a crime which he has not committed. Soon the cops are after Cain, who goes on the run, along with newfound Ms.Wonderly, a homeless wayward girl, who has also been framed like him. Cain is left with no choice but to use his skills to prove his innocence and get to the bottom of his and Wonderly's false implication. This book is incredibly action-packed, despite the fact that Chase novels are typically thrillers and not just action novels. See also I'll Get You for This, 1951 film of the book References External links James Hadley Chase tribute website. 1946 British novels Novels by James Hadley Chase British thriller novels Novels set in the Las Vegas Valley British novels adapted into films Jarrold Publishing books
```xml import {Component} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; import {MatToolbarModule} from '@angular/material/toolbar'; /** * @title Testing with MatToolbarHarness */ @Component({ selector: 'toolbar-harness-example', templateUrl: 'toolbar-harness-example.html', standalone: true, imports: [MatToolbarModule, MatButtonModule], }) export class ToolbarHarnessExample {} ```
```objective-c /* LzmaLib.h -- LZMA library interface 2009-04-07 : Igor Pavlov : Public domain */ #ifndef __LZMA_LIB_H #define __LZMA_LIB_H #include "Types.h" #ifdef __cplusplus extern "C" { #endif #define MY_STDAPI int MY_STD_CALL #define LZMA_PROPS_SIZE 5 /* RAM requirements for LZMA: for compression: (dictSize * 11.5 + 6 MB) + state_size for decompression: dictSize + state_size state_size = (4 + (1.5 << (lc + lp))) KB by default (lc=3, lp=0), state_size = 16 KB. LZMA properties (5 bytes) format Offset Size Description 0 1 lc, lp and pb in encoded form. 1 4 dictSize (little endian). */ /* LzmaCompress ------------ outPropsSize - In: the pointer to the size of outProps buffer; *outPropsSize = LZMA_PROPS_SIZE = 5. Out: the pointer to the size of written properties in outProps buffer; *outPropsSize = LZMA_PROPS_SIZE = 5. LZMA Encoder will use defult values for any parameter, if it is -1 for any from: level, loc, lp, pb, fb, numThreads 0 for dictSize level - compression level: 0 <= level <= 9; level dictSize algo fb 0: 16 KB 0 32 1: 64 KB 0 32 2: 256 KB 0 32 3: 1 MB 0 32 4: 4 MB 0 32 5: 16 MB 1 32 6: 32 MB 1 32 7+: 64 MB 1 64 The default value for "level" is 5. algo = 0 means fast method algo = 1 means normal method dictSize - The dictionary size in bytes. The maximum value is 128 MB = (1 << 27) bytes for 32-bit version 1 GB = (1 << 30) bytes for 64-bit version The default value is 16 MB = (1 << 24) bytes. It's recommended to use the dictionary that is larger than 4 KB and that can be calculated as (1 << N) or (3 << N) sizes. lc - The number of literal context bits (high bits of previous literal). It can be in the range from 0 to 8. The default value is 3. Sometimes lc=4 gives the gain for big files. lp - The number of literal pos bits (low bits of current position for literals). It can be in the range from 0 to 4. The default value is 0. The lp switch is intended for periodical data when the period is equal to 2^lp. For example, for 32-bit (4 bytes) periodical data you can use lp=2. Often it's better to set lc=0, if you change lp switch. pb - The number of pos bits (low bits of current position). It can be in the range from 0 to 4. The default value is 2. The pb switch is intended for periodical data when the period is equal 2^pb. fb - Word size (the number of fast bytes). It can be in the range from 5 to 273. The default value is 32. Usually, a big number gives a little bit better compression ratio and slower compression process. numThreads - The number of thereads. 1 or 2. The default value is 2. Fast mode (algo = 0) can use only 1 thread. Out: destLen - processed output size Returns: SZ_OK - OK SZ_ERROR_MEM - Memory allocation error SZ_ERROR_PARAM - Incorrect paramater SZ_ERROR_OUTPUT_EOF - output buffer overflow SZ_ERROR_THREAD - errors in multithreading functions (only for Mt version) */ MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, unsigned char *outProps, size_t *outPropsSize, /* *outPropsSize must be = 5 */ int level, /* 0 <= level <= 9, default = 5 */ unsigned dictSize, /* default = (1 << 24) */ int lc, /* 0 <= lc <= 8, default = 3 */ int lp, /* 0 <= lp <= 4, default = 0 */ int pb, /* 0 <= pb <= 4, default = 2 */ int fb, /* 5 <= fb <= 273, default = 32 */ int numThreads /* 1 or 2, default = 2 */ ); /* LzmaUncompress -------------- In: dest - output data destLen - output data size src - input data srcLen - input data size Out: destLen - processed output size srcLen - processed input size Returns: SZ_OK - OK SZ_ERROR_DATA - Data error SZ_ERROR_MEM - Memory allocation arror SZ_ERROR_UNSUPPORTED - Unsupported properties SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer (src) */ MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, SizeT *srcLen, const unsigned char *props, size_t propsSize); #ifdef __cplusplus } #endif #endif ```
```cuda path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #include "paddle/phi/kernels/i0e_kernel.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" #include "paddle/phi/kernels/impl/bessel_kernel_cuda_impl.h" namespace phi { template <typename T, typename Context> void I0eKernel(const Context& ctx, const DenseTensor& x, DenseTensor* out) { ctx.template Alloc<T>(out); std::vector<const DenseTensor*> ins = {&x}; std::vector<DenseTensor*> outs = {out}; auto functor = CudaI0eFunctor<T>(); phi::funcs::ElementwiseKernel<T>(ctx, ins, &outs, functor); } } // namespace phi PD_REGISTER_KERNEL(i0e, GPU, ALL_LAYOUT, phi::I0eKernel, float, double) {} ```
Michael W. Mulholland is an American surgeon who is Professor of Surgery and the Chairman of the Department of Surgery at the University of Michigan. Biography Mulholland was educated at Northwestern University in Evanston, Illinois and gained his medical degree from Northwestern University Medical School in Chicago. This was followed by postgraduate training in General Surgery at the University of Minnesota in Minneapolis, where he also gained his Ph.D. From 1985-1988, Mulholland was an Assistant Professor of Surgery at the University of Washington in Seattle. He joined the faculty at the University of Michigan in 1988. Dr. Mulholland is now the Frederick A. Coller Distinguished Professor of Surgery, and Chair, Department of Surgery Mulholland's area of specialization is in laparoscopic surgery and surgical endoscopy, including the treatment of pancreatic and biliary cancer, neoplastic diseases of the gastrointestinal tract, biliary reconstruction and inflammatory bowel disease. His research interests include the neurocrine control of pancreatic exocrine secretion and enteric neurobiology. Mulholland has co-authored or edited several books and was elected as a member of the National Academy of Sciences in 2004. Bibliography Essentials of Surgery: Scientific Principles and Practice Surgery: Scientific Principles & Practice + Review for Surgery Digestive Tract Surgery: A Text and Atlas Greenfield's Surgery: Scientific Principles And Practice Complications in Surgery References American surgeons Feinberg School of Medicine alumni University of Minnesota alumni Living people Members of the United States National Academy of Sciences University of Michigan faculty Year of birth missing (living people) Members of the National Academy of Medicine
```c++ // // basic_socket_iostream.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // // file LICENSE_1_0.txt or copy at path_to_url // #ifndef ASIO_BASIC_SOCKET_IOSTREAM_HPP #define ASIO_BASIC_SOCKET_IOSTREAM_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include "asio/detail/config.hpp" #if !defined(ASIO_NO_IOSTREAM) #include <istream> #include <ostream> #include "asio/basic_socket_streambuf.hpp" #include "asio/detail/push_options.hpp" namespace asio { namespace detail { // A separate base class is used to ensure that the streambuf is initialised // prior to the basic_socket_iostream's basic_iostream base class. template <typename Protocol, typename Clock, typename WaitTraits> class socket_iostream_base { protected: socket_iostream_base() { } socket_iostream_base(socket_iostream_base&& other) : streambuf_(std::move(other.streambuf_)) { } socket_iostream_base(basic_stream_socket<Protocol> s) : streambuf_(std::move(s)) { } socket_iostream_base& operator=(socket_iostream_base&& other) { streambuf_ = std::move(other.streambuf_); return *this; } basic_socket_streambuf<Protocol, Clock, WaitTraits> streambuf_; }; } // namespace detail #if !defined(ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL) #define ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL // Forward declaration with defaulted arguments. template <typename Protocol, #if defined(ASIO_HAS_BOOST_DATE_TIME) \ && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) typename Clock = boost::posix_time::ptime, typename WaitTraits = time_traits<Clock>> #else // defined(ASIO_HAS_BOOST_DATE_TIME) // && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) typename Clock = chrono::steady_clock, typename WaitTraits = wait_traits<Clock>> #endif // defined(ASIO_HAS_BOOST_DATE_TIME) // && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) class basic_socket_iostream; #endif // !defined(ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL) /// Iostream interface for a socket. #if defined(GENERATING_DOCUMENTATION) template <typename Protocol, typename Clock = chrono::steady_clock, typename WaitTraits = wait_traits<Clock>> #else // defined(GENERATING_DOCUMENTATION) template <typename Protocol, typename Clock, typename WaitTraits> #endif // defined(GENERATING_DOCUMENTATION) class basic_socket_iostream : private detail::socket_iostream_base<Protocol, Clock, WaitTraits>, public std::basic_iostream<char> { private: // These typedefs are intended keep this class's implementation independent // of whether it's using Boost.DateClock, Boost.Chrono or std::chrono. #if defined(ASIO_HAS_BOOST_DATE_TIME) \ && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) typedef WaitTraits traits_helper; #else // defined(ASIO_HAS_BOOST_DATE_TIME) // && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) typedef detail::chrono_time_traits<Clock, WaitTraits> traits_helper; #endif // defined(ASIO_HAS_BOOST_DATE_TIME) // && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM) public: /// The protocol type. typedef Protocol protocol_type; /// The endpoint type. typedef typename Protocol::endpoint endpoint_type; /// The clock type. typedef Clock clock_type; #if defined(GENERATING_DOCUMENTATION) /// (Deprecated: Use time_point.) The time type. typedef typename WaitTraits::time_type time_type; /// The time type. typedef typename WaitTraits::time_point time_point; /// (Deprecated: Use duration.) The duration type. typedef typename WaitTraits::duration_type duration_type; /// The duration type. typedef typename WaitTraits::duration duration; #else # if !defined(ASIO_NO_DEPRECATED) typedef typename traits_helper::time_type time_type; typedef typename traits_helper::duration_type duration_type; # endif // !defined(ASIO_NO_DEPRECATED) typedef typename traits_helper::time_type time_point; typedef typename traits_helper::duration_type duration; #endif /// Construct a basic_socket_iostream without establishing a connection. basic_socket_iostream() : std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); } /// Construct a basic_socket_iostream from the supplied socket. explicit basic_socket_iostream(basic_stream_socket<protocol_type> s) : detail::socket_iostream_base< Protocol, Clock, WaitTraits>(std::move(s)), std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); } /// Move-construct a basic_socket_iostream from another. basic_socket_iostream(basic_socket_iostream&& other) : detail::socket_iostream_base< Protocol, Clock, WaitTraits>(std::move(other)), std::basic_iostream<char>(std::move(other)) { this->set_rdbuf(&this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_); } /// Move-assign a basic_socket_iostream from another. basic_socket_iostream& operator=(basic_socket_iostream&& other) { std::basic_iostream<char>::operator=(std::move(other)); detail::socket_iostream_base< Protocol, Clock, WaitTraits>::operator=(std::move(other)); return *this; } /// Establish a connection to an endpoint corresponding to a resolver query. /** * This constructor automatically establishes a connection based on the * supplied resolver query parameters. The arguments are used to construct * a resolver query object. */ template <typename... T> explicit basic_socket_iostream(T... x) : std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); if (rdbuf()->connect(x...) == 0) this->setstate(std::ios_base::failbit); } /// Establish a connection to an endpoint corresponding to a resolver query. /** * This function automatically establishes a connection based on the supplied * resolver query parameters. The arguments are used to construct a resolver * query object. */ template <typename... T> void connect(T... x) { if (rdbuf()->connect(x...) == 0) this->setstate(std::ios_base::failbit); } /// Close the connection. void close() { if (rdbuf()->close() == 0) this->setstate(std::ios_base::failbit); } /// Return a pointer to the underlying streambuf. basic_socket_streambuf<Protocol, Clock, WaitTraits>* rdbuf() const { return const_cast<basic_socket_streambuf<Protocol, Clock, WaitTraits>*>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_); } /// Get a reference to the underlying socket. basic_socket<Protocol>& socket() { return rdbuf()->socket(); } /// Get the last error associated with the stream. /** * @return An \c error_code corresponding to the last error from the stream. * * @par Example * To print the error associated with a failure to establish a connection: * @code tcp::iostream s("www.boost.org", "http"); * if (!s) * { * std::cout << "Error: " << s.error().message() << std::endl; * } @endcode */ const asio::error_code& error() const { return rdbuf()->error(); } #if !defined(ASIO_NO_DEPRECATED) /// (Deprecated: Use expiry().) Get the stream's expiry time as an absolute /// time. /** * @return An absolute time value representing the stream's expiry time. */ time_point expires_at() const { return rdbuf()->expires_at(); } #endif // !defined(ASIO_NO_DEPRECATED) /// Get the stream's expiry time as an absolute time. /** * @return An absolute time value representing the stream's expiry time. */ time_point expiry() const { return rdbuf()->expiry(); } /// Set the stream's expiry time as an absolute time. /** * This function sets the expiry time associated with the stream. Stream * operations performed after this time (where the operations cannot be * completed using the internal buffers) will fail with the error * asio::error::operation_aborted. * * @param expiry_time The expiry time to be used for the stream. */ void expires_at(const time_point& expiry_time) { rdbuf()->expires_at(expiry_time); } /// Set the stream's expiry time relative to now. /** * This function sets the expiry time associated with the stream. Stream * operations performed after this time (where the operations cannot be * completed using the internal buffers) will fail with the error * asio::error::operation_aborted. * * @param expiry_time The expiry time to be used for the timer. */ void expires_after(const duration& expiry_time) { rdbuf()->expires_after(expiry_time); } #if !defined(ASIO_NO_DEPRECATED) /// (Deprecated: Use expiry().) Get the stream's expiry time relative to now. /** * @return A relative time value representing the stream's expiry time. */ duration expires_from_now() const { return rdbuf()->expires_from_now(); } /// (Deprecated: Use expires_after().) Set the stream's expiry time relative /// to now. /** * This function sets the expiry time associated with the stream. Stream * operations performed after this time (where the operations cannot be * completed using the internal buffers) will fail with the error * asio::error::operation_aborted. * * @param expiry_time The expiry time to be used for the timer. */ void expires_from_now(const duration& expiry_time) { rdbuf()->expires_from_now(expiry_time); } #endif // !defined(ASIO_NO_DEPRECATED) private: // Disallow copying and assignment. basic_socket_iostream(const basic_socket_iostream&) = delete; basic_socket_iostream& operator=( const basic_socket_iostream&) = delete; }; } // namespace asio #include "asio/detail/pop_options.hpp" #endif // !defined(ASIO_NO_IOSTREAM) #endif // ASIO_BASIC_SOCKET_IOSTREAM_HPP ```
Hypertropha chlaenota is a species of moth of the family Depressariidae first described by Edward Meyrick in 1887. It is found in Australia, where it has been recorded from Victoria, Queensland, New South Wales, the Australian Capital Territory and South Australia. The wingspan is 20–23 mm. The forewings are rather dark shining fuscous, with coppery reflections and with a large whitish-ochreous basal patch, extending on the costa to the middle, on the inner margin to two-fifths, its outer edge nearly straight, on the costa marked with four direct cloudy blackish strigulae. There is a small whitish-ochreous irregularly triangular spot on the inner margin before the anal angle, containing a dot of ground colour. The space between this and the basal patch is thickly strewn with small bluish-leaden metallic spots, and there is a curved broken dentate whitish-ochreous line from four-fifths of the costa to the anal angle, preceded by an irregular series of bluish-leaden metallic spots, before which is a blackish suffusion in the disc. The hindwings are ochreous yellow, with a moderate dark fuscous hindmarginal border. The larvae feed on Angophora and Eucalyptus species. References Hypertropha Moths of Australia Moths described in 1887
The men's 4 x 100 m surface relay event in finswimming at the 2001 World Games took place on 25 August 2001 at the Akita Prefectural Pool in Akita, Japan. Competition format A total of 7 teams entered the competition. Only final was held. Results References External links Results on IWGA website Finswimming at the 2001 World Games
The 2009 Ivy League Baseball Championship Series took place at Red Rolfe Field at Biondi Park in Hanover, New Hampshire on May 2 and 3, 2009. The series matched the regular season champions of each of the league's two divisions. , the winner of the series, claimed the Ivy League's automatic berth in the 2009 NCAA Division I baseball tournament. It was Dartmouth's first Championship Series victory, coming in their fifth appearance. defeated in a one-game playoff to advance to the Championship Series and represent the Lou Gehrig Division. The playoff was held on April 29 at Hoy Field in Ithaca, New York. Results References Ivy League Baseball Championship Series Tournament Ivy League Baseball Championship Series
```html <!DOCTYPE html> or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file path_to_url Unless required by applicable law or agreed to in writing, "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY specific language governing permissions and limitations <html lang="en"> <head> <title>CDN In a Box</title> <meta charset="utf-8"/> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1"/> <link rel="shortcut-icon" href="/tc_logo.svg"/> <meta name="author" content="Apache"/> <meta name="creator" content="Apache"/> <meta name="publisher" content="Apache"/> <meta name="description" content="A simple test origin for Apache Traffic Control"/> <style type="text/css"> html { height: 100vh; width: 100vw; } body { text-align: center; background-image: url(/tc_logo.svg); background-color: black; background-position: center; background-repeat: no-repeat; background-size: 25%; font-family: "Ubuntu Mono","Consolas",sans-serif; color: white; margin: 0; padding-top: 0.67em; max-width: 100%; } h1 { margin-top: 0.67em; } p { text-align: left; width: 80vw; min-width: 320px; margin: auto; } </style> </head> <body> <h1>Test Origin</h1> <p>This is a test "origin" server for Apache Traffic Control</p> </body> </html> ```
```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.haulmont.cuba.security.app; import com.haulmont.cuba.core.app.ServerConfig; import com.haulmont.cuba.core.global.Messages; import com.haulmont.cuba.security.entity.SecurityScope; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import javax.inject.Inject; import java.util.*; import java.util.stream.Collectors; @Component(SecurityScopes.NAME) public class SecurityScopes { public static final String NAME = "cuba_SecurityScopes"; @Inject protected ServerConfig serverConfig; @Inject protected Messages messages; protected Set<SecurityScope> securityScopes; @PostConstruct protected void init() { securityScopes = serverConfig.getSecurityScopes().stream() .map(SecurityScope::new) .collect(Collectors.toSet()); } /** * Represents list of all available security scopes for all client types. */ public Collection<SecurityScope> getAvailableSecurityScopes() { return Collections.unmodifiableSet(securityScopes); } /** * Register a new security scope */ public void registerScope(SecurityScope securityScope) { securityScopes.add(securityScope); } } ```
```python #!/usr/bin/env python import requests import re from in_file import InFile BRANCH_FORMAT = "path_to_url" TRUNK_PATH = "Source/platform/RuntimeEnabledFeatures.in" TRUNK_URL = "path_to_url" % TRUNK_PATH def features_path(branch): # RuntimeEnabledFeatures has only existed since April 2013: if branch <= 1453: return None # Source/core/page/RuntimeEnabledFeatures.in existed by 1547 # but was in an old format without status= arguments. if branch <= 1547: return None if branch <= 1650: return "Source/core/page/RuntimeEnabledFeatures.in" # Modern location: return TRUNK_PATH def parse_features_file(features_text): valid_values = { 'status': ['stable', 'experimental', 'deprecated', 'test'], } defaults = { 'condition': None, 'depends_on': [], 'custom': False, 'status': None, } # FIXME: in_file.py manually calls str.strip so conver to str here. features_lines = str(features_text).split("\n") return InFile(features_lines, defaults, valid_values) def stable_features(in_file): return [feature['name'] for feature in in_file.name_dictionaries if feature['status'] == 'stable'] def branch_from_version(version_string): # Format: 31.0.1650.63, the second digit was only ever used for M4 # no clue what it's actually intended for. version_regexp = r"(?P<major>\d+)\.\d+\.(?P<branch>\d+)\.(?P<minor>\d+)" match = re.match(version_regexp, version_string) # if match == None, we'll blow up, so at least provide some debugging information: if not match: print version_string return int(match.group('branch')) def print_feature_diff(added_features, removed_features): for feature in added_features: print "+ %s" % feature for feature in removed_features: print "- %s" % feature def historical_versions(os_string, channel): url_pattern = "path_to_url" url = url_pattern % (os_string, channel) releases_csv = requests.get(url).text.strip("\n") # Format: os,channel,version_string,date_string lines = releases_csv.split('\n') # As of June 2014, omahaproxy is now including headers: assert(lines[0] == 'os,channel,version,timestamp') # FIXME: We could replace this with more generic CSV parsing now that we have headers. return [line.split(',')[2] for line in lines[1:]] def feature_file_url_for_branch(branch): path = features_path(branch) if not path: return None return BRANCH_FORMAT % (branch, path) def feature_file_for_branch(branch): url = feature_file_url_for_branch(branch) if not url: return None return parse_features_file(requests.get(url).text) def historical_feature_tuples(os_string, channel): feature_tuples = [] version_strings = reversed(historical_versions(os_string, channel)) seen_branches = set() for version in version_strings: branch = branch_from_version(version) if branch in seen_branches: continue seen_branches.add(branch) feature_file = feature_file_for_branch(branch) if not feature_file: continue feature_tuple = (version, feature_file) feature_tuples.append(feature_tuple) return feature_tuples class FeatureAuditor(object): def __init__(self): self.last_features = [] def add_version(self, version_name, feature_file): features = stable_features(feature_file) if self.last_features: added_features = list(set(features) - set(self.last_features)) removed_features = list(set(self.last_features) - set(features)) print "\n%s:" % version_name print_feature_diff(added_features, removed_features) self.last_features = features def active_feature_tuples(os_string): feature_tuples = [] current_releases_url = "path_to_url" trains = requests.get(current_releases_url).json() train = next(train for train in trains if train['os'] == os_string) # FIXME: This is depending on the ordering of the json, we could # use use sorted() with true_branch, but that would put None first. for version in reversed(train['versions']): # FIXME: This is lame to exclude stable, the caller should # ignore it if it doesn't want it. if version['channel'] == 'stable': continue # handled by historical_feature_tuples branch = version['true_branch'] if branch: feature_file = feature_file_for_branch(branch) else: feature_file = parse_features_file(requests.get(TRUNK_URL).text) name = "%(version)s %(channel)s" % version feature_tuples.append((name, feature_file)) return feature_tuples # FIXME: This only really needs feature_files. def stale_features(tuples): last_features = None can_be_removed = set() for _, feature_file in tuples: features = stable_features(feature_file) if last_features: can_be_removed.update(set(features)) removed_features = list(set(last_features) - set(features)) can_be_removed.difference_update(set(removed_features)) last_features = features return sorted(can_be_removed) def main(): historical_tuples = historical_feature_tuples("win", "stable") active_tuples = active_feature_tuples("win") auditor = FeatureAuditor() for version, feature_file in historical_tuples + active_tuples: auditor.add_version(version, feature_file) print "\nConsider for removal (have been stable for at least one release):" for feature in stale_features(historical_tuples): print feature if __name__ == "__main__": main() ```
```c# @page @model ErrorModel @{ ViewData["Title"] = "Error"; } <h1 class="text-danger">Error.</h1> <h2 class="text-danger">An error occurred while processing your request.</h2> @if (Model.ShowRequestId) { <p> <strong>Request ID:</strong> <code>@Model.RequestId</code> </p> } <h3>Development Mode</h3> <p> Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred. </p> <p> <strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application. </p> ```
```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Acknowledgements</title> <!-- Core JS and CSS shared by about content--> <link rel="stylesheet" href="path_to_url"> <link rel="stylesheet" href="../../shared/css/core.css"> <script src="../../shared/js/highlight.pack.js"></script> <script src="../../shared/js/app.js"></script> <script data-skipto="colorTheme:aria; displayOption:popup; containerElement:div" src="../../shared/js/skipto.js"></script> </head> <body> <main> <h1>Acknowledgements</h1> <section id="editors"> <h2>Editors</h2> <dl> <dt>Current editors:</dt> <dd class="editor p-author h-card vcard" data-editor-id="44582"> <a class="ed_mailto u-email email p-name" href="mailto:mck@meta.com">Matt King</a> (<span class="p-org org h-org">Meta</span>) </dd> <dd class="editor p-author h-card vcard" data-editor-id="74097"> <a class="ed_mailto u-email email p-name" href="mailto:jku@uic.edu">JaEun Jemma Ku</a> (<span class="p-org org h-org">University of Illinois</span>) </dd> <dd class="editor p-author h-card vcard" data-editor-id="37155"> <a class="ed_mailto u-email email p-name" href="mailto:nurthen@adobe.com">James Nurthen</a> (<span class="p-org org h-org">Adobe</span>) </dd> <dd class="editor p-author h-card vcard" data-editor-id="74040"> <span class="p-name fn">Zo Bijl</span> (<span class="p-org org h-org">Invited Expert</span>) </dd> <dd class="editor p-author h-card vcard" data-editor-id="34017"> <a class="u-url url p-name fn" href="path_to_url">Michael Cooper</a> (<span class="p-org org h-org">W3C</span>) </dd> <dt>Former editors:</dt> <dd class="editor p-author h-card vcard" data-editor-id="42279"> <span class="p-name fn">Joseph Scheuhammer</span> (<span class="p-org org h-org">Inclusive Design Research Centre, OCAD University</span>) - Until <time datetime="2014-10-01">01 October 2014</time> </dd> <dd class="editor p-author h-card vcard" data-editor-id="41725"> <span class="p-name fn">Lisa Pappas</span> (<span class="p-org org h-org">SAS</span>) - Until <time datetime="2009-10-01">01 October 2009</time> </dd> <dd class="editor p-author h-card vcard" data-editor-id="2460"> <span class="p-name fn">Rich Schwerdtfeger</span> (<span class="p-org org h-org">IBM Corporation</span>) - Until <time datetime="2014-10-01">01 October 2014</time> </dd> </dl> </section> <section id="honorary-editor"> <h2>Honorary Editor</h2> <p> This version of the ARIA Authoring Practices Guide is dedicated to the memory of Carolyn MacLeod whose contributions are visible throughout the entire guide. She was dedicated to all aspects of the work of the APG Task Force from writing code and suggesting editorial revisions to testing examples with assistive technologies. </p> <ul> <li>Carolyn MacLeod (IBM Canada)</li> </ul> </section> <section id="major-contributors-to-version-1-1"> <h2>Major Contributors to Version 1.1</h2> <p> While <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> Authoring Practices 1.1 is the work of the entire Authoring Practices Task Force and also benefits from many people throughout the open source community who both contribute significant work and provide valuable feedback, special thanks goes to the following people who provided distinctly large portions of the content and code in version 1.1. </p> <ul> <li>Jon Gunderson and Nicholas Hoyt of the Division of Disability Resources and Education Services at the University of Illinois Urbana/Champaign and the students Max Foltz, Sulaiman Sanaullah, Mark McCarthy, and Jinyuan Zhou for their contributions to the development of many of the design pattern examples.</li> <li>Valerie Young of Bocoup and her sponsor, Facebook, for development of the example test framework and regressions tests for more than 50 examples.</li> <li>Simon Pieters of Bocoup and his sponsor, Facebook, for authoring of significant guidance sections, including comprehensive treatment of the topic of accessible names and descriptions.</li> </ul> </section> <section id="active-participants"> <h2>Participants active in the ARIA Authoring Practices Task Force</h2> <ul> <li>Ann Abbott (Invited Expert)</li> <li>Shirisha Balusani (Microsoft Corporation)</li> <li>Dorothy Bass (Wells Fargo Bank N.A.)</li> <li>Curt Bellew (Oracle)</li> <li>Zo Bijl (Invited Expert)</li> <li> Michael Cooper (<abbr title="World Wide Web Consortium">W3C</abbr>) </li> <li>Bryan Garaventa (Level Access)</li> <li>Jon Gunderson (University of Illinois at Urbana-Champaign)</li> <li>Jesse Hausler(Salesforce)</li> <li>Sarah Higley (Microsoft Corporation)</li> <li>Hans Hillen (The Paciello Group, LLC)</li> <li>Matt King (Facebook)</li> <li>Jaeun Ku (University of Illinois at Urbana-Champaign)</li> <li>Aaron Leventhal (Google)</li> <li>Carolyn MacLeod (IBM Corporation)</li> <li>Mark McCarthy (University of Illinois at Urbana-Champaign)</li> <li>James Nurthen (Adobe)</li> <li>Scott O'Hara (The Paciello Group, LLC)</li> <li>Simon Pieters (Bocoup)</li> <li>Scott Vinkle (Shopify)</li> <li>Evan Yamanishi (W. W. Norton)</li> <li>Valerie Young (Bocoup)</li> </ul> </section> <section id="commenters-and-contributors"> <h2>Other commenters and contributors to Version 1.1</h2> <ul> <li>Vyacheslav Aristov</li> <li>J. Rene Beach</li> <li>Kasper Christensen</li> <li>Gerard K. Cohen</li> <li>Anne-Gaelle Colom</li> <li>Kevin Coughlin</li> <li>Cameron Cundiff</li> <li>Manish Dahamiwal</li> <li>Gilmore Davidson</li> <li>Boris Duek</li> <li>Michael Fairchild</li> <li>Jeremy Felt</li> <li>Rob Fentress</li> <li>Geppy</li> <li>Tatiana Iskandar</li> <li>Patrick Lauke</li> <li>Marek Lewandowski</li> <li>Dan Matthew</li> <li>Shane McCarron</li> <li>Victor Meyer</li> <li>Jonathan Neal</li> <li>Philipp Rudloff</li> <li>Joseph Scheuhammer</li> <li>Nick Schonning</li> <li>Thomas Corthals</li> <li>Christopher Tryens</li> </ul> </section> </main> </body> </html> ```
```smalltalk using System.IO; namespace AssetStudio { public class StreamFile { public string path; public string fileName; public Stream stream; } } ```
```javascript /* @flow */ import { ERROR_CODE } from "@paypal/sdk-constants/src"; export class ValidationError extends Error { code: string; constructor(message: string) { super(message); this.name = "ValidationError"; this.code = ERROR_CODE.VALIDATION_ERROR; } } ```
The 2nd European Athletics U23 Cup was held on July 30–31, 1994. The participating teams were classified in two divisions, A and B. Results were compiled from various sources. Division A The contest for division A took place in Ostrava, Czech Republic. Team trophies Men Women Results Men Women Russian Yelena Lysak originally won the women's triple jump with a clearance of 13.88 m. However, she failed the subsequent doping test and she was disqualified from the competition and banned for four years. Division B The competition for division B took place in Lillehammer, Norway. Team scores Men Women Results Women References Results Technical results of the competition. European Under-23 Cup / / Athletics: A Magazine. - 1994. - No. 9-10 . - P. 18 . Coupe d'Europe des moins de 23 ans: Les Français se distinguent // L'Athlétisme : France. — 1994. — Septembre (no 374). — P. 46. External links Leichtathletik-Europacup U23 1994 Lillehammer/Norwegen (Video) (in German) European Athletics U23 Cup International athletics competitions hosted by the Czech Republic International athletics competitions hosted by Norway European Athletics U23 Cup European Athletics U23 Cup European Athletics U23 Championships European Athletics U23 Cup 1994 in youth sport Sport in Ostrava Sport in Lillehammer
Dahira marisae is a moth of the family Sphingidae. It is known from Bhutan. References Dahira Moths described in 2009
```shell #!/bin/bash # # # 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. # The only argument this script should ever be called with is '--verify-only' set -o errexit set -o nounset set -o pipefail set -o xtrace REPO_ROOT=$(realpath $(dirname "${BASH_SOURCE}")/..) BINDIR=${REPO_ROOT}/bin SC_PKG='github.com/kubernetes-sigs/service-catalog' # Generate deep copies ${BINDIR}/deepcopy-gen "$@" \ --v 1 --logtostderr \ --go-header-file "contrib/hack/boilerplate.go.txt" \ --input-dirs "${SC_PKG}/pkg/apis/servicecatalog/v1beta1" \ --bounding-dirs "github.com/kubernetes-sigs/service-catalog" \ --output-file-base zz_generated.deepcopy # # Generate auto-generated code (defaults, deepcopy and conversion) for Settings group # # Generate defaults ${BINDIR}/defaulter-gen "$@" \ --v 1 --logtostderr \ --go-header-file "contrib/hack/boilerplate.go.txt" \ --input-dirs "${SC_PKG}/pkg/apis/settings" \ --input-dirs "${SC_PKG}/pkg/apis/settings/v1alpha1" \ --extra-peer-dirs "${SC_PKG}/pkg/apis/settings" \ --extra-peer-dirs "${SC_PKG}/pkg/apis/settings/v1alpha1" \ --output-file-base "zz_generated.defaults" # Generate deep copies ${BINDIR}/deepcopy-gen "$@" \ --v 1 --logtostderr \ --go-header-file "contrib/hack/boilerplate.go.txt" \ --input-dirs "${SC_PKG}/pkg/apis/settings" \ --input-dirs "${SC_PKG}/pkg/apis/settings/v1alpha1" \ --bounding-dirs "github.com/kubernetes-sigs/service-catalog" \ --output-file-base zz_generated.deepcopy # Generate conversions ${BINDIR}/conversion-gen "$@" \ --v 1 --logtostderr \ --extra-peer-dirs k8s.io/api/core/v1,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/conversion,k8s.io/apimachinery/pkg/runtime \ --go-header-file "contrib/hack/boilerplate.go.txt" \ --input-dirs "${SC_PKG}/pkg/apis/settings" \ --input-dirs "${SC_PKG}/pkg/apis/settings/v1alpha1" \ --output-file-base zz_generated.conversion # generate openapi for servicecatalog and settings group REPORT_FILENAME=./api_violations.txt KNOWN_VIOLATION_FILENAME=./contrib/build/violation_exceptions.txt API_RULE_CHECK_FAILURE_MESSAGE="Error: API rules check failed. Reported violations \"${REPORT_FILENAME}\" differ from known violations \"${KNOWN_VIOLATION_FILENAME}\". Please fix API source file if new violation is detected, or update known violations \"${KNOWN_VIOLATION_FILENAME}\" if existing violation is being fixed. Please refer to k8s.io/kubernetes/api/api-rules/README.md and path_to_url for more information about the API rules being enforced." for var in "$@"; do if [ "$var" = "--verify-only" ]; then REPORT_FILENAME="${KNOWN_VIOLATION_FILENAME}" fi; done ${BINDIR}/openapi-gen "$@" \ --v 3 --logtostderr \ --go-header-file "contrib/hack/boilerplate.go.txt" \ --input-dirs "${SC_PKG}/pkg/apis/servicecatalog/v1beta1,k8s.io/api/core/v1,k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/version,k8s.io/apimachinery/pkg/runtime" \ --input-dirs "${SC_PKG}/pkg/apis/settings/v1alpha1" \ --output-package "${SC_PKG}/pkg/openapi" \ --report-filename "${REPORT_FILENAME}" || true diff -u "${REPORT_FILENAME}" "${KNOWN_VIOLATION_FILENAME}" || (echo ${API_RULE_CHECK_FAILURE_MESSAGE}; exit 1) ```
```java Common mistake on switch statements Altering format string output by changing a format specifier's `argument_index` Using bounded type parameters in generic methods Metadata: setting a file's owner Detect or prevent integer overflow ```
Sava Athanasiu (28 April 1861 – 8 April 1946) was a Romanian geologist and paleontologist. Born in Ruginești, Vrancea County, he completed a private high school in Iași, where he was attracted to the natural sciences by his teacher Grigore Cobălcescu. He then entered the natural sciences faculty of the University of Iași, where Cobălcescu continued as his professor. From 1888 to 1892, he was Cobălcescu's assistant at Iași University. Aside from teaching younger students, one of his tasks was to organize the extensive collections his mentor had purchased, with a view to setting up a museum. After the latter's 1892 death, he was selected as a substitute professor. In 1890, he was hired by his former high school, and in 1891, by the Iași commercial school. In 1895, he enrolled in the University of Vienna, where his professors included Eduard Suess and Albrecht Penck. He obtained a doctorate in 1899 regarding geological studies of the northern Carpathians. From 1900 to 1909, he taught at Matei Basarab High School in Bucharest. He was a professor at the University of Bucharest from 1910 to 1936, and also worked at the Romanian Geological Institute from 1906 to 1930. He undertook a wide array of field research, writing numerous books and studies about his discoveries. Elected a corresponding member of the Romanian Academy in June 1920, he was made honorary member in June 1945. Notes References Analele Academiei române, 1921, Academia Română, Bucharest 1861 births 1946 deaths People from Vrancea County Romanian geologists Romanian paleontologists Romanian schoolteachers Alexandru Ioan Cuza University alumni Academic staff of Alexandru Ioan Cuza University Academic staff of the University of Bucharest Honorary members of the Romanian Academy Members of the Romanian Academy of Sciences
Essing is a municipality in the district of Kelheim in Bavaria in Germany. It lies on the river Altmühl. References Kelheim (district)
```go // +build linux package devmapper import ( "bytes" "fmt" "os" "path/filepath" "syscall" ) // FIXME: this is copy-pasted from the aufs driver. // It should be moved into the core. // Mounted returns true if a mount point exists. func Mounted(mountpoint string) (bool, error) { mntpoint, err := os.Stat(mountpoint) if err != nil { if os.IsNotExist(err) { return false, nil } return false, err } parent, err := os.Stat(filepath.Join(mountpoint, "..")) if err != nil { return false, err } mntpointSt := mntpoint.Sys().(*syscall.Stat_t) parentSt := parent.Sys().(*syscall.Stat_t) return mntpointSt.Dev != parentSt.Dev, nil } type probeData struct { fsName string magic string offset uint64 } // ProbeFsType returns the filesystem name for the given device id. func ProbeFsType(device string) (string, error) { probes := []probeData{ {"btrfs", "_BHRfS_M", 0x10040}, {"ext4", "\123\357", 0x438}, {"xfs", "XFSB", 0}, } maxLen := uint64(0) for _, p := range probes { l := p.offset + uint64(len(p.magic)) if l > maxLen { maxLen = l } } file, err := os.Open(device) if err != nil { return "", err } defer file.Close() buffer := make([]byte, maxLen) l, err := file.Read(buffer) if err != nil { return "", err } if uint64(l) != maxLen { return "", fmt.Errorf("devmapper: unable to detect filesystem type of %s, short read", device) } for _, p := range probes { if bytes.Equal([]byte(p.magic), buffer[p.offset:p.offset+uint64(len(p.magic))]) { return p.fsName, nil } } return "", fmt.Errorf("devmapper: Unknown filesystem type on %s", device) } func joinMountOptions(a, b string) string { if a == "" { return b } if b == "" { return a } return a + "," + b } ```
Dulwich College Singapore is an international school located in Singapore, which opened in 2014. As a branch of Dulwich College International, it offers a comprehensive programme for students aged 2 to 18 and is separated into three schools: DUCKS, Junior School and Senior School. Academics Students from ages 2 to 7 are immersed in a dual-language environment, where classes are conducted in both English and Chinese. Daily Chinese classes are conducted for students from years 3 to 6 (aged 7 to 10). Key facilities In August 2018, a performing arts centre at the college was completed, which includes a 742-seat theatre and a pipe organ which is second largest in Singapore, two black box theatres and suites of music and art rooms. Sports facilities at the college include three swimming pools, a multi-purpose pitch, two gymnasiums, a dance studio, a fitness centre, tennis courts and cricket nets. Additionally, there is dedicated IB centre including quiet study areas and a large common room with a kitchen area, three libraries, three dining rooms, a bike track and sustainable garden throughout the grounds. With the Junior School Music Programme, students are initially taught a string instrument, then later offered an opportunity to change to wind or bass instrument. See also Dulwich College Beijing Dulwich College Dulwich College Suzhou Dulwich College Shanghai References External links Official website International schools in Singapore Dulwich College 2014 establishments in Singapore British international schools in Asia Educational institutions established in 2014
```shell Execute a command without saving it in history Find any Unix / Linux command Terminal based browser Adding directories to your `$PATH` Get to know your commands with `type` ```
Bílá is a municipality and village in Liberec District in the Liberec Region of the Czech Republic. It has about 1,000 inhabitants. Administrative parts Villages of Bohdánkov, Chvalčovice, Dehtáry, Domaslavice, Hradčany, Klamorna, Kocourov, Kohoutovice, Letařovice, Petrašovice, Trávníček, Vesec and Vlčetín are administrative parts of Bílá. References External links Villages in Liberec District
```go //go:build !appengine // +build !appengine // This file encapsulates usage of unsafe. // xxhash_safe.go contains the safe implementations. package xxhash import ( "unsafe" ) // In the future it's possible that compiler optimizations will make these // XxxString functions unnecessary by realizing that calls such as // Sum64([]byte(s)) don't need to copy s. See path_to_url // If that happens, even if we keep these functions they can be replaced with // the trivial safe code. // NOTE: The usual way of doing an unsafe string-to-[]byte conversion is: // // var b []byte // bh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) // bh.Data = (*reflect.StringHeader)(unsafe.Pointer(&s)).Data // bh.Len = len(s) // bh.Cap = len(s) // // Unfortunately, as of Go 1.15.3 the inliner's cost model assigns a high enough // weight to this sequence of expressions that any function that uses it will // not be inlined. Instead, the functions below use a different unsafe // conversion designed to minimize the inliner weight and allow both to be // inlined. There is also a test (TestInlining) which verifies that these are // inlined. // // See path_to_url for discussion. // Sum64String computes the 64-bit xxHash digest of s. // It may be faster than Sum64([]byte(s)) by avoiding a copy. func Sum64String(s string) uint64 { b := *(*[]byte)(unsafe.Pointer(&sliceHeader{s, len(s)})) return Sum64(b) } // WriteString adds more data to d. It always returns len(s), nil. // It may be faster than Write([]byte(s)) by avoiding a copy. func (d *Digest) WriteString(s string) (n int, err error) { d.Write(*(*[]byte)(unsafe.Pointer(&sliceHeader{s, len(s)}))) // d.Write always returns len(s), nil. // Ignoring the return output and returning these fixed values buys a // savings of 6 in the inliner's cost model. return len(s), nil } // sliceHeader is similar to reflect.SliceHeader, but it assumes that the layout // of the first two words is the same as the layout of a string. type sliceHeader struct { s string cap int } ```
Snape Marshes is a nature reserve south-east of Snape in Suffolk. It is owned and managed by the Suffolk Wildlife Trust. The diverse habitats in this reserve include reed-filled marshes, dry heath and mature oak woodland. It has all four reptiles found in the county, adders, common lizards, grass snakes and slowworms. Birds include barn owls, hobbies and marsh harriers, and freshwater dykes provide a habitat for otters. The Sailors' Path from Snape to Aldeburgh goes through the site, but there is only access to footpaths. References Suffolk Wildlife Trust
```c /* lang.c -- language-dependent support. $Id: lang.c,v 1.1.1.3 2006/07/17 16:03:47 espie Exp $ Foundation, Inc. This program is free software; you can redistribute it and/or modify the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Originally written by Karl Heinz Marbaise <kama@hippo.fido.de>. */ #include "system.h" #include "cmds.h" #include "files.h" #include "lang.h" #include "makeinfo.h" #include "xml.h" /* Current document encoding. */ encoding_code_type document_encoding_code = no_encoding; /* Current language code; default is English. */ language_code_type language_code = en; /* By default, unsupported encoding is an empty string. */ char *unknown_encoding = NULL; static iso_map_type us_ascii_map [] = {{NULL, 0, 0}}; /* ASCII map is trivial */ /* Translation table between HTML and ISO Codes. The last item is hopefully the Unicode. It might be possible that those Unicodes are not correct, cause I didn't check them. kama */ static iso_map_type iso8859_1_map [] = { { "nbsp", 0xA0, 0x00A0 }, { "iexcl", 0xA1, 0x00A1 }, { "cent", 0xA2, 0x00A2 }, { "pound", 0xA3, 0x00A3 }, { "curren", 0xA4, 0x00A4 }, { "yen", 0xA5, 0x00A5 }, { "brkbar", 0xA6, 0x00A6 }, { "sect", 0xA7, 0x00A7 }, { "uml", 0xA8, 0x00A8 }, { "copy", 0xA9, 0x00A9 }, { "ordf", 0xAA, 0x00AA }, { "laquo", 0xAB, 0x00AB }, { "not", 0xAC, 0x00AC }, { "shy", 0xAD, 0x00AD }, { "reg", 0xAE, 0x00AE }, { "hibar", 0xAF, 0x00AF }, { "deg", 0xB0, 0x00B0 }, { "plusmn", 0xB1, 0x00B1 }, { "sup2", 0xB2, 0x00B2 }, { "sup3", 0xB3, 0x00B3 }, { "acute", 0xB4, 0x00B4 }, { "micro", 0xB5, 0x00B5 }, { "para", 0xB6, 0x00B6 }, { "middot", 0xB7, 0x00B7 }, { "cedil", 0xB8, 0x00B8 }, { "sup1", 0xB9, 0x00B9 }, { "ordm", 0xBA, 0x00BA }, { "raquo", 0xBB, 0x00BB }, { "frac14", 0xBC, 0x00BC }, { "frac12", 0xBD, 0x00BD }, { "frac34", 0xBE, 0x00BE }, { "iquest", 0xBF, 0x00BF }, { "Agrave", 0xC0, 0x00C0 }, { "Aacute", 0xC1, 0x00C1 }, { "Acirc", 0xC2, 0x00C2 }, { "Atilde", 0xC3, 0x00C3 }, { "Auml", 0xC4, 0x00C4 }, { "Aring", 0xC5, 0x00C5 }, { "AElig", 0xC6, 0x00C6 }, { "Ccedil", 0xC7, 0x00C7 }, { "Ccedil", 0xC7, 0x00C7 }, { "Egrave", 0xC8, 0x00C8 }, { "Eacute", 0xC9, 0x00C9 }, { "Ecirc", 0xCA, 0x00CA }, { "Euml", 0xCB, 0x00CB }, { "Igrave", 0xCC, 0x00CC }, { "Iacute", 0xCD, 0x00CD }, { "Icirc", 0xCE, 0x00CE }, { "Iuml", 0xCF, 0x00CF }, { "ETH", 0xD0, 0x00D0 }, { "Ntilde", 0xD1, 0x00D1 }, { "Ograve", 0xD2, 0x00D2 }, { "Oacute", 0xD3, 0x00D3 }, { "Ocirc", 0xD4, 0x00D4 }, { "Otilde", 0xD5, 0x00D5 }, { "Ouml", 0xD6, 0x00D6 }, { "times", 0xD7, 0x00D7 }, { "Oslash", 0xD8, 0x00D8 }, { "Ugrave", 0xD9, 0x00D9 }, { "Uacute", 0xDA, 0x00DA }, { "Ucirc", 0xDB, 0x00DB }, { "Uuml", 0xDC, 0x00DC }, { "Yacute", 0xDD, 0x00DD }, { "THORN", 0xDE, 0x00DE }, { "szlig", 0xDF, 0x00DF }, { "agrave", 0xE0, 0x00E0 }, { "aacute", 0xE1, 0x00E1 }, { "acirc", 0xE2, 0x00E2 }, { "atilde", 0xE3, 0x00E3 }, { "auml", 0xE4, 0x00E4 }, { "aring", 0xE5, 0x00E5 }, { "aelig", 0xE6, 0x00E6 }, { "ccedil", 0xE7, 0x00E7 }, { "egrave", 0xE8, 0x00E8 }, { "eacute", 0xE9, 0x00E9 }, { "ecirc", 0xEA, 0x00EA }, { "euml", 0xEB, 0x00EB }, { "igrave", 0xEC, 0x00EC }, { "iacute", 0xED, 0x00ED }, { "icirc", 0xEE, 0x00EE }, { "iuml", 0xEF, 0x00EF }, { "eth", 0xF0, 0x00F0 }, { "ntilde", 0xF1, 0x00F1 }, { "ograve", 0xF2, 0x00F2 }, { "oacute", 0xF3, 0x00F3 }, { "ocirc", 0xF4, 0x00F4 }, { "otilde", 0xF5, 0x00F5 }, { "ouml", 0xF6, 0x00F6 }, { "divide", 0xF7, 0x00F7 }, { "oslash", 0xF8, 0x00F8 }, { "ugrave", 0xF9, 0x00F9 }, { "uacute", 0xFA, 0x00FA }, { "ucirc", 0xFB, 0x00FB }, { "uuml", 0xFC, 0x00FC }, { "yacute", 0xFD, 0x00FD }, { "thorn", 0xFE, 0x00FE }, { "yuml", 0xFF, 0x00FF }, { NULL, 0, 0 } }; /* ISO 8859-15, also known as Latin 9, differs from Latin 1 in only a few positions. path_to_url~jkorpela/latin9.html has a good explanation and listing, summarized here. The names are abbreviated from the official Unicode names, to fit in a decent line length. code position dec oct hex latin1 latin1 name latin9 latin9 name 164 0244 0xA4 U+00A4 currency symbol U+20AC euro sign 166 0246 0xA6 U+00A6 broken bar U+0160 S with caron 168 0250 0xA8 U+00A8 diaeresis U+0161 s with caron 180 0264 0xB4 U+00B4 acute accent U+017D Z with caron 184 0270 0xB8 U+00B8 cedilla U+017E z with caron 188 0274 0xBC U+00BC fraction 1/4 U+0152 ligature OE 189 0275 0xBD U+00BD fraction 1/2 U+0153 ligature oe 190 0276 0xBE U+00BE fraction 3/4 U+0178 Y with diaeresis */ static iso_map_type iso8859_15_map [] = { { "nbsp", 0xA0, 0x00A0 }, { "iexcl", 0xA1, 0x00A1 }, { "cent", 0xA2, 0x00A2 }, { "pound", 0xA3, 0x00A3 }, { "euro", 0xA4, 0x20AC }, { "yen", 0xA5, 0x00A5 }, { "Scaron", 0xA6, 0x0160 }, { "sect", 0xA7, 0x00A7 }, { "scaron", 0xA8, 0x0161 }, { "copy", 0xA9, 0x00A9 }, { "ordf", 0xAA, 0x00AA }, { "laquo", 0xAB, 0x00AB }, { "not", 0xAC, 0x00AC }, { "shy", 0xAD, 0x00AD }, { "reg", 0xAE, 0x00AE }, { "hibar", 0xAF, 0x00AF }, { "deg", 0xB0, 0x00B0 }, { "plusmn", 0xB1, 0x00B1 }, { "sup2", 0xB2, 0x00B2 }, { "sup3", 0xB3, 0x00B3 }, { "Zcaron", 0xB4, 0x017D }, { "micro", 0xB5, 0x00B5 }, { "para", 0xB6, 0x00B6 }, { "middot", 0xB7, 0x00B7 }, { "zcaron", 0xB8, 0x017E }, { "sup1", 0xB9, 0x00B9 }, { "ordm", 0xBA, 0x00BA }, { "raquo", 0xBB, 0x00BB }, { "OElig", 0xBC, 0x0152 }, { "oelig", 0xBD, 0x0153 }, { "Yuml", 0xBE, 0x0178 }, { "iquest", 0xBF, 0x00BF }, { "Agrave", 0xC0, 0x00C0 }, { "Aacute", 0xC1, 0x00C1 }, { "Acirc", 0xC2, 0x00C2 }, { "Atilde", 0xC3, 0x00C3 }, { "Auml", 0xC4, 0x00C4 }, { "Aring", 0xC5, 0x00C5 }, { "AElig", 0xC6, 0x00C6 }, { "Ccedil", 0xC7, 0x00C7 }, { "Ccedil", 0xC7, 0x00C7 }, { "Egrave", 0xC8, 0x00C8 }, { "Eacute", 0xC9, 0x00C9 }, { "Ecirc", 0xCA, 0x00CA }, { "Euml", 0xCB, 0x00CB }, { "Igrave", 0xCC, 0x00CC }, { "Iacute", 0xCD, 0x00CD }, { "Icirc", 0xCE, 0x00CE }, { "Iuml", 0xCF, 0x00CF }, { "ETH", 0xD0, 0x00D0 }, { "Ntilde", 0xD1, 0x00D1 }, { "Ograve", 0xD2, 0x00D2 }, { "Oacute", 0xD3, 0x00D3 }, { "Ocirc", 0xD4, 0x00D4 }, { "Otilde", 0xD5, 0x00D5 }, { "Ouml", 0xD6, 0x00D6 }, { "times", 0xD7, 0x00D7 }, { "Oslash", 0xD8, 0x00D8 }, { "Ugrave", 0xD9, 0x00D9 }, { "Uacute", 0xDA, 0x00DA }, { "Ucirc", 0xDB, 0x00DB }, { "Uuml", 0xDC, 0x00DC }, { "Yacute", 0xDD, 0x00DD }, { "THORN", 0xDE, 0x00DE }, { "szlig", 0xDF, 0x00DF }, { "agrave", 0xE0, 0x00E0 }, { "aacute", 0xE1, 0x00E1 }, { "acirc", 0xE2, 0x00E2 }, { "atilde", 0xE3, 0x00E3 }, { "auml", 0xE4, 0x00E4 }, { "aring", 0xE5, 0x00E5 }, { "aelig", 0xE6, 0x00E6 }, { "ccedil", 0xE7, 0x00E7 }, { "egrave", 0xE8, 0x00E8 }, { "eacute", 0xE9, 0x00E9 }, { "ecirc", 0xEA, 0x00EA }, { "euml", 0xEB, 0x00EB }, { "igrave", 0xEC, 0x00EC }, { "iacute", 0xED, 0x00ED }, { "icirc", 0xEE, 0x00EE }, { "iuml", 0xEF, 0x00EF }, { "eth", 0xF0, 0x00F0 }, { "ntilde", 0xF1, 0x00F1 }, { "ograve", 0xF2, 0x00F2 }, { "oacute", 0xF3, 0x00F3 }, { "ocirc", 0xF4, 0x00F4 }, { "otilde", 0xF5, 0x00F5 }, { "ouml", 0xF6, 0x00F6 }, { "divide", 0xF7, 0x00F7 }, { "oslash", 0xF8, 0x00F8 }, { "ugrave", 0xF9, 0x00F9 }, { "uacute", 0xFA, 0x00FA }, { "ucirc", 0xFB, 0x00FB }, { "uuml", 0xFC, 0x00FC }, { "yacute", 0xFD, 0x00FD }, { "thorn", 0xFE, 0x00FE }, { "yuml", 0xFF, 0x00FF }, { NULL, 0, 0 } }; /* Date: Mon, 31 Mar 2003 00:19:28 +0200 From: Wojciech Polak <polak@gnu.org> ... * Primary Polish site for ogonki is path_to_url but it's only in Polish language (it has some interesting links). * A general site about ISO 8859-2 at path_to_url * ISO 8859-2 Character Set at path_to_url This site provides almost all information about iso-8859-2, including the character table!!! (must see!) * ISO 8859-2 and even HTML entities !!! (must see!) path_to_url * (minor) path_to_url One more table, this time it includes even information about Polish characters in Unicode. */ static iso_map_type iso8859_2_map [] = { { "nbsp", 0xA0, 0x00A0 }, /* NO-BREAK SPACE */ { "", 0xA1, 0x0104 }, /* LATIN CAPITAL LETTER A WITH OGONEK */ { "", 0xA2, 0x02D8 }, /* BREVE */ { "", 0xA3, 0x0141 }, /* LATIN CAPITAL LETTER L WITH STROKE */ { "curren", 0xA4, 0x00A4 }, /* CURRENCY SIGN */ { "", 0xA5, 0x013D }, /* LATIN CAPITAL LETTER L WITH CARON */ { "", 0xA6, 0x015A }, /* LATIN CAPITAL LETTER S WITH ACUTE */ { "sect", 0xA7, 0x00A7 }, /* SECTION SIGN */ { "uml", 0xA8, 0x00A8 }, /* DIAERESIS */ { "", 0xA9, 0x0160 }, /* LATIN CAPITAL LETTER S WITH CARON */ { "", 0xAA, 0x015E }, /* LATIN CAPITAL LETTER S WITH CEDILLA */ { "", 0xAB, 0x0164 }, /* LATIN CAPITAL LETTER T WITH CARON */ { "", 0xAC, 0x0179 }, /* LATIN CAPITAL LETTER Z WITH ACUTE */ { "shy", 0xAD, 0x00AD }, /* SOFT HYPHEN */ { "", 0xAE, 0x017D }, /* LATIN CAPITAL LETTER Z WITH CARON */ { "", 0xAF, 0x017B }, /* LATIN CAPITAL LETTER Z WITH DOT ABOVE */ { "deg", 0xB0, 0x00B0 }, /* DEGREE SIGN */ { "", 0xB1, 0x0105 }, /* LATIN SMALL LETTER A WITH OGONEK */ { "", 0xB2, 0x02DB }, /* OGONEK */ { "", 0xB3, 0x0142 }, /* LATIN SMALL LETTER L WITH STROKE */ { "acute", 0xB4, 0x00B4 }, /* ACUTE ACCENT */ { "", 0xB5, 0x013E }, /* LATIN SMALL LETTER L WITH CARON */ { "", 0xB6, 0x015B }, /* LATIN SMALL LETTER S WITH ACUTE */ { "", 0xB7, 0x02C7 }, /* CARON (Mandarin Chinese third tone) */ { "cedil", 0xB8, 0x00B8 }, /* CEDILLA */ { "", 0xB9, 0x0161 }, /* LATIN SMALL LETTER S WITH CARON */ { "", 0xBA, 0x015F }, /* LATIN SMALL LETTER S WITH CEDILLA */ { "", 0xBB, 0x0165 }, /* LATIN SMALL LETTER T WITH CARON */ { "", 0xBC, 0x017A }, /* LATIN SMALL LETTER Z WITH ACUTE */ { "", 0xBD, 0x02DD }, /* DOUBLE ACUTE ACCENT */ { "", 0xBE, 0x017E }, /* LATIN SMALL LETTER Z WITH CARON */ { "", 0xBF, 0x017C }, /* LATIN SMALL LETTER Z WITH DOT ABOVE */ { "", 0xC0, 0x0154 }, /* LATIN CAPITAL LETTER R WITH ACUTE */ { "", 0xC1, 0x00C1 }, /* LATIN CAPITAL LETTER A WITH ACUTE */ { "", 0xC2, 0x00C2 }, /* LATIN CAPITAL LETTER A WITH CIRCUMFLEX */ { "", 0xC3, 0x0102 }, /* LATIN CAPITAL LETTER A WITH BREVE */ { "", 0xC4, 0x00C4 }, /* LATIN CAPITAL LETTER A WITH DIAERESIS */ { "", 0xC5, 0x0139 }, /* LATIN CAPITAL LETTER L WITH ACUTE */ { "", 0xC6, 0x0106 }, /* LATIN CAPITAL LETTER C WITH ACUTE */ { "", 0xC7, 0x00C7 }, /* LATIN CAPITAL LETTER C WITH CEDILLA */ { "", 0xC8, 0x010C }, /* LATIN CAPITAL LETTER C WITH CARON */ { "", 0xC9, 0x00C9 }, /* LATIN CAPITAL LETTER E WITH ACUTE */ { "", 0xCA, 0x0118 }, /* LATIN CAPITAL LETTER E WITH OGONEK */ { "", 0xCB, 0x00CB }, /* LATIN CAPITAL LETTER E WITH DIAERESIS */ { "", 0xCC, 0x011A }, /* LATIN CAPITAL LETTER E WITH CARON */ { "", 0xCD, 0x00CD }, /* LATIN CAPITAL LETTER I WITH ACUTE */ { "", 0xCE, 0x00CE }, /* LATIN CAPITAL LETTER I WITH CIRCUMFLEX */ { "", 0xCF, 0x010E }, /* LATIN CAPITAL LETTER D WITH CARON */ { "", 0xD0, 0x0110 }, /* LATIN CAPITAL LETTER D WITH STROKE */ { "", 0xD1, 0x0143 }, /* LATIN CAPITAL LETTER N WITH ACUTE */ { "", 0xD2, 0x0147 }, /* LATIN CAPITAL LETTER N WITH CARON */ { "", 0xD3, 0x00D3 }, /* LATIN CAPITAL LETTER O WITH ACUTE */ { "", 0xD4, 0x00D4 }, /* LATIN CAPITAL LETTER O WITH CIRCUMFLEX */ { "", 0xD5, 0x0150 }, /* LATIN CAPITAL LETTER O WITH DOUBLE ACUTE */ { "", 0xD6, 0x00D6 }, /* LATIN CAPITAL LETTER O WITH DIAERESIS */ { "times", 0xD7, 0x00D7 }, /* MULTIPLICATION SIGN */ { "", 0xD8, 0x0158 }, /* LATIN CAPITAL LETTER R WITH CARON */ { "", 0xD9, 0x016E }, /* LATIN CAPITAL LETTER U WITH RING ABOVE */ { "", 0xDA, 0x00DA }, /* LATIN CAPITAL LETTER U WITH ACUTE */ { "", 0xDB, 0x0170 }, /* LATIN CAPITAL LETTER U WITH DOUBLE ACUTE */ { "", 0xDC, 0x00DC }, /* LATIN CAPITAL LETTER U WITH DIAERESIS */ { "", 0xDD, 0x00DD }, /* LATIN CAPITAL LETTER Y WITH ACUTE */ { "", 0xDE, 0x0162 }, /* LATIN CAPITAL LETTER T WITH CEDILLA */ { "", 0xDF, 0x00DF }, /* LATIN SMALL LETTER SHARP S (German) */ { "", 0xE0, 0x0155 }, /* LATIN SMALL LETTER R WITH ACUTE */ { "", 0xE1, 0x00E1 }, /* LATIN SMALL LETTER A WITH ACUTE */ { "", 0xE2, 0x00E2 }, /* LATIN SMALL LETTER A WITH CIRCUMFLEX */ { "", 0xE3, 0x0103 }, /* LATIN SMALL LETTER A WITH BREVE */ { "", 0xE4, 0x00E4 }, /* LATIN SMALL LETTER A WITH DIAERESIS */ { "", 0xE5, 0x013A }, /* LATIN SMALL LETTER L WITH ACUTE */ { "", 0xE6, 0x0107 }, /* LATIN SMALL LETTER C WITH ACUTE */ { "", 0xE7, 0x00E7 }, /* LATIN SMALL LETTER C WITH CEDILLA */ { "", 0xE8, 0x010D }, /* LATIN SMALL LETTER C WITH CARON */ { "", 0xE9, 0x00E9 }, /* LATIN SMALL LETTER E WITH ACUTE */ { "", 0xEA, 0x0119 }, /* LATIN SMALL LETTER E WITH OGONEK */ { "", 0xEB, 0x00EB }, /* LATIN SMALL LETTER E WITH DIAERESIS */ { "", 0xEC, 0x011B }, /* LATIN SMALL LETTER E WITH CARON */ { "", 0xED, 0x00ED }, /* LATIN SMALL LETTER I WITH ACUTE */ { "", 0xEE, 0x00EE }, /* LATIN SMALL LETTER I WITH CIRCUMFLEX */ { "", 0xEF, 0x010F }, /* LATIN SMALL LETTER D WITH CARON */ { "", 0xF0, 0x0111 }, /* LATIN SMALL LETTER D WITH STROKE */ { "", 0xF1, 0x0144 }, /* LATIN SMALL LETTER N WITH ACUTE */ { "", 0xF2, 0x0148 }, /* LATIN SMALL LETTER N WITH CARON */ { "", 0xF3, 0x00F3 }, /* LATIN SMALL LETTER O WITH ACUTE */ { "", 0xF4, 0x00F4 }, /* LATIN SMALL LETTER O WITH CIRCUMFLEX */ { "", 0xF5, 0x0151 }, /* LATIN SMALL LETTER O WITH DOUBLE ACUTE */ { "", 0xF6, 0x00F6 }, /* LATIN SMALL LETTER O WITH DIAERESIS */ { "divide", 0xF7, 0x00F7 }, /* DIVISION SIGN */ { "", 0xF8, 0x0159 }, /* LATIN SMALL LETTER R WITH CARON */ { "", 0xF9, 0x016F }, /* LATIN SMALL LETTER U WITH RING ABOVE */ { "", 0xFA, 0x00FA }, /* LATIN SMALL LETTER U WITH ACUTE */ { "", 0xFB, 0x0171 }, /* LATIN SMALL LETTER U WITH DOUBLE ACUTE */ { "", 0xFC, 0x00FC }, /* LATIN SMALL LETTER U WITH DIAERESIS */ { "", 0xFD, 0x00FD }, /* LATIN SMALL LETTER Y WITH ACUTE */ { "", 0xFE, 0x0163 }, /* LATIN SMALL LETTER T WITH CEDILLA */ { "", 0xFF, 0x02D9 }, /* DOT ABOVE (Mandarin Chinese light tone) */ { NULL, 0, 0 } }; encoding_type encoding_table[] = { { no_encoding, "(no encoding)", NULL }, { US_ASCII, "US-ASCII", us_ascii_map }, { ISO_8859_1, "iso-8859-1", (iso_map_type *) iso8859_1_map }, { ISO_8859_2, "iso-8859-2", (iso_map_type *) iso8859_2_map }, { ISO_8859_3, "iso-8859-3", NULL }, { ISO_8859_4, "iso-8859-4", NULL }, { ISO_8859_5, "iso-8859-5", NULL }, { ISO_8859_6, "iso-8859-6", NULL }, { ISO_8859_7, "iso-8859-7", NULL }, { ISO_8859_8, "iso-8859-8", NULL }, { ISO_8859_9, "iso-8859-9", NULL }, { ISO_8859_10, "iso-8859-10", NULL }, { ISO_8859_11, "iso-8859-11", NULL }, { ISO_8859_12, "iso-8859-12", NULL }, { ISO_8859_13, "iso-8859-13", NULL }, { ISO_8859_14, "iso-8859-14", NULL }, { ISO_8859_15, "iso-8859-15", (iso_map_type *) iso8859_15_map }, { last_encoding_code, NULL, NULL } }; language_type language_table[] = { { aa, "aa", "Afar" }, { ab, "ab", "Abkhazian" }, { af, "af", "Afrikaans" }, { am, "am", "Amharic" }, { ar, "ar", "Arabic" }, { as, "as", "Assamese" }, { ay, "ay", "Aymara" }, { az, "az", "Azerbaijani" }, { ba, "ba", "Bashkir" }, { be, "be", "Byelorussian" }, { bg, "bg", "Bulgarian" }, { bh, "bh", "Bihari" }, { bi, "bi", "Bislama" }, { bn, "bn", "Bengali; Bangla" }, { bo, "bo", "Tibetan" }, { br, "br", "Breton" }, { ca, "ca", "Catalan" }, { co, "co", "Corsican" }, { cs, "cs", "Czech" }, { cy, "cy", "Welsh" }, { da, "da", "Danish" }, { de, "de", "German" }, { dz, "dz", "Bhutani" }, { el, "el", "Greek" }, { en, "en", "English" }, { eo, "eo", "Esperanto" }, { es, "es", "Spanish" }, { et, "et", "Estonian" }, { eu, "eu", "Basque" }, { fa, "fa", "Persian" }, { fi, "fi", "Finnish" }, { fj, "fj", "Fiji" }, { fo, "fo", "Faroese" }, { fr, "fr", "French" }, { fy, "fy", "Frisian" }, { ga, "ga", "Irish" }, { gd, "gd", "Scots Gaelic" }, { gl, "gl", "Galician" }, { gn, "gn", "Guarani" }, { gu, "gu", "Gujarati" }, { ha, "ha", "Hausa" }, { he, "he", "Hebrew" } /* (formerly iw) */, { hi, "hi", "Hindi" }, { hr, "hr", "Croatian" }, { hu, "hu", "Hungarian" }, { hy, "hy", "Armenian" }, { ia, "ia", "Interlingua" }, { id, "id", "Indonesian" } /* (formerly in) */, { ie, "ie", "Interlingue" }, { ik, "ik", "Inupiak" }, { is, "is", "Icelandic" }, { it, "it", "Italian" }, { iu, "iu", "Inuktitut" }, { ja, "ja", "Japanese" }, { jw, "jw", "Javanese" }, { ka, "ka", "Georgian" }, { kk, "kk", "Kazakh" }, { kl, "kl", "Greenlandic" }, { km, "km", "Cambodian" }, { kn, "kn", "Kannada" }, { ko, "ko", "Korean" }, { ks, "ks", "Kashmiri" }, { ku, "ku", "Kurdish" }, { ky, "ky", "Kirghiz" }, { la, "la", "Latin" }, { ln, "ln", "Lingala" }, { lo, "lo", "Laothian" }, { lt, "lt", "Lithuanian" }, { lv, "lv", "Latvian, Lettish" }, { mg, "mg", "Malagasy" }, { mi, "mi", "Maori" }, { mk, "mk", "Macedonian" }, { ml, "ml", "Malayalam" }, { mn, "mn", "Mongolian" }, { mo, "mo", "Moldavian" }, { mr, "mr", "Marathi" }, { ms, "ms", "Malay" }, { mt, "mt", "Maltese" }, { my, "my", "Burmese" }, { na, "na", "Nauru" }, { ne, "ne", "Nepali" }, { nl, "nl", "Dutch" }, { no, "no", "Norwegian" }, { oc, "oc", "Occitan" }, { om, "om", "(Afan) Oromo" }, { or, "or", "Oriya" }, { pa, "pa", "Punjabi" }, { pl, "pl", "Polish" }, { ps, "ps", "Pashto, Pushto" }, { pt, "pt", "Portuguese" }, { qu, "qu", "Quechua" }, { rm, "rm", "Rhaeto-Romance" }, { rn, "rn", "Kirundi" }, { ro, "ro", "Romanian" }, { ru, "ru", "Russian" }, { rw, "rw", "Kinyarwanda" }, { sa, "sa", "Sanskrit" }, { sd, "sd", "Sindhi" }, { sg, "sg", "Sangro" }, { sh, "sh", "Serbo-Croatian" }, { si, "si", "Sinhalese" }, { sk, "sk", "Slovak" }, { sl, "sl", "Slovenian" }, { sm, "sm", "Samoan" }, { sn, "sn", "Shona" }, { so, "so", "Somali" }, { sq, "sq", "Albanian" }, { sr, "sr", "Serbian" }, { ss, "ss", "Siswati" }, { st, "st", "Sesotho" }, { su, "su", "Sundanese" }, { sv, "sv", "Swedish" }, { sw, "sw", "Swahili" }, { ta, "ta", "Tamil" }, { te, "te", "Telugu" }, { tg, "tg", "Tajik" }, { th, "th", "Thai" }, { ti, "ti", "Tigrinya" }, { tk, "tk", "Turkmen" }, { tl, "tl", "Tagalog" }, { tn, "tn", "Setswana" }, { to, "to", "Tonga" }, { tr, "tr", "Turkish" }, { ts, "ts", "Tsonga" }, { tt, "tt", "Tatar" }, { tw, "tw", "Twi" }, { ug, "ug", "Uighur" }, { uk, "uk", "Ukrainian" }, { ur, "ur", "Urdu" }, { uz, "uz", "Uzbek" }, { vi, "vi", "Vietnamese" }, { vo, "vo", "Volapuk" }, { wo, "wo", "Wolof" }, { xh, "xh", "Xhosa" }, { yi, "yi", "Yiddish" } /* (formerly ji) */, { yo, "yo", "Yoruba" }, { za, "za", "Zhuang" }, { zh, "zh", "Chinese" }, { zu, "zu", "Zulu" }, { last_language_code, NULL, NULL } }; /* @documentlanguage. Maybe we'll do something useful with this in the future. For now, we just recognize it. */ /* XML documents can make use of this data. Unfortunately, it clashes with the structure currently used. So instead of enclosing content into a language block, we just output an empty element. Anyways, a stream based parser can make good use of it. */ void cm_documentlanguage (void) { language_code_type c; char *lang_arg; /* Read the line with the language code on it. */ get_rest_of_line (0, &lang_arg); /* Linear search is fine these days. */ for (c = aa; c != last_language_code; c++) { if (strcmp (lang_arg, language_table[c].abbrev) == 0) { /* Set current language code. */ language_code = c; break; } } /* If we didn't find this code, complain. */ if (c == last_language_code) warning (_("%s is not a valid ISO 639 language code"), lang_arg); if (xml && !docbook) { xml_insert_element_with_attribute (DOCUMENTLANGUAGE, START, "xml:lang=\"%s\"", lang_arg); xml_insert_element (DOCUMENTLANGUAGE, END); } free (lang_arg); } /* Search through the encoding table for the given character, returning its equivalent. */ static int cm_search_iso_map (char *html) { int i; iso_map_type *iso = encoding_table[document_encoding_code].isotab; /* If no conversion table for this encoding, quit. */ if (!iso) return -1; for (i = 0; iso[i].html; i++) { if (strcmp (html, iso[i].html) == 0) return i; } return -1; } /* @documentencoding. Set the translation table. */ void cm_documentencoding (void) { if (!handling_delayed_writes) { encoding_code_type enc; char *enc_arg; /* This is ugly and probably needs to apply to other commands' argument parsing as well. When we're doing @documentencoding, we're generally in the frontmatter of the document, and so the. expansion in html/xml/docbook would generally be the empty string. (Because those modes wait until the first normal text of the document to start outputting.) The result would thus be a warning "unrecognized encoding name `'". Sigh. */ int save_html = html; int save_xml = xml; html = 0; xml = 0; get_rest_of_line (1, &enc_arg); html = save_html; xml = save_xml; /* See if we have this encoding. */ for (enc = no_encoding+1; enc != last_encoding_code; enc++) { if (strcasecmp (enc_arg, encoding_table[enc].encname) == 0) { document_encoding_code = enc; break; } } /* If we didn't find this code, complain. */ if (enc == last_encoding_code) { warning (_("unrecognized encoding name `%s'"), enc_arg); /* Let the previous one go. */ if (unknown_encoding && *unknown_encoding) free (unknown_encoding); unknown_encoding = xstrdup (enc_arg); } else if (encoding_table[document_encoding_code].isotab == NULL) warning (_("sorry, encoding `%s' not supported"), enc_arg); free (enc_arg); } else if (xml) { char *encoding = current_document_encoding (); if (encoding && *encoding) { insert_string (" encoding=\""); insert_string (encoding); insert_string ("\""); } free (encoding); } } char * current_document_encoding (void) { if (document_encoding_code != no_encoding) return xstrdup (encoding_table[document_encoding_code].encname); else if (unknown_encoding && *unknown_encoding) return xstrdup (unknown_encoding); else return xstrdup (""); } /* If html or xml output, add &HTML_STR; to the output. If not html and the user requested encoded output, add the real 8-bit character corresponding to HTML_STR from the translation tables. Otherwise, add INFO_STR. */ static void add_encoded_char (char *html_str, char *info_str) { if (html) add_word_args ("&%s;", html_str); else if (xml) xml_insert_entity (html_str); else if (enable_encoding) { /* Look for HTML_STR in the current translation table. */ int rc = cm_search_iso_map (html_str); if (rc >= 0) /* We found it, add the real character. */ add_char (encoding_table[document_encoding_code].isotab[rc].bytecode); else { /* We didn't find it, that seems bad. */ warning (_("invalid encoded character `%s'"), html_str); add_word (info_str); } } else add_word (info_str); } /* Output an accent for HTML or XML. */ static void cm_accent_generic_html (int arg, int start, int end, char *html_supported, int single, int html_solo_standalone, char *html_solo) { static int valid_html_accent; /* yikes */ if (arg == START) { /* If HTML has good support for this character, use it. */ if (strchr (html_supported, curchar ())) { /* Yes; start with an ampersand. The character itself will be added later in read_command (makeinfo.c). */ int saved_escape_html = escape_html; escape_html = 0; valid_html_accent = 1; add_char ('&'); escape_html = saved_escape_html; } else { /* @dotless{i} is not listed in html_supported but HTML entities starting with `i' can be used, such as &icirc;. */ int save_input_text_offset = input_text_offset; char *accent_contents; get_until_in_braces ("\n", &accent_contents); canon_white (accent_contents); if (strstr (accent_contents, "@dotless{i")) { add_word_args ("&%c", accent_contents[9]); valid_html_accent = 1; } else { /* Search for @dotless{} wasn't successful, so rewind. */ input_text_offset = save_input_text_offset; valid_html_accent = 0; if (html_solo_standalone) { /* No special HTML support, so produce standalone char. */ if (xml) xml_insert_entity (html_solo); else add_word_args ("&%s;", html_solo); } else /* If the html_solo does not exist as standalone character (namely &circ; &grave; &tilde;), then we use the single character version instead. */ add_char (single); } free (accent_contents); } } else if (arg == END) { /* Only if we saw a valid_html_accent can we use the full HTML accent (umlaut, grave ...). */ if (valid_html_accent) { add_word (html_solo); add_char (';'); } } } static void cm_accent_generic_no_headers (int arg, int start, int end, int single, char *html_solo) { if (arg == END) { if (no_encoding) add_char (single); else { int rc; char *buffer = xmalloc (1 + strlen (html_solo) + 1); buffer[0] = output_paragraph[end - 1]; buffer[1] = 0; strcat (buffer, html_solo); rc = cm_search_iso_map (buffer); if (rc >= 0) /* A little bit tricky ;-) Here we replace the character which has been inserted in read_command with the value we have found in converting table Does there exist a better way to do this? kama. */ output_paragraph[end - 1] = encoding_table[document_encoding_code].isotab[rc].bytecode; else { /* If we didn't find a translation for this character, put the single instead. E.g., &Xuml; does not exist so X&uml; should be produced. */ /* When the below warning is issued, an author has nothing wrong in their document, let alone anything ``fixable'' on their side. So it is commented out for now. */ /* warning (_("%s is an invalid ISO code, using %c"), buffer, single); */ add_char (single); } free (buffer); } } } /* Accent commands that take explicit arguments and don't have any special HTML support. */ void cm_accent (int arg) { int old_escape_html = escape_html; escape_html = 0; if (arg == START) { /* Must come first to avoid ambiguity with overdot. */ if (strcmp (command, "udotaccent") == 0) /* underdot */ add_char ('.'); } else if (arg == END) { if (strcmp (command, "=") == 0) /* macron */ add_word ((html || xml) ? "&macr;" : "="); else if (strcmp (command, "H") == 0) /* Hungarian umlaut */ add_word ("''"); else if (strcmp (command, "dotaccent") == 0) /* overdot */ add_meta_char ('.'); else if (strcmp (command, "ringaccent") == 0) /* ring */ add_char ('*'); else if (strcmp (command, "tieaccent") == 0) /* long tie */ add_char ('['); else if (strcmp (command, "u") == 0) /* breve */ add_char ('('); else if (strcmp (command, "ubaraccent") == 0) /* underbar */ add_char ('_'); else if (strcmp (command, "v") == 0) /* hacek/check */ add_word ((html || xml) ? "&lt;" : "<"); } escape_html = old_escape_html; } /* Common routine for the accent characters that have support in HTML. If the character being accented is in the HTML_SUPPORTED set, then produce &CHTML_SOLO;, for example, &Auml; for an A-umlaut. If not in HTML_SUPPORTED, just produce &HTML_SOLO;X for the best we can do with at an X-umlaut. If not producing HTML, just use SINGLE, a character such as " which is the best plain text representation we can manage. If HTML_SOLO_STANDALONE is nonzero the given HTML_SOLO exists as valid standalone character in HTML, e.g., &uml;. */ static void cm_accent_generic (int arg, int start, int end, char *html_supported, int single, int html_solo_standalone, char *html_solo) { /* Accentuating space characters makes no sense, so issue a warning. */ if (arg == START && isspace (input_text[input_text_offset])) warning ("Accent command `@%s' must not be followed by whitespace", command); if (html || xml) cm_accent_generic_html (arg, start, end, html_supported, single, html_solo_standalone, html_solo); else if (no_headers) cm_accent_generic_no_headers (arg, start, end, single, html_solo); else if (arg == END) { if (enable_encoding) /* use 8-bit if available */ cm_accent_generic_no_headers (arg, start, end, single, html_solo); else /* use regular character */ add_char (single); } } void cm_accent_umlaut (int arg, int start, int end) { cm_accent_generic (arg, start, end, "aouAOUEeIiy", '"', 1, "uml"); } void cm_accent_acute (int arg, int start, int end) { cm_accent_generic (arg, start, end, "AEIOUYaeiouy", '\'', 1, "acute"); } void cm_accent_cedilla (int arg, int start, int end) { cm_accent_generic (arg, start, end, "Cc", ',', 1, "cedil"); } void cm_accent_hat (int arg, int start, int end) { cm_accent_generic (arg, start, end, "AEIOUaeiou", '^', 0, "circ"); } void cm_accent_grave (int arg, int start, int end) { cm_accent_generic (arg, start, end, "AEIOUaeiou", '`', 0, "grave"); } void cm_accent_tilde (int arg, int start, int end) { cm_accent_generic (arg, start, end, "ANOano", '~', 0, "tilde"); } /* Non-English letters/characters that don't insert themselves. */ void cm_special_char (int arg) { int old_escape_html = escape_html; escape_html = 0; if (arg == START) { if ((*command == 'L' || *command == 'l' || *command == 'O' || *command == 'o') && command[1] == 0) { /* Lslash lslash Oslash oslash. Lslash and lslash aren't supported in HTML. */ if (command[0] == 'O') add_encoded_char ("Oslash", "/O"); else if (command[0] == 'o') add_encoded_char ("oslash", "/o"); else add_word_args ("/%c", command[0]); } else if (strcmp (command, "exclamdown") == 0) add_encoded_char ("iexcl", "!"); else if (strcmp (command, "questiondown") == 0) add_encoded_char ("iquest", "?"); else if (strcmp (command, "euro") == 0) /* path_to_url~jkorpela/html/euro.html suggests that &euro; degrades best in old browsers. */ add_encoded_char ("euro", "Euro "); else if (strcmp (command, "pounds") == 0) add_encoded_char ("pound" , "#"); else if (strcmp (command, "ordf") == 0) add_encoded_char ("ordf" , "a"); else if (strcmp (command, "ordm") == 0) add_encoded_char ("ordm" , "o"); else if (strcmp (command, "AE") == 0) add_encoded_char ("AElig", command); else if (strcmp (command, "ae") == 0) add_encoded_char ("aelig", command); else if (strcmp (command, "OE") == 0) add_encoded_char ("OElig", command); else if (strcmp (command, "oe") == 0) add_encoded_char ("oelig", command); else if (strcmp (command, "AA") == 0) add_encoded_char ("Aring", command); else if (strcmp (command, "aa") == 0) add_encoded_char ("aring", command); else if (strcmp (command, "ss") == 0) add_encoded_char ("szlig", command); else line_error ("cm_special_char internal error: command=@%s", command); } escape_html = old_escape_html; } /* Dotless i or j. */ void cm_dotless (int arg, int start, int end) { if (arg == END) { xml_no_para --; if (output_paragraph[start] != 'i' && output_paragraph[start] != 'j') /* This error message isn't perfect if the argument is multiple characters, but it doesn't seem worth getting right. */ line_error (_("%c%s expects `i' or `j' as argument, not `%c'"), COMMAND_PREFIX, command, output_paragraph[start]); else if (end - start != 1) line_error (_("%c%s expects a single character `i' or `j' as argument"), COMMAND_PREFIX, command); /* We've already inserted the `i' or `j', so nothing to do. */ } else xml_no_para ++; } ```
```java package ml.puredark.hviewer.ui.customs; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.support.design.widget.TabLayout; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; import ml.puredark.hviewer.R; /** * Created by PureDark on 2016/7/30. */ public class ExTabLayout extends TabLayout { private TypedArray typedArray; public ExTabLayout(Context context, AttributeSet attrs) { super(context, attrs); typedArray = context.obtainStyledAttributes(attrs, R.styleable.ExTabLayout); // preview if (isInEditMode()) { preview(context, typedArray); } } @Override public void setupWithViewPager(ViewPager viewPager) { super.setupWithViewPager(viewPager); setIconsAndTextColor(typedArray); } private void preview(Context context, TypedArray a) { final String tabStrArr = a.getString(R.styleable.ExTabLayout_tabTitleArray); final String[] tabRealStrArr = getTabRealStrArr(tabStrArr); ViewPager viewPager = new ViewPager(context); viewPager.setAdapter(new PagerAdapter() { @Override public int getCount() { return tabRealStrArr.length; } @Override public boolean isViewFromObject(View view, Object object) { return view == object; } @Override public CharSequence getPageTitle(int position) { return tabRealStrArr[position]; } }); viewPager.setCurrentItem(0); setupWithViewPager(viewPager); } private String[] getTabRealStrArr(String tabStrArr) { if (tabStrArr != null && !tabStrArr.equals("")) return tabStrArr.split(","); else return new String[0]; } private void setIconsAndTextColor(TypedArray a) { int length = this.getTabCount(); for (int i = 0; i < length; i++) { TabLayout.Tab tab = getTabAt(i); tab.setCustomView(R.layout.item_tab); Drawable icon = null; switch (i) { case 0: icon = a.getDrawable(R.styleable.ExTabLayout_tabIcon1); break; case 1: icon = a.getDrawable(R.styleable.ExTabLayout_tabIcon2); break; case 2: icon = a.getDrawable(R.styleable.ExTabLayout_tabIcon3); break; case 3: icon = a.getDrawable(R.styleable.ExTabLayout_tabIcon4); break; case 4: icon = a.getDrawable(R.styleable.ExTabLayout_tabIcon5); break; } tab.setIcon(icon); int color = a.getColor(R.styleable.ExTabLayout_tabMyTextColor, Color.rgb(0, 0, 0)); View view = tab.getCustomView(); TextView textView = (TextView) view.findViewById(android.R.id.text1); textView.setTextColor(color); tab.setCustomView(view); } } } ```
```objective-c /*++ Module Name: cfgmgr32.h Abstract: This module contains the user APIs for the Configuration Manager, along with any public data structures needed to call these APIs. --*/ #ifndef _CFGMGR32_H_ #define _CFGMGR32_H_ #if _MSC_VER > 1000 #pragma once #endif #include <cfg.h> #ifndef GUID_DEFINED #include <guiddef.h> #endif /* GUID_DEFINED */ #ifdef __cplusplus extern "C" { #endif #if !defined (_CFGMGR32_) #define CMAPI DECLSPEC_IMPORT #else #define CMAPI #endif typedef CONST VOID *PCVOID; //-------------------------------------------------------------- // General size definitions //-------------------------------------------------------------- #define MAX_DEVICE_ID_LEN 200 #define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN #define MAX_GUID_STRING_LEN 39 // 38 chars + terminator null #define MAX_CLASS_NAME_LEN 32 #define MAX_PROFILE_LEN 80 #define MAX_CONFIG_VALUE 9999 #define MAX_INSTANCE_VALUE 9999 #define MAX_MEM_REGISTERS 9 // Win95 compatibility--not applicable to 32-bit ConfigMgr #define MAX_IO_PORTS 20 // Win95 compatibility--not applicable to 32-bit ConfigMgr #define MAX_IRQS 7 // Win95 compatibility--not applicable to 32-bit ConfigMgr #define MAX_DMA_CHANNELS 7 // Win95 compatibility--not applicable to 32-bit ConfigMgr #define DWORD_MAX 0xFFFFFFFF #define DWORDLONG_MAX 0xFFFFFFFFFFFFFFFF #define CONFIGMG_VERSION 0x0400 //-------------------------------------------------------------- // Data types //-------------------------------------------------------------- // // Work around weirdness with Win32 typedef... // #ifdef NT_INCLUDED // // __int64 is only supported by 2.0 and later midl. // __midl is set by the 2.0 midl and not by 1.0 midl. // #if (!defined(MIDL_PASS) || defined(__midl)) && (!defined(_M_IX86) || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64)) typedef unsigned __int64 DWORDLONG; #else typedef double DWORDLONG; #endif typedef DWORDLONG *PDWORDLONG; #endif /* NT_INCLUDED */ // // Standardized Return Value data type // typedef DWORD RETURN_TYPE; typedef RETURN_TYPE CONFIGRET; // // Device Instance Handle data type // typedef DWORD DEVNODE, DEVINST; typedef DEVNODE *PDEVNODE, *PDEVINST; // // Device Instance Identifier data type // The device instance ID specifies the registry path, relative to the // Enum key , for a device instance. For example: \Root\*PNP0500\0000. // typedef __nullterminated CHAR *DEVNODEID_A, *DEVINSTID_A; // Device ID ANSI name. typedef __nullterminated WCHAR *DEVNODEID_W, *DEVINSTID_W; // Device ID Unicode name. #ifdef UNICODE typedef DEVNODEID_W DEVNODEID; typedef DEVINSTID_W DEVINSTID; #else typedef DEVNODEID_A DEVNODEID; typedef DEVINSTID_A DEVINSTID; #endif // // Logical Configuration Handle data type // typedef DWORD_PTR LOG_CONF; typedef LOG_CONF *PLOG_CONF; // // Resource Descriptor Handle data type // typedef DWORD_PTR RES_DES; typedef RES_DES *PRES_DES; // // Resource ID data type (may take any of the ResType_* values) // typedef ULONG RESOURCEID; typedef RESOURCEID *PRESOURCEID; // // Priority data type (may take any of the LCPRI_* values) // typedef ULONG PRIORITY; typedef PRIORITY *PPRIORITY; // // Range List Handle data type // typedef DWORD_PTR RANGE_LIST; typedef RANGE_LIST *PRANGE_LIST; // // Range Element Handle data type // typedef DWORD_PTR RANGE_ELEMENT; typedef RANGE_ELEMENT *PRANGE_ELEMENT; // // Machine Handle data type // typedef HANDLE HMACHINE; typedef HMACHINE *PHMACHINE; // // Conflict List data types // typedef ULONG_PTR CONFLICT_LIST; typedef CONFLICT_LIST *PCONFLICT_LIST; typedef struct _CONFLICT_DETAILS_A { ULONG CD_ulSize; // size of structure, ie: sizeof(CONFLICT_DETAILS) ULONG CD_ulMask; // indicates what information is required/valid DEVINST CD_dnDevInst; // filled with DevInst of conflicting device if CM_CDMASK_DEVINST set RES_DES CD_rdResDes; // filled with a ResDes of conflict if CM_CDMASK_RESDES set ULONG CD_ulFlags; // various flags regarding conflict CHAR CD_szDescription[MAX_PATH]; // description of conflicting device } CONFLICT_DETAILS_A , *PCONFLICT_DETAILS_A; typedef struct _CONFLICT_DETAILS_W { ULONG CD_ulSize; // size of structure, ie: sizeof(CONFLICT_DETAILS) ULONG CD_ulMask; // indicates what information is required/valid DEVINST CD_dnDevInst; // filled with DevInst of conflicting device if CM_CDMASK_DEVINST set RES_DES CD_rdResDes; // filled with a ResDes of conflict if CM_CDMASK_RESDES set ULONG CD_ulFlags; // various flags regarding conflict WCHAR CD_szDescription[MAX_PATH]; // description of conflicting device } CONFLICT_DETAILS_W , *PCONFLICT_DETAILS_W; #ifdef UNICODE typedef CONFLICT_DETAILS_W CONFLICT_DETAILS; typedef PCONFLICT_DETAILS_W PCONFLICT_DETAILS; #else typedef CONFLICT_DETAILS_A CONFLICT_DETAILS; typedef PCONFLICT_DETAILS_A PCONFLICT_DETAILS; #endif #define CM_CDMASK_DEVINST (0x00000001) // mask to retrieve CD_dnDevInst attribute for conflict #define CM_CDMASK_RESDES (0x00000002) // mask to retrieve CD_rdResDes attribute for conflict #define CM_CDMASK_FLAGS (0x00000004) // mask to retrieve CD_ulFlags attribute for conflict #define CM_CDMASK_DESCRIPTION (0x00000008) // mask to retrieve CD_szDescription attribute for conflict #define CM_CDMASK_VALID (0x0000000F) // valid bits #define CM_CDFLAGS_DRIVER (0x00000001) // CD_ulFlags: CD_szDescription reports back legacy driver name #define CM_CDFLAGS_ROOT_OWNED (0x00000002) // CD_ulFlags: Root owned device #define CM_CDFLAGS_RESERVED (0x00000004) // CD_ulFlags: Specified range is not available for use typedef ULONG REGDISPOSITION; // // use 1 byte packing for the data structures // #include "pshpack1.h" //-------------------------------------------------------------- // Memory resource //-------------------------------------------------------------- // // Define the attribute flags for memory ranges. Each bit flag is // identified by a constant bitmask. Following the bitmask definition, // are the two possible values. // #define mMD_MemoryType (0x1) // Bitmask, whether memory is writable #define fMD_MemoryType mMD_MemoryType // compatibility #define fMD_ROM (0x0) // Memory range is read-only #define fMD_RAM (0x1) // Memory range may be written to #define mMD_32_24 (0x2) // Bitmask, memory is 24 or 32-bit #define fMD_32_24 mMD_32_24 // compatibility #define fMD_24 (0x0) // Memory range is 24-bit #define fMD_32 (0x2) // Memory range is 32-bit #define mMD_Prefetchable (0x4) // Bitmask,whether memory prefetchable #define fMD_Prefetchable mMD_Prefetchable // compatibility #define fMD_Pref mMD_Prefetchable // compatibility #define fMD_PrefetchDisallowed (0x0) // Memory range is not prefetchable #define fMD_PrefetchAllowed (0x4) // Memory range is prefetchable #define mMD_Readable (0x8) // Bitmask,whether memory is readable #define fMD_Readable mMD_Readable // compatibility #define fMD_ReadAllowed (0x0) // Memory range is readable #define fMD_ReadDisallowed (0x8) // Memory range is write-only #define mMD_CombinedWrite (0x10) // Bitmask,supports write-behind #define fMD_CombinedWrite mMD_CombinedWrite // compatibility #define fMD_CombinedWriteDisallowed (0x0) // no combined-write caching #define fMD_CombinedWriteAllowed (0x10) // supports combined-write caching #define mMD_Cacheable (0x20) // Bitmask,whether memory is cacheable #define fMD_NonCacheable (0x0) // Memory range is non-cacheable #define fMD_Cacheable (0x20) // Memory range is cacheable // // MEM_RANGE Structure // typedef struct Mem_Range_s { DWORDLONG MR_Align; // specifies mask for base alignment ULONG MR_nBytes; // specifies number of bytes required DWORDLONG MR_Min; // specifies minimum address of the range DWORDLONG MR_Max; // specifies maximum address of the range DWORD MR_Flags; // specifies flags describing range (fMD flags) DWORD MR_Reserved; } MEM_RANGE, *PMEM_RANGE; // // MEM_DES structure // typedef struct Mem_Des_s { DWORD MD_Count; // number of MEM_RANGE structs in MEM_RESOURCE DWORD MD_Type; // size (in bytes) of MEM_RANGE (MType_Range) DWORDLONG MD_Alloc_Base; // base memory address of range allocated DWORDLONG MD_Alloc_End; // end of allocated range DWORD MD_Flags; // flags describing allocated range (fMD flags) DWORD MD_Reserved; } MEM_DES, *PMEM_DES; // // MEM_RESOURCE structure // typedef struct Mem_Resource_s { MEM_DES MEM_Header; // info about memory range list MEM_RANGE MEM_Data[ANYSIZE_ARRAY]; // list of memory ranges } MEM_RESOURCE, *PMEM_RESOURCE; // // Define the size of each range structure // #define MType_Range sizeof(struct Mem_Range_s) //-------------------------------------------------------------- // I/O Port Resource //-------------------------------------------------------------- // // Define the attribute flags for port resources. Each bit flag is // identified by a constant bitmask. Following the bitmask definition, // are the two possible values. // #define fIOD_PortType (0x1) // Bitmask,whether port is IO or memory #define fIOD_Memory (0x0) // Port resource really uses memory #define fIOD_IO (0x1) // Port resource uses IO ports #define fIOD_DECODE (0x00fc) // decode flags #define fIOD_10_BIT_DECODE (0x0004) #define fIOD_12_BIT_DECODE (0x0008) #define fIOD_16_BIT_DECODE (0x0010) #define fIOD_POSITIVE_DECODE (0x0020) #define fIOD_PASSIVE_DECODE (0x0040) #define fIOD_WINDOW_DECODE (0x0080) // // these are for compatiblity // #define IO_ALIAS_10_BIT_DECODE (0x00000004) #define IO_ALIAS_12_BIT_DECODE (0x00000010) #define IO_ALIAS_16_BIT_DECODE (0x00000000) #define IO_ALIAS_POSITIVE_DECODE (0x000000FF) // // IO_RANGE structure // typedef struct IO_Range_s { DWORDLONG IOR_Align; // mask for base alignment DWORD IOR_nPorts; // number of ports DWORDLONG IOR_Min; // minimum port address DWORDLONG IOR_Max; // maximum port address DWORD IOR_RangeFlags; // flags for this port range DWORDLONG IOR_Alias; // multiplier that generates aliases for port(s) } IO_RANGE, *PIO_RANGE; // // IO_DES structure // typedef struct IO_Des_s { DWORD IOD_Count; // number of IO_RANGE structs in IO_RESOURCE DWORD IOD_Type; // size (in bytes) of IO_RANGE (IOType_Range) DWORDLONG IOD_Alloc_Base; // base of allocated port range DWORDLONG IOD_Alloc_End; // end of allocated port range DWORD IOD_DesFlags; // flags relating to allocated port range } IO_DES, *PIO_DES; // // IO_RESOURCE // typedef struct IO_Resource_s { IO_DES IO_Header; // info about I/O port range list IO_RANGE IO_Data[ANYSIZE_ARRAY]; // list of I/O port ranges } IO_RESOURCE, *PIO_RESOURCE; #define IOA_Local 0xff // // Define the size of each range structure // #define IOType_Range sizeof(struct IO_Range_s) //-------------------------------------------------------------- // DMA Resource //-------------------------------------------------------------- // // Define the attribute flags for a DMA resource range. Each bit flag is // identified with a constant bitmask. Following the bitmask definition // are the possible values. // #define mDD_Width (0x3) // Bitmask, width of the DMA channel: #define fDD_BYTE (0x0) // 8-bit DMA channel #define fDD_WORD (0x1) // 16-bit DMA channel #define fDD_DWORD (0x2) // 32-bit DMA channel #define fDD_BYTE_AND_WORD (0x3) // 8-bit and 16-bit DMA channel #define mDD_BusMaster (0x4) // Bitmask, whether bus mastering is supported #define fDD_NoBusMaster (0x0) // no bus mastering #define fDD_BusMaster (0x4) // bus mastering #define mDD_Type (0x18) // Bitmask, specifies type of DMA #define fDD_TypeStandard (0x00) // standard DMA #define fDD_TypeA (0x08) // Type-A DMA #define fDD_TypeB (0x10) // Type-B DMA #define fDD_TypeF (0x18) // Type-F DMA // // DMA_RANGE structure // typedef struct DMA_Range_s { ULONG DR_Min; // minimum DMA port in the range ULONG DR_Max; // maximum DMA port in the range ULONG DR_Flags; // flags describing the range (fDD flags) } DMA_RANGE, *PDMA_RANGE; // // DMA_DES structure // typedef struct DMA_Des_s { DWORD DD_Count; // number of DMA_RANGE structs in DMA_RESOURCE DWORD DD_Type; // size (in bytes) of DMA_RANGE struct (DType_Range) DWORD DD_Flags; // Flags describing DMA channel (fDD flags) ULONG DD_Alloc_Chan; // Specifies the DMA channel that was allocated } DMA_DES, *PDMA_DES; // // DMA_RESOURCE // typedef struct DMA_Resource_s { DMA_DES DMA_Header; // info about DMA channel range list DMA_RANGE DMA_Data[ANYSIZE_ARRAY]; // list of DMA ranges } DMA_RESOURCE, *PDMA_RESOURCE; // // Define the size of each range structure // #define DType_Range sizeof(struct DMA_Range_s) //-------------------------------------------------------------- // Interrupt Resource //-------------------------------------------------------------- // // Define the attribute flags for an interrupt resource range. Each bit flag // is identified with a constant bitmask. Following the bitmask definition // are the possible values. // #define mIRQD_Share (0x1) // Bitmask,whether the IRQ may be shared: #define fIRQD_Exclusive (0x0) // The IRQ may not be shared #define fIRQD_Share (0x1) // The IRQ may be shared #define fIRQD_Share_Bit 0 // compatibility #define fIRQD_Level_Bit 1 // compatibility // // ** NOTE: 16-bit ConfigMgr uses fIRQD_Level_Bit being set to indicate that the // ** interrupt is _level-sensitive_. For 32-bit ConfigMgr, if this bit is set, // ** then the interrupt is _edge-sensitive_. // #define mIRQD_Edge_Level (0x2) // Bitmask,whether edge or level triggered: #define fIRQD_Level (0x0) // The IRQ is level-sensitive #define fIRQD_Edge (0x2) // The IRQ is edge-sensitive // // IRQ_RANGE // typedef struct IRQ_Range_s { ULONG IRQR_Min; // minimum IRQ in the range ULONG IRQR_Max; // maximum IRQ in the range ULONG IRQR_Flags; // flags describing the range (fIRQD flags) } IRQ_RANGE, *PIRQ_RANGE; // // IRQ_DES structure // typedef struct IRQ_Des_32_s { DWORD IRQD_Count; // number of IRQ_RANGE structs in IRQ_RESOURCE DWORD IRQD_Type; // size (in bytes) of IRQ_RANGE (IRQType_Range) DWORD IRQD_Flags; // flags describing the IRQ (fIRQD flags) ULONG IRQD_Alloc_Num; // specifies the IRQ that was allocated ULONG32 IRQD_Affinity; } IRQ_DES_32, *PIRQ_DES_32; typedef struct IRQ_Des_64_s { DWORD IRQD_Count; // number of IRQ_RANGE structs in IRQ_RESOURCE DWORD IRQD_Type; // size (in bytes) of IRQ_RANGE (IRQType_Range) DWORD IRQD_Flags; // flags describing the IRQ (fIRQD flags) ULONG IRQD_Alloc_Num; // specifies the IRQ that was allocated ULONG64 IRQD_Affinity; } IRQ_DES_64, *PIRQ_DES_64; #ifdef _WIN64 typedef IRQ_DES_64 IRQ_DES; typedef PIRQ_DES_64 PIRQ_DES; #else typedef IRQ_DES_32 IRQ_DES; typedef PIRQ_DES_32 PIRQ_DES; #endif // // IRQ_RESOURCE structure // typedef struct IRQ_Resource_32_s { IRQ_DES_32 IRQ_Header; // info about IRQ range list IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]; // list of IRQ ranges } IRQ_RESOURCE_32, *PIRQ_RESOURCE_32; typedef struct IRQ_Resource_64_s { IRQ_DES_64 IRQ_Header; // info about IRQ range list IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]; // list of IRQ ranges } IRQ_RESOURCE_64, *PIRQ_RESOURCE_64; #ifdef _WIN64 typedef IRQ_RESOURCE_64 IRQ_RESOURCE; typedef PIRQ_RESOURCE_64 PIRQ_RESOURCE; #else typedef IRQ_RESOURCE_32 IRQ_RESOURCE; typedef PIRQ_RESOURCE_32 PIRQ_RESOURCE; #endif // // Define the size of each range structure // #define IRQType_Range sizeof(struct IRQ_Range_s) // // Flags for resource descriptor APIs indicating the width of certain // variable-size resource descriptor structure fields, where applicable. // #define CM_RESDES_WIDTH_DEFAULT (0x00000000) // 32 or 64-bit IRQ_RESOURCE / IRQ_DES, based on client #define CM_RESDES_WIDTH_32 (0x00000001) // 32-bit IRQ_RESOURCE / IRQ_DES #define CM_RESDES_WIDTH_64 (0x00000002) // 64-bit IRQ_RESOURCE / IRQ_DES #define CM_RESDES_WIDTH_BITS (0x00000003) //-------------------------------------------------------------- // Device Private Resource //-------------------------------------------------------------- // // DEVICEPRIVATE_RANGE structure // typedef struct DevPrivate_Range_s { DWORD PR_Data1; // mask for base alignment DWORD PR_Data2; // number of bytes DWORD PR_Data3; // minimum address } DEVPRIVATE_RANGE, *PDEVPRIVATE_RANGE; // // DEVPRIVATE_DES structure // typedef struct DevPrivate_Des_s { DWORD PD_Count; DWORD PD_Type; DWORD PD_Data1; DWORD PD_Data2; DWORD PD_Data3; DWORD PD_Flags; } DEVPRIVATE_DES, *PDEVPRIVATE_DES; // // DEVPRIVATE_RESOURCE // typedef struct DevPrivate_Resource_s { DEVPRIVATE_DES PRV_Header; DEVPRIVATE_RANGE PRV_Data[ANYSIZE_ARRAY]; } DEVPRIVATE_RESOURCE, *PDEVPRIVATE_RESOURCE; // // Define the size of each range structure // #define PType_Range sizeof(struct DevPrivate_Range_s) //-------------------------------------------------------------- // Class-Specific Resource //-------------------------------------------------------------- typedef struct CS_Des_s { DWORD CSD_SignatureLength; DWORD CSD_LegacyDataOffset; DWORD CSD_LegacyDataSize; DWORD CSD_Flags; GUID CSD_ClassGuid; BYTE CSD_Signature[ANYSIZE_ARRAY]; } CS_DES, *PCS_DES; typedef struct CS_Resource_s { CS_DES CS_Header; } CS_RESOURCE, *PCS_RESOURCE; //-------------------------------------------------------------- // PC Card Configuration Resource //-------------------------------------------------------------- // // Define the attribute flags for a PC Card configuration resource descriptor. // Each bit flag is identified with a constant bitmask. Following the bitmask // definition are the possible values. // #define mPCD_IO_8_16 (0x1) // Bitmask, whether I/O is 8 or 16 bits #define fPCD_IO_8 (0x0) // I/O is 8-bit #define fPCD_IO_16 (0x1) // I/O is 16-bit #define mPCD_MEM_8_16 (0x2) // Bitmask, whether MEM is 8 or 16 bits #define fPCD_MEM_8 (0x0) // MEM is 8-bit #define fPCD_MEM_16 (0x2) // MEM is 16-bit #define mPCD_MEM_A_C (0xC) // Bitmask, whether MEMx is Attribute or Common #define fPCD_MEM1_A (0x4) // MEM1 is Attribute #define fPCD_MEM2_A (0x8) // MEM2 is Attribute #define fPCD_IO_ZW_8 (0x10) // zero wait on 8 bit I/O #define fPCD_IO_SRC_16 (0x20) // iosrc 16 #define fPCD_IO_WS_16 (0x40) // wait states on 16 bit io #define mPCD_MEM_WS (0x300) // Bitmask, for additional wait states on memory windows #define fPCD_MEM_WS_ONE (0x100) // 1 wait state #define fPCD_MEM_WS_TWO (0x200) // 2 wait states #define fPCD_MEM_WS_THREE (0x300) // 3 wait states #define fPCD_MEM_A (0x4) // MEM is Attribute #define fPCD_ATTRIBUTES_PER_WINDOW (0x8000) #define fPCD_IO1_16 (0x00010000) // I/O window 1 is 16-bit #define fPCD_IO1_ZW_8 (0x00020000) // I/O window 1 zero wait on 8 bit I/O #define fPCD_IO1_SRC_16 (0x00040000) // I/O window 1 iosrc 16 #define fPCD_IO1_WS_16 (0x00080000) // I/O window 1 wait states on 16 bit io #define fPCD_IO2_16 (0x00100000) // I/O window 2 is 16-bit #define fPCD_IO2_ZW_8 (0x00200000) // I/O window 2 zero wait on 8 bit I/O #define fPCD_IO2_SRC_16 (0x00400000) // I/O window 2 iosrc 16 #define fPCD_IO2_WS_16 (0x00800000) // I/O window 2 wait states on 16 bit io #define mPCD_MEM1_WS (0x03000000) // MEM window 1 Bitmask, for additional wait states on memory windows #define fPCD_MEM1_WS_ONE (0x01000000) // MEM window 1, 1 wait state #define fPCD_MEM1_WS_TWO (0x02000000) // MEM window 1, 2 wait states #define fPCD_MEM1_WS_THREE (0x03000000) // MEM window 1, 3 wait states #define fPCD_MEM1_16 (0x04000000) // MEM window 1 is 16-bit #define mPCD_MEM2_WS (0x30000000) // MEM window 2 Bitmask, for additional wait states on memory windows #define fPCD_MEM2_WS_ONE (0x10000000) // MEM window 2, 1 wait state #define fPCD_MEM2_WS_TWO (0x20000000) // MEM window 2, 2 wait states #define fPCD_MEM2_WS_THREE (0x30000000) // MEM window 2, 3 wait states #define fPCD_MEM2_16 (0x40000000) // MEM window 2 is 16-bit #define PCD_MAX_MEMORY 2 #define PCD_MAX_IO 2 typedef struct PcCard_Des_s { DWORD PCD_Count; DWORD PCD_Type; DWORD PCD_Flags; BYTE PCD_ConfigIndex; BYTE PCD_Reserved[3]; DWORD PCD_MemoryCardBase1; DWORD PCD_MemoryCardBase2; DWORD PCD_MemoryCardBase[PCD_MAX_MEMORY]; // will soon be removed WORD PCD_MemoryFlags[PCD_MAX_MEMORY]; // will soon be removed BYTE PCD_IoFlags[PCD_MAX_IO]; // will soon be removed } PCCARD_DES, *PPCCARD_DES; typedef struct PcCard_Resource_s { PCCARD_DES PcCard_Header; } PCCARD_RESOURCE, *PPCCARD_RESOURCE; //-------------------------------------------------------------- // MF (multifunction) PCCard Configuration Resource //-------------------------------------------------------------- #define mPMF_AUDIO_ENABLE (0x8) // Bitmask, whether audio is enabled or not #define fPMF_AUDIO_ENABLE (0x8) // Audio is enabled typedef struct MfCard_Des_s { DWORD PMF_Count; DWORD PMF_Type; DWORD PMF_Flags; BYTE PMF_ConfigOptions; BYTE PMF_IoResourceIndex; BYTE PMF_Reserved[2]; DWORD PMF_ConfigRegisterBase; } MFCARD_DES, *PMFCARD_DES; typedef struct MfCard_Resource_s { MFCARD_DES MfCard_Header; } MFCARD_RESOURCE, *PMFCARD_RESOURCE; //-------------------------------------------------------------- // Bus Number Resource //-------------------------------------------------------------- // // Define the attribute flags for a Bus Number resource descriptor. // Each bit flag is identified with a constant bitmask. Following the bitmask // definition are the possible values. // // Currently unused. // // // BUSNUMBER_RANGE // typedef struct BusNumber_Range_s { ULONG BUSR_Min; // minimum Bus Number in the range ULONG BUSR_Max; // maximum Bus Number in the range ULONG BUSR_nBusNumbers; // specifies number of buses required ULONG BUSR_Flags; // flags describing the range (currently unused) } BUSNUMBER_RANGE, *PBUSNUMBER_RANGE; // // BUSNUMBER_DES structure // typedef struct BusNumber_Des_s { DWORD BUSD_Count; // number of BUSNUMBER_RANGE structs in BUSNUMBER_RESOURCE DWORD BUSD_Type; // size (in bytes) of BUSNUMBER_RANGE (BusNumberType_Range) DWORD BUSD_Flags; // flags describing the range (currently unused) ULONG BUSD_Alloc_Base; // specifies the first Bus that was allocated ULONG BUSD_Alloc_End; // specifies the last Bus number that was allocated } BUSNUMBER_DES, *PBUSNUMBER_DES; // // BUSNUMBER_RESOURCE structure // typedef struct BusNumber_Resource_s { BUSNUMBER_DES BusNumber_Header; // info about Bus Number range list BUSNUMBER_RANGE BusNumber_Data[ANYSIZE_ARRAY]; // list of Bus Number ranges } BUSNUMBER_RESOURCE, *PBUSNUMBER_RESOURCE; // // Define the size of each range structure // #define BusNumberType_Range sizeof(struct BusNumber_Range_s) //-------------------------------------------------------------- // Hardware Profile Information //-------------------------------------------------------------- // // Define flags relating to hardware profiles // #define CM_HWPI_NOT_DOCKABLE (0x00000000) // machine is not dockable #define CM_HWPI_UNDOCKED (0x00000001) // hw profile for docked config #define CM_HWPI_DOCKED (0x00000002) // hw profile for undocked config // // HWPROFILEINFO structure // typedef struct HWProfileInfo_sA { ULONG HWPI_ulHWProfile; // handle of hw profile CHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]; // friendly name of hw profile DWORD HWPI_dwFlags; // profile flags (CM_HWPI_*) } HWPROFILEINFO_A, *PHWPROFILEINFO_A; typedef struct HWProfileInfo_sW { ULONG HWPI_ulHWProfile; // handle of hw profile WCHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]; // friendly name of hw profile DWORD HWPI_dwFlags; // profile flags (CM_HWPI_*) } HWPROFILEINFO_W, *PHWPROFILEINFO_W; #ifdef UNICODE typedef HWPROFILEINFO_W HWPROFILEINFO; typedef PHWPROFILEINFO_W PHWPROFILEINFO; #else typedef HWPROFILEINFO_A HWPROFILEINFO; typedef PHWPROFILEINFO_A PHWPROFILEINFO; #endif // // revert back to normal default packing // #include "poppack.h" //-------------------------------------------------------------- // Miscellaneous //-------------------------------------------------------------- // // Resource types // #define ResType_All (0x00000000) // Return all resource types #define ResType_None (0x00000000) // Arbitration always succeeded #define ResType_Mem (0x00000001) // Physical address resource #define ResType_IO (0x00000002) // Physical I/O address resource #define ResType_DMA (0x00000003) // DMA channels resource #define ResType_IRQ (0x00000004) // IRQ resource #define ResType_DoNotUse (0x00000005) // Used as spacer to sync subsequent ResTypes w/NT #define ResType_BusNumber (0x00000006) // bus number resource #define ResType_MAX (0x00000006) // Maximum known (arbitrated) ResType #define ResType_Ignored_Bit (0x00008000) // Ignore this resource #define ResType_ClassSpecific (0x0000FFFF) // class-specific resource #define ResType_Reserved (0x00008000) // reserved for internal use #define ResType_DevicePrivate (0x00008001) // device private data #define ResType_PcCardConfig (0x00008002) // PC Card configuration data #define ResType_MfCardConfig (0x00008003) // MF Card configuration data // // Flags specifying options for ranges that conflict with ranges already in // the range list (CM_Add_Range) // #define CM_ADD_RANGE_ADDIFCONFLICT (0x00000000) // merg with conflicting range #define CM_ADD_RANGE_DONOTADDIFCONFLICT (0x00000001) // error if range conflicts #define CM_ADD_RANGE_BITS (0x00000001) // // Logical Config Flags (specified in call to CM_Get_First_Log_Conf // #define BASIC_LOG_CONF 0x00000000 // Specifies the req list. #define FILTERED_LOG_CONF 0x00000001 // Specifies the filtered req list. #define ALLOC_LOG_CONF 0x00000002 // Specifies the Alloc Element. #define BOOT_LOG_CONF 0x00000003 // Specifies the RM Alloc Element. #define FORCED_LOG_CONF 0x00000004 // Specifies the Forced Log Conf #define OVERRIDE_LOG_CONF 0x00000005 // Specifies the Override req list. #define NUM_LOG_CONF 0x00000006 // Number of Log Conf type #define LOG_CONF_BITS 0x00000007 // The bits of the log conf type. #define PRIORITY_EQUAL_FIRST (0x00000008) // Same priority, new one first #define PRIORITY_EQUAL_LAST (0x00000000) // Same priority, new one last #define PRIORITY_BIT (0x00000008) // // Registry disposition values // (specified in call to CM_Open_DevNode_Key and CM_Open_Class_Key) // #define RegDisposition_OpenAlways (0x00000000) // open if exists else create #define RegDisposition_OpenExisting (0x00000001) // open key only if exists #define RegDisposition_Bits (0x00000001) // // ulFlags values for CM API routines // // // Flags for CM_Add_ID // #define CM_ADD_ID_HARDWARE (0x00000000) #define CM_ADD_ID_COMPATIBLE (0x00000001) #define CM_ADD_ID_BITS (0x00000001) // // Device Node creation flags // #define CM_CREATE_DEVNODE_NORMAL (0x00000000) // install later #define CM_CREATE_DEVNODE_NO_WAIT_INSTALL (0x00000001) // NOT SUPPORTED ON NT #define CM_CREATE_DEVNODE_PHANTOM (0x00000002) #define CM_CREATE_DEVNODE_GENERATE_ID (0x00000004) #define CM_CREATE_DEVNODE_DO_NOT_INSTALL (0x00000008) #define CM_CREATE_DEVNODE_BITS (0x0000000F) #define CM_CREATE_DEVINST_NORMAL CM_CREATE_DEVNODE_NORMAL #define CM_CREATE_DEVINST_NO_WAIT_INSTALL CM_CREATE_DEVNODE_NO_WAIT_INSTALL #define CM_CREATE_DEVINST_PHANTOM CM_CREATE_DEVNODE_PHANTOM #define CM_CREATE_DEVINST_GENERATE_ID CM_CREATE_DEVNODE_GENERATE_ID #define CM_CREATE_DEVINST_DO_NOT_INSTALL CM_CREATE_DEVNODE_DO_NOT_INSTALL #define CM_CREATE_DEVINST_BITS CM_CREATE_DEVNODE_BITS // // Flags for CM_Delete_Class_Key // #define CM_DELETE_CLASS_ONLY (0x00000000) #define CM_DELETE_CLASS_SUBKEYS (0x00000001) #define CM_DELETE_CLASS_BITS (0x00000001) // // Detection reason flags (specified in call to CM_Run_Detection) // #define CM_DETECT_NEW_PROFILE (0x00000001) // detection for new hw profile #define CM_DETECT_CRASHED (0x00000002) // Previous detection crashed #define CM_DETECT_HWPROF_FIRST_BOOT (0x00000004) #define CM_DETECT_RUN (0x80000000) #define CM_DETECT_BITS (0x80000007) #define CM_DISABLE_POLITE (0x00000000) // Ask the driver #define CM_DISABLE_ABSOLUTE (0x00000001) // Don't ask the driver #define CM_DISABLE_HARDWARE (0x00000002) // Don't ask the driver, and won't be restarteable #define CM_DISABLE_UI_NOT_OK (0x00000004) // Don't popup any veto API #define CM_DISABLE_BITS (0x00000007) // The bits for the disable function // // Flags for CM_Get_Device_ID_List, CM_Get_Device_ID_List_Size // #define CM_GETIDLIST_FILTER_NONE (0x00000000) #define CM_GETIDLIST_FILTER_ENUMERATOR (0x00000001) #define CM_GETIDLIST_FILTER_SERVICE (0x00000002) #define CM_GETIDLIST_FILTER_EJECTRELATIONS (0x00000004) #define CM_GETIDLIST_FILTER_REMOVALRELATIONS (0x00000008) #define CM_GETIDLIST_FILTER_POWERRELATIONS (0x00000010) #define CM_GETIDLIST_FILTER_BUSRELATIONS (0x00000020) #define CM_GETIDLIST_DONOTGENERATE (0x10000040) #define CM_GETIDLIST_FILTER_BITS (0x1000007F) // // Flags for CM_Get_Device_Interface_List, CM_Get_Device_Interface_List_Size // #define CM_GET_DEVICE_INTERFACE_LIST_PRESENT (0x00000000) // only currently 'live' device interfaces #define CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES (0x00000001) // all registered device interfaces, live or not #define CM_GET_DEVICE_INTERFACE_LIST_BITS (0x00000001) // // Registry properties (specified in call to CM_Get_DevInst_Registry_Property or CM_Get_Class_Registry_Property, // some are allowed in calls to CM_Set_DevInst_Registry_Property and CM_Set_Class_Registry_Property) // CM_DRP_xxxx values should be used for CM_Get_DevInst_Registry_Property / CM_Set_DevInst_Registry_Property // CM_CRP_xxxx values should be used for CM_Get_Class_Registry_Property / CM_Set_Class_Registry_Property // DRP/CRP values that overlap must have a 1:1 correspondence with each other // #define CM_DRP_DEVICEDESC (0x00000001) // DeviceDesc REG_SZ property (RW) #define CM_DRP_HARDWAREID (0x00000002) // HardwareID REG_MULTI_SZ property (RW) #define CM_DRP_COMPATIBLEIDS (0x00000003) // CompatibleIDs REG_MULTI_SZ property (RW) #define CM_DRP_UNUSED0 (0x00000004) // unused #define CM_DRP_SERVICE (0x00000005) // Service REG_SZ property (RW) #define CM_DRP_UNUSED1 (0x00000006) // unused #define CM_DRP_UNUSED2 (0x00000007) // unused #define CM_DRP_CLASS (0x00000008) // Class REG_SZ property (RW) #define CM_DRP_CLASSGUID (0x00000009) // ClassGUID REG_SZ property (RW) #define CM_DRP_DRIVER (0x0000000A) // Driver REG_SZ property (RW) #define CM_DRP_CONFIGFLAGS (0x0000000B) // ConfigFlags REG_DWORD property (RW) #define CM_DRP_MFG (0x0000000C) // Mfg REG_SZ property (RW) #define CM_DRP_FRIENDLYNAME (0x0000000D) // FriendlyName REG_SZ property (RW) #define CM_DRP_LOCATION_INFORMATION (0x0000000E) // LocationInformation REG_SZ property (RW) #define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME (0x0000000F) // PhysicalDeviceObjectName REG_SZ property (R) #define CM_DRP_CAPABILITIES (0x00000010) // Capabilities REG_DWORD property (R) #define CM_DRP_UI_NUMBER (0x00000011) // UiNumber REG_DWORD property (R) #define CM_DRP_UPPERFILTERS (0x00000012) // UpperFilters REG_MULTI_SZ property (RW) #define CM_DRP_LOWERFILTERS (0x00000013) // LowerFilters REG_MULTI_SZ property (RW) #define CM_DRP_BUSTYPEGUID (0x00000014) // Bus Type Guid, GUID, (R) #define CM_DRP_LEGACYBUSTYPE (0x00000015) // Legacy bus type, INTERFACE_TYPE, (R) #define CM_DRP_BUSNUMBER (0x00000016) // Bus Number, DWORD, (R) #define CM_DRP_ENUMERATOR_NAME (0x00000017) // Enumerator Name REG_SZ property (R) #define CM_DRP_SECURITY (0x00000018) // Security - Device override (RW) #define CM_CRP_SECURITY CM_DRP_SECURITY // Class default security (RW) #define CM_DRP_SECURITY_SDS (0x00000019) // Security - Device override (RW) #define CM_CRP_SECURITY_SDS CM_DRP_SECURITY_SDS // Class default security (RW) #define CM_DRP_DEVTYPE (0x0000001A) // Device Type - Device override (RW) #define CM_CRP_DEVTYPE CM_DRP_DEVTYPE // Class default Device-type (RW) #define CM_DRP_EXCLUSIVE (0x0000001B) // Exclusivity - Device override (RW) #define CM_CRP_EXCLUSIVE CM_DRP_EXCLUSIVE // Class default (RW) #define CM_DRP_CHARACTERISTICS (0x0000001C) // Characteristics - Device Override (RW) #define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS // Class default (RW) #define CM_DRP_ADDRESS (0x0000001D) // Device Address (R) #define CM_DRP_UI_NUMBER_DESC_FORMAT (0x0000001E) // UINumberDescFormat REG_SZ property (RW) #define CM_DRP_DEVICE_POWER_DATA (0x0000001F) // CM_POWER_DATA REG_BINARY property (R) #define CM_DRP_REMOVAL_POLICY (0x00000020) // CM_DEVICE_REMOVAL_POLICY REG_DWORD (R) #define CM_DRP_REMOVAL_POLICY_HW_DEFAULT (0x00000021) // CM_DRP_REMOVAL_POLICY_HW_DEFAULT REG_DWORD (R) #define CM_DRP_REMOVAL_POLICY_OVERRIDE (0x00000022) // CM_DRP_REMOVAL_POLICY_OVERRIDE REG_DWORD (RW) #define CM_DRP_INSTALL_STATE (0x00000023) // CM_DRP_INSTALL_STATE REG_DWORD (R) #define CM_DRP_LOCATION_PATHS (0x00000024) // CM_DRP_LOCATION_PATHS REG_MULTI_SZ (R) #define CM_DRP_MIN (0x00000001) // First device register #define CM_CRP_MIN CM_DRP_MIN // First class register #define CM_DRP_MAX (0x00000024) // Last device register #define CM_CRP_MAX CM_DRP_MAX // Last class register // // Capabilities bits (the capability value is returned from calling // CM_Get_DevInst_Registry_Property with CM_DRP_CAPABILITIES property) // #define CM_DEVCAP_LOCKSUPPORTED (0x00000001) #define CM_DEVCAP_EJECTSUPPORTED (0x00000002) #define CM_DEVCAP_REMOVABLE (0x00000004) #define CM_DEVCAP_DOCKDEVICE (0x00000008) #define CM_DEVCAP_UNIQUEID (0x00000010) #define CM_DEVCAP_SILENTINSTALL (0x00000020) #define CM_DEVCAP_RAWDEVICEOK (0x00000040) #define CM_DEVCAP_SURPRISEREMOVALOK (0x00000080) #define CM_DEVCAP_HARDWAREDISABLED (0x00000100) #define CM_DEVCAP_NONDYNAMIC (0x00000200) // // Removal policies (retrievable via CM_Get_DevInst_Registry_Property with // the CM_DRP_REMOVAL_POLICY, CM_DRP_REMOVAL_POLICY_OVERRIDE, or // CM_DRP_REMOVAL_POLICY_HW_DEFAULT properties) // #define CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL 1 #define CM_REMOVAL_POLICY_EXPECT_ORDERLY_REMOVAL 2 #define CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL 3 // // Device install states (retrievable via CM_Get_DevInst_Registry_Property with // the CM_DRP_INSTALL_STATE properties) // #define CM_INSTALL_STATE_INSTALLED 0 #define CM_INSTALL_STATE_NEEDS_REINSTALL 1 #define CM_INSTALL_STATE_FAILED_INSTALL 2 #define CM_INSTALL_STATE_FINISH_INSTALL 3 // // Flags for CM_Locate_DevNode // #define CM_LOCATE_DEVNODE_NORMAL 0x00000000 #define CM_LOCATE_DEVNODE_PHANTOM 0x00000001 #define CM_LOCATE_DEVNODE_CANCELREMOVE 0x00000002 #define CM_LOCATE_DEVNODE_NOVALIDATION 0x00000004 #define CM_LOCATE_DEVNODE_BITS 0x00000007 #define CM_LOCATE_DEVINST_NORMAL CM_LOCATE_DEVNODE_NORMAL #define CM_LOCATE_DEVINST_PHANTOM CM_LOCATE_DEVNODE_PHANTOM #define CM_LOCATE_DEVINST_CANCELREMOVE CM_LOCATE_DEVNODE_CANCELREMOVE #define CM_LOCATE_DEVINST_NOVALIDATION CM_LOCATE_DEVNODE_NOVALIDATION #define CM_LOCATE_DEVINST_BITS CM_LOCATE_DEVNODE_BITS // // Flags for CM_Open_Class_Key // #define CM_OPEN_CLASS_KEY_INSTALLER (0x00000000) #define CM_OPEN_CLASS_KEY_INTERFACE (0x00000001) #define CM_OPEN_CLASS_KEY_BITS (0x00000001) // // Flags for CM_Query_And_Remove_SubTree // #define CM_REMOVE_UI_OK 0x00000000 #define CM_REMOVE_UI_NOT_OK 0x00000001 #define CM_REMOVE_NO_RESTART 0x00000002 #define CM_REMOVE_BITS 0x00000003 // // Backward compatibility--do not use // (use above CM_REMOVE_* flags instead) // #define CM_QUERY_REMOVE_UI_OK (CM_REMOVE_UI_OK) #define CM_QUERY_REMOVE_UI_NOT_OK (CM_REMOVE_UI_NOT_OK) #define CM_QUERY_REMOVE_BITS (CM_QUERY_REMOVE_UI_OK|CM_QUERY_REMOVE_UI_NOT_OK) // // Flags for CM_Reenumerate_DevNode // #define CM_REENUMERATE_NORMAL 0x00000000 #define CM_REENUMERATE_SYNCHRONOUS 0x00000001 #define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002 #define CM_REENUMERATE_ASYNCHRONOUS 0x00000004 #define CM_REENUMERATE_BITS 0x00000007 // // Flags for CM_Register_Device_Driver // #define CM_REGISTER_DEVICE_DRIVER_STATIC (0x00000000) #define CM_REGISTER_DEVICE_DRIVER_DISABLEABLE (0x00000001) #define CM_REGISTER_DEVICE_DRIVER_REMOVABLE (0x00000002) #define CM_REGISTER_DEVICE_DRIVER_BITS (0x00000003) // // Registry Branch Locations (for CM_Open_DevNode_Key) // #define CM_REGISTRY_HARDWARE (0x00000000) #define CM_REGISTRY_SOFTWARE (0x00000001) #define CM_REGISTRY_USER (0x00000100) #define CM_REGISTRY_CONFIG (0x00000200) #define CM_REGISTRY_BITS (0x00000301) // // Flags for CM_Set_DevNode_Problem // #define CM_SET_DEVNODE_PROBLEM_NORMAL (0x00000000) // only set problem if currently no problem #define CM_SET_DEVNODE_PROBLEM_OVERRIDE (0x00000001) // override current problem with new problem #define CM_SET_DEVNODE_PROBLEM_BITS (0x00000001) #define CM_SET_DEVINST_PROBLEM_NORMAL CM_SET_DEVNODE_PROBLEM_NORMAL #define CM_SET_DEVINST_PROBLEM_OVERRIDE CM_SET_DEVNODE_PROBLEM_OVERRIDE #define CM_SET_DEVINST_PROBLEM_BITS CM_SET_DEVNODE_PROBLEM_BITS // // Flags for CM_Set_HW_Prof_Flags // #define CM_SET_HW_PROF_FLAGS_UI_NOT_OK (0x00000001) // Don't popup any veto UI #define CM_SET_HW_PROF_FLAGS_BITS (0x00000001) // // Re-enable and configuration actions (specified in call to CM_Setup_DevInst) // #define CM_SETUP_DEVNODE_READY (0x00000000) // Reenable problem devinst #define CM_SETUP_DEVINST_READY CM_SETUP_DEVNODE_READY #define CM_SETUP_DOWNLOAD (0x00000001) // Get info about devinst #define CM_SETUP_WRITE_LOG_CONFS (0x00000002) #define CM_SETUP_PROP_CHANGE (0x00000003) #define CM_SETUP_DEVNODE_RESET (0x00000004) // Reset problem devinst without starting #define CM_SETUP_DEVINST_RESET CM_SETUP_DEVNODE_RESET #define CM_SETUP_BITS (0x00000007) // // Flags for CM_Query_Arbitrator_Free_Data and // CM_Query_Arbitrator_Free_Data_Size. // #define CM_QUERY_ARBITRATOR_RAW (0x00000000) #define CM_QUERY_ARBITRATOR_TRANSLATED (0x00000001) #define CM_QUERY_ARBITRATOR_BITS (0x00000001) // // Flags for CM_Get_DevNode_Custom_Property // #define CM_CUSTOMDEVPROP_MERGE_MULTISZ (0x00000001) #define CM_CUSTOMDEVPROP_BITS (0x00000001) //-------------------------------------------------------------- // Function prototypes //-------------------------------------------------------------- CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf( __out PLOG_CONF plcLogConf, __in DEVINST dnDevInst, __in PRIORITY Priority, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf_Ex( __out PLOG_CONF plcLogConf, __in DEVINST dnDevInst, __in PRIORITY Priority, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Add_IDA( __in DEVINST dnDevInst, __in PSTR pszID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Add_IDW( __in DEVINST dnDevInst, __in PWSTR pszID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Add_ID_ExA( __in DEVINST dnDevInst, __in PSTR pszID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Add_ID_ExW( __in DEVINST dnDevInst, __in PWSTR pszID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Add_ID CM_Add_IDW #define CM_Add_ID_Ex CM_Add_ID_ExW #else #define CM_Add_ID CM_Add_IDA #define CM_Add_ID_Ex CM_Add_ID_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Add_Range( __in DWORDLONG ullStartValue, __in DWORDLONG ullEndValue, __in RANGE_LIST rlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Add_Res_Des( __out_opt PRES_DES prdResDes, __in LOG_CONF lcLogConf, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Add_Res_Des_Ex( __out_opt PRES_DES prdResDes, __in LOG_CONF lcLogConf, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Connect_MachineA( __in_opt PCSTR UNCServerName, __out PHMACHINE phMachine ); CMAPI CONFIGRET WINAPI CM_Connect_MachineW( __in_opt PCWSTR UNCServerName, __out PHMACHINE phMachine ); #ifdef UNICODE #define CM_Connect_Machine CM_Connect_MachineW #else #define CM_Connect_Machine CM_Connect_MachineA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Create_DevNodeA( __out PDEVINST pdnDevInst, __in DEVINSTID_A pDeviceID, __in DEVINST dnParent, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Create_DevNodeW( __out PDEVINST pdnDevInst, __in DEVINSTID_W pDeviceID, __in DEVINST dnParent, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Create_DevNode_ExA( __out PDEVINST pdnDevInst, __in DEVINSTID_A pDeviceID, __in DEVINST dnParent, __in ULONG ulFlags, __in_opt HANDLE hMachine ); CMAPI CONFIGRET WINAPI CM_Create_DevNode_ExW( __out PDEVINST pdnDevInst, __in DEVINSTID_W pDeviceID, __in DEVINST dnParent, __in ULONG ulFlags, __in_opt HANDLE hMachine ); #define CM_Create_DevInstW CM_Create_DevNodeW #define CM_Create_DevInstA CM_Create_DevNodeA #define CM_Create_DevInst_ExW CM_Create_DevNode_ExW #define CM_Create_DevInst_ExA CM_Create_DevNode_ExA #ifdef UNICODE #define CM_Create_DevNode CM_Create_DevNodeW #define CM_Create_DevInst CM_Create_DevNodeW #define CM_Create_DevNode_Ex CM_Create_DevNode_ExW #define CM_Create_DevInst_Ex CM_Create_DevInst_ExW #else #define CM_Create_DevNode CM_Create_DevNodeA #define CM_Create_DevInst CM_Create_DevNodeA #define CM_Create_DevNode_Ex CM_Create_DevNode_ExA #define CM_Create_DevInst_Ex CM_Create_DevNode_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Create_Range_List( __out PRANGE_LIST prlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Delete_Class_Key( __in LPGUID ClassGuid, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Delete_Class_Key_Ex( __in LPGUID ClassGuid, __in ULONG ulFlags, __in_opt HANDLE hMachine ); CMAPI CONFIGRET WINAPI CM_Delete_DevNode_Key( __in DEVNODE dnDevNode, __in ULONG ulHardwareProfile, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Delete_DevNode_Key_Ex( __in DEVNODE dnDevNode, __in ULONG ulHardwareProfile, __in ULONG ulFlags, __in_opt HANDLE hMachine ); #define CM_Delete_DevInst_Key CM_Delete_DevNode_Key #define CM_Delete_DevInst_Key_Ex CM_Delete_DevNode_Key_Ex CMAPI CONFIGRET WINAPI CM_Delete_Range( __in DWORDLONG ullStartValue, __in DWORDLONG ullEndValue, __in RANGE_LIST rlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Detect_Resource_Conflict( __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __out PBOOL pbConflictDetected, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Detect_Resource_Conflict_Ex( __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __out PBOOL pbConflictDetected, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Disable_DevNode( __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Disable_DevNode_Ex( __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Disable_DevInst CM_Disable_DevNode #define CM_Disable_DevInst_Ex CM_Disable_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Disconnect_Machine( __in HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Dup_Range_List( __in RANGE_LIST rlhOld, __in RANGE_LIST rlhNew, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Enable_DevNode( __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Enable_DevNode_Ex( __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Enable_DevInst CM_Enable_DevNode #define CM_Enable_DevInst_Ex CM_Enable_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Enumerate_Classes( __in ULONG ulClassIndex, __out LPGUID ClassGuid, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Enumerate_Classes_Ex( __in ULONG ulClassIndex, __out LPGUID ClassGuid, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsA( __in ULONG ulEnumIndex, __out_ecount_part(*pulLength, *pulLength) PSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsW( __in ULONG ulEnumIndex, __out_ecount_part(*pulLength, *pulLength) PWSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExA( __in ULONG ulEnumIndex, __out_ecount_part(*pulLength, *pulLength) PSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW( __in ULONG ulEnumIndex, __out_ecount_part(*pulLength, *pulLength) PWSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsW #define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExW #else #define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsA #define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Find_Range( __out PDWORDLONG pullStart, __in DWORDLONG ullStart, __in ULONG ulLength, __in DWORDLONG ullAlignment, __in DWORDLONG ullEnd, __in RANGE_LIST rlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_First_Range( __in RANGE_LIST rlh, __out PDWORDLONG pullStart, __out PDWORDLONG pullEnd, __out PRANGE_ELEMENT preElement, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Free_Log_Conf( __in LOG_CONF lcLogConfToBeFreed, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Ex( __in LOG_CONF lcLogConfToBeFreed, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Handle( __in LOG_CONF lcLogConf ); CMAPI CONFIGRET WINAPI CM_Free_Range_List( __in RANGE_LIST rlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Free_Res_Des( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Ex( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Handle( __in RES_DES rdResDes ); CMAPI CONFIGRET WINAPI CM_Get_Child( __out PDEVINST pdnDevInst, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Child_Ex( __out PDEVINST pdnDevInst, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Class_NameA( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) PSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Class_NameW( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) PWSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Class_Name_ExA( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) PSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Class_Name_ExW( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) PWSTR Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Class_Name CM_Get_Class_NameW #define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExW #else #define CM_Get_Class_Name CM_Get_Class_NameA #define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Class_Key_NameA( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) LPSTR pszKeyName, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Class_Key_NameW( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszKeyName, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Class_Key_Name_ExA( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) LPSTR pszKeyName, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Class_Key_Name_ExW( __in LPGUID ClassGuid, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszKeyName, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Class_Key_Name CM_Get_Class_Key_NameW #define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExW #else #define CM_Get_Class_Key_Name CM_Get_Class_Key_NameA #define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Depth( __out PULONG pulDepth, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Depth_Ex( __out PULONG pulDepth, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_IDA( __in DEVINST dnDevInst, __out_ecount(BufferLen) PSTR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_IDW( __in DEVINST dnDevInst, __out_ecount(BufferLen) PWSTR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA( __in DEVINST dnDevInst, __out_ecount(BufferLen) PSTR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW( __in DEVINST dnDevInst, __out_ecount(BufferLen) PWSTR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_ID CM_Get_Device_IDW #define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW #else #define CM_Get_Device_ID CM_Get_Device_IDA #define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA( __in_opt PCSTR pszFilter, __out_ecount(BufferLen) PCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW( __in_opt PCWSTR pszFilter, __out_ecount(BufferLen) PWCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA( __in_opt PCSTR pszFilter, __out_ecount(BufferLen) PCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW( __in_opt PCWSTR pszFilter, __out_ecount(BufferLen) PWCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_ID_List CM_Get_Device_ID_ListW #define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExW #else #define CM_Get_Device_ID_List CM_Get_Device_ID_ListA #define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA( __out PULONG pulLen, __in_opt PCSTR pszFilter, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW( __out PULONG pulLen, __in_opt PCWSTR pszFilter, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExA( __out PULONG pulLen, __in_opt PCSTR pszFilter, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExW( __out PULONG pulLen, __in_opt PCWSTR pszFilter, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeW #define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExW #else #define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeA #define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size( __out PULONG pulLen, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex( __out PULONG pulLen, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyA( __in DEVINST dnDevInst, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyW( __in DEVINST dnDevInst, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExA( __in DEVINST dnDevInst, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExW( __in DEVINST dnDevInst, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Get_DevInst_Registry_PropertyW CM_Get_DevNode_Registry_PropertyW #define CM_Get_DevInst_Registry_PropertyA CM_Get_DevNode_Registry_PropertyA #define CM_Get_DevInst_Registry_Property_ExW CM_Get_DevNode_Registry_Property_ExW #define CM_Get_DevInst_Registry_Property_ExA CM_Get_DevNode_Registry_Property_ExA #ifdef UNICODE #define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyW #define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW #define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyW #define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW #else #define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyA #define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA #define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyA #define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_PropertyA( __in DEVINST dnDevInst, __in PCSTR pszCustomPropertyName, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_PropertyW( __in DEVINST dnDevInst, __in PCWSTR pszCustomPropertyName, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_Property_ExA( __in DEVINST dnDevInst, __in PCSTR pszCustomPropertyName, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_Property_ExW( __in DEVINST dnDevInst, __in PCWSTR pszCustomPropertyName, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Get_DevInst_Custom_PropertyW CM_Get_DevNode_Custom_PropertyW #define CM_Get_DevInst_Custom_PropertyA CM_Get_DevNode_Custom_PropertyA #define CM_Get_DevInst_Custom_Property_ExW CM_Get_DevNode_Custom_Property_ExW #define CM_Get_DevInst_Custom_Property_ExA CM_Get_DevNode_Custom_Property_ExA #ifdef UNICODE #define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyW #define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW #define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyW #define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW #else #define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyA #define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA #define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyA #define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status( __out PULONG pulStatus, __out PULONG pulProblemNumber, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status_Ex( __out PULONG pulStatus, __out PULONG pulProblemNumber, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Get_DevInst_Status CM_Get_DevNode_Status #define CM_Get_DevInst_Status_Ex CM_Get_DevNode_Status_Ex CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf( __out_opt PLOG_CONF plcLogConf, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf_Ex( __out_opt PLOG_CONF plcLogConf, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Global_State( __out PULONG pulState, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Global_State_Ex( __out PULONG pulState, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_InfoA( __in ULONG ulIndex, __out PHWPROFILEINFO_A pHWProfileInfo, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_Info_ExA( __in ULONG ulIndex, __out PHWPROFILEINFO_A pHWProfileInfo, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_InfoW( __in ULONG ulIndex, __out PHWPROFILEINFO_W pHWProfileInfo, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_Info_ExW( __in ULONG ulIndex, __out PHWPROFILEINFO_W pHWProfileInfo, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoW #define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExW #else #define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoA #define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_FlagsA( __in DEVINSTID_A szDevInstName, __in ULONG ulHardwareProfile, __out PULONG pulValue, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_FlagsW( __in DEVINSTID_W szDevInstName, __in ULONG ulHardwareProfile, __out PULONG pulValue, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExA( __in DEVINSTID_A szDevInstName, __in ULONG ulHardwareProfile, __out PULONG pulValue, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExW( __in DEVINSTID_W szDevInstName, __in ULONG ulHardwareProfile, __out PULONG pulValue, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsW #define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExW #else #define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsA #define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_AliasA( __in LPCSTR pszDeviceInterface, __in LPGUID AliasInterfaceGuid, __out_ecount_part(*pulLength, *pulLength) LPSTR pszAliasDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_AliasW( __in LPCWSTR pszDeviceInterface, __in LPGUID AliasInterfaceGuid, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszAliasDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExA( __in LPCSTR pszDeviceInterface, __in LPGUID AliasInterfaceGuid, __out_ecount_part(*pulLength, *pulLength) LPSTR pszAliasDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExW( __in LPCWSTR pszDeviceInterface, __in LPGUID AliasInterfaceGuid, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszAliasDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasW #define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExW #else #define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasA #define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListA( __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_A pDeviceID, __out_ecount(BufferLen) PCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListW( __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_W pDeviceID, __out_ecount(BufferLen) PWCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExA( __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_A pDeviceID, __out_ecount(BufferLen) PCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExW( __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_W pDeviceID, __out_ecount(BufferLen) PWCHAR Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListW #define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExW #else #define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListA #define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeA( __in PULONG pulLen, __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_A pDeviceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeW( __in PULONG pulLen, __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_W pDeviceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA( __in PULONG pulLen, __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_A pDeviceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW( __in PULONG pulLen, __in LPGUID InterfaceClassGuid, __in_opt DEVINSTID_W pDeviceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeW #define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExW #else #define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeA #define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority( __in LOG_CONF lcLogConf, __out PPRIORITY pPriority, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority_Ex( __in LOG_CONF lcLogConf, __out PPRIORITY pPriority, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf( __out_opt PLOG_CONF plcLogConf, __in LOG_CONF lcLogConf, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf_Ex( __out_opt PLOG_CONF plcLogConf, __in LOG_CONF lcLogConf, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Parent( __out PDEVINST pdnDevInst, __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Parent_Ex( __out PDEVINST pdnDevInst, __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data( __in RES_DES rdResDes, __out_bcount(BufferLen) PVOID Buffer, __in ULONG BufferLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Ex( __in RES_DES rdResDes, __out_bcount(BufferLen) PVOID Buffer, __in ULONG BufferLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size( __out PULONG pulSize, __in RES_DES rdResDes, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size_Ex( __out PULONG pulSize, __in RES_DES rdResDes, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Sibling( __out PDEVINST pdnDevInst, __in DEVINST DevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Sibling_Ex( __out PDEVINST pdnDevInst, __in DEVINST DevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI WORD WINAPI CM_Get_Version( VOID ); CMAPI WORD WINAPI CM_Get_Version_Ex( __in_opt HMACHINE hMachine ); CMAPI BOOL WINAPI CM_Is_Version_Available( __in WORD wVersion ); CMAPI BOOL WINAPI CM_Is_Version_Available_Ex( __in WORD wVersion, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Intersect_Range_List( __in RANGE_LIST rlhOld1, __in RANGE_LIST rlhOld2, __in RANGE_LIST rlhNew, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Invert_Range_List( __in RANGE_LIST rlhOld, __in RANGE_LIST rlhNew, __in DWORDLONG ullMaxValue, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA( __out PDEVINST pdnDevInst, __in_opt DEVINSTID_A pDeviceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW( __out PDEVINST pdnDevInst, __in_opt DEVINSTID_W pDeviceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExA( __out PDEVINST pdnDevInst, __in_opt DEVINSTID_A pDeviceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExW( __out PDEVINST pdnDevInst, __in_opt DEVINSTID_W pDeviceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Locate_DevInstA CM_Locate_DevNodeA #define CM_Locate_DevInstW CM_Locate_DevNodeW #define CM_Locate_DevInst_ExA CM_Locate_DevNode_ExA #define CM_Locate_DevInst_ExW CM_Locate_DevNode_ExW #ifdef UNICODE #define CM_Locate_DevNode CM_Locate_DevNodeW #define CM_Locate_DevInst CM_Locate_DevNodeW #define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExW #define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExW #else #define CM_Locate_DevNode CM_Locate_DevNodeA #define CM_Locate_DevInst CM_Locate_DevNodeA #define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExA #define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Merge_Range_List( __in RANGE_LIST rlhOld1, __in RANGE_LIST rlhOld2, __in RANGE_LIST rlhNew, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Modify_Res_Des( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Modify_Res_Des_Ex( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Move_DevNode( __in DEVINST dnFromDevInst, __in DEVINST dnToDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Move_DevNode_Ex( __in DEVINST dnFromDevInst, __in DEVINST dnToDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Move_DevInst CM_Move_DevNode #define CM_Move_DevInst_Ex CM_Move_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Next_Range( __inout PRANGE_ELEMENT preElement, __out PDWORDLONG pullStart, __out PDWORDLONG pullEnd, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in RESOURCEID ForResource, __out_opt PRESOURCEID pResourceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des_Ex( __out PRES_DES prdResDes, __in RES_DES rdResDes, __in RESOURCEID ForResource, __out_opt PRESOURCEID pResourceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Open_Class_KeyA( __in_opt LPGUID ClassGuid, __in_opt LPCSTR pszClassName, __in REGSAM samDesired, __in REGDISPOSITION Disposition, __out PHKEY phkClass, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Open_Class_KeyW( __in_opt LPGUID ClassGuid, __in_opt LPCWSTR pszClassName, __in REGSAM samDesired, __in REGDISPOSITION Disposition, __out PHKEY phkClass, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Open_Class_Key_ExA( __in_opt LPGUID pszClassGuid, __in_opt LPCSTR pszClassName, __in REGSAM samDesired, __in REGDISPOSITION Disposition, __out PHKEY phkClass, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Open_Class_Key_ExW( __in_opt LPGUID pszClassGuid, __in_opt LPCWSTR pszClassName, __in REGSAM samDesired, __in REGDISPOSITION Disposition, __out PHKEY phkClass, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Open_Class_Key CM_Open_Class_KeyW #define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExW #else #define CM_Open_Class_Key CM_Open_Class_KeyA #define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key( __in DEVINST dnDevNode, __in REGSAM samDesired, __in ULONG ulHardwareProfile, __in REGDISPOSITION Disposition, __out PHKEY phkDevice, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key_Ex( __in DEVINST dnDevNode, __in REGSAM samDesired, __in ULONG ulHardwareProfile, __in REGDISPOSITION Disposition, __out PHKEY phkDevice, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Open_DevInst_Key CM_Open_DevNode_Key #define CM_Open_DevInst_Key_Ex CM_Open_DevNode_Key_Ex CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Data( __out_bcount(DataLen) PVOID pData, __in ULONG DataLen, __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Data_Ex( __out_bcount(DataLen) PVOID pData, __in ULONG DataLen, __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Size( __out PULONG pulSize, __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Size_Ex( __out PULONG pulSize, __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Query_Remove_SubTree( __in DEVINST dnAncestor, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Query_Remove_SubTree_Ex( __in DEVINST dnAncestor, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeA( __in DEVINST dnAncestor, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExA( __in DEVINST dnAncestor, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeW( __in DEVINST dnAncestor, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPWSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExW( __in DEVINST dnAncestor, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPWSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeW #define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExW #else #define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeA #define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Request_Device_EjectA( __in DEVINST dnDevInst, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExA( __in DEVINST dnDevInst, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Request_Device_EjectW( __in DEVINST dnDevInst, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPWSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExW( __in DEVINST dnDevInst, __out_opt PPNP_VETO_TYPE pVetoType, __out_ecount_opt(ulNameLength) LPWSTR pszVetoName, __in ULONG ulNameLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Request_Device_Eject CM_Request_Device_EjectW #define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExW #else #define CM_Request_Device_Eject CM_Request_Device_EjectA #define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode( __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode_Ex( __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Reenumerate_DevInst CM_Reenumerate_DevNode #define CM_Reenumerate_DevInst_Ex CM_Reenumerate_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Register_Device_InterfaceA( __in DEVINST dnDevInst, __in LPGUID InterfaceClassGuid, __in_opt LPCSTR pszReference, __out_ecount_part(*pulLength, *pulLength) LPSTR pszDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Register_Device_InterfaceW( __in DEVINST dnDevInst, __in LPGUID InterfaceClassGuid, __in_opt LPCWSTR pszReference, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Register_Device_Interface_ExA( __in DEVINST dnDevInst, __in LPGUID InterfaceClassGuid, __in_opt LPCSTR pszReference, __out_ecount_part(*pulLength, *pulLength) LPSTR pszDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Register_Device_Interface_ExW( __in DEVINST dnDevInst, __in LPGUID InterfaceClassGuid, __in_opt LPCWSTR pszReference, __out_ecount_part(*pulLength, *pulLength) LPWSTR pszDeviceInterface, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Register_Device_Interface CM_Register_Device_InterfaceW #define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExW #else #define CM_Register_Device_Interface CM_Register_Device_InterfaceA #define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Set_DevNode_Problem_Ex( __in DEVINST dnDevInst, __in ULONG ulProblem, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_DevNode_Problem( __in DEVINST dnDevInst, __in ULONG ulProblem, __in ULONG ulFlags ); #define CM_Set_DevInst_Problem CM_Set_DevNode_Problem #define CM_Set_DevInst_Problem_Ex CM_Set_DevNode_Problem_Ex CMAPI CONFIGRET WINAPI CM_Unregister_Device_InterfaceA( __in LPCSTR pszDeviceInterface, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Unregister_Device_InterfaceW( __in LPCWSTR pszDeviceInterface, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Unregister_Device_Interface_ExA( __in LPCSTR pszDeviceInterface, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Unregister_Device_Interface_ExW( __in LPCWSTR pszDeviceInterface, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceW #define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExW #else #define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceA #define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Register_Device_Driver( __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Register_Device_Driver_Ex( __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Remove_SubTree( __in DEVINST dnAncestor, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Remove_SubTree_Ex( __in DEVINST dnAncestor, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyA( __in DEVINST dnDevInst, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyW( __in DEVINST dnDevInst, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExA( __in DEVINST dnDevInst, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExW( __in DEVINST dnDevInst, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Set_DevInst_Registry_PropertyW CM_Set_DevNode_Registry_PropertyW #define CM_Set_DevInst_Registry_PropertyA CM_Set_DevNode_Registry_PropertyA #define CM_Set_DevInst_Registry_Property_ExW CM_Set_DevNode_Registry_Property_ExW #define CM_Set_DevInst_Registry_Property_ExA CM_Set_DevNode_Registry_Property_ExA #ifdef UNICODE #define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyW #define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW #define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyW #define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW #else #define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyA #define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA #define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyA #define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Is_Dock_Station_Present( __out PBOOL pbPresent ); CMAPI CONFIGRET WINAPI CM_Is_Dock_Station_Present_Ex( __out PBOOL pbPresent, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Request_Eject_PC( VOID ); CMAPI CONFIGRET WINAPI CM_Request_Eject_PC_Ex( __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_FlagsA( __in DEVINSTID_A szDevInstName, __in ULONG ulConfig, __in ULONG ulValue, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_FlagsW( __in DEVINSTID_W szDevInstName, __in ULONG ulConfig, __in ULONG ulValue, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExA( __in DEVINSTID_A szDevInstName, __in ULONG ulConfig, __in ULONG ulValue, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExW( __in DEVINSTID_W szDevInstName, __in ULONG ulConfig, __in ULONG ulValue, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsW #define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExW #else #define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsA #define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Setup_DevNode( __in DEVINST dnDevInst, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Setup_DevNode_Ex( __in DEVINST dnDevInst, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #define CM_Setup_DevInst CM_Setup_DevNode #define CM_Setup_DevInst_Ex CM_Setup_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Test_Range_Available( __in DWORDLONG ullStartValue, __in DWORDLONG ullEndValue, __in RANGE_LIST rlh, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Uninstall_DevNode( __in DEVNODE dnPhantom, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Uninstall_DevNode_Ex( __in DEVNODE dnPhantom, __in ULONG ulFlags, __in_opt HANDLE hMachine ); #define CM_Uninstall_DevInst CM_Uninstall_DevNode #define CM_Uninstall_DevInst_Ex CM_Uninstall_DevNode_Ex CMAPI CONFIGRET WINAPI CM_Run_Detection( __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Run_Detection_Ex( __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof( __in ULONG ulHardwareProfile, __in ULONG ulFlags ); CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Ex( __in ULONG ulHardwareProfile, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Query_Resource_Conflict_List( __out PCONFLICT_LIST pclConflictList, __in DEVINST dnDevInst, __in RESOURCEID ResourceID, __in_bcount(ResourceLen) PCVOID ResourceData, __in ULONG ResourceLen, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Free_Resource_Conflict_Handle( __in CONFLICT_LIST clConflictList ); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_Count( __in CONFLICT_LIST clConflictList, __out PULONG pulCount ); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsA( __in CONFLICT_LIST clConflictList, __in ULONG ulIndex, __inout PCONFLICT_DETAILS_A pConflictDetails ); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsW( __in CONFLICT_LIST clConflictList, __in ULONG ulIndex, __inout PCONFLICT_DETAILS_W pConflictDetails ); #ifdef UNICODE #define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsW #else #define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsA #endif // UNICODE CMAPI CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW( __in LPGUID ClassGUID, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_Class_Registry_PropertyW( __in LPGUID ClassGUID, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Get_Class_Registry_PropertyA( __in LPGUID ClassGUID, __in ULONG ulProperty, __out_opt PULONG pulRegDataType, __out_bcount_part_opt(*pulLength, *pulLength) PVOID Buffer, __inout PULONG pulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); CMAPI CONFIGRET WINAPI CM_Set_Class_Registry_PropertyA( __in LPGUID ClassGUID, __in ULONG ulProperty, __in_bcount_opt(ulLength) PCVOID Buffer, __in ULONG ulLength, __in ULONG ulFlags, __in_opt HMACHINE hMachine ); #ifdef UNICODE #define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyW #define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyW #else #define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyA #define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyA #endif // UNICODE #define CM_WaitNoPendingInstallEvents CMP_WaitNoPendingInstallEvents DWORD WINAPI CM_WaitNoPendingInstallEvents( __in DWORD dwTimeout ); //-------------------------------------------------------------- // Configuration Manager return status codes //-------------------------------------------------------------- #define CR_SUCCESS (0x00000000) #define CR_DEFAULT (0x00000001) #define CR_OUT_OF_MEMORY (0x00000002) #define CR_INVALID_POINTER (0x00000003) #define CR_INVALID_FLAG (0x00000004) #define CR_INVALID_DEVNODE (0x00000005) #define CR_INVALID_DEVINST CR_INVALID_DEVNODE #define CR_INVALID_RES_DES (0x00000006) #define CR_INVALID_LOG_CONF (0x00000007) #define CR_INVALID_ARBITRATOR (0x00000008) #define CR_INVALID_NODELIST (0x00000009) #define CR_DEVNODE_HAS_REQS (0x0000000A) #define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS #define CR_INVALID_RESOURCEID (0x0000000B) #define CR_DLVXD_NOT_FOUND (0x0000000C) // WIN 95 ONLY #define CR_NO_SUCH_DEVNODE (0x0000000D) #define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE #define CR_NO_MORE_LOG_CONF (0x0000000E) #define CR_NO_MORE_RES_DES (0x0000000F) #define CR_ALREADY_SUCH_DEVNODE (0x00000010) #define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE #define CR_INVALID_RANGE_LIST (0x00000011) #define CR_INVALID_RANGE (0x00000012) #define CR_FAILURE (0x00000013) #define CR_NO_SUCH_LOGICAL_DEV (0x00000014) #define CR_CREATE_BLOCKED (0x00000015) #define CR_NOT_SYSTEM_VM (0x00000016) // WIN 95 ONLY #define CR_REMOVE_VETOED (0x00000017) #define CR_APM_VETOED (0x00000018) #define CR_INVALID_LOAD_TYPE (0x00000019) #define CR_BUFFER_SMALL (0x0000001A) #define CR_NO_ARBITRATOR (0x0000001B) #define CR_NO_REGISTRY_HANDLE (0x0000001C) #define CR_REGISTRY_ERROR (0x0000001D) #define CR_INVALID_DEVICE_ID (0x0000001E) #define CR_INVALID_DATA (0x0000001F) #define CR_INVALID_API (0x00000020) #define CR_DEVLOADER_NOT_READY (0x00000021) #define CR_NEED_RESTART (0x00000022) #define CR_NO_MORE_HW_PROFILES (0x00000023) #define CR_DEVICE_NOT_THERE (0x00000024) #define CR_NO_SUCH_VALUE (0x00000025) #define CR_WRONG_TYPE (0x00000026) #define CR_INVALID_PRIORITY (0x00000027) #define CR_NOT_DISABLEABLE (0x00000028) #define CR_FREE_RESOURCES (0x00000029) #define CR_QUERY_VETOED (0x0000002A) #define CR_CANT_SHARE_IRQ (0x0000002B) #define CR_NO_DEPENDENT (0x0000002C) #define CR_SAME_RESOURCES (0x0000002D) #define CR_NO_SUCH_REGISTRY_KEY (0x0000002E) #define CR_INVALID_MACHINENAME (0x0000002F) // NT ONLY #define CR_REMOTE_COMM_FAILURE (0x00000030) // NT ONLY #define CR_MACHINE_UNAVAILABLE (0x00000031) // NT ONLY #define CR_NO_CM_SERVICES (0x00000032) // NT ONLY #define CR_ACCESS_DENIED (0x00000033) // NT ONLY #define CR_CALL_NOT_IMPLEMENTED (0x00000034) #define CR_INVALID_PROPERTY (0x00000035) #define CR_DEVICE_INTERFACE_ACTIVE (0x00000036) #define CR_NO_SUCH_DEVICE_INTERFACE (0x00000037) #define CR_INVALID_REFERENCE_STRING (0x00000038) #define CR_INVALID_CONFLICT_LIST (0x00000039) #define CR_INVALID_INDEX (0x0000003A) #define CR_INVALID_STRUCTURE_SIZE (0x0000003B) #define NUM_CR_RESULTS (0x0000003C) #ifdef __cplusplus } #endif #endif // _CFGMGR32_ ```
```java /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package org.apache.pulsar.common.policies.data; import static org.testng.Assert.assertEquals; import org.apache.pulsar.common.policies.data.stats.PartitionedTopicStatsImpl; import org.apache.pulsar.common.policies.data.stats.PublisherStatsImpl; import org.apache.pulsar.common.policies.data.stats.ReplicatorStatsImpl; import org.apache.pulsar.common.policies.data.stats.SubscriptionStatsImpl; import org.testng.annotations.Test; public class PartitionedTopicStatsTest { @Test public void testPartitionedTopicStats() { PartitionedTopicStatsImpl partitionedTopicStats = new PartitionedTopicStatsImpl(); partitionedTopicStats.msgRateIn = 1; partitionedTopicStats.msgThroughputIn = 1; partitionedTopicStats.msgRateOut = 1; partitionedTopicStats.msgThroughputOut = 1; partitionedTopicStats.averageMsgSize = 1; partitionedTopicStats.storageSize = 1; partitionedTopicStats.addPublisher((new PublisherStatsImpl())); partitionedTopicStats.subscriptions.put("test_ns", new SubscriptionStatsImpl()); partitionedTopicStats.replication.put("test_ns", new ReplicatorStatsImpl()); partitionedTopicStats.metadata.partitions = 1; partitionedTopicStats.partitions.put("test", partitionedTopicStats); partitionedTopicStats.reset(); assertEquals(partitionedTopicStats.msgRateIn, 0.0); assertEquals(partitionedTopicStats.msgThroughputIn, 0.0); assertEquals(partitionedTopicStats.msgRateOut, 0.0); assertEquals(partitionedTopicStats.msgThroughputOut, 0.0); assertEquals(partitionedTopicStats.averageMsgSize, 0.0); assertEquals(partitionedTopicStats.storageSize, 0); assertEquals(partitionedTopicStats.getPublishers().size(), 0); assertEquals(partitionedTopicStats.subscriptions.size(), 0); assertEquals(partitionedTopicStats.replication.size(), 0); assertEquals(partitionedTopicStats.metadata.partitions, 0); assertEquals(partitionedTopicStats.partitions.size(), 0); } } ```
Jalal Chandio () was a Sindhi folk singer. He was born in 1944 in the village of Harpal Jo Hat, Misri Wah, near Phul Naushahro Feroze District. He was the only expert of yaktara & Chapri at the time, and his singing style made him popular among Sindh and all of Pakistan. He died on 10 January 2001 due to kidney failure. He got lot of respect in all over Sindh as folk singer due to distinct style of playing folk music and singing. Early life Jalal Chandio was born to Haji Faiz Muhammad Chandio, who owned a large number of cattle. Jalal Chandio was not interested in academics and thus remained a shepherd during his younger days. He has no formal education and over 10,000 songs recorded during his lifetime. As the first singer from Sindh and the star of a Sindhi movie, Jalal Chandio was the most in-demand performer of Sindhi classical music. He first began singing on Chapri and Yaktaro, and he called King of Yaktaro and Chapri in Sindh. Jalal Chandio was a prominent Sindhi singer who sang in the rhythms Kalwaro, Adho, Dedho, and Ekta. He ornamented the Yaktaro and Chapriyoon "Castanets" and sang songs about love. Singing career Chandio was fond of singing since childhood, but his parents sent him to the village of Nawan Jatoi to learn the profession of tailoring instead. Disheartened, he left tailoring to start singing. His teacher was Fakir Ali Gul Mahar, who accompanied Chandio to almost all of his singing concerts. In 1973, Chandio began solo performances after receiving permission from his mentor. He was an expert of Yaktara & Chapri (musical instruments). His singing style made him popular among his fans. He promoted the Yaktara and Chapri in Pakistani folk music. Jalal Chandio (movie) A film Jalal Chandio was made in his lifetime in which Chandio played his own character. Credits It is believed that Jalal Chandio released a thousand audio cassettes as well as ten thousand songs during his lifetime. Since he was unschooled, he would often memorize his own songs. He was known as the king of Sindhi singers because he promoted Sindhi songs worldwide when media was not common. He had possessed enormous qualities and most importantly generosity. It was reported that he gave his buffalo to an old lady whose buffalo was stolen. Thousands of listeners were captivated by his powerful, throaty voice, and some even got up to dance along with him. His most popular songs are 'Aao Ko Jana Pandh Kech Jo' and 'Hal Na Sharabi Chal Mata Nazar Lagai' Spiritual affiliation Chandio was a spiritual disciple of Mahdi Shah of Shahpur Jehanian. He used to sing on Urs for almost all the saints out of his fondness for them. He had an affiliation with the famous Sindhi Poet Shah Abdul Latif Bhittai and therefore he performed on his many of his urs. Awards He received several awards in his country and beyond. In 1999, the provincial Government of Sindh's Department of Culture and Tourism recognized Jalal's contribution to singing and awarded him the 'Latif Award'. Among the many awards that Jalal received, one came from the local Sindhi music maestro Ustad Manzoor Ali Khan, for his dedication to the profession. Death During the beginning of 2000, Chandio became ill due to kidney failure and was admitted to Liaqat National Hospital Karachi before being discargched after one month of treatment. During his admission to the hospital, the then Culture Secretary Hameed Akhond supported him and provided a TV for watching cricket in his hospital room. In December 2000, he felt pain again in his kidney and was shifted to Hyderabad and then later to SIUT Karachi for proper medical treatment. Doctors advised that he was suffering last stage kidney failure and that he needed blood on a daily basis. He died on 10 January 2001 at about 10:30 hours at SIUT Karachi. Jalal Melo An online digital festival on the occasion of the death anniversary of Jalal Chandio is held every year called Jalal Melo. The youth present Jalal Chandio's music and personal life in a unique way. Twitter is one of the top lists all across Pakistan when it comes to trending hashtags for Jalal Melo every year. Jalal Melo has been initiated by the World of Gypsies, Porhiyat Pressure Group and Fida Jatoi. References 1944 births 2001 deaths Sindhi people 20th-century Pakistani male singers 20th-century Pakistani singers Recipients of Latif Award
```shell Viewing your tracking branches The golden rule of rebasing Solving basic merge conflicts Move the last commit to a new branch View your commit history in a graph ```
"In Bloom" is a song by American rock band Nirvana, written by vocalist and guitarist Kurt Cobain. It appears as the second track on the band's second album, Nevermind, released by DGC Records in September 1991. The album version is the second of two versions of the song that were released in 1991, the earlier of which was recorded in 1990, while the band was still signed to their original record label, Sub Pop. This version was initially released as a music video only, on the Sub Pop Video Network Volume 1 VHS compilation. "In Bloom" was released as the album's fourth and final single in November 1992 and generated heavy American airplay, reaching number 5 on the US Mainstream Rock chart, despite never being released as a physical single in the United States. The international release of the single made the top 10 in Ireland and Portugal, as well as the top 20 in Finland and New Zealand and the top 30 in Sweden and the United Kingdom. It was accompanied by a new music video, directed by American filmmaker Kevin Kerslake, which won Best Alternative Video at the 1993 MTV Video Music Awards. Background and recording Early history According to Nirvana's bassist Krist Novoselic, "In Bloom" "originally sounded like a Bad Brains song," before being slowed down and reworked by Cobain at home. In a 2002 Rolling Stone interview with David Fricke, Novoselic recalled that Cobain "went home and [he] hammered it. He kept working on it. Then he called me on the phone and said, 'Listen to this song.' He started singing it on the phone. You could hear the guitar. It was the 'In Bloom' of Nevermind, more of a pop thing." The song was first performed live on April 1, 1990, at the Cabaret Metro in Chicago. The following day, the band began work on recording a new release for their then-label Sub Pop, at Smart Studios in Madison, Wisconsin with producer Butch Vig. Among the eight songs recorded during the five-day session was "In Bloom", which originally featured a bridge that Vig removed by physically cutting it out of the 16-track master tape with a razor blade, and throwing in the garbage. The original plan of releasing the songs recorded during this session on a single release were abandoned later in the year, after the exit of drummer Chad Channing. The band instead used the material as a demo tape, which circulated amongst the music industry and generated interest in the group among major record labels. However, a few songs from the session still appeared on various official releases in 1990 and 1991. "In Bloom" was released as a music video only, on the Sub Pop Video Network Volume 1 VHS compilation in 1991. Nevermind The song was re-recorded by Vig at Sound City Studios in Van Nuys, California in May 1991, during the sessions for the band's second album and major label debut, Nevermind. It was one of the first songs worked on during the sessions, due to Vig's familiarity with it from his previous session with the band. Like the other songs recorded at Smart Studios, the arrangement for "In Bloom" was left mostly unchanged, with the band's new drummer Dave Grohl staying close to what Channing had played. According to Vig, Cobain's impatience with recording multiple vocal takes made it difficult to acquire a master vocal take. In the 2005 documentary Classic Albums: Nirvana – Nevermind, Vig revealed the methods he used to get Cobain to record multiple takes, which included tricking him into believing that certain parts were not properly recorded and needed to be done again, and reminding him that the Beatles' John Lennon double-tracked his vocals in the studio. The varying intensity of Cobain's vocals from one take to the next, and from the verses to the choruses, also presented a problem for Vig, who had to adjust the input levels "on the fly" while recording Cobain. Ultimately, Vig was able to edit several takes together into a single master, due to the consistency of Cobain's vocal phrasing. Vig also decided to have Grohl sing high harmonies, double-tracking them as he did with Cobain's. Grohl initially had difficulty hitting the proper notes, but ultimately was able to sing what Vig wanted. The original studio version of "In Bloom" featured no harmonies, possibly due to time constraints. Post-Nevermind "In Bloom" was performed for the final time live on March 1, 1994, at Terminal Einz in Munich, Germany, Nirvana's last show. Composition Music Like many other Nirvana songs, "In Bloom" shifts back and forth between quiet verses and loud choruses. Cobain uses a Mesa Boogie guitar amplifier for the verses, and during the chorus he switches to a Fender Bassman amp (suggested by Vig) for a heavier, double-tracked fuzztone sound. The rhythm section of Novoselic and Grohl kept its parts simple; Grohl stated it was "an unspoken rule" to avoid unnecessary drum fills, while Novoselic said he felt his role was about "serving the song". During the choruses, vocalist Cobain and drummer Grohl harmonize while singing "He's the one / Who likes all our pretty songs / And he likes to sing along / And he likes to shoot his gun / But he knows not what it means". The song's intro reappears at the end of each chorus. Lyrics According to the 1993 Nirvana biography Come As You Are by Michael Azerrad, "In Bloom" was originally written about "the jocks and shallow mainstream types" of the underground music scene the band began to find in their audience after the release of their 1989 debut album, Bleach. As Azerrad points out, the song's lyrics "translated even better to the mass popularity the band enjoyed" following the breakthrough success of their second album, Nevermind. "The brilliant irony," Azerrad wrote, "is that the tune is so catchy that millions of people actually do sing along to it." English journalist Everett True suggested the song may also have addressed the band's discomfort with being part of the grunge movement of the early 1990s, saying that "I assumed it was directed towards the fans who would show up at concerts with signs saying Even Flow [a Pearl Jam song] on one side and Rape Me – I think – on the other: the fans who did not understand there was a point of difference between Nirvana and other Seattle bands or media representations of grunge. I've always associated the song with [In Utero single] Rape Me. Like they're a pair." In his biography of Cobain, Heavier Than Heaven, Charles R. Cross asserted that the song was a "thinly disguised portrait" of Cobain's friend Dylan Carlson. Release and reception Originally Cobain wanted to release In Bloom on a promotional EP as well as their first major label debut single after signing with DGC, for the then-second album sessions with Sub Pop, entitled Sheep. The EP would've been titled NIRVANA Sings Songs of the Vaselines, the Wipers, Devo, & Nirvana. "In Bloom" was released as the fourth and final single from Nevermind on November 30, 1992. The commercial single was only released in Europe, while promotional copies were released in the United States. The 12-inch vinyl and CD versions of the commercial single featured live versions of "Polly" and "Sliver," from the band's show at Del Mar Fairgrounds in Del Mar, California on December 28, 1991, as b-sides. The 7-inch vinyl and cassette versions featured only "Polly." The single peaked at number 28 on the British singles chart. Despite the lack of a commercial release domestically, the song reached number five on the Billboard Album Rock Tracks chart. Music journalist Everett True wrote an uncharacteristically unfavorable review of the single in Melody Maker, accusing it of "milking" the success of Nevermind. "Whoop whoop bloody whoop", wrote True, "forgive me if I don't sound too thrilled. This release is stretching even my credulity beyond repair. Like, milking a still-breathing (sacred) cow, or what? Badly inferior live versions of 'Polly' and 'Sliver' on the flip don't help matters either." Legacy In 2011, Rolling Stone magazine ranked "In Bloom" at number 415 on their list of the "500 Greatest Songs of All Time". In 2019, they ranked the song number two on their ranking of 102 Nirvana songs. According to Nielsen Music's year-end report for 2019, "In Bloom" was the seventh most-played song of the decade on mainstream rock radio with 131,000 spins. All of the songs in the top 10 were from the 1990s. In 2019, Cobain was given a songwriting credit on the single "Panini" by American rapper and singer Lil Nas X, due to the song having a similar chorus melody as "In Bloom". As Nas X explained in a SiriusXM interview, "I put out the snippet [of 'Panini'] and everyone was like, 'Wow, he's sampling Nirvana.' I was like, 'Where? I'm not sampling Nirvana, this beat doesn't have Nirvana in it.' Then, I listened to 'In Bloom' in full, and I was like, 'Oh, okay.'" Nas X revealed that the song was approved by Kurt's daughter, Frances Bean Cobain, and that the experience "actually got me into [Nevermind] for the first time." In a 2021 interview with the Los Angeles Times, Cobain's widow, Courtney Love, said she was "very firmly in the club that says ‘In Bloom’ should have been the first single" from Nevermind, calling it "a far better song" than "Smells Like Teen Spirit." Music videos "Alternate" version The first music video for "In Bloom", for the Smart Studios version, was directed by Steve Brown, and filmed in New York City in April 1990, shortly after the song had been recorded. It features footage of the band walking around lower Manhattan, including the South Street Seaport, the Lower East Side, and Wall Street, as well as rehearsal footage and clips from the band's show at Maxwell's in Hoboken, New Jersey on April 28. Novoselic had shaved his head as punishment for what he perceived to be a bad performance at the Pyramid Club in New York City on April 26, and appears with hair in some shots, and with a shaved head in others. The video was first released in 1991 on the Sub Pop Video Network Volume 1 compilation. It was re-released on the DVD of the band's rarities box set, With the Lights Out, in November 2004. The audio of this version appeared on some copies of the promotional EP, Selections from With the Lights Out, which was released shortly before the box set, but not on the box set itself. It did not appear on a commercial release until the full Smart session was included on disc two of the 20th anniversary "Deluxe" and "Super Deluxe" versions of Nevermind in September 2011. The video is listed as Alternate Version on Nirvana's official YouTube channel. Nevermind version The second music video for "In Bloom", for the Nevermind version, was directed by Kevin Kerslake, who had directed the videos for the band's previous two singles from album Nevermind, "Come as You Are" and "Lithium". The video was first aired in late November 1992, about a month after it was filmed. According to Come As You Are, Cobain's original concept for the video was "a surrealistic fable about a little girl who is born into a Ku Klux Klan family and one day realizes how evil her parents are." This proved to be "too ambitious," so Cobain instead came up with the idea of making a video that parodied the musical performances of bands on early 1960s variety shows, such as The Ed Sullivan Show. The video was filmed on old Kinescope cameras, following Cobain's request that Kerslake use authentic cameras from the period, and the band's performance was improvised. The satirical tone was a result of Cobain being "so tired for the last year of people taking us so seriously . . . I wanted to fuck off and show them that we have a humorous side to us". The video begins with an unnamed variety show host, played by Doug Llewelyn, former host of American reality show The People's Court, introducing Nirvana to an in-studio crowd of young fans, whose screaming is heard throughout the duration of the song. The band members, whom the host refers to as "thoroughly all right and decent fellas," perform dressed in suits, while Cobain wears glasses that made him dizzy. As Cobain explained in a 1992 Melody Maker interview, "We wanted to be like The Beatles – no, The Dave Clark Five, I was wearing glasses – we would never make fun of The Beatles." Novoselic had cut his hair short for the video, and liked it so much he kept it that way afterwards. As the song progresses, the band members destroy their instruments and the set. Three edits of the Kerslake video were made. Cobain wanted MTV to first play the first edit, featuring the band in suits only, and eventually replace it with a second edit featuring the band wearing dresses and performing in their traditional manner, which included destroying the set. However, Cobain was skeptical that MTV's alternative rock show 120 Minutes, which insisted on premiering the video, would properly convey the humor of the "pop idol" version. As a result, the familiar third edit was produced which contained shots of the band in both suits and dresses. The original edit of the video never aired. The "In Bloom" music video won the award for Best Alternative Video at the 1993 MTV Video Music Awards, and topped the music video category in the 1992 Village Voice Pazz & Jop critics' poll. Formats and track listings All lyrics written by Kurt Cobain, all music written by Nirvana. 7", cassette "In Bloom"  – 4:17 "Polly" (live)  – 2:47 12", CD "In Bloom"  – 4:17 "Sliver" (live – Del Mar – 28.12.1991)  – 2:06 "Polly" (live – Del Mar – 28.12.1991)  – 2:47 Charts Weekly charts Year-end charts Decade-end charts Certifications Other releases A live version, recorded on September 1, 1991, at De Doelen in Rotterdam, the Netherlands was released as bonus material in September 2011, when the live video 1991: The Year Punk Broke was officially released on DVD. An early "Devonshire" mix of the Nevermind version appeared on the 20th anniversary "Super Deluxe" version of the album, released in September 2011. A live version, recorded at The Palace in Melbourne, Australia on February 2, 1992, appeared on the 30th anniversary "Super Deluxe" version of Nevermind in November 2021. A live version, recorded at the 1992 Reading Festival in Reading, England on August 30, 1992, appeared on the live CD and DVD release Live at Reading in November 2009. Personnel Kurt Cobain – lead vocals, guitar Krist Novoselic – bass Dave Grohl – drums, backing vocals Butch Vig – recording and mixing engineer, producer Cover versions Country musician Sturgill Simpson covered "In Bloom" as a country song on his 2016 album A Sailor's Guide to Earth, while Lil Nas X interpolated it for his 2019 song "Panini" (which was approved by Frances Bean Cobain). Sludge metal band Thou recorded the song in their 2020 collection of Nirvana covers, Blessings of the Highest Order. References Sources Classic Albums—Nirvana: Nevermind [DVD]. Isis Productions, 2004. Azerrad, Michael. Come as You Are: The Story of Nirvana. Doubleday, 1994. Berkenstadt, Jim; Cross, Charles. Classic Rock Albums: Nevermind. Schirmer, 1998. Cross, Charles R. Heavier Than Heaven: A Biography of Kurt Cobain. Hyperion, 2001. External links "In Bloom" on Rolling Stone's 500 Greatest Songs of All Time "In Bloom" song review at AllMusic "Grunge Music In Bloom: Musical Analysis of Nirvana's Hit" 1990 songs 1992 singles DGC Records singles Nirvana (band) songs Song recordings produced by Butch Vig Songs written by Kurt Cobain Black-and-white music videos Music videos directed by Kevin Kerslake Songs about music Sturgill Simpson songs
Santa Bárbara is a municipality in the Guatemalan department of Huehuetenango. Santa Bárbara may be the poorest municipality in the largely impoverished department. Elevations in the municipality range between 1500 meters and 3000 meters. Natural forest in the area has been obliterated by the constant quest for cooking fuel so land erosion is a major problem. Municipalities of the Huehuetenango Department
```python # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from ..monitoring import Summary_pb2 as monitoring_dot_Summary__pb2 class SummaryServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.createSummary = channel.unary_unary( '/ai.verta.monitoring.SummaryService/createSummary', request_serializer=monitoring_dot_Summary__pb2.CreateSummaryRequest.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.Summary.FromString, ) self.findSummary = channel.unary_unary( '/ai.verta.monitoring.SummaryService/findSummary', request_serializer=monitoring_dot_Summary__pb2.FindSummaryRequest.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.FindSummaryRequest.Response.FromString, ) self.deleteSummary = channel.unary_unary( '/ai.verta.monitoring.SummaryService/deleteSummary', request_serializer=monitoring_dot_Summary__pb2.DeleteSummaryRequest.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.Empty.FromString, ) self.createValue = channel.unary_unary( '/ai.verta.monitoring.SummaryService/createValue', request_serializer=monitoring_dot_Summary__pb2.CreateSummaryValue.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.SummaryValue.FromString, ) self.createSample = channel.unary_unary( '/ai.verta.monitoring.SummaryService/createSample', request_serializer=monitoring_dot_Summary__pb2.CreateSummarySample.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.SummarySample.FromString, ) self.createSampleBatch = channel.unary_unary( '/ai.verta.monitoring.SummaryService/createSampleBatch', request_serializer=monitoring_dot_Summary__pb2.CreateSummarySampleBatch.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.Empty.FromString, ) self.findSample = channel.unary_unary( '/ai.verta.monitoring.SummaryService/findSample', request_serializer=monitoring_dot_Summary__pb2.FindSummarySampleRequest.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.FindSummarySampleRequest.Response.FromString, ) self.deleteSample = channel.unary_unary( '/ai.verta.monitoring.SummaryService/deleteSample', request_serializer=monitoring_dot_Summary__pb2.DeleteSummarySampleRequest.SerializeToString, response_deserializer=monitoring_dot_Summary__pb2.Empty.FromString, ) class SummaryServiceServicer(object): # missing associated documentation comment in .proto file pass def createSummary(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def findSummary(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def deleteSummary(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def createValue(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def createSample(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def createSampleBatch(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def findSample(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def deleteSample(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_SummaryServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'createSummary': grpc.unary_unary_rpc_method_handler( servicer.createSummary, request_deserializer=monitoring_dot_Summary__pb2.CreateSummaryRequest.FromString, response_serializer=monitoring_dot_Summary__pb2.Summary.SerializeToString, ), 'findSummary': grpc.unary_unary_rpc_method_handler( servicer.findSummary, request_deserializer=monitoring_dot_Summary__pb2.FindSummaryRequest.FromString, response_serializer=monitoring_dot_Summary__pb2.FindSummaryRequest.Response.SerializeToString, ), 'deleteSummary': grpc.unary_unary_rpc_method_handler( servicer.deleteSummary, request_deserializer=monitoring_dot_Summary__pb2.DeleteSummaryRequest.FromString, response_serializer=monitoring_dot_Summary__pb2.Empty.SerializeToString, ), 'createValue': grpc.unary_unary_rpc_method_handler( servicer.createValue, request_deserializer=monitoring_dot_Summary__pb2.CreateSummaryValue.FromString, response_serializer=monitoring_dot_Summary__pb2.SummaryValue.SerializeToString, ), 'createSample': grpc.unary_unary_rpc_method_handler( servicer.createSample, request_deserializer=monitoring_dot_Summary__pb2.CreateSummarySample.FromString, response_serializer=monitoring_dot_Summary__pb2.SummarySample.SerializeToString, ), 'createSampleBatch': grpc.unary_unary_rpc_method_handler( servicer.createSampleBatch, request_deserializer=monitoring_dot_Summary__pb2.CreateSummarySampleBatch.FromString, response_serializer=monitoring_dot_Summary__pb2.Empty.SerializeToString, ), 'findSample': grpc.unary_unary_rpc_method_handler( servicer.findSample, request_deserializer=monitoring_dot_Summary__pb2.FindSummarySampleRequest.FromString, response_serializer=monitoring_dot_Summary__pb2.FindSummarySampleRequest.Response.SerializeToString, ), 'deleteSample': grpc.unary_unary_rpc_method_handler( servicer.deleteSample, request_deserializer=monitoring_dot_Summary__pb2.DeleteSummarySampleRequest.FromString, response_serializer=monitoring_dot_Summary__pb2.Empty.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'ai.verta.monitoring.SummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) ```
```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 internal // import "go.opentelemetry.io/otel/semconv/internal/v2" import ( "net" "strconv" "strings" "go.opentelemetry.io/otel/attribute" ) // NetConv are the network semantic convention attributes defined for a version // of the OpenTelemetry specification. type NetConv struct { NetHostNameKey attribute.Key NetHostPortKey attribute.Key NetPeerNameKey attribute.Key NetPeerPortKey attribute.Key NetSockFamilyKey attribute.Key NetSockPeerAddrKey attribute.Key NetSockPeerPortKey attribute.Key NetSockHostAddrKey attribute.Key NetSockHostPortKey attribute.Key NetTransportOther attribute.KeyValue NetTransportTCP attribute.KeyValue NetTransportUDP attribute.KeyValue NetTransportInProc attribute.KeyValue } func (c *NetConv) Transport(network string) attribute.KeyValue { switch network { case "tcp", "tcp4", "tcp6": return c.NetTransportTCP case "udp", "udp4", "udp6": return c.NetTransportUDP case "unix", "unixgram", "unixpacket": return c.NetTransportInProc default: // "ip:*", "ip4:*", and "ip6:*" all are considered other. return c.NetTransportOther } } // Host returns attributes for a network host address. func (c *NetConv) Host(address string) []attribute.KeyValue { h, p := splitHostPort(address) var n int if h != "" { n++ if p > 0 { n++ } } if n == 0 { return nil } attrs := make([]attribute.KeyValue, 0, n) attrs = append(attrs, c.HostName(h)) if p > 0 { attrs = append(attrs, c.HostPort(int(p))) } return attrs } // Server returns attributes for a network listener listening at address. See // net.Listen for information about acceptable address values, address should // be the same as the one used to create ln. If ln is nil, only network host // attributes will be returned that describe address. Otherwise, the socket // level information about ln will also be included. func (c *NetConv) Server(address string, ln net.Listener) []attribute.KeyValue { if ln == nil { return c.Host(address) } lAddr := ln.Addr() if lAddr == nil { return c.Host(address) } hostName, hostPort := splitHostPort(address) sockHostAddr, sockHostPort := splitHostPort(lAddr.String()) network := lAddr.Network() sockFamily := family(network, sockHostAddr) n := nonZeroStr(hostName, network, sockHostAddr, sockFamily) n += positiveInt(hostPort, sockHostPort) attr := make([]attribute.KeyValue, 0, n) if hostName != "" { attr = append(attr, c.HostName(hostName)) if hostPort > 0 { // Only if net.host.name is set should net.host.port be. attr = append(attr, c.HostPort(hostPort)) } } if network != "" { attr = append(attr, c.Transport(network)) } if sockFamily != "" { attr = append(attr, c.NetSockFamilyKey.String(sockFamily)) } if sockHostAddr != "" { attr = append(attr, c.NetSockHostAddrKey.String(sockHostAddr)) if sockHostPort > 0 { // Only if net.sock.host.addr is set should net.sock.host.port be. attr = append(attr, c.NetSockHostPortKey.Int(sockHostPort)) } } return attr } func (c *NetConv) HostName(name string) attribute.KeyValue { return c.NetHostNameKey.String(name) } func (c *NetConv) HostPort(port int) attribute.KeyValue { return c.NetHostPortKey.Int(port) } // Client returns attributes for a client network connection to address. See // net.Dial for information about acceptable address values, address should be // the same as the one used to create conn. If conn is nil, only network peer // attributes will be returned that describe address. Otherwise, the socket // level information about conn will also be included. func (c *NetConv) Client(address string, conn net.Conn) []attribute.KeyValue { if conn == nil { return c.Peer(address) } lAddr, rAddr := conn.LocalAddr(), conn.RemoteAddr() var network string switch { case lAddr != nil: network = lAddr.Network() case rAddr != nil: network = rAddr.Network() default: return c.Peer(address) } peerName, peerPort := splitHostPort(address) var ( sockFamily string sockPeerAddr string sockPeerPort int sockHostAddr string sockHostPort int ) if lAddr != nil { sockHostAddr, sockHostPort = splitHostPort(lAddr.String()) } if rAddr != nil { sockPeerAddr, sockPeerPort = splitHostPort(rAddr.String()) } switch { case sockHostAddr != "": sockFamily = family(network, sockHostAddr) case sockPeerAddr != "": sockFamily = family(network, sockPeerAddr) } n := nonZeroStr(peerName, network, sockPeerAddr, sockHostAddr, sockFamily) n += positiveInt(peerPort, sockPeerPort, sockHostPort) attr := make([]attribute.KeyValue, 0, n) if peerName != "" { attr = append(attr, c.PeerName(peerName)) if peerPort > 0 { // Only if net.peer.name is set should net.peer.port be. attr = append(attr, c.PeerPort(peerPort)) } } if network != "" { attr = append(attr, c.Transport(network)) } if sockFamily != "" { attr = append(attr, c.NetSockFamilyKey.String(sockFamily)) } if sockPeerAddr != "" { attr = append(attr, c.NetSockPeerAddrKey.String(sockPeerAddr)) if sockPeerPort > 0 { // Only if net.sock.peer.addr is set should net.sock.peer.port be. attr = append(attr, c.NetSockPeerPortKey.Int(sockPeerPort)) } } if sockHostAddr != "" { attr = append(attr, c.NetSockHostAddrKey.String(sockHostAddr)) if sockHostPort > 0 { // Only if net.sock.host.addr is set should net.sock.host.port be. attr = append(attr, c.NetSockHostPortKey.Int(sockHostPort)) } } return attr } func family(network, address string) string { switch network { case "unix", "unixgram", "unixpacket": return "unix" default: if ip := net.ParseIP(address); ip != nil { if ip.To4() == nil { return "inet6" } return "inet" } } return "" } func nonZeroStr(strs ...string) int { var n int for _, str := range strs { if str != "" { n++ } } return n } func positiveInt(ints ...int) int { var n int for _, i := range ints { if i > 0 { n++ } } return n } // Peer returns attributes for a network peer address. func (c *NetConv) Peer(address string) []attribute.KeyValue { h, p := splitHostPort(address) var n int if h != "" { n++ if p > 0 { n++ } } if n == 0 { return nil } attrs := make([]attribute.KeyValue, 0, n) attrs = append(attrs, c.PeerName(h)) if p > 0 { attrs = append(attrs, c.PeerPort(int(p))) } return attrs } func (c *NetConv) PeerName(name string) attribute.KeyValue { return c.NetPeerNameKey.String(name) } func (c *NetConv) PeerPort(port int) attribute.KeyValue { return c.NetPeerPortKey.Int(port) } func (c *NetConv) SockPeerAddr(addr string) attribute.KeyValue { return c.NetSockPeerAddrKey.String(addr) } func (c *NetConv) SockPeerPort(port int) attribute.KeyValue { return c.NetSockPeerPortKey.Int(port) } // splitHostPort splits a network address hostport of the form "host", // "host%zone", "[host]", "[host%zone], "host:port", "host%zone:port", // "[host]:port", "[host%zone]:port", or ":port" into host or host%zone and // port. // // An empty host is returned if it is not provided or unparsable. A negative // port is returned if it is not provided or unparsable. func splitHostPort(hostport string) (host string, port int) { port = -1 if strings.HasPrefix(hostport, "[") { addrEnd := strings.LastIndex(hostport, "]") if addrEnd < 0 { // Invalid hostport. return } if i := strings.LastIndex(hostport[addrEnd:], ":"); i < 0 { host = hostport[1:addrEnd] return } } else { if i := strings.LastIndex(hostport, ":"); i < 0 { host = hostport return } } host, pStr, err := net.SplitHostPort(hostport) if err != nil { return } p, err := strconv.ParseUint(pStr, 10, 16) if err != nil { return } return host, int(p) } ```
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var floor = require( '@stdlib/math/base/special/floor' ); // VARIABLES // var M = 3; // MAIN // /** * Reverses a single-precision floating-point strided array in-place. * * @param {PositiveInteger} N - number of indexed elements * @param {Float32Array} x - input array * @param {integer} stride - index increment * @param {NonNegativeInteger} offset - starting index * @returns {Float32Array} input array * * @example * var Float32Array = require( '@stdlib/array/float32' ); * * var x = new Float32Array( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] ); * * srev( 3, x, 1, x.length-3 ); * // x => <Float32Array>[ 1.0, -2.0, 3.0, -6.0, 5.0, -4.0 ] */ function srev( N, x, stride, offset ) { var tmp; var ix; var iy; var m; var n; var i; if ( N <= 0 ) { return x; } n = floor( N/2 ); ix = offset; // Use loop unrolling if the stride is equal to `1`... if ( stride === 1 ) { m = n % M; iy = ix + N - 1; // If we have a remainder, run a clean-up loop... if ( m > 0 ) { for ( i = 0; i < m; i++ ) { tmp = x[ ix ]; x[ ix ] = x[ iy ]; x[ iy ] = tmp; ix += stride; iy -= stride; } } if ( n < M ) { return x; } for ( i = m; i < n; i += M ) { tmp = x[ ix ]; x[ ix ] = x[ iy ]; x[ iy ] = tmp; tmp = x[ ix+1 ]; x[ ix+1 ] = x[ iy-1 ]; x[ iy-1 ] = tmp; tmp = x[ ix+2 ]; x[ ix+2 ] = x[ iy-2 ]; x[ iy-2 ] = tmp; ix += M; iy -= M; } return x; } iy = ix + ((N-1)*stride); for ( i = 0; i < n; i++ ) { tmp = x[ ix ]; x[ ix ] = x[ iy ]; x[ iy ] = tmp; ix += stride; iy -= stride; } return x; } // EXPORTS // module.exports = srev; ```
Sednaya Prison ( Sajn Ṣaydnāyā), nicknamed the "Human Slaughterhouse" is a military prison near Damascus in Syria operated by the Syrian government. The prison has been used to hold thousands of prisoners, both civilian detainees and anti-government rebels. The Syrian Observatory for Human Rights (SOHR) estimated in January 2021 that 30,000 detainees have perished in Sednaya from torture, ill-treatment and mass executions since the outbreak of the Syrian Civil War, while Amnesty International estimated in February 2017 "that between 5,000 and 13,000 people were extrajudicially executed at Saydnaya between September 2011 and December 2015." Overall, human rights organizations have identified over 27 prisons and detention centers run by Assad's regime around the country where detainees are routinely tortured and killed. A defector from Assad's sources smuggled out tens of thousands of photographs from these prisons, showing the bodies of those who had been murdered. The defector stated that he had personally photographed the dead and that archives of thousand more such photographs of other victims existed. A former inmate of the prison who was detained for participating in a peaceful non-violent protest told Amnesty International that at Sednaya prisoners were forced to choose between dying themselves or killing one of their own relatives or friends. The former inmate also stated that in the first prison he was at, prisoners were also forced into cannibalism, but that prison was "heaven" compared to Sednaya Prison. According to the inmate, the other prison (Branch 215) was "to interrogate" (including through torture), but when that was done, you were moved to Sednaya "to die". Wide variety of inhumane torture practices are carried out in the prison; ranging from perpetual beatings, sexual assaults, decapitations, rapes, burnings to what are known as the "flying carpets". In 2017, the US State Department alleged that a crematorium had been built at the prison to dispose of the bodies of the executed, although Amnesty's investigation did not find evidence of this having happened. About the Sednaya Prison Located north of the Syrian capital Damascus, Sednaya Military Prison is known for its torture of people and innocent civilians that started the revolution in 2011. It is designed for the purpose of quietly slaughtering innocent civilians, men, women, children and the elderly. Even children are born inside the prison due to the brutal rape of the women by the guards. Not only women are raped, children and men are also subject to rape and sexual assult. There are different social groups who are at risk. These can be groups of labourers, business people, students, bloggers, university professors, lawyers, doctors, activists defending the rights of minority groups, people helping their neighbours or journalists. Detainees may be either men, women or even children. The prison consists of two buildings with a total of 10,000–20,000 detainees and is under the jurisdiction of the Minister of Defense while operated by the Military Police. Detainees have usually spent months or years in detention elsewhere before being transferred to Sednaya. It was not until after the 2011 crisis when this started to happen. The way in which detainees are being transferred to this facility has been internationally recognized and criticized, mainly by Amnesty International. The transfers usually take place after holding unfair trials at a secret military court. In interviews with Amnesty, prisoners described the trials as sham for lasting only one to three minutes. While some prisoners would be told they were being transferred to a civilian prison when they instead were to be executed, other detainees do not even get to see a judge. Recognized unfair trials The Syrian Mus’ab al-Hariri belonged to the banned organization, the Muslim Brotherhood, and lived in exile in Saudi Arabia until his return to Syria in 2002 with his mother. She worried that their return would cause problems for her son because of his political stand but the Syrian Embassy in Saudi Arabia had assured her that this would not happen. However, shortly after al-Hariri's return, he was sentenced by the Syrian Security forces on 24 July 2002. At the time of arrest, he was only 14 years old. Even though the UN Working Group on Arbitrary Detention announced al-Hariri's detention as arbitrary, the authorities took no step to amend his situation. The UN Working Group based its announcement on their assessment that he did not receive a fair trial. Four main issues that were raised were his young age when arrested, that he had been held in isolation for more than two years, reportedly tortured and that he was sentenced by the SSSC (Supreme State Security Court) in June 2005 to six years in prison despite no substantial evidence. All the SSSC knew was that al-Hariri belonged to the banned Muslim Brotherhood. The Syrian Human Rights Committee reported in 2004 about people being arrested the same year because of political reasons. To offer the suspected individuals human rights defenders and lawyers was not self-evident and as in the case of Mus’ab al-Hariri, hundreds of prisoners remained in long detention without trial or following sentences enforced after unfair trials. It was also reported that no respect was given to the poor health condition of prisoners and that these were still held in rigorous conditions. The 2008 Massacre According to The Syrian Human Rights Committee, the military police changed all the locks of the prison cells on the night of 4 July 2008. On the day after a search operation was launched through all the prisons quarters, in which the security guards trampled on copies of the Quran. The act triggered fury among Muslim detainees who rushed to collect the Quran copies. The guards opened fire and killed nine of the prisoners. Among the nine killed prisoners, they were able to identify eight of them, those were: Zakaria Affash, Mohammed Mahareesh, Abdulbaqi Khattab, Ahmed Shalaq, Khalid Bilal, Mo’aid Al-Ali, Mohannad Al-Omar and Khader Alloush. Clashes have been reported after this incident where the total number of victims reached 25 detainees. However, the committee could not ascertain their identities. Testimonies These testimonies are collected from three different sources. Two documentaries and a series of articles. The Black Box: The Death in Sednaya by Al Jazeera, The Road to Sednaya: We have Changed, Omar Abdullah by Orient News, and Sednaya Death speaks, Zaman Alwasl Newspaper. According to many detainees, in 2005 Ali Kher Bek became the director of the prison and he was very strict and harsh with detainees. He worsened their life conditions by halting visits and cutting electricity on the prison for a long period of time. Diab Serriya, a former detainee, had been accused of forming a youth opposition group. He was arrested in 2006 and released in 2011 after a general amnesty. “ We had the feeling that the prisoners would rebel in any moment because the living situation was unbearable.” Diab said that on 26 March 2008, a fight broke between a prisoner and a security guard, which led to Ali Kher Bek's rage. On the next day he walked, with other security forces, through the prison shouting at the prisoners and insulting them. He visited all the dungeons of the prison. The security forces dragged prisoners in charge of all the prison's wards and punished them. Some detainees kept shouting “Allah Akbar” and banging on the metal doors. A rebellion broke out and the prison went out of control. Serriya told Zaman Alwasel Newspaper that security forces used tear gas and opened fire in the air to intimidate prisoners, who most of them ran to the roof and started to burn blankets, plastic bags and wooden pieces, to send a message that the prison was in chaos and urgent helped was needed. When the security forces could not exert control over the prison, the government launched negotiations with the prisoners, through which it agreed on providing fair trials for detainees, allowing family visits again, enhancing the living conditions, increasing the daily breaks's time, improving the quality of beverage and drinks, providing a proper medical care, in addition to immediate change for the unfair treatment of the prisoners. This incident was known as “The first Rebellion” and lasted for one day. After this incident the prison went into loose policy. The internal doors were left open all the time, prisoners started to defy the security forces, and lenient treatment was obvious.,. The effect of “the first rebellion” had lasted till 5 July 2008 when the director launched an offensive to discipline the prisoners. Many fights broke between the prisoners and the military police until prisoners overpowered them. In addition to exerting control over the whole prison, and retaining more than 1245 out of 1500 from military police. From the outer fence of the prison, security forces opened fire and killed the first group, which attempted to flee the prison due to the unbearable situations. The group was: Wael al-Khous, Zakaria Affash, Daham Jebran, Ahmed Shalaq, Mohammed Abbas, Hassan Al-Jaberie, Mohammed Eld Al-Ahmad, Khader Alloush, Abdulbaqi Khattab, Maen Majarish and Mo’aid Al-Ali. Fearing suffocation of the tear gas and the running from the bloody scenes inside the building, the prisoners dragged some of the hostages to the roof so they can communicate with the military forces outside and find a way out of the dilemma. However, the governmental forces opened fire and killed almost 30 military police hostages and some prisoners who were with them. In addition to 10 hostages were killed by the prisoners and 6 committed a suicide out of fear to be killed by the prisoners. After a long battle, military reinforcements from the capital arrived to Sednaya and laid siege around the prison. Some tried to break in but in vain. After 10 days of negotiation, the government agreed on a evacuating the injured who faced torture in Tishreen hospital and 6 of them died under torture there. The government promised to punish the perpetrators and told the prisoners that the director of Tishreen hospital was fired. It also improved the quality of the beverage. During this time prisoners released the hostages. And better treatment has appeared but not for long. Reactions to the massacre While Sarah Leah Whitson, Director of the Middle East and North Africa human rights said: “President Bashar al-Assad should immediately order an independent investigation into the police's use of lethal force at Sednaya prison”, SANA, the Syrian official news agency, issued a short press release on July 6, stating that "a number of prisoners…incited chaos and breached public order in the prison and attacked other fellow prisoners…during an inspection by the prison administration." The agency reported that the situation required "the intervention of the unit of guards to bring order to the prison." Ammar al-Qurabi the director of the National Organization for Human Rights commented on SANA's release by asking to form a committee of activists which can visit the detainees and ascertain their conditions and he confirmed that the number of prisoners in Sednaya was between 1500 and 2000. 200 of them had Islamic backgrounds and most of them participated in the Iraq war. Al-Qurabi called to investigating the massacre's perpetrators and announcing the investigation's result. Also, he asked for enhancing the living conditions and the medical care of the detainees. Other human rights abuses The Sednaya prison massacre was not the only incident of human rights abuses in the prison's history. Other examples range from particular testimonies of people who had been incarcerated in Sednaya to organized leaks and research done on the topic. Omar al-Shogre, a Syrian teenager has testified that he had gone through 11 Syrian prisons during his several years of imprisonment. Sednaya was the final one. He had described the events in Sednaya as beginning with a "welcome party" during which new inmates were beaten with "metal parts from a tank". In Shogre's case, one officer beat ten newly arrived inmates. He states that "for 15 days [he] couldn't open [his] eyes or get up". After a month in Sednaya, Shogre was taken to a trial under the accusations for terrorism. The trial, he says, lasted for 5 seconds. He contracted tuberculosis there and witnessed what he thinks is an occurrence of "organ harvesting". Sednaya had come into the public eye when the 2014 Syrian detainee report, also known as the Caesar report got unveiled. It was authored by the legal team consisting of The Right Honourable Sir Desmond De Silva QC, the former Chief Prosecutor of the Special Court for Sierra Leone, Professor Sir Geoffrey Nice QC, the former lead prosecutor of ex-President Slobodan Milošević of Yugoslavia, before the International Criminal Tribune for the former Yugoslavia, and Professor David M. Crane, the first Chief Prosecutor of the Special Court for Sierra Leone, with the help of a forensic team. The legal and forensic teams came to the conclusion that the photos Caesar took were credible, and that they clearly showed "signs of starvation, brutal beatings, strangulation, and other forms of torture and killing." While the most of the 55,000 photos encompassing around 11,000 victims from the report are from other detention facilities in Damascus, some of them are also from the Sednaya prison. Prisoners were also often transferred between different facilities: some detainees were transferred to Sednaya from the Mezze Air Force Branch, while others were taken from Sednaya to Tishreen. In early 2017 the Sednaya Military Prison again came into the public eye when an Amnesty International report was released on February 7. The report, the result of the research conducted by Amnesty International which took place between December 2015 and December 2016, raises a plethora of accusations against the Syrian regime. It alleges that the regime has at its highest instances, authorized the killings of thousands of people in the Sednaya prison since 2011. After interviewing 84 people, out of which 31 were former detainees, Amnesty International has concluded that the regime has implemented systematic torture in Sednaya. One former detainee, Salam, a lawyer from Aleppo described the torture process: "The soldiers will practice their 'hospitality' with each new group of detainees during the 'welcome party'… You are thrown to the ground and they use different instruments for the beatings: electric cables with exposed copper wire ends – they have little hooks so they take a part of your skin – normal electric cables, plastic water pipes of different sizes and metal bars. Also, they have created what they call the 'tank belt', which is made out of tyre that has been cut into strips... They make a very specific sound; it sounds like a small explosion. I was blindfolded the whole time, but I would try to see somehow. All you see is blood: your own blood, the blood of others. After one hit, you lose your sense of what is happening. You're in shock. But then the pain comes." Another former detainee is Samer al-Ahmed who, on a regular basis, was forced to squeeze his head through the small hatch near the bottom of his cell door. It was then straightened out by the prison guards when they, with all their weight, jumped on his head. This required that al-Ahmed's head was pressed against the edge of the hatch. The guards would continue the torture until blood started flowing across the floor. Torture methods in Sednaya varied. One common interrogation technique called shabeh was described by one of the witnesses: "They had me stand on the barrel, and they tied the rope around my wrists. Then they took away the barrel. There was nothing below my feet. They were dangling in the air. They brought three sticks… [They were] hitting me everywhere… After they were done beating me with the wooden sticks, they took the cigarettes. They were putting them out all over my body. It felt like a knife excavating my body, cutting me apart." Other methods of torture consisted of leaving people in stress positions while beating them or torturing them with electricity. Describing the nature of the ongoing torture in the prison, the Amnesty report states: "In Saydnaya, torture is not used to force a detainee to “confess”, as it is in branches of the security forces, but instead as a method of punishment and degradation. The most common form of torture used at Saydnaya is regular and brutal beatings. Detainees told Amnesty International that the beatings they endured were sometimes so severe that they caused life-long damage and disability or death... Former detainees told Amnesty International that they were also subjected to sexual violence at Saydnaya, including rape. According to former detainee “Hassan”: “They were making people take their clothes off, and touch each other in sensitive places, and rape each other too. I went through this only one time, but I heard about it happening so much.” The detainees were also deprived of food and water, and had been raped and forced to rape each other. One of the testifications states: "They beat me until I was lying on the ground and then they kicked me with their military boots, in the places where I have had my hip operations, until I passed out. When I woke up, I was back in the solitary cell – they had dragged me back there from that room – but my trousers had been opened and moved down a bit, my abaya [full-length robe] was open and my undershirt was moved up. Everything was hurting, so I couldn't tell if I had been raped. It was overwhelming pain everywhere." When they did get food, it was often mixed with blood. Amnesty International has managed to confirm the names of 375 individuals executed in Sednaya prison, and while the UN Office of the High Commissioner for Human Rights and Human Rights Watch, suggests that tens of thousands of detainees have died in Sednaya and other government-run detention centers since 2011 as a result of the extermination policies, Amnesty International itself calculates the number of deaths to between 5,000 and 13,000. The Syrian Justice Ministry denied the report issued by Amnesty International, describing it as "devoid of truth" and considering it to be a part of a smear campaign targeted against Syrian government. The Syrian Justice Ministry holds a view that motivation for the allegations to smear the Syrian government's international reputation come from recent "military victories against terrorist groups". After the 2011 uprisings After months of anti-Government protests in 2011, many prisoners, including secular and Islamist detainees, were released in several amnesties. Zahran Alloush, Abu Shadi Aboud (brother of Hassan Aboud) and Ahmed Abu Issa were some of the more prominent prisoners released from the prison. After their release, many took up arms against the regime and became leaders of Islamist rebel groups including Jaysh al-Islam, Ahrar ash-Sham and Suqour al-Sham Brigade in the Syrian Civil War. There have repeatedly been reports on inhumane conditions for detainees in Sednaya (as well as other Syrian prisons), ranging from torture and malnutrition to spontaneous executions without fair trials. Amnesty's reconstruction of Sednaya Prison The lack of accessibility to reports from journalists and monitoring groups have made reliable information about the prison very difficult to find. The only available sources on the incidents inside the Sednaya prison derive from the memories of former detainees. In April 2016, Amnesty International and Forensic Architecture traveled to Turkey to meet five Sednaya survivors. The researchers used architectural and acoustic modeling to reconstruct the prison and the survivors’ experiences at detention. As there are no images of the prison and because the prisoners were held in darkness under strictly enforced silence, researchers had to depend entirely on their memories and acute experience of sound, footsteps, door opening and locking and water dripping in the pipes among other things. The fact that prisoners rarely saw daylight, they were, consequently, forced to develop an acute relation to sound. Having to cover their eyes with their hands whenever a guard entered the room made them become attuned to the smallest sounds. In a video interview, a former Sednaya detainee says "You try to build an image based on the sounds you hear. You know the person by the sound of his footsteps. You can tell the food times by the sound of the bowl. If you hear screaming, you know newcomers have arrived. When there is no screaming, we know they are accustomed to Sednaya." Sound became the instrument by which inmates navigated and measured their environment. Therefore, sound also became one of the essential tools with which the prison could be digitally reconstructed. The sound artist Lawrence Abu Hamdan used a technique of “echo profiling” which made it possible for him to decide the size of cells, stairwells, and corridors. He played different sound reflections and asked former inmates to match these tones of different decibel levels to the levels of specific incidents inside the prison. Based on these testimonies and with the help of an architect working with 3D modeling software, Amnesty and Forensic Architecture have constructed a model on the entire prison. As they remembered, the witnesses added objects like torture tools, blankets, furniture, and areas where they recalled them being used. In Sednaya, the architecture of the prison emerges not only as a location of torture but itself as an instrument in its perpetration. Forensic Architecture's project on Sednaya is part of a larger campaign run by Amnesty International. The project aims to pressure the Syrian government to allow independent monitors into the detention centres. Amnesty urged Russia and the United States to use their power to admit independent monitors to investigate conditions in Syria's torture prisons. The 2017 Amnesty Report concludes: "Saydnaya Military Prison is a human slaughterhouse. The bodies of Saydnaya’s victims are taken away by the truckload. Many are hanged, secretly, in the middle of the night. Others die as a result of torture, and many are killed slowly through the systematic deprivation of food, water, medicine and medical care. It is inconceivable that this is not authorized by the highest levels of the Syrian political leadership." Crematorium accusations On May 15, 2017, the United States Department of State accused the Syrian government of engaging in mass executions at the prison, and burning the bodies of the executed in a crematorium built in Sednaya Prison in an effort to conceal the killings. According to the State Department a crematorium was constructed with the purpose of hiding the evidence of the thousands murdered at the prison. The State Department "released commercial satellite photographs showing what it described as a building in the prison complex that was modified to support the crematorium. The photographs, taken over the course of several years, beginning in 2013, do not prove the building is a crematorium, but show construction consistent with such use." Evidence suggesting crematorium use includes 2015 photographs showing all buildings at the complex covered in rooftop snowmelt except for a single building (suggesting "a significant internal heat source") as well as a discharge stack, a likely firewall, and a likely air intake. The State Department, in a later press briefing, agreed that snowmelt on the roof presented as one of the pieces of evidence "consistent with a crematorium" could possibly just indicate it is a warmer part of a building. Acting assistant secretary of state for the Middle East Stuart E. Jones stated that as many as 50 prisoners a day were killed in mass hangings. Jones stated: "Although the regime's many atrocities are well documented, we believe that the building of a crematorium is an effort to cover up the extent of mass murders taking place in Sednaya prison." Amnesty International, who had interviewed former guards and inmates of the prison, have remarked that none of them have told them about the existence of the crematorium. According to other escapees of the prison, the bodies were buried outside of the compound. Former inmates Zahran Alloush, former leader of Jaysh al-Islam Hassan Aboud, former leader of Ahrar ash-Sham Abu Yahia al-Hamawi, former leader of Ahrar ash-Sham Abu Jaber Shaykh, senior leader of Tahrir al-Sham Ahmed Abu Issa, leader of Suqour al-Sham Brigade Abu Mohammad al-Adnani, former leader and spokesperson of Islamic State of Iraq and the Levant (ISIL) Abu Luqman, former ISIL governor of Raqqah Haitham al-Maleh, human rights activist and lawyer Jihad Qassab, former footballer who was executed on 30 September 2016 Hassan Soufan, former leader of Ahrar al-Sham from 2017 to 2018 and the general commander of the Syrian Liberation Front. Omar Alshogre, Director of Detainee Issues at Syrian Emergency Task Force References Notes External links "Inside Saydnaya: Syria's Torture Prison ." Amnesty International at YouTube. August 18, 2016. Prisons in Syria Torture in Syria Syrian civil war crimes
Géza Révész (Siófok, Hungary, 9 December 1878 — Amsterdam, Netherlands, 19 August 1955) was a Hungarian-Dutch psychologist of Jewish heritage, and is regarded as one of the pioneers of European psychology. Life Révész was born in the Siófok, Hungary, a town located at Lake Balaton, where his father owned a famous vineyard. He studied law in Budapest and received his doctorate in 1902, when he finished his dissertation entitled Das Trauerjahr der Witwe. Révész continued his studies at various German universities, including in Göttingen. While in Göttingen, he studied psychology with Georg Elias Müller, with whom he completed his doctorate and his thesis Über die vom Weiß ausgehende Schwächung der Wirksamkeit farbiger Lichtreize in 1905. During this time, Révész also became friends with phenomenological psychologists David Katz, Gustav Kafka and Edgar Rubin, who all played a role in the emergence of Gestalt psychology. In 1906, Révész returned to Budapest, and went to work at the University of Budapest. He was assistant to the Austrian physiologist Franz Tangl. The late psychologist Imre Hermann was his assistant there. Révész worked at the university as an experimental psychologist. Initially, he was involved in the hearing. In 1913, he proposed observing pitches for a two-component model. From 1909 to 1915, he studied musical prodigy Ervin Nyiregyházi. Révész was also a professor of psychology during his time at the University of Budapest. In 1920, at the invitation of Gerard Heymans, Révész left Hungary for the Netherlands. At the University of Amsterdam, he was appointed as private teacher and began his research into the sense of touch. Along with Philip Kohnstamm, Révész ran the psychological-pedagogical laboratory, but this did not last long due to lack of funds. In 1932, Révész was awarded a full professorship in the Faculty of Mathematics and Physics at the University of Amsterdam. In that capacity, he was a promoter of Adriaan de Groot and Nico Frijda. With David Katz, Révész founded in 1935 the journal Acta Psychologica . In 1933, he opened his own psychological laboratory, with 40 rooms and an auditorium, which was unprecedented at that time in Europe. He worked there with Philip Kohnstamm, with whom he fled the Netherlands in 1938 because the growing situation in Germany. Révész died at the age of 76 in Amsterdam. His work on the psychology of music is still relevant today. The Pierson Révész Library of the University of Amsterdam was named after him. The filmmaker/photographer Emile Moerkerken was a staunch supporter of Révész. References Hungarian psychologists Hungarian Jews 1878 births 1955 deaths Hungarian emigrants to the Netherlands
Huangfu Song (died April 195), courtesy name Yizhen, was a military general who lived during the Eastern Han dynasty of China. He is best known for helping to suppress the Yellow Turban Rebellion and Liang Province Rebellion. He was one of three imperial commanders when the Yellow Turban Rebellion broke out, along with Zhu Jun and Lu Zhi. He was known to be a modest and generous person. Lu Zhi was removed from command after the eunuch Zuo Feng (左豐) made false accusations against him; Lu Zhi had refused to bribe Zuo Feng. Huangfu Song, who took over command of the imperial troops from Lu Zhi, continued to use Lu as a strategist and reported his contributions to the imperial court. Thus, in the same year, Lu Zhi regained his post as Master of Writing (尚书). Life Huangfu Song was a nephew of Huangfu Gui (皇甫规), a military general, and Lady Huangfu. His father Huangfu Jie (Huangfu Gui's elder brother) was the Administrator of Yanmen Commandery. He was eventually nominated as a xiaolian and maocai. Chen Fan and Dou Wu, both important imperial officials, tried to nominate Huangfu Song as an official, but Huangfu rejected their nominations. During the Yellow Turban rebellion, Huangfu was initially sent to defeat the Yellow Turban rebels in Yingchuan, along with Zhu Jun. After their success at Yingchuan, Huangfu and Zhu were sent to quell the rebels in Runan and Chen Commanderies, and were also successful. Later, Zhang Bao was defeated and killed by imperial forces led by Huangfu Song and Guo Dian (郭典) at Xiaquyang County (下曲陽縣; west of present-day Jinzhou, Hebei), while Zhang Liang also met his end at the hands of imperial forces led by Huangfu Song at Guangzong County (廣宗縣; southeast of present-day Guangzong County, Hebei). After the quelling of the Yellow Turban rebellion, Emperor Ling changed the era name to Zhongping. Huangfu Song recommended that one year's worth of taxes from Ji province be used as assistance for refugees who had been displaced by the rebellion; Emperor Ling agreed. The people chanted, "China is in chaos; cities become rubble. Mothers cannot protect their children, while wives lose their husbands. It is because of Huangfu that we are able to live in peace." In 188, Huangfu Song was sent to lift the siege of Chencang, together with Dong Zhuo; Chencang had been besieged by Wang Guo (王国). In the process, Dong had several tactical and strategic disagreements with Huangfu; after Huangfu managed to achieve victory despite Dong's disagreements (resulting in Wang Guo's death), Dong became resentful and fearful of Huangfu. In 189, Dong Zhuo was made Governor of Bing Province, and was asked to hand troops under his command to Huangfu Song; Dong refused to comply. At the time, Huangfu Song's nephew Huangfu Li (皇甫郦) advised him, "The dynasty has lost its ability to govern and China is hanging by a thread. Only Your Excellency (Huangfu Song) and Dong Zhuo can bring stability to the realm. Now, there is bad blood between the two of you, with no possibility of co-existence. Dong Zhuo is resisting orders by refusing to hand over his troops. He is harbouring wickedness by delaying his advance and claiming that there is chaos in the capital. As he is brutal and heartless, his troops are not loyal to him. Your Excellency, as grand marshal, should attack Dong Zhuo. In this way, you can show your loyalty and righteousness, as well as remove a great threat to the state. This was what Duke Huan of Qi and Duke Wen of Jin did in the past." Huangfu Song replied, "Although it is a crime to disobey orders, it is also wrong to kill someone arbitrarily. Let us report this to the imperial court and let the court decide." After Huangfu's report reached Emperor Xian, the young emperor showed it to Dong Zhuo, increasing his resentment of Huangfu. In 190, Dong Zhuo, now in control of the imperial court, intended to kill Huangfu Song, using the pretext of giving him a new appointment to summon him to Luoyang. As Huangfu was about to depart, Liang Yan (梁衍) advised him, "Now, the Han dynasty is weak and eunuchs had caused chaos in court. Although Dong Zhuo has killed them, he is not loyal to the state. He has pillaged the capital, and deposed and crowned emperors at will. Today, he has summoned Your Excellency. In the worst case scenario, Your Excellency will be in great peril. At the very least, Your Excellency will be trapped and humiliated. Now, Dong Zhuo is at Luoyang, while the emperor is in the west. Your Excellency should use 30,000 elite troops to welcome the emperor, while declaring your intent to attack Dong Zhuo. You should then spread this intent throughout the country, and recruit troops and officers. With the Yuans closing in from his east and Your Excellency closing in from his west, Dong Zhuo can be captured." Huangfu ignored Liang Yan's advice and continued his journey to Luoyang. During this time Dong Zhuo courted Huangfu Song's aunt, Lady Huangfu. He was delighted with her beauty and intelligence for working at Han court, so he forced her to marry him, Lady Huangfu refused and confronted him then Dong Zhuo had her executed. Huangfu Song's son Huangfu Jianshou was on good terms with Dong Zhuo. After knowing of Dong Zhuo's plans for his father, Jianshou hurried from Chang'an to Luoyang to meet Dong; Dong set a banquet to welcome him. Jianshou gave an emotional speech at the banquet, moving those present; even Dong Zhuo stood up, took Jianshou's hand and had Jianshou sit by his side. Huangfu Song was made Grand Commandant September 192, but was relieved of the position February 193; he was replaced by Zhou Zhong (周忠), an uncle of Zhou Yu. He passed away due to illness as Li Jue and Guo Si began their civil war. In Romance of the Three Kingdoms In the 14th-century historical novel Romance of the Three Kingdoms, Huangfu Song was involved in Wang Yun's plot in getting rid of Dong Zhuo, and led the imperial forces to capture Dong Zhuo's family members and remnants in the capital. Children and descendants Huangfu Song was recorded to have at least 2 sons: Huangfu Jianshou and Huangfu Shuxian. Huangfu Shuxian is the paternal grandfather of Huangfu Mi. He also had a daughter who later became She Yuan's wife. See also Lists of people of the Three Kingdoms Notes References Fan, Ye (5th century). Book of the Later Han (Houhanshu). Luo, Guanzhong (14th century). Romance of the Three Kingdoms (Sanguo Yanyi). 2nd-century births 195 deaths Generals during the end of the Han dynasty
The 2013–14 Northern Arizona Lumberjacks men's basketball team represented Northern Arizona University during the 2013–14 NCAA Division I men's basketball season. The Lumberjacks were led by second year head coach Jack Murphy and played their home games at the Walkup Skydome. They were members of the Big Sky Conference. They finished the season 15–17, 12–8 in Big Sky play to finish in a three way tie for second place. They lost in the quarterfinals of the Big Sky Conference tournament to Northern Colorado. Roster Schedule |- !colspan=9 style="background:#003466; color:#FFCC00;"| Exhibition |- !colspan=9 style="background:#003466; color:#FFCC00;"| Non-conference regular season |- !colspan=9 style="background:#003466; color:#FFCC00;"| Big Sky regular season |- !colspan=9 style="background:#003466; color:#FFCC00;"| Big Sky tournament References Northern Arizona Lumberjacks men's basketball seasons Northern Arizona Northern Arizona Lumberjacks men's basketball Northern Arizona Lumberjacks men's basketball
Salvia regla (Mountain sage) is a deciduous perennial that is native to a small area of the Chisos Mountains in west Texas and a large area of Mexico, in the states of Coahuila, Durango, and Oaxaca. The specific epithet is probably from the town of Regla in the state of Hidalgo. It is also referred to as the "queen of the Chisos Mountains". It has been widely planted along the Texas flyway for migrating birds, and is an important food source for hummingbirds returning to the tropics in September and October. Salvia regla is a deciduous shrub which reaches up to 6 feet tall and 4–5 feet wide. It grows on upright stems which give it a stately appearance. The mistletoe-green deltoid leaves are deeply veined and about 1 inch wide and long. The flower tube is 1 inch long, with a signal-red 1 inch calyx that is turned to the light, and is chartreuse on the underside. Though it was introduced into horticulture in 1839, it was very uncommon until the 1980s. Nurseries sell several cultivars, including 'Royal', 'Mount Emory', and 'Warnock's Choice'. Notes Plants described in 1799 regla Flora of Mexico Flora of Texas Taxa named by Antonio José Cavanilles