text
stringlengths
1
22.8M
The Holy Family with a Female Saint is a 1495–1505 tempera on canvas painting attributed to Andrea Mantegna - the lose of the original finish and re-painting means that the painting itself cannot be securely attributed to him, though the silverpoint under-drawing is definitely in the master's hand. To the left is saint Joseph and to the right is an unidentified female saint, possibly Mary Magdalene. It is now in the Museo di Castelvecchio in Verona, from which it was stolen on the evening of 19 November 2015 along with sixteen other works. They were found near Odessa in Ukraine on 6 May the following year, from which they were about to be sold on into Ukraine and Russia. They were returned to the museum later in 2016 History Marco Boschini saw a Mantegna Holy Family in the sacristy of the Ospedale degli Incurabili in Venice in the 17th century, which was either this work or the Altman Madonna. References Paintings by Andrea Mantegna 1500 paintings
is a railway station operated by Nagoya Railroad located in Nishi-ku, Nagoya, Aichi, Japan. This station is unmanned. Lines Nagoya Railroad Nagoya Main Line Inuyama Line Layout The station has two side platforms serving two tracks. Platforms Adjacent stations References External links Station guide Railway stations in Japan opened in 1912 Stations of Nagoya Railroad Railway stations in Aichi Prefecture
```xml import * as bodyParser from 'body-parser'; import { debugFacebook, debugRequest } from './debuggers'; import initFacebook from './controller'; import systemStatus from './systemStatus'; import userMiddleware from './middlewares/userMiddleware'; import app from '@erxes/api-utils/src/app'; const rawBodySaver = (req, _res, buf, encoding) => { if (buf && buf.length) { req.rawBody = buf.toString(encoding || 'utf8'); if (req.headers.fromcore === 'true') { req.rawBody = req.rawBody.replace(/\//g, '\\/'); } } }; const initApp = async () => { app.use( bodyParser.urlencoded({ limit: '10mb', verify: rawBodySaver, extended: true, }), ); app.use(bodyParser.json({ limit: '10mb', verify: rawBodySaver })); app.use(userMiddleware); app.use(bodyParser.raw({ limit: '10mb', verify: rawBodySaver, type: '*/*' })); app.use((req, _res, next) => { debugRequest(debugFacebook, req); next(); }); app.get('/system-status', async (_req, res) => { return res.json(await systemStatus()); }); // init bots initFacebook(app); // Error handling middleware app.use((error, _req, res, _next) => { console.error(error.stack); res.status(500).send(error.message); }); }; export default initApp; ```
Wang Ying is a fictional character in Water Margin, one of the Four Great Classical Novels of Chinese literature. Nicknamed "Stumpy Tiger", he ranks 58th among the 108 Stars of Destiny and 22nd among the 72 Earthly Fiends. Background Wang Ying, a good fighter with a short stature, is depicted as having sparkling eyes. His height is not specified in the novel, but some readers estimate that he is no taller than 1.5 meters. Wang transports passengers as a coachman for a living. One day, he finds the valuables of some customers so tempting that he robs them. He is later arrested. But he escapes from jail and becomes a bandit leader on Mount Qingfeng (清風山; in present-day Qingzhou, Shandong) under Yan Shun. Zheng Tianshou later joins them. Meeting Song Jiang When Song Jiang, on the run after killing his mistress Yan Poxi, is going to Qingfeng Fort (清風寨; near Mount Qingfeng) to take shelter under his friend Hua Rong, he passes by Mount Qingfeng and is captured in a trap by the bandits. The outlaws want to use his heart to make soup. Just as he is about to be sliced up, Song sighs loudly, "Am I, Song Jiang, destined to die just like this?" Surprised to hear the name of a person he greatly admires for chivalry, Yan Shun stops the killing in time and inquires. After confirming Song's identity, the three chiefs free him, offer their apologies and treat him as an honoured guest. While they are drinking, Wang Ying, who covets pretty women, leaves the feast midway to intercept a group coming by Mount Qingfeng that includes a sedan chair, which apparently carries a lady. Finding the woman attractive, Wang takes her to the stronghold and intends to rape her. Just then the others come to his room. When the woman says she is the wife of Liu Gao, the governor of Qingfeng Fort, Song Jiang feels obliged to save her as Liu is the colleague of Hua Rong, the fort's garrison commandant. Wang reluctantly agrees to release her. Joining Liangshan On the Lantern Festival night, Song Jiang, who is then living in Hua Rong's house, goes outdoor to enjoy the celebrations. Liu Gao's wife spots him and lies to her husband that Song has abducted and almost raped her at Mount Qingfeng. Believing his wife, Liu orders Song Jiang arrested. After Hua Rong rescued Song by force, Liu seeks help from Murong Yanda, the governor of Qingzhou, which oversees Qingfeng Fort. Huang Xin, who is sent to handle the matter, lures Hua to a feast and captures him. Meanwhile, Liu has re-arrested Song as he tried to sneak to Mount Qingfeng. When Huang Xin is taking Song Jiang and Hua Rong back to Qingzhou, the bandits of Mount Qingfeng waylay the convoy, rescue the two prisoners, and kill Liu Gao. The bandits later defeat an army sent from Qingzhou led by Qin Ming and seize Mrs Liu after breaking into Qingfeng Fort. Wang Ying again intends to keep Mrs Liu, but is prevented by Song Jiang and Yan Shun, who kills the woman whom they believe would cause harm to Wang. Song promises to find Wang, who nearly clashed with Yan, a more suitable woman to be his wife. As Qingzhou is likely to send a larger force, Song Jiang suggests that the group decamp to join Liangshan Marsh. Wang Ying is thus absorbed into the larger stronghold. Marrying Hu Sanniang The Zhu Family Manor, located close to Liangshan, refuses to release Shi Qian, whom it has captured after he stole a rooster for meal from its inn while on the way to join the stronghold. Song Jiang leads a military attack on the manor to settle the acrimony. After a futile first offensive, Liangshan launches the second one, which draws Hu Sanniang to come to the aid of the Zhus. Hu Sanniang, the daughter of the squire of the neighbouring Hu Family Manor who is engaged to Zhu Biao of the Zhu Family Manor, comes charging on a horse at Song Jiang's army. Excited to see a pretty lady warrior, Wang Ying, who is involved in the offensive, takes on Hu in the belief that she would be easy prey. However, he underestimates the amazon, who detects that the guy has some indecent intent. Overwhelming Wang with her sabres, she suddenly leans forward, pulls him off his horse and throws him to the ground. Zhus' men rush forward to tie Wang up. Hu Sanniang shows no sign of weariness as she battles Ou Peng and then Ma Lin. Suddenly Song Jiang finds himself being pursued by Hu on horse as his troops retreat in disarray. Hu comes close to seizing him when Lin Chong appears and intercepts her. She is easily defeated and captured by Lin, a far superior fighter. Song sends her in captivity to Liangshan, where she is placed under the watch of his father. The outlaws eventually overrun the Zhu Family Manor thanks to the infiltration by Sun Li and free all the captured chieftains, including Wang Ying. Back at Liangshan, Song Jiang convinces Hu Sanniang, who has become the god daughter of Song's father while under the old man's care, to join the stronghold. He also arranges for her to marry Wang in fulfilment of his promise to find him a wife. Campaigns and death Wang Ying is appointed as one of the leaders of Liangshan's cavalry after the 108 Stars of Destiny came together in what is called the Grand Assembly. He participates in the campaigns against the Liao invaders and rebel forces in Song territory following amnesty from Emperor Huizong for Liangshan. In the battle of Muzhou (睦州; in present-day Hangzhou, Zhejiang) in the campaign against Fang La, Wang Ying encounters the enemy general Zheng Biao. Disorientated by Zheng's magic, Wang is speared to death by the sorcerer. Hu Sanniang is eager to avenge her husband but is also killed by Zheng. References 72 Earthly Fiends
Courtenay Selman (born 13 June 1945) is a Barbadian cricketer. He played in three first-class matches for the Barbados cricket team from 1970 to 1974. See also List of Barbadian representative cricketers References External links 1945 births Living people Barbadian cricketers Barbados cricketers People from Saint George, Barbados
Richard G.J. Vangermeersch (born 1940) is an American economist, and Emeritus Professor of Accounting at the University of Rhode Island, particularly known for his History of Accounting: An International Encyclopedia, edited with Michael Chatfield. Biography Born in Providence, Rhode Island, Vangermeersch attended the North Providence High School. He obtained his BA in accounting from Bryant University, his MA in accounting in 1964 from University of Rhode Island, and his PhD in accounting in 1970 from the University of Florida with a thesis on the history of economics, economic theory and management. Finally in 1978 he obtained his Certified Management Accountant (CMA). Vangermeersch spend his academic career at the University of Rhode Island, where he started in 1970 as Associate Professor of Accounting. In 2004 he retired and became Emeritus Professor of Accounting. From 1979 to 1984 he was treasurer of the Academy of Accounting Historians, and in 1987 he was its president. In 1988 he and Peter McMickle were awarded the Hourglass Award for their 1987 book, The Origins of a Great Profession.<ref>"McMickle and Vangermeersch win Hourglass Award;Accounting History Education Committee" in: The Accounting History Notebook, Fall 1988.</ref> Selected publications Vangermeersch, Richard GJ. Comments on accounting disclosures in the Baltimore and Ohio annual reports from 1828 through 1850. Academy of Accounting Historians, School of Business, Virginia Commonwealth University, 1979. Vangermeersch, Richard GJ. Financial reporting techniques in 20 industrial companies since 1861. University Presses of Florida, 1979. Vangermeersch, Richard GJ. Financial Accounting Milestones in the Annual Reports of United States Steel Corporation: The First Seven Decades. Garland Pub., 1986. Church, Alexander Hamilton, and Richard GJ Vangermeersch. The contributions of Alexander Hamilton Church to accounting and management. Garland, 1986. Chatfield, Michael, and Richard Vangermeersch, eds. The History of Accounting (RLE Accounting): An International Encyclopedia. Routledge, 1996/2014. Vangermeersch, Richard GJ, ed. The life and writings of Stuart Chase (1888-1985): from an accountant's perspective.'' Vol. 8. Elsevier, 2005. References External links For 34 years, accounting professor hasn't done it by the numbers, University of Rhode Island, 2004. Vangermeersch releases literary readings on Canonchet, Narragansetts, 2010. 1940 births Living people 21st-century American economists Accounting academics Bryant University alumni University of Rhode Island alumni University of Florida alumni University of Rhode Island faculty
A hart is a male red deer, synonymous with stag and used in contrast to the female hind; its use may now be considered mostly poetic or archaic. The word comes from Middle English hert, from Old English heorot; compare Frisian hart, Dutch hert, German Hirsch, and Swedish, Norwegian, and Danish hjort, all meaning "deer". Heorot is given as the name of Hrothgar's mead hall in the Old English epic Beowulf. Historically, hart has also been used generically to mean "deer, antelope", as in the royal antelope, which Willem Bosman called "the king of the harts". The word hart was also sometimes used in the past specifically to describe a stag of more than five years. In deer classification In medieval hunting terms, a stag in its first year was called a "calf" or "calfe", in its second a "brocket", in its third a "spayed", "spade", or "spayard", in its fourth a "staggerd" or "staggard", and in its fifth a "stag", or a "great stag". To be a "hart" was its fully mature state. A lord would want to hunt not just any deer, but a mature stag in good condition, partly for the extra meat and fat it would carry, but also for prestige. Hence, a hart could be designated "a hart of grease", (a fat stag), "a hart of ten", (a stag with 10 points on its antlers) or "a royal hart" (a stag which had been hunted by a royal personage). A stag which was old enough to be hunted was called a "warrantable" stag. The hart was a beast of venery representing the most prestigious form of hunting, as distinct from lesser beasts of the Chase and beasts of the free warren, the last of which were regarded virtually as vermin. The membership of these different classes varies somewhat across periods and writers, but the red deer is always in the first class, the red fox hardly being regarded at all. Like the fallow deer buck and the wild boar, the hart was normally sought out or "harboured" by a "limer", or Bloodhound hunting on a leash, which would track it from its droppings or footprints to where it was browsing. The huntsman would then report back to his lord and the hunting party would come bringing a pack of raches. These scent hounds would "unharbour" the hart and chase it on its hot scent until it was brought to bay. Persistence of the term The word hart is not now widely used, but its traces persist. Shakespeare makes several references (for example in Twelfth Night), punning on the homophones "hart" and "heart". The word is used several times in The Hobbit by J. R. R. Tolkien, when Bilbo Baggins and company pass through Mirkwood Forest. It is alluded to in the Joss Whedon series Angel: the senior partners of law firm Wolfram & Hart are represented, respectively by the wolf, the ram and the hart. It is mentioned in the first of the series of novels by George R. R. Martin Game of Thrones when a "white hart" is sighted in the woods: King Robert Baratheon and other lords seek to hunt the creature (perhaps an allusion to Robert himself becoming somewhat of a white or ghost stag). The "White Hart", a personal emblem of Richard II, and "The Red Hart" remain common English pub names. Arthur C. Clarke's Tales from the White Hart is set at one such pub. The surnames Hart and Hartley ("wood of the hart") also derive from the animal, as do the variant spellings Harte and Hurt. Several places in Great Britain and the United States are named Hart, including the district of Hart in Hampshire, the villages of Hartfield at the edge of Ashdown Forest in East Sussex and Hart Common on the outskirts of Westhoughton in Greater Manchester, and the town of Hartlepool and the nearby village of Hart, in County Durham. Whinfell Forest once contained a landmark tree called the Harthorn. Hartford (from hart + ford) is the name of many places in the United States and England, including the city of Hartford, Connecticut and various entities located there. Hartford is an English surname of considerable antiquity. Heorot, Herut, and Hert are Old English spellings of hart; thus Heorot, a royal hall in Beowulf, is named for the hart, as is Hertford and Hertfordshire in England (which in turn lent the name to Hartford, Connecticut). A hart appears in the first line of Psalm 42 in the King James (Authorized) Version (1604–1611) of the Psalms in the Holy Bible: "As the hart panteth after the water brooks, so panteth my soul after thee, O God." Tate and Brady's (1696) metrical psalms, among others, also use this figure: "As pants the hart for cooling streams" for its common meter (CM) rendering of the Psalm 42 text. See also Hart in medieval hunting Hartshorn References Deer
Mandirola is a genus of flowering plants belonging to the family Gesneriaceae. It is native to Bolivia and Brazil. The genus name of Mandirola is in honour of Agostino Mandirola (d. 1661), Italian clergyman, naturalist and botanist with a focus on medicinal plants and citrus. It was first described and published in Rev. Hort. (Paris), sér.3, Vol.2 on page 468 in 1848. Known species According to Kew: Mandirola hirsuta Mandirola ichthyostoma Mandirola rupestris References Gesnerioideae Gesneriaceae genera Plants described in 1848 Flora of Bolivia Flora of Brazil Taxa named by Joseph Decaisne
```javascript import ElementsHelper from '../helper'; import HistoryHelper from '../../history/helper'; export const ResetStyle = () => { QUnit.module( 'ResetStyle', () => { QUnit.module( 'Single Selection', () => { QUnit.test( 'Simple', ( assert ) => { const eButtonStyled = ElementsHelper.createWrappedButton( null, { text: 'createAutoButtonStyled', background_color: '#000000', } ); // Ensure editor saver. $e.internal( 'document/save/set-is-modified', { status: false } ); ElementsHelper.resetStyle( eButtonStyled ); // Check pasted style exist. assert.equal( eButtonStyled.settings.attributes.background_color, '', 'Button with custom style were (style) restored.' ); assert.equal( elementor.saver.isEditorChanged(), true, 'Command applied the saver editor is changed.' ); } ); QUnit.test( 'History', ( assert ) => { const eWidgetStyled = ElementsHelper.createWrappedButton( null, { text: 'createAutoButtonStyled', background_color: '#000000', } ), BackgroundBeforeReset = eWidgetStyled.settings.get( 'background_color' ); // Black ElementsHelper.resetStyle( eWidgetStyled ); const historyItem = HistoryHelper.getFirstItem().attributes; // Exist in history. HistoryHelper.inHistoryValidate( assert, historyItem, 'reset_style', 'Button' ); // Undo. HistoryHelper.undoValidate( assert, historyItem ); assert.equal( eWidgetStyled.settings.get( 'background_color' ), BackgroundBeforeReset, 'Settings back to default.' ); // Redo. HistoryHelper.redoValidate( assert, historyItem ); /* Assert.equal( eWidgetStyled.settings.get( 'background_color' ), BackgroundAfterReset, 'Settings restored.' ); // TODO: in tests its not back to default color.*/ } ); } ); QUnit.module( 'Multiple Selection', () => { QUnit.test( 'Simple', ( assert ) => { const settings = { text: 'createAutoButtonStyled', background_color: '#000000', }, eButtonStyled1 = ElementsHelper.createWrappedButton( null, settings ), eButtonStyled2 = ElementsHelper.createWrappedButton( null, settings ); ElementsHelper.multiResetStyle( [ eButtonStyled1, eButtonStyled2 ] ); // Check pasted style exist. assert.equal( eButtonStyled1.model.attributes.settings.attributes.background_color, '', 'Button #1 with custom style were (style) restored.' ); assert.equal( eButtonStyled2.model.attributes.settings.attributes.background_color, '', 'Button #2 with custom style were (style) restored.' ); } ); QUnit.test( 'History', ( assert ) => { const eWidgetsStyled = ElementsHelper.multiCreateWrappedButton( null, { text: 'createAutoButtonStyled', background_color: '#000000', } ), backgroundBeforeReset = eWidgetsStyled[ 0 ].settings.get( 'background_color' ); ElementsHelper.multiResetStyle( eWidgetsStyled ); const backgroundAfterReset = eWidgetsStyled[ 0 ].settings.get( 'background_color' ), historyItem = HistoryHelper.getFirstItem().attributes; // Exist in history. HistoryHelper.inHistoryValidate( assert, historyItem, 'reset_style', 'Elements' ); // Undo. HistoryHelper.undoValidate( assert, historyItem ); eWidgetsStyled.forEach( ( eWidgetStyled ) => { assert.equal( eWidgetStyled.settings.get( 'background_color' ), backgroundBeforeReset, 'Settings back to default.' ); } ); // Redo. HistoryHelper.redoValidate( assert, historyItem ); eWidgetsStyled.forEach( ( eWidgetStyled ) => { assert.equal( eWidgetStyled.settings.get( 'background_color' ), backgroundAfterReset, 'Settings restored.' ); } ); } ); } ); } ); }; export default ResetStyle; ```
```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.sys.AppContext; import com.haulmont.cuba.core.sys.SecurityContext; import com.haulmont.cuba.security.auth.AuthenticationManager; import com.haulmont.cuba.security.auth.SystemUserCredentials; import com.haulmont.cuba.security.global.LoginException; import com.haulmont.cuba.security.global.UserSession; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.annotation.Nullable; import javax.inject.Inject; import java.util.Map; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import static com.haulmont.cuba.core.sys.AppContext.getSecurityContext; import static com.haulmont.cuba.core.sys.AppContext.setSecurityContext; /** * Bean that provides authentication to an arbitrary code on the Middleware. * <br> * Authentication is required if the code doesn't belong to a normal user request handling, which is the case for * invocation by schedulers or JMX tools, other than Web Client's JMX-console. * <br> * Example usage: * <pre> * authentication.begin(); * try { * // valid current thread's user session presents here * } finally { * authentication.end(); * } * </pre> */ @Component(Authentication.NAME) public class Authentication { public static final String NAME = "cuba_Authentication"; private static final Logger log = LoggerFactory.getLogger(Authentication.class); @Inject protected AuthenticationManager authenticationManager; @Inject protected UserSessionsAPI userSessions; @Inject protected ServerConfig serverConfig; protected ThreadLocal<Integer> cleanupCounter = new ThreadLocal<>(); protected Map<String, UUID> sessions = new ConcurrentHashMap<>(); /** * Begin an authenticated code block. * <br> * If a valid current thread session exists, does nothing. * Otherwise sets the current thread session, logging in if necessary. * <br> * Subsequent {@link #end()} method must be called in "finally" section. * * @param login user login. If null, a value of {@code cuba.jmxUserLogin} app property is used. * @return new or cached instance of system user session */ public UserSession begin(@Nullable String login) { if (cleanupCounter.get() == null) { cleanupCounter.set(0); } // check if a current thread session exists, that is we got here from authenticated code SecurityContext securityContext = AppContext.getSecurityContext(); if (securityContext != null) { UserSession userSession = userSessions.getAndRefresh(securityContext.getSessionId()); if (userSession != null) { log.trace("Already authenticated, do nothing"); cleanupCounter.set(cleanupCounter.get() + 1); if (log.isTraceEnabled()) { log.trace("New cleanup counter value: {}", cleanupCounter.get()); } return userSession; } } // no current thread session or it is expired - need to authenticate if (StringUtils.isBlank(login)) { login = getSystemLogin(); } UserSession session = null; log.trace("Authenticating as {}", login); UUID sessionId = sessions.get(login); if (sessionId != null) { session = userSessions.getAndRefresh(sessionId); } if (session == null) { // saved session doesn't exist or is expired synchronized (this) { // double check to prevent the same log in by subsequent threads sessionId = sessions.get(login); if (sessionId != null) { session = userSessions.get(sessionId); } if (session == null) { try { session = authenticationManager.login(new SystemUserCredentials(login)).getSession(); session.setClientInfo("System authentication"); } catch (LoginException e) { throw new RuntimeException("Unable to perform system login", e); } sessions.put(login, session.getId()); } } } AppContext.setSecurityContext(new SecurityContext(session)); return session; } /** * Authenticate with login set in {@code cuba.jmxUserLogin} app property. * <br> * Same as {@link #begin(String)} with null parameter */ public UserSession begin() { return begin(null); } /** * End of an authenticated code block. * <br> * Performs cleanup for SecurityContext if there was previous loginOnce in this thread. * Must be called in "finally" section of a try/finally block. */ public void end() { if (cleanupCounter.get() == null || cleanupCounter.get() < 0) { log.warn("Cleanup counter is null or invalid"); } else if (cleanupCounter.get() == 0) { log.trace("Cleanup SecurityContext"); AppContext.setSecurityContext(null); cleanupCounter.remove(); } else { log.trace("Do not own authentication, cleanup not required"); cleanupCounter.set(cleanupCounter.get() - 1); log.trace("New cleanup counter value: {}", cleanupCounter.get()); } } /** * Execute code on behalf of the specified user. * * @param login user login. If null, a value of {@code cuba.jmxUserLogin} app property is used. * @param operation code to execute * @return result of the execution */ public <T> T withUser(@Nullable String login, AuthenticatedOperation<T> operation) { SecurityContext previousSecurityContext = getSecurityContext(); setSecurityContext(null); try { begin(login); return operation.call(); } finally { setSecurityContext(previousSecurityContext); } } /** * Execute code on behalf of the user with login set in {@code cuba.jmxUserLogin} app property. * * @param operation code to execute * @return result of the execution */ public <T> T withSystemUser(AuthenticatedOperation<T> operation) { SecurityContext previousSecurityContext = getSecurityContext(); setSecurityContext(null); try { begin(null); return operation.call(); } finally { setSecurityContext(previousSecurityContext); } } protected String getSystemLogin() { return serverConfig.getJmxUserLogin(); } public interface AuthenticatedOperation<T> { T call(); } } ```
```html <!DOCTYPE html> <html xmlns="path_to_url"><head><title>GlobalAvgPool2D (owl-base.Owl_neural_generic.Make.Graph.Neuron.GlobalAvgPool2D)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../../../index.html">owl-base</a> &#x00BB; <a href="../../../../index.html">Owl_neural_generic</a> &#x00BB; <a href="../../../index.html">Make</a> &#x00BB; <a href="../../index.html">Graph</a> &#x00BB; <a href="../index.html">Neuron</a> &#x00BB; GlobalAvgPool2D</nav><header class="odoc-preamble"><h1>Module <code><span>Neuron.GlobalAvgPool2D</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-neuron_typ"><a href="#type-neuron_typ" class="anchor"></a><code><span><span class="keyword">type</span> neuron_typ</span><span> = <a href="../../../../Make_Embedded/Neuron/GlobalAvgPool2D/index.html#type-neuron_typ">Make_Embedded(A).Neuron.GlobalAvgPool2D.neuron_typ</a></span><span> = </span><span>{</span></code><ol><li id="type-neuron_typ.in_shape" class="def record field anchored"><a href="#type-neuron_typ.in_shape" class="anchor"></a><code><span><span class="keyword">mutable</span> in_shape : <span>int array</span>;</span></code></li><li id="type-neuron_typ.out_shape" class="def record field anchored"><a href="#type-neuron_typ.out_shape" class="anchor"></a><code><span><span class="keyword">mutable</span> out_shape : <span>int array</span>;</span></code></li></ol><code><span>}</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create : <span>unit <span class="arrow">&#45;&gt;</span></span> <a href="#type-neuron_typ">neuron_typ</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-connect"><a href="#val-connect" class="anchor"></a><code><span><span class="keyword">val</span> connect : <span><span>int array</span> <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-neuron_typ">neuron_typ</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-copy"><a href="#val-copy" class="anchor"></a><code><span><span class="keyword">val</span> copy : <span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> <a href="#type-neuron_typ">neuron_typ</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-run"><a href="#val-run" class="anchor"></a><code><span><span class="keyword">val</span> run : <span><a href="../Optimise/Algodiff/index.html#type-t">Optimise.Algodiff.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-neuron_typ">neuron_typ</a> <span class="arrow">&#45;&gt;</span></span> <a href="../Optimise/Algodiff/index.html#type-t">Optimise.Algodiff.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span><span class="keyword">val</span> to_string : <span><a href="#type-neuron_typ">neuron_typ</a> <span class="arrow">&#45;&gt;</span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_name"><a href="#val-to_name" class="anchor"></a><code><span><span class="keyword">val</span> to_name : <span>unit <span class="arrow">&#45;&gt;</span></span> string</span></code></div></div></div></body></html> ```
The Price of Money is a collaboration album between American rappers The Jacka & 12 Gauge Shotie, released on January 20, 2009. It peaked at #88 on the R&B/Hip-Hop Albums chart, making it 12 Gauge Shotie's first and only charting album to date. The album cover is an homage to the famed American game show The Price Is Right. A music video has been filmed for the song "Should I". "Sunshine" contains samples from the 1976 song "Sunshine" by the group Enchantment (band) "Paper Long" contains samples from I Want You Back by The Jackson 5 "Dayz Like This" contains samples of Just to Keep You Satisfied by Marvin Gaye "All My N*ggaz" contains samples of "I'll Be The Other Woman" by The Soul Children Track listing References 2009 collaborative albums The Jacka albums
```c++ /*============================================================================= file LICENSE_1_0.txt or copy at path_to_url ==============================================================================*/ #if !defined(BOOST_SPIRIT_LAZY_NOVEMBER_04_2008_1157AM) #define BOOST_SPIRIT_LAZY_NOVEMBER_04_2008_1157AM #if defined(_MSC_VER) #pragma once #endif #include <boost/spirit/include/phoenix_core.hpp> #include <boost/proto/proto.hpp> #include <boost/spirit/home/support/modify.hpp> #include <boost/spirit/home/support/detail/is_spirit_tag.hpp> namespace boost { namespace spirit { template <typename Eval> typename proto::terminal<phoenix::actor<Eval> >::type lazy(phoenix::actor<Eval> const& f) { return proto::terminal<phoenix::actor<Eval> >::type::make(f); } namespace tag { struct lazy_eval { BOOST_SPIRIT_IS_TAG() }; } template <typename Domain> struct is_modifier_directive<Domain, tag::lazy_eval> : mpl::true_ {}; }} #endif ```
```xml import type { ReactNode } from 'react'; import { Children, cloneElement, isValidElement, useEffect, useRef } from 'react'; import { useLocation } from 'react-router'; import clsx from '@proton/utils/clsx'; import createScrollIntoView from '../../helpers/createScrollIntoView'; import useAppTitle from '../../hooks/useAppTitle'; import { SettingsPageTitle, SettingsParagraph } from '../account'; import ErrorBoundary from '../app/ErrorBoundary'; import PrivateMainArea from './PrivateMainArea'; import SubSettingsSection from './SubSettingsSection'; import { getIsSubsectionAvailable } from './helper'; import type { SettingsAreaConfig } from './interface'; interface PrivateMainSettingsAreaBaseProps { breadcrumbs?: ReactNode; title: string; noTitle?: boolean; description?: ReactNode; children?: ReactNode; } export const PrivateMainSettingsAreaBase = ({ breadcrumbs, title, noTitle, description, children, }: PrivateMainSettingsAreaBaseProps) => { const location = useLocation(); const mainAreaRef = useRef<HTMLDivElement>(null); useAppTitle(title); useEffect(() => { if (mainAreaRef.current) { mainAreaRef.current.scrollTop = 0; } }, [location.pathname]); useEffect(() => { const { hash } = location; if (!hash) { return; } if (!mainAreaRef.current) { return; } const mainArea = mainAreaRef.current; let el: Element | null | undefined; try { el = mainArea.querySelector(hash); } catch (e) {} if (!el) { return; } const abortScroll = createScrollIntoView(el, mainArea, true); let removeListeners: () => void; const abort = () => { abortScroll(); removeListeners?.(); }; const options = { passive: true, capture: true, }; // Abort on any user interaction such as scrolling, touching, or keyboard interaction window.addEventListener('wheel', abort, options); window.addEventListener('keydown', abort, options); window.addEventListener('mousedown', abort, options); window.addEventListener('touchstart', abort, options); // Automatically abort after some time where it's assumed to have successfully scrolled into place. const timeoutId = window.setTimeout(abort, 15000); removeListeners = () => { window.removeEventListener('wheel', abort, options); window.removeEventListener('keydown', abort, options); window.removeEventListener('mousedown', abort, options); window.removeEventListener('touchstart', abort, options); window.clearTimeout(timeoutId); }; return () => { abort(); }; // Listen to location instead of location.hash since it's possible to click the same #section multiple times and end up with a new entry in history }, [location]); const wrappedSections = Children.toArray(children).map((child) => { if (!isValidElement<{ observer: IntersectionObserver; className: string }>(child)) { return null; } return cloneElement(child); }); return ( <PrivateMainArea ref={mainAreaRef}> <div className="container-section-sticky"> {breadcrumbs && <div className="mt-6 md:mt-0">{breadcrumbs}</div>} {!noTitle && ( <SettingsPageTitle className={clsx('mt-14', description ? 'mb-5' : 'mb-14')}> {title} </SettingsPageTitle> )} {description && <SettingsParagraph className="mb-6">{description}</SettingsParagraph>} <ErrorBoundary>{wrappedSections}</ErrorBoundary> </div> </PrivateMainArea> ); }; interface PrivateMainSettingsAreaProps { children: ReactNode; config: SettingsAreaConfig; } const PrivateMainSettingsArea = ({ children, config }: PrivateMainSettingsAreaProps) => { const { text, title, description, subsections } = config; const wrappedSections = Children.toArray(children).map((child, i) => { if (!isValidElement<{ observer: IntersectionObserver; className: string }>(child)) { return null; } const subsectionConfig = subsections?.[i]; if (!subsectionConfig) { throw new Error('Missing subsection'); } if (!getIsSubsectionAvailable(subsectionConfig)) { return null; } return ( <SubSettingsSection key={subsectionConfig.id} id={subsectionConfig.id} title={subsectionConfig.text} beta={subsectionConfig.beta} className="container-section-sticky-section" > {child} </SubSettingsSection> ); }); return ( <PrivateMainSettingsAreaBase title={title || text} description={description}> {wrappedSections} </PrivateMainSettingsAreaBase> ); }; export default PrivateMainSettingsArea; ```
Nedim Tutić (born 17 July 1968) is a Bosnian professional football manager and former player. He is the current manager of PAC Omonia 29M. Club career Tutić played for Liria Prizren and FK Sloboda Užice in the Yugoslav Second League, and with FK Sarajevo and FK Rad in the Yugoslav First League. He had a brief spell with Zeytinburnuspor in the Turkish Super Lig. Managerial statistics References External links 1968 births Living people Yugoslav men's footballers Bosnia and Herzegovina men's footballers Men's association football midfielders FK Sarajevo players KF Liria Prizren players FK Sloboda Užice players FK Rad players AC Omonia players Zeytinburnuspor footballers Olympiakos Nicosia players Ethnikos Assia FC players Yugoslav First League players Yugoslav Second League players Cypriot First Division players Süper Lig players Bosnia and Herzegovina expatriate men's footballers Expatriate men's footballers in Cyprus Bosnia and Herzegovina expatriate sportspeople in Cyprus Expatriate men's footballers in Turkey Bosnia and Herzegovina expatriate sportspeople in Turkey Bosnia and Herzegovina football managers AC Omonia managers Nea Salamis Famagusta FC managers Bosnia and Herzegovina expatriate football managers Expatriate football managers in Cyprus
```smalltalk using Foundation; [Protocol] [Preserve (AllMembers = true)] [Preserve (AllMembers = true)] partial interface BI1059 { } ```
```javascript import Datepicker from '@/components/Datepicker.vue' import {shallow} from '@vue/test-utils' describe('Datepicker.vue inline', () => { let wrapper beforeEach(() => { wrapper = shallow(Datepicker, { propsData: { inline: true } }) }) it('should not showCalendar as already open', () => { expect(wrapper.vm.showCalendar()).toEqual(false) expect(wrapper.vm.isInline).toEqual(true) }) it('should not close the calendar when date is selected', () => { const date = new Date() wrapper.vm.selectDate({timestamp: date.getTime()}) expect(wrapper.vm.isOpen).toEqual(true) document.body.click() expect(wrapper.vm.isOpen).toEqual(true) }) }) ```
Vangelis (sometimes spelled Vangellys; born September 7, 1981) is the ring name of a Mexican luchador (or professional wrestler) known for his work for the Mexican professional wrestling promotion Consejo Mundial de Lucha Libre (CMLL). He portrays a rudo ("bad guy") wrestling character. He has formerly worked for AAA in Mexico, Dragon Gate in Japan and extensively on the Mexican independent circuit. Vangelis is the winner of the 2013 En Busca de un Ídolo tournament and a former holder of the Mexican National Light Heavyweight Championship. Professional wrestling career Vangelis trained under El Torero, Dick Angelo and Huracán González, before making his professional wrestling debut in 1999. AAA (1999–2004, 2006) He quickly began working for AAA, training at their school while only occasionally wrestling on their television shows. Vangelis was teamed up with Jimmy Boy and Billy to form a boy band inspired group called Los Spice Boys. At Triplemanía VII, Jimmy Boy, Billy and Vangelis defeated Los Payasos (Coco Amarillo, Coco Rojo and Coco Verde) in one of the undercard matches. At the 2000 Guerra de Titanes event Los Spice Boys lost to Los Vatos Locos (Espiritu, Nygma, Picudo and Silver Cat). In 2001, Vangelis was given a new ring character, that of a Nazi soldier, complete with swastika armband and the Nazi salute that naturally made him a rudo, a heel or "bad guy" character. Vangelis formed a group known as Los Warriors along with Kevin (a sailor), Brandon (an Aztec warrior) and Uri (a viking), although Uri only worked with the group for a few months. Los Warriors had a long running storyline feud against Los Barrio Boys, former partners Billy Boy and Alan (Jimmy Boy using a new name) as well as Decnis. The feud between the two factions saw Vangelis win his first ever Luchas de Apuestas, or bet match, when he defeated Alan in a Steel cage match that involved all members of Los Warriors and Los Barrio Boys. In 2005, Vangelis traveled to Japan to work for an extended period of time in the Japanese Dragon Gate promotion. While in Japan, he often wrestled against the comedy duo known as "The Florida Brothers" (Michael Iwasa and Daniel Mishima) as well as competing in the 2005 "Survival Gate" battle royal, won by Susumu Yokosuka. He returned to Mexico and AAA in 2006 where he was given a masked character as part of Los Espantapájaros ("The Scarecrows"). As the three Espantapájaros all wore identical masks and outfits, it was never completely verified if he worked as Espantapájaros I or Espantapájaros III for those matches. He would later leave AAA and work on the Mexican independent circuit, including El Dandy's short lived ENSEMA wrestling promotion. During his stint with ENSEMA, he seemingly won the Mexican National Light Heavyweight Championship from El Dandy. However, no records were ever found of the show where the match took place, making it possible that the title was bought by Vangelis instead. Consejo Mundial de Lucha Libre (2007–2021) On December 4, 2007, Vangelis worked his first match for Consejo Mundial de Lucha Libre (CMLL) and he lost the Light Heavyweight Championship to Místico in a match where Místico's CMLL World Welterweight Championship also being on the line. This marked the beginning of Vangelis' stint in CMLL. In CMLL he worked mainly on the lower half of the card in trios matches with mixed success. In 2008, he was named as a member of "Generación del 75", a group of young wrestlers who exemplified the "CMLL future" in CMLL's 75th anniversary year. The group also included Flash, Mictlán, Tiger Kid, Hijo del Faraón, Axxel, El Hijo del Fantasma, Bronco, Metalik, Puma King, Skándalo, Súper Nova and Ángel Azteca Jr. CMLL held a tournament for the vacant CMLL Arena Coliseo Tag Team Championship, and had Vangelis team up with Loco Max to form one of the 16 teams that participated. The team lost to Bronco and Diamante Negro in the first round of the tournament. On June 27, 2008 Vangelis competed for the Trofeo Generacion del 75 (Generation of 75 Trophy), a tournament for young wrestlers who had joined CMLL during their 75th year of operation. El Hijo del Fantasma won the match but Ángel Azteca Jr. was able to make a good showing for himself. In 2009, he began to regularly appear in the corner of El Terrible and El Texano Jr. at times replacing La Comandante, who had a similar Nazi gimmick. He was in the corner of Terrible and Texano Jr. at CMLL's 2009 Sin Salida event as they won the main event match. In March 2013, Vangelis was announced as participating in the 2013 En Busca de un Ídolo ("In search of an Idol") tournament that would take place from May to July 2013 as one of eight competitors. On July 12, Vangelis defeated Valiente in the finals to win the tournament. On August 11, Vangelis joined El Terrible's and Rey Bucanero's La Fuerza TRT stable, which was as a result renamed TRT: La Máquina de la Destrucción ("TRT: The Machine of Destruction"). On January 14, 2014, Vangelis made his debut for New Japan Pro-Wrestling (NJPW), when he worked the NJPW and CMLL co-produced Fantastica Mania 2014 tour, which lasted until January 19. In March, Vangelis teamed up with tecnico wrestler Valiente for CMLL's annual Torneo Nacional de Parejas Increibles, or "National Incredible Teams tournament" where a rudo and a tecnico are forced to team up for a tag team tournament. The two lost to La Sombra and Último Guerrero in the opening round of the tournament. In June 2017, Vangelis became involved in a storyline feud with Los Ingobernables, especially Pierroth. It was initiated on June 2, when he turned on his tag team partners Negro Casas and Rey Bucanero to allow Los Ingobernables and Hechicero to win the match. Afterward, he asked to join Los Ingobernables, but was rejected and then beaten up. The following week, he attacked Pierroth during the Gran Alternativa tournament, hitting him with a bat in the shoulder. The attack was sold as injuring Pierroth so that he was eliminated from the tournament without actually losing. In subsequent months, Vangelis and Pierroth would face off on opposite sides in numerous matches as the storyline tension escalated. The feud ended in a Lucha de Apuestas ("bet match") between the two on July 14, in the semi-main event of the Universal Championship finals show. Vangelis lost the match two falls to one, and subsequently had all his hair shaved off as a result. In December 2017, he competed in that year's Leyenda de Azul ("Blue Legend") tournament, but was eliminated before the finals. Vangelis injured his right knee during a match on January 22, 2018, when he caught Valiente on a dive out of the ring. It was later revealed that he ruptured his patella tendon and required surgery to repair the injury. At the time, his recovery time was expected to be between six and nine months. In late 2020, Vangelis formed a new stable, Los Embajadores del Mal (The Ambassadors of Evil), alongside Okumura and Dark Magic. They made their first appearance on October 30, at Día de Muertos, in a loss to the team of Audaz, Espíritu Negro and Rey Cometa. He would left the promotion on September 7, 2021. Championships and accomplishments Comisión de Box y Lucha Libre Mexico D.F. Mexican National Light Heavyweight Championship (1 time) Consejo Mundial de Lucha Libre En Busca de un Ídolo (2013) Luchas de Apuestas record Footnotes References 1981 births Living people Mexican male professional wrestlers Masked wrestlers Unidentified wrestlers 20th-century professional wrestlers 21st-century professional wrestlers Mexican National Light Heavyweight Champions
```css Responsive images in a layout Using `@media` rule to create cross platform responsiveness Flexbox `flex-wrap` Using `flex-grow` Using `flex-shrink` ```
```objective-c // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #pragma once #include <memory> #include <vector> #include "paddle/fluid/framework/operator.h" #include "paddle/fluid/operators/controlflow/op_variant.h" #include "paddle/fluid/operators/controlflow/pylayer_op.h" #include "paddle/utils/string/string_helper.h" namespace paddle { namespace framework { class ProgramDesc; } // namespace framework } // namespace paddle namespace paddle { namespace operators { void PrepareSafeEagerDeletionOnPyLayerOpAndPyLayerGradOp( const framework::ProgramDesc &program, int block_id, const std::vector<std::unique_ptr<framework::OperatorBase>> &all_ops); void PrepareSafeEagerDeletionOnPyLayerOpAndPyLayerGradOp( const framework::ProgramDesc &program, const std::vector<OpVariant> &pylayer_ops, const std::vector<OpVariant> &pylayer_grad_ops); } // namespace operators } // namespace paddle ```
```c++ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/gdb-jit.h" #include <memory> #include <vector> #include "src/api.h" #include "src/base/bits.h" #include "src/base/platform/platform.h" #include "src/bootstrapper.h" #include "src/frames-inl.h" #include "src/frames.h" #include "src/global-handles.h" #include "src/messages.h" #include "src/objects.h" #include "src/ostreams.h" #include "src/snapshot/natives.h" #include "src/splay-tree-inl.h" namespace v8 { namespace internal { namespace GDBJITInterface { #ifdef ENABLE_GDB_JIT_INTERFACE #ifdef __APPLE__ #define __MACH_O class MachO; class MachOSection; typedef MachO DebugObject; typedef MachOSection DebugSection; #else #define __ELF class ELF; class ELFSection; typedef ELF DebugObject; typedef ELFSection DebugSection; #endif class Writer BASE_EMBEDDED { public: explicit Writer(DebugObject* debug_object) : debug_object_(debug_object), position_(0), capacity_(1024), buffer_(reinterpret_cast<byte*>(malloc(capacity_))) { } ~Writer() { free(buffer_); } uintptr_t position() const { return position_; } template<typename T> class Slot { public: Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { } T* operator-> () { return w_->RawSlotAt<T>(offset_); } void set(const T& value) { *w_->RawSlotAt<T>(offset_) = value; } Slot<T> at(int i) { return Slot<T>(w_, offset_ + sizeof(T) * i); } private: Writer* w_; uintptr_t offset_; }; template<typename T> void Write(const T& val) { Ensure(position_ + sizeof(T)); *RawSlotAt<T>(position_) = val; position_ += sizeof(T); } template<typename T> Slot<T> SlotAt(uintptr_t offset) { Ensure(offset + sizeof(T)); return Slot<T>(this, offset); } template<typename T> Slot<T> CreateSlotHere() { return CreateSlotsHere<T>(1); } template<typename T> Slot<T> CreateSlotsHere(uint32_t count) { uintptr_t slot_position = position_; position_ += sizeof(T) * count; Ensure(position_); return SlotAt<T>(slot_position); } void Ensure(uintptr_t pos) { if (capacity_ < pos) { while (capacity_ < pos) capacity_ *= 2; buffer_ = reinterpret_cast<byte*>(realloc(buffer_, capacity_)); } } DebugObject* debug_object() { return debug_object_; } byte* buffer() { return buffer_; } void Align(uintptr_t align) { uintptr_t delta = position_ % align; if (delta == 0) return; uintptr_t padding = align - delta; Ensure(position_ += padding); DCHECK_EQ(position_ % align, 0); } void WriteULEB128(uintptr_t value) { do { uint8_t byte = value & 0x7F; value >>= 7; if (value != 0) byte |= 0x80; Write<uint8_t>(byte); } while (value != 0); } void WriteSLEB128(intptr_t value) { bool more = true; while (more) { int8_t byte = value & 0x7F; bool byte_sign = byte & 0x40; value >>= 7; if ((value == 0 && !byte_sign) || (value == -1 && byte_sign)) { more = false; } else { byte |= 0x80; } Write<int8_t>(byte); } } void WriteString(const char* str) { do { Write<char>(*str); } while (*str++); } private: template<typename T> friend class Slot; template<typename T> T* RawSlotAt(uintptr_t offset) { DCHECK(offset < capacity_ && offset + sizeof(T) <= capacity_); return reinterpret_cast<T*>(&buffer_[offset]); } DebugObject* debug_object_; uintptr_t position_; uintptr_t capacity_; byte* buffer_; }; class ELFStringTable; template<typename THeader> class DebugSectionBase : public ZoneObject { public: virtual ~DebugSectionBase() { } virtual void WriteBody(Writer::Slot<THeader> header, Writer* writer) { uintptr_t start = writer->position(); if (WriteBodyInternal(writer)) { uintptr_t end = writer->position(); header->offset = static_cast<uint32_t>(start); #if defined(__MACH_O) header->addr = 0; #endif header->size = end - start; } } virtual bool WriteBodyInternal(Writer* writer) { return false; } typedef THeader Header; }; struct MachOSectionHeader { char sectname[16]; char segname[16]; #if V8_TARGET_ARCH_IA32 uint32_t addr; uint32_t size; #else uint64_t addr; uint64_t size; #endif uint32_t offset; uint32_t align; uint32_t reloff; uint32_t nreloc; uint32_t flags; uint32_t reserved1; uint32_t reserved2; }; class MachOSection : public DebugSectionBase<MachOSectionHeader> { public: enum Type { S_REGULAR = 0x0u, S_ATTR_COALESCED = 0xBu, S_ATTR_SOME_INSTRUCTIONS = 0x400u, S_ATTR_DEBUG = 0x02000000u, S_ATTR_PURE_INSTRUCTIONS = 0x80000000u }; MachOSection(const char* name, const char* segment, uint32_t align, uint32_t flags) : name_(name), segment_(segment), align_(align), flags_(flags) { if (align_ != 0) { DCHECK(base::bits::IsPowerOfTwo(align)); align_ = WhichPowerOf2(align_); } } virtual ~MachOSection() { } virtual void PopulateHeader(Writer::Slot<Header> header) { header->addr = 0; header->size = 0; header->offset = 0; header->align = align_; header->reloff = 0; header->nreloc = 0; header->flags = flags_; header->reserved1 = 0; header->reserved2 = 0; memset(header->sectname, 0, sizeof(header->sectname)); memset(header->segname, 0, sizeof(header->segname)); DCHECK(strlen(name_) < sizeof(header->sectname)); DCHECK(strlen(segment_) < sizeof(header->segname)); strncpy(header->sectname, name_, sizeof(header->sectname)); strncpy(header->segname, segment_, sizeof(header->segname)); } private: const char* name_; const char* segment_; uint32_t align_; uint32_t flags_; }; struct ELFSectionHeader { uint32_t name; uint32_t type; uintptr_t flags; uintptr_t address; uintptr_t offset; uintptr_t size; uint32_t link; uint32_t info; uintptr_t alignment; uintptr_t entry_size; }; #if defined(__ELF) class ELFSection : public DebugSectionBase<ELFSectionHeader> { public: enum Type { TYPE_NULL = 0, TYPE_PROGBITS = 1, TYPE_SYMTAB = 2, TYPE_STRTAB = 3, TYPE_RELA = 4, TYPE_HASH = 5, TYPE_DYNAMIC = 6, TYPE_NOTE = 7, TYPE_NOBITS = 8, TYPE_REL = 9, TYPE_SHLIB = 10, TYPE_DYNSYM = 11, TYPE_LOPROC = 0x70000000, TYPE_X86_64_UNWIND = 0x70000001, TYPE_HIPROC = 0x7FFFFFFF, TYPE_LOUSER = 0x80000000, TYPE_HIUSER = 0xFFFFFFFF }; enum Flags { FLAG_WRITE = 1, FLAG_ALLOC = 2, FLAG_EXEC = 4 }; enum SpecialIndexes { INDEX_ABSOLUTE = 0xFFF1 }; ELFSection(const char* name, Type type, uintptr_t align) : name_(name), type_(type), align_(align) { } virtual ~ELFSection() { } void PopulateHeader(Writer::Slot<Header> header, ELFStringTable* strtab); virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { uintptr_t start = w->position(); if (WriteBodyInternal(w)) { uintptr_t end = w->position(); header->offset = start; header->size = end - start; } } virtual bool WriteBodyInternal(Writer* w) { return false; } uint16_t index() const { return index_; } void set_index(uint16_t index) { index_ = index; } protected: virtual void PopulateHeader(Writer::Slot<Header> header) { header->flags = 0; header->address = 0; header->offset = 0; header->size = 0; header->link = 0; header->info = 0; header->entry_size = 0; } private: const char* name_; Type type_; uintptr_t align_; uint16_t index_; }; #endif // defined(__ELF) #if defined(__MACH_O) class MachOTextSection : public MachOSection { public: MachOTextSection(uint32_t align, uintptr_t addr, uintptr_t size) : MachOSection("__text", "__TEXT", align, MachOSection::S_REGULAR | MachOSection::S_ATTR_SOME_INSTRUCTIONS | MachOSection::S_ATTR_PURE_INSTRUCTIONS), addr_(addr), size_(size) {} protected: virtual void PopulateHeader(Writer::Slot<Header> header) { MachOSection::PopulateHeader(header); header->addr = addr_; header->size = size_; } private: uintptr_t addr_; uintptr_t size_; }; #endif // defined(__MACH_O) #if defined(__ELF) class FullHeaderELFSection : public ELFSection { public: FullHeaderELFSection(const char* name, Type type, uintptr_t align, uintptr_t addr, uintptr_t offset, uintptr_t size, uintptr_t flags) : ELFSection(name, type, align), addr_(addr), offset_(offset), size_(size), flags_(flags) { } protected: virtual void PopulateHeader(Writer::Slot<Header> header) { ELFSection::PopulateHeader(header); header->address = addr_; header->offset = offset_; header->size = size_; header->flags = flags_; } private: uintptr_t addr_; uintptr_t offset_; uintptr_t size_; uintptr_t flags_; }; class ELFStringTable : public ELFSection { public: explicit ELFStringTable(const char* name) : ELFSection(name, TYPE_STRTAB, 1), writer_(nullptr), offset_(0), size_(0) {} uintptr_t Add(const char* str) { if (*str == '\0') return 0; uintptr_t offset = size_; WriteString(str); return offset; } void AttachWriter(Writer* w) { writer_ = w; offset_ = writer_->position(); // First entry in the string table should be an empty string. WriteString(""); } void DetachWriter() { writer_ = nullptr; } virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { DCHECK_NULL(writer_); header->offset = offset_; header->size = size_; } private: void WriteString(const char* str) { uintptr_t written = 0; do { writer_->Write(*str); written++; } while (*str++); size_ += written; } Writer* writer_; uintptr_t offset_; uintptr_t size_; }; void ELFSection::PopulateHeader(Writer::Slot<ELFSection::Header> header, ELFStringTable* strtab) { header->name = static_cast<uint32_t>(strtab->Add(name_)); header->type = type_; header->alignment = align_; PopulateHeader(header); } #endif // defined(__ELF) #if defined(__MACH_O) class MachO BASE_EMBEDDED { public: explicit MachO(Zone* zone) : zone_(zone), sections_(6, zone) { } uint32_t AddSection(MachOSection* section) { sections_.Add(section, zone_); return sections_.length() - 1; } void Write(Writer* w, uintptr_t code_start, uintptr_t code_size) { Writer::Slot<MachOHeader> header = WriteHeader(w); uintptr_t load_command_start = w->position(); Writer::Slot<MachOSegmentCommand> cmd = WriteSegmentCommand(w, code_start, code_size); WriteSections(w, cmd, header, load_command_start); } private: struct MachOHeader { uint32_t magic; uint32_t cputype; uint32_t cpusubtype; uint32_t filetype; uint32_t ncmds; uint32_t sizeofcmds; uint32_t flags; #if V8_TARGET_ARCH_X64 uint32_t reserved; #endif }; struct MachOSegmentCommand { uint32_t cmd; uint32_t cmdsize; char segname[16]; #if V8_TARGET_ARCH_IA32 uint32_t vmaddr; uint32_t vmsize; uint32_t fileoff; uint32_t filesize; #else uint64_t vmaddr; uint64_t vmsize; uint64_t fileoff; uint64_t filesize; #endif uint32_t maxprot; uint32_t initprot; uint32_t nsects; uint32_t flags; }; enum MachOLoadCommandCmd { LC_SEGMENT_32 = 0x00000001u, LC_SEGMENT_64 = 0x00000019u }; Writer::Slot<MachOHeader> WriteHeader(Writer* w) { DCHECK_EQ(w->position(), 0); Writer::Slot<MachOHeader> header = w->CreateSlotHere<MachOHeader>(); #if V8_TARGET_ARCH_IA32 header->magic = 0xFEEDFACEu; header->cputype = 7; // i386 header->cpusubtype = 3; // CPU_SUBTYPE_I386_ALL #elif V8_TARGET_ARCH_X64 header->magic = 0xFEEDFACFu; header->cputype = 7 | 0x01000000; // i386 | 64-bit ABI header->cpusubtype = 3; // CPU_SUBTYPE_I386_ALL header->reserved = 0; #else #error Unsupported target architecture. #endif header->filetype = 0x1; // MH_OBJECT header->ncmds = 1; header->sizeofcmds = 0; header->flags = 0; return header; } Writer::Slot<MachOSegmentCommand> WriteSegmentCommand(Writer* w, uintptr_t code_start, uintptr_t code_size) { Writer::Slot<MachOSegmentCommand> cmd = w->CreateSlotHere<MachOSegmentCommand>(); #if V8_TARGET_ARCH_IA32 cmd->cmd = LC_SEGMENT_32; #else cmd->cmd = LC_SEGMENT_64; #endif cmd->vmaddr = code_start; cmd->vmsize = code_size; cmd->fileoff = 0; cmd->filesize = 0; cmd->maxprot = 7; cmd->initprot = 7; cmd->flags = 0; cmd->nsects = sections_.length(); memset(cmd->segname, 0, 16); cmd->cmdsize = sizeof(MachOSegmentCommand) + sizeof(MachOSection::Header) * cmd->nsects; return cmd; } void WriteSections(Writer* w, Writer::Slot<MachOSegmentCommand> cmd, Writer::Slot<MachOHeader> header, uintptr_t load_command_start) { Writer::Slot<MachOSection::Header> headers = w->CreateSlotsHere<MachOSection::Header>(sections_.length()); cmd->fileoff = w->position(); header->sizeofcmds = static_cast<uint32_t>(w->position() - load_command_start); for (int section = 0; section < sections_.length(); ++section) { sections_[section]->PopulateHeader(headers.at(section)); sections_[section]->WriteBody(headers.at(section), w); } cmd->filesize = w->position() - (uintptr_t)cmd->fileoff; } Zone* zone_; ZoneList<MachOSection*> sections_; }; #endif // defined(__MACH_O) #if defined(__ELF) class ELF BASE_EMBEDDED { public: explicit ELF(Zone* zone) : zone_(zone), sections_(6, zone) { sections_.Add(new(zone) ELFSection("", ELFSection::TYPE_NULL, 0), zone); sections_.Add(new(zone) ELFStringTable(".shstrtab"), zone); } void Write(Writer* w) { WriteHeader(w); WriteSectionTable(w); WriteSections(w); } ELFSection* SectionAt(uint32_t index) { return sections_[index]; } uint32_t AddSection(ELFSection* section) { sections_.Add(section, zone_); section->set_index(sections_.length() - 1); return sections_.length() - 1; } private: struct ELFHeader { uint8_t ident[16]; uint16_t type; uint16_t machine; uint32_t version; uintptr_t entry; uintptr_t pht_offset; uintptr_t sht_offset; uint32_t flags; uint16_t header_size; uint16_t pht_entry_size; uint16_t pht_entry_num; uint16_t sht_entry_size; uint16_t sht_entry_num; uint16_t sht_strtab_index; }; void WriteHeader(Writer* w) { DCHECK_EQ(w->position(), 0); Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>(); #if (V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || \ (V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT)) const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; #elif(V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT) || \ (V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN) const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; #elif V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN && V8_OS_LINUX const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; #elif V8_TARGET_ARCH_S390X const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0}; #elif V8_TARGET_ARCH_S390 const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 1, 2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0}; #else #error Unsupported target architecture. #endif memcpy(header->ident, ident, 16); header->type = 1; #if V8_TARGET_ARCH_IA32 header->machine = 3; #elif V8_TARGET_ARCH_X64 // Processor identification value for x64 is 62 as defined in // System V ABI, AMD64 Supplement // path_to_url header->machine = 62; #elif V8_TARGET_ARCH_ARM // Set to EM_ARM, defined as 40, in "ARM ELF File Format" at // infocenter.arm.com/help/topic/com.arm.doc.dui0101a/DUI0101A_Elf.pdf header->machine = 40; #elif V8_TARGET_ARCH_PPC64 && V8_OS_LINUX // Set to EM_PPC64, defined as 21, in Power ABI, // Join the next 4 lines, omitting the spaces and double-slashes. // path_to_url // ABI64BitOpenPOWERv1.1_16July2015_pub.pdf? // id=B81AEC1A37F5DAF185257C3E004E8845&linkid=1n0000&c_t= // c9xw7v5dzsj7gt1ifgf4cjbcnskqptmr header->machine = 21; #elif V8_TARGET_ARCH_S390 // Processor identification value is 22 (EM_S390) as defined in the ABI: // path_to_url#AEN1691 // path_to_url#AEN1599 header->machine = 22; #else #error Unsupported target architecture. #endif header->version = 1; header->entry = 0; header->pht_offset = 0; header->sht_offset = sizeof(ELFHeader); // Section table follows header. header->flags = 0; header->header_size = sizeof(ELFHeader); header->pht_entry_size = 0; header->pht_entry_num = 0; header->sht_entry_size = sizeof(ELFSection::Header); header->sht_entry_num = sections_.length(); header->sht_strtab_index = 1; } void WriteSectionTable(Writer* w) { // Section headers table immediately follows file header. DCHECK(w->position() == sizeof(ELFHeader)); Writer::Slot<ELFSection::Header> headers = w->CreateSlotsHere<ELFSection::Header>(sections_.length()); // String table for section table is the first section. ELFStringTable* strtab = static_cast<ELFStringTable*>(SectionAt(1)); strtab->AttachWriter(w); for (int i = 0, length = sections_.length(); i < length; i++) { sections_[i]->PopulateHeader(headers.at(i), strtab); } strtab->DetachWriter(); } int SectionHeaderPosition(uint32_t section_index) { return sizeof(ELFHeader) + sizeof(ELFSection::Header) * section_index; } void WriteSections(Writer* w) { Writer::Slot<ELFSection::Header> headers = w->SlotAt<ELFSection::Header>(sizeof(ELFHeader)); for (int i = 0, length = sections_.length(); i < length; i++) { sections_[i]->WriteBody(headers.at(i), w); } } Zone* zone_; ZoneList<ELFSection*> sections_; }; class ELFSymbol BASE_EMBEDDED { public: enum Type { TYPE_NOTYPE = 0, TYPE_OBJECT = 1, TYPE_FUNC = 2, TYPE_SECTION = 3, TYPE_FILE = 4, TYPE_LOPROC = 13, TYPE_HIPROC = 15 }; enum Binding { BIND_LOCAL = 0, BIND_GLOBAL = 1, BIND_WEAK = 2, BIND_LOPROC = 13, BIND_HIPROC = 15 }; ELFSymbol(const char* name, uintptr_t value, uintptr_t size, Binding binding, Type type, uint16_t section) : name(name), value(value), size(size), info((binding << 4) | type), other(0), section(section) { } Binding binding() const { return static_cast<Binding>(info >> 4); } #if (V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || \ (V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT) || \ (V8_TARGET_ARCH_S390 && V8_TARGET_ARCH_32_BIT)) struct SerializedLayout { SerializedLayout(uint32_t name, uintptr_t value, uintptr_t size, Binding binding, Type type, uint16_t section) : name(name), value(value), size(size), info((binding << 4) | type), other(0), section(section) { } uint32_t name; uintptr_t value; uintptr_t size; uint8_t info; uint8_t other; uint16_t section; }; #elif(V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT) || \ (V8_TARGET_ARCH_PPC64 && V8_OS_LINUX) || V8_TARGET_ARCH_S390X struct SerializedLayout { SerializedLayout(uint32_t name, uintptr_t value, uintptr_t size, Binding binding, Type type, uint16_t section) : name(name), info((binding << 4) | type), other(0), section(section), value(value), size(size) { } uint32_t name; uint8_t info; uint8_t other; uint16_t section; uintptr_t value; uintptr_t size; }; #endif void Write(Writer::Slot<SerializedLayout> s, ELFStringTable* t) { // Convert symbol names from strings to indexes in the string table. s->name = static_cast<uint32_t>(t->Add(name)); s->value = value; s->size = size; s->info = info; s->other = other; s->section = section; } private: const char* name; uintptr_t value; uintptr_t size; uint8_t info; uint8_t other; uint16_t section; }; class ELFSymbolTable : public ELFSection { public: ELFSymbolTable(const char* name, Zone* zone) : ELFSection(name, TYPE_SYMTAB, sizeof(uintptr_t)), locals_(1, zone), globals_(1, zone) { } virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { w->Align(header->alignment); int total_symbols = locals_.length() + globals_.length() + 1; header->offset = w->position(); Writer::Slot<ELFSymbol::SerializedLayout> symbols = w->CreateSlotsHere<ELFSymbol::SerializedLayout>(total_symbols); header->size = w->position() - header->offset; // String table for this symbol table should follow it in the section table. ELFStringTable* strtab = static_cast<ELFStringTable*>(w->debug_object()->SectionAt(index() + 1)); strtab->AttachWriter(w); symbols.at(0).set(ELFSymbol::SerializedLayout(0, 0, 0, ELFSymbol::BIND_LOCAL, ELFSymbol::TYPE_NOTYPE, 0)); WriteSymbolsList(&locals_, symbols.at(1), strtab); WriteSymbolsList(&globals_, symbols.at(locals_.length() + 1), strtab); strtab->DetachWriter(); } void Add(const ELFSymbol& symbol, Zone* zone) { if (symbol.binding() == ELFSymbol::BIND_LOCAL) { locals_.Add(symbol, zone); } else { globals_.Add(symbol, zone); } } protected: virtual void PopulateHeader(Writer::Slot<Header> header) { ELFSection::PopulateHeader(header); // We are assuming that string table will follow symbol table. header->link = index() + 1; header->info = locals_.length() + 1; header->entry_size = sizeof(ELFSymbol::SerializedLayout); } private: void WriteSymbolsList(const ZoneList<ELFSymbol>* src, Writer::Slot<ELFSymbol::SerializedLayout> dst, ELFStringTable* strtab) { for (int i = 0, len = src->length(); i < len; i++) { src->at(i).Write(dst.at(i), strtab); } } ZoneList<ELFSymbol> locals_; ZoneList<ELFSymbol> globals_; }; #endif // defined(__ELF) class LineInfo : public Malloced { public: void SetPosition(intptr_t pc, int pos, bool is_statement) { AddPCInfo(PCInfo(pc, pos, is_statement)); } struct PCInfo { PCInfo(intptr_t pc, int pos, bool is_statement) : pc_(pc), pos_(pos), is_statement_(is_statement) {} intptr_t pc_; int pos_; bool is_statement_; }; std::vector<PCInfo>* pc_info() { return &pc_info_; } private: void AddPCInfo(const PCInfo& pc_info) { pc_info_.push_back(pc_info); } std::vector<PCInfo> pc_info_; }; class CodeDescription BASE_EMBEDDED { public: #if V8_TARGET_ARCH_X64 enum StackState { POST_RBP_PUSH, POST_RBP_SET, POST_RBP_POP, STACK_STATE_MAX }; #endif CodeDescription(const char* name, Code* code, SharedFunctionInfo* shared, LineInfo* lineinfo) : name_(name), code_(code), shared_info_(shared), lineinfo_(lineinfo) {} const char* name() const { return name_; } LineInfo* lineinfo() const { return lineinfo_; } bool is_function() const { Code::Kind kind = code_->kind(); return kind == Code::OPTIMIZED_FUNCTION; } bool has_scope_info() const { return shared_info_ != nullptr; } ScopeInfo* scope_info() const { DCHECK(has_scope_info()); return shared_info_->scope_info(); } uintptr_t CodeStart() const { return reinterpret_cast<uintptr_t>(code_->InstructionStart()); } uintptr_t CodeEnd() const { return reinterpret_cast<uintptr_t>(code_->InstructionEnd()); } uintptr_t CodeSize() const { return CodeEnd() - CodeStart(); } bool has_script() { return shared_info_ != nullptr && shared_info_->script()->IsScript(); } Script* script() { return Script::cast(shared_info_->script()); } bool IsLineInfoAvailable() { return lineinfo_ != nullptr; } #if V8_TARGET_ARCH_X64 uintptr_t GetStackStateStartAddress(StackState state) const { DCHECK(state < STACK_STATE_MAX); return stack_state_start_addresses_[state]; } void SetStackStateStartAddress(StackState state, uintptr_t addr) { DCHECK(state < STACK_STATE_MAX); stack_state_start_addresses_[state] = addr; } #endif std::unique_ptr<char[]> GetFilename() { if (shared_info_ != nullptr) { return String::cast(script()->name())->ToCString(); } else { std::unique_ptr<char[]> result(new char[1]); result[0] = 0; return result; } } int GetScriptLineNumber(int pos) { if (shared_info_ != nullptr) { return script()->GetLineNumber(pos) + 1; } else { return 0; } } private: const char* name_; Code* code_; SharedFunctionInfo* shared_info_; LineInfo* lineinfo_; #if V8_TARGET_ARCH_X64 uintptr_t stack_state_start_addresses_[STACK_STATE_MAX]; #endif }; #if defined(__ELF) static void CreateSymbolsTable(CodeDescription* desc, Zone* zone, ELF* elf, int text_section_index) { ELFSymbolTable* symtab = new(zone) ELFSymbolTable(".symtab", zone); ELFStringTable* strtab = new(zone) ELFStringTable(".strtab"); // Symbol table should be followed by the linked string table. elf->AddSection(symtab); elf->AddSection(strtab); symtab->Add(ELFSymbol("V8 Code", 0, 0, ELFSymbol::BIND_LOCAL, ELFSymbol::TYPE_FILE, ELFSection::INDEX_ABSOLUTE), zone); symtab->Add(ELFSymbol(desc->name(), 0, desc->CodeSize(), ELFSymbol::BIND_GLOBAL, ELFSymbol::TYPE_FUNC, text_section_index), zone); } #endif // defined(__ELF) class DebugInfoSection : public DebugSection { public: explicit DebugInfoSection(CodeDescription* desc) #if defined(__ELF) : ELFSection(".debug_info", TYPE_PROGBITS, 1), #else : MachOSection("__debug_info", "__DWARF", 1, MachOSection::S_REGULAR | MachOSection::S_ATTR_DEBUG), #endif desc_(desc) { } // DWARF2 standard enum DWARF2LocationOp { DW_OP_reg0 = 0x50, DW_OP_reg1 = 0x51, DW_OP_reg2 = 0x52, DW_OP_reg3 = 0x53, DW_OP_reg4 = 0x54, DW_OP_reg5 = 0x55, DW_OP_reg6 = 0x56, DW_OP_reg7 = 0x57, DW_OP_reg8 = 0x58, DW_OP_reg9 = 0x59, DW_OP_reg10 = 0x5A, DW_OP_reg11 = 0x5B, DW_OP_reg12 = 0x5C, DW_OP_reg13 = 0x5D, DW_OP_reg14 = 0x5E, DW_OP_reg15 = 0x5F, DW_OP_reg16 = 0x60, DW_OP_reg17 = 0x61, DW_OP_reg18 = 0x62, DW_OP_reg19 = 0x63, DW_OP_reg20 = 0x64, DW_OP_reg21 = 0x65, DW_OP_reg22 = 0x66, DW_OP_reg23 = 0x67, DW_OP_reg24 = 0x68, DW_OP_reg25 = 0x69, DW_OP_reg26 = 0x6A, DW_OP_reg27 = 0x6B, DW_OP_reg28 = 0x6C, DW_OP_reg29 = 0x6D, DW_OP_reg30 = 0x6E, DW_OP_reg31 = 0x6F, DW_OP_fbreg = 0x91 // 1 param: SLEB128 offset }; enum DWARF2Encoding { DW_ATE_ADDRESS = 0x1, DW_ATE_SIGNED = 0x5 }; bool WriteBodyInternal(Writer* w) { uintptr_t cu_start = w->position(); Writer::Slot<uint32_t> size = w->CreateSlotHere<uint32_t>(); uintptr_t start = w->position(); w->Write<uint16_t>(2); // DWARF version. w->Write<uint32_t>(0); // Abbreviation table offset. w->Write<uint8_t>(sizeof(intptr_t)); w->WriteULEB128(1); // Abbreviation code. w->WriteString(desc_->GetFilename().get()); w->Write<intptr_t>(desc_->CodeStart()); w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); w->Write<uint32_t>(0); uint32_t ty_offset = static_cast<uint32_t>(w->position() - cu_start); w->WriteULEB128(3); w->Write<uint8_t>(kPointerSize); w->WriteString("v8value"); if (desc_->has_scope_info()) { ScopeInfo* scope = desc_->scope_info(); w->WriteULEB128(2); w->WriteString(desc_->name()); w->Write<intptr_t>(desc_->CodeStart()); w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); Writer::Slot<uint32_t> fb_block_size = w->CreateSlotHere<uint32_t>(); uintptr_t fb_block_start = w->position(); #if V8_TARGET_ARCH_IA32 w->Write<uint8_t>(DW_OP_reg5); // The frame pointer's here on ia32 #elif V8_TARGET_ARCH_X64 w->Write<uint8_t>(DW_OP_reg6); // and here on x64. #elif V8_TARGET_ARCH_ARM UNIMPLEMENTED(); #elif V8_TARGET_ARCH_MIPS UNIMPLEMENTED(); #elif V8_TARGET_ARCH_MIPS64 UNIMPLEMENTED(); #elif V8_TARGET_ARCH_PPC64 && V8_OS_LINUX w->Write<uint8_t>(DW_OP_reg31); // The frame pointer is here on PPC64. #elif V8_TARGET_ARCH_S390 w->Write<uint8_t>(DW_OP_reg11); // The frame pointer's here on S390. #else #error Unsupported target architecture. #endif fb_block_size.set(static_cast<uint32_t>(w->position() - fb_block_start)); int params = scope->ParameterCount(); int slots = scope->StackLocalCount(); int context_slots = scope->ContextLocalCount(); // The real slot ID is internal_slots + context_slot_id. int internal_slots = Context::MIN_CONTEXT_SLOTS; int locals = scope->StackLocalCount(); int current_abbreviation = 4; for (int param = 0; param < params; ++param) { w->WriteULEB128(current_abbreviation++); w->WriteString( scope->ParameterName(param)->ToCString(DISALLOW_NULLS).get()); w->Write<uint32_t>(ty_offset); Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); uintptr_t block_start = w->position(); w->Write<uint8_t>(DW_OP_fbreg); w->WriteSLEB128( JavaScriptFrameConstants::kLastParameterOffset + kPointerSize * (params - param - 1)); block_size.set(static_cast<uint32_t>(w->position() - block_start)); } EmbeddedVector<char, 256> buffer; StringBuilder builder(buffer.start(), buffer.length()); for (int slot = 0; slot < slots; ++slot) { w->WriteULEB128(current_abbreviation++); builder.Reset(); builder.AddFormatted("slot%d", slot); w->WriteString(builder.Finalize()); } // See contexts.h for more information. DCHECK_EQ(Context::MIN_CONTEXT_SLOTS, 4); DCHECK_EQ(Context::CLOSURE_INDEX, 0); DCHECK_EQ(Context::PREVIOUS_INDEX, 1); DCHECK_EQ(Context::EXTENSION_INDEX, 2); DCHECK_EQ(Context::NATIVE_CONTEXT_INDEX, 3); w->WriteULEB128(current_abbreviation++); w->WriteString(".closure"); w->WriteULEB128(current_abbreviation++); w->WriteString(".previous"); w->WriteULEB128(current_abbreviation++); w->WriteString(".extension"); w->WriteULEB128(current_abbreviation++); w->WriteString(".native_context"); for (int context_slot = 0; context_slot < context_slots; ++context_slot) { w->WriteULEB128(current_abbreviation++); builder.Reset(); builder.AddFormatted("context_slot%d", context_slot + internal_slots); w->WriteString(builder.Finalize()); } for (int local = 0; local < locals; ++local) { w->WriteULEB128(current_abbreviation++); w->WriteString( scope->StackLocalName(local)->ToCString(DISALLOW_NULLS).get()); w->Write<uint32_t>(ty_offset); Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); uintptr_t block_start = w->position(); w->Write<uint8_t>(DW_OP_fbreg); w->WriteSLEB128( JavaScriptFrameConstants::kLocal0Offset - kPointerSize * local); block_size.set(static_cast<uint32_t>(w->position() - block_start)); } { w->WriteULEB128(current_abbreviation++); w->WriteString("__function"); w->Write<uint32_t>(ty_offset); Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); uintptr_t block_start = w->position(); w->Write<uint8_t>(DW_OP_fbreg); w->WriteSLEB128(JavaScriptFrameConstants::kFunctionOffset); block_size.set(static_cast<uint32_t>(w->position() - block_start)); } { w->WriteULEB128(current_abbreviation++); w->WriteString("__context"); w->Write<uint32_t>(ty_offset); Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); uintptr_t block_start = w->position(); w->Write<uint8_t>(DW_OP_fbreg); w->WriteSLEB128(StandardFrameConstants::kContextOffset); block_size.set(static_cast<uint32_t>(w->position() - block_start)); } w->WriteULEB128(0); // Terminate the sub program. } w->WriteULEB128(0); // Terminate the compile unit. size.set(static_cast<uint32_t>(w->position() - start)); return true; } private: CodeDescription* desc_; }; class DebugAbbrevSection : public DebugSection { public: explicit DebugAbbrevSection(CodeDescription* desc) #ifdef __ELF : ELFSection(".debug_abbrev", TYPE_PROGBITS, 1), #else : MachOSection("__debug_abbrev", "__DWARF", 1, MachOSection::S_REGULAR | MachOSection::S_ATTR_DEBUG), #endif desc_(desc) { } // DWARF2 standard, figure 14. enum DWARF2Tags { DW_TAG_FORMAL_PARAMETER = 0x05, DW_TAG_POINTER_TYPE = 0xF, DW_TAG_COMPILE_UNIT = 0x11, DW_TAG_STRUCTURE_TYPE = 0x13, DW_TAG_BASE_TYPE = 0x24, DW_TAG_SUBPROGRAM = 0x2E, DW_TAG_VARIABLE = 0x34 }; // DWARF2 standard, figure 16. enum DWARF2ChildrenDetermination { DW_CHILDREN_NO = 0, DW_CHILDREN_YES = 1 }; // DWARF standard, figure 17. enum DWARF2Attribute { DW_AT_LOCATION = 0x2, DW_AT_NAME = 0x3, DW_AT_BYTE_SIZE = 0xB, DW_AT_STMT_LIST = 0x10, DW_AT_LOW_PC = 0x11, DW_AT_HIGH_PC = 0x12, DW_AT_ENCODING = 0x3E, DW_AT_FRAME_BASE = 0x40, DW_AT_TYPE = 0x49 }; // DWARF2 standard, figure 19. enum DWARF2AttributeForm { DW_FORM_ADDR = 0x1, DW_FORM_BLOCK4 = 0x4, DW_FORM_STRING = 0x8, DW_FORM_DATA4 = 0x6, DW_FORM_BLOCK = 0x9, DW_FORM_DATA1 = 0xB, DW_FORM_FLAG = 0xC, DW_FORM_REF4 = 0x13 }; void WriteVariableAbbreviation(Writer* w, int abbreviation_code, bool has_value, bool is_parameter) { w->WriteULEB128(abbreviation_code); w->WriteULEB128(is_parameter ? DW_TAG_FORMAL_PARAMETER : DW_TAG_VARIABLE); w->Write<uint8_t>(DW_CHILDREN_NO); w->WriteULEB128(DW_AT_NAME); w->WriteULEB128(DW_FORM_STRING); if (has_value) { w->WriteULEB128(DW_AT_TYPE); w->WriteULEB128(DW_FORM_REF4); w->WriteULEB128(DW_AT_LOCATION); w->WriteULEB128(DW_FORM_BLOCK4); } w->WriteULEB128(0); w->WriteULEB128(0); } bool WriteBodyInternal(Writer* w) { int current_abbreviation = 1; bool extra_info = desc_->has_scope_info(); DCHECK(desc_->IsLineInfoAvailable()); w->WriteULEB128(current_abbreviation++); w->WriteULEB128(DW_TAG_COMPILE_UNIT); w->Write<uint8_t>(extra_info ? DW_CHILDREN_YES : DW_CHILDREN_NO); w->WriteULEB128(DW_AT_NAME); w->WriteULEB128(DW_FORM_STRING); w->WriteULEB128(DW_AT_LOW_PC); w->WriteULEB128(DW_FORM_ADDR); w->WriteULEB128(DW_AT_HIGH_PC); w->WriteULEB128(DW_FORM_ADDR); w->WriteULEB128(DW_AT_STMT_LIST); w->WriteULEB128(DW_FORM_DATA4); w->WriteULEB128(0); w->WriteULEB128(0); if (extra_info) { ScopeInfo* scope = desc_->scope_info(); int params = scope->ParameterCount(); int slots = scope->StackLocalCount(); int context_slots = scope->ContextLocalCount(); // The real slot ID is internal_slots + context_slot_id. int internal_slots = Context::MIN_CONTEXT_SLOTS; int locals = scope->StackLocalCount(); // Total children is params + slots + context_slots + internal_slots + // locals + 2 (__function and __context). // The extra duplication below seems to be necessary to keep // gdb from getting upset on OSX. w->WriteULEB128(current_abbreviation++); // Abbreviation code. w->WriteULEB128(DW_TAG_SUBPROGRAM); w->Write<uint8_t>(DW_CHILDREN_YES); w->WriteULEB128(DW_AT_NAME); w->WriteULEB128(DW_FORM_STRING); w->WriteULEB128(DW_AT_LOW_PC); w->WriteULEB128(DW_FORM_ADDR); w->WriteULEB128(DW_AT_HIGH_PC); w->WriteULEB128(DW_FORM_ADDR); w->WriteULEB128(DW_AT_FRAME_BASE); w->WriteULEB128(DW_FORM_BLOCK4); w->WriteULEB128(0); w->WriteULEB128(0); w->WriteULEB128(current_abbreviation++); w->WriteULEB128(DW_TAG_STRUCTURE_TYPE); w->Write<uint8_t>(DW_CHILDREN_NO); w->WriteULEB128(DW_AT_BYTE_SIZE); w->WriteULEB128(DW_FORM_DATA1); w->WriteULEB128(DW_AT_NAME); w->WriteULEB128(DW_FORM_STRING); w->WriteULEB128(0); w->WriteULEB128(0); for (int param = 0; param < params; ++param) { WriteVariableAbbreviation(w, current_abbreviation++, true, true); } for (int slot = 0; slot < slots; ++slot) { WriteVariableAbbreviation(w, current_abbreviation++, false, false); } for (int internal_slot = 0; internal_slot < internal_slots; ++internal_slot) { WriteVariableAbbreviation(w, current_abbreviation++, false, false); } for (int context_slot = 0; context_slot < context_slots; ++context_slot) { WriteVariableAbbreviation(w, current_abbreviation++, false, false); } for (int local = 0; local < locals; ++local) { WriteVariableAbbreviation(w, current_abbreviation++, true, false); } // The function. WriteVariableAbbreviation(w, current_abbreviation++, true, false); // The context. WriteVariableAbbreviation(w, current_abbreviation++, true, false); w->WriteULEB128(0); // Terminate the sibling list. } w->WriteULEB128(0); // Terminate the table. return true; } private: CodeDescription* desc_; }; class DebugLineSection : public DebugSection { public: explicit DebugLineSection(CodeDescription* desc) #ifdef __ELF : ELFSection(".debug_line", TYPE_PROGBITS, 1), #else : MachOSection("__debug_line", "__DWARF", 1, MachOSection::S_REGULAR | MachOSection::S_ATTR_DEBUG), #endif desc_(desc) { } // DWARF2 standard, figure 34. enum DWARF2Opcodes { DW_LNS_COPY = 1, DW_LNS_ADVANCE_PC = 2, DW_LNS_ADVANCE_LINE = 3, DW_LNS_SET_FILE = 4, DW_LNS_SET_COLUMN = 5, DW_LNS_NEGATE_STMT = 6 }; // DWARF2 standard, figure 35. enum DWARF2ExtendedOpcode { DW_LNE_END_SEQUENCE = 1, DW_LNE_SET_ADDRESS = 2, DW_LNE_DEFINE_FILE = 3 }; bool WriteBodyInternal(Writer* w) { // Write prologue. Writer::Slot<uint32_t> total_length = w->CreateSlotHere<uint32_t>(); uintptr_t start = w->position(); // Used for special opcodes const int8_t line_base = 1; const uint8_t line_range = 7; const int8_t max_line_incr = (line_base + line_range - 1); const uint8_t opcode_base = DW_LNS_NEGATE_STMT + 1; w->Write<uint16_t>(2); // Field version. Writer::Slot<uint32_t> prologue_length = w->CreateSlotHere<uint32_t>(); uintptr_t prologue_start = w->position(); w->Write<uint8_t>(1); // Field minimum_instruction_length. w->Write<uint8_t>(1); // Field default_is_stmt. w->Write<int8_t>(line_base); // Field line_base. w->Write<uint8_t>(line_range); // Field line_range. w->Write<uint8_t>(opcode_base); // Field opcode_base. w->Write<uint8_t>(0); // DW_LNS_COPY operands count. w->Write<uint8_t>(1); // DW_LNS_ADVANCE_PC operands count. w->Write<uint8_t>(1); // DW_LNS_ADVANCE_LINE operands count. w->Write<uint8_t>(1); // DW_LNS_SET_FILE operands count. w->Write<uint8_t>(1); // DW_LNS_SET_COLUMN operands count. w->Write<uint8_t>(0); // DW_LNS_NEGATE_STMT operands count. w->Write<uint8_t>(0); // Empty include_directories sequence. w->WriteString(desc_->GetFilename().get()); // File name. w->WriteULEB128(0); // Current directory. w->WriteULEB128(0); // Unknown modification time. w->WriteULEB128(0); // Unknown file size. w->Write<uint8_t>(0); prologue_length.set(static_cast<uint32_t>(w->position() - prologue_start)); WriteExtendedOpcode(w, DW_LNE_SET_ADDRESS, sizeof(intptr_t)); w->Write<intptr_t>(desc_->CodeStart()); w->Write<uint8_t>(DW_LNS_COPY); intptr_t pc = 0; intptr_t line = 1; bool is_statement = true; std::vector<LineInfo::PCInfo>* pc_info = desc_->lineinfo()->pc_info(); std::sort(pc_info->begin(), pc_info->end(), &ComparePCInfo); for (size_t i = 0; i < pc_info->size(); i++) { LineInfo::PCInfo* info = &pc_info->at(i); DCHECK(info->pc_ >= pc); // Reduce bloating in the debug line table by removing duplicate line // entries (per DWARF2 standard). intptr_t new_line = desc_->GetScriptLineNumber(info->pos_); if (new_line == line) { continue; } // Mark statement boundaries. For a better debugging experience, mark // the last pc address in the function as a statement (e.g. "}"), so that // a user can see the result of the last line executed in the function, // should control reach the end. if ((i + 1) == pc_info->size()) { if (!is_statement) { w->Write<uint8_t>(DW_LNS_NEGATE_STMT); } } else if (is_statement != info->is_statement_) { w->Write<uint8_t>(DW_LNS_NEGATE_STMT); is_statement = !is_statement; } // Generate special opcodes, if possible. This results in more compact // debug line tables. See the DWARF 2.0 standard to learn more about // special opcodes. uintptr_t pc_diff = info->pc_ - pc; intptr_t line_diff = new_line - line; // Compute special opcode (see DWARF 2.0 standard) intptr_t special_opcode = (line_diff - line_base) + (line_range * pc_diff) + opcode_base; // If special_opcode is less than or equal to 255, it can be used as a // special opcode. If line_diff is larger than the max line increment // allowed for a special opcode, or if line_diff is less than the minimum // line that can be added to the line register (i.e. line_base), then // special_opcode can't be used. if ((special_opcode >= opcode_base) && (special_opcode <= 255) && (line_diff <= max_line_incr) && (line_diff >= line_base)) { w->Write<uint8_t>(special_opcode); } else { w->Write<uint8_t>(DW_LNS_ADVANCE_PC); w->WriteSLEB128(pc_diff); w->Write<uint8_t>(DW_LNS_ADVANCE_LINE); w->WriteSLEB128(line_diff); w->Write<uint8_t>(DW_LNS_COPY); } // Increment the pc and line operands. pc += pc_diff; line += line_diff; } // Advance the pc to the end of the routine, since the end sequence opcode // requires this. w->Write<uint8_t>(DW_LNS_ADVANCE_PC); w->WriteSLEB128(desc_->CodeSize() - pc); WriteExtendedOpcode(w, DW_LNE_END_SEQUENCE, 0); total_length.set(static_cast<uint32_t>(w->position() - start)); return true; } private: void WriteExtendedOpcode(Writer* w, DWARF2ExtendedOpcode op, size_t operands_size) { w->Write<uint8_t>(0); w->WriteULEB128(operands_size + 1); w->Write<uint8_t>(op); } static bool ComparePCInfo(const LineInfo::PCInfo& a, const LineInfo::PCInfo& b) { if (a.pc_ == b.pc_) { if (a.is_statement_ != b.is_statement_) { return !b.is_statement_; } return false; } return a.pc_ < b.pc_; } CodeDescription* desc_; }; #if V8_TARGET_ARCH_X64 class UnwindInfoSection : public DebugSection { public: explicit UnwindInfoSection(CodeDescription* desc); virtual bool WriteBodyInternal(Writer* w); int WriteCIE(Writer* w); void WriteFDE(Writer* w, int); void WriteFDEStateOnEntry(Writer* w); void WriteFDEStateAfterRBPPush(Writer* w); void WriteFDEStateAfterRBPSet(Writer* w); void WriteFDEStateAfterRBPPop(Writer* w); void WriteLength(Writer* w, Writer::Slot<uint32_t>* length_slot, int initial_position); private: CodeDescription* desc_; // DWARF3 Specification, Table 7.23 enum CFIInstructions { DW_CFA_ADVANCE_LOC = 0x40, DW_CFA_OFFSET = 0x80, DW_CFA_RESTORE = 0xC0, DW_CFA_NOP = 0x00, DW_CFA_SET_LOC = 0x01, DW_CFA_ADVANCE_LOC1 = 0x02, DW_CFA_ADVANCE_LOC2 = 0x03, DW_CFA_ADVANCE_LOC4 = 0x04, DW_CFA_OFFSET_EXTENDED = 0x05, DW_CFA_RESTORE_EXTENDED = 0x06, DW_CFA_UNDEFINED = 0x07, DW_CFA_SAME_VALUE = 0x08, DW_CFA_REGISTER = 0x09, DW_CFA_REMEMBER_STATE = 0x0A, DW_CFA_RESTORE_STATE = 0x0B, DW_CFA_DEF_CFA = 0x0C, DW_CFA_DEF_CFA_REGISTER = 0x0D, DW_CFA_DEF_CFA_OFFSET = 0x0E, DW_CFA_DEF_CFA_EXPRESSION = 0x0F, DW_CFA_EXPRESSION = 0x10, DW_CFA_OFFSET_EXTENDED_SF = 0x11, DW_CFA_DEF_CFA_SF = 0x12, DW_CFA_DEF_CFA_OFFSET_SF = 0x13, DW_CFA_VAL_OFFSET = 0x14, DW_CFA_VAL_OFFSET_SF = 0x15, DW_CFA_VAL_EXPRESSION = 0x16 }; // System V ABI, AMD64 Supplement, Version 0.99.5, Figure 3.36 enum RegisterMapping { // Only the relevant ones have been added to reduce clutter. AMD64_RBP = 6, AMD64_RSP = 7, AMD64_RA = 16 }; enum CFIConstants { CIE_ID = 0, CIE_VERSION = 1, CODE_ALIGN_FACTOR = 1, DATA_ALIGN_FACTOR = 1, RETURN_ADDRESS_REGISTER = AMD64_RA }; }; void UnwindInfoSection::WriteLength(Writer* w, Writer::Slot<uint32_t>* length_slot, int initial_position) { uint32_t align = (w->position() - initial_position) % kPointerSize; if (align != 0) { for (uint32_t i = 0; i < (kPointerSize - align); i++) { w->Write<uint8_t>(DW_CFA_NOP); } } DCHECK_EQ((w->position() - initial_position) % kPointerSize, 0); length_slot->set(static_cast<uint32_t>(w->position() - initial_position)); } UnwindInfoSection::UnwindInfoSection(CodeDescription* desc) #ifdef __ELF : ELFSection(".eh_frame", TYPE_X86_64_UNWIND, 1), #else : MachOSection("__eh_frame", "__TEXT", sizeof(uintptr_t), MachOSection::S_REGULAR), #endif desc_(desc) { } int UnwindInfoSection::WriteCIE(Writer* w) { Writer::Slot<uint32_t> cie_length_slot = w->CreateSlotHere<uint32_t>(); uint32_t cie_position = static_cast<uint32_t>(w->position()); // Write out the CIE header. Currently no 'common instructions' are // emitted onto the CIE; every FDE has its own set of instructions. w->Write<uint32_t>(CIE_ID); w->Write<uint8_t>(CIE_VERSION); w->Write<uint8_t>(0); // Null augmentation string. w->WriteSLEB128(CODE_ALIGN_FACTOR); w->WriteSLEB128(DATA_ALIGN_FACTOR); w->Write<uint8_t>(RETURN_ADDRESS_REGISTER); WriteLength(w, &cie_length_slot, cie_position); return cie_position; } void UnwindInfoSection::WriteFDE(Writer* w, int cie_position) { // The only FDE for this function. The CFA is the current RBP. Writer::Slot<uint32_t> fde_length_slot = w->CreateSlotHere<uint32_t>(); int fde_position = static_cast<uint32_t>(w->position()); w->Write<int32_t>(fde_position - cie_position + 4); w->Write<uintptr_t>(desc_->CodeStart()); w->Write<uintptr_t>(desc_->CodeSize()); WriteFDEStateOnEntry(w); WriteFDEStateAfterRBPPush(w); WriteFDEStateAfterRBPSet(w); WriteFDEStateAfterRBPPop(w); WriteLength(w, &fde_length_slot, fde_position); } void UnwindInfoSection::WriteFDEStateOnEntry(Writer* w) { // The first state, just after the control has been transferred to the the // function. // RBP for this function will be the value of RSP after pushing the RBP // for the previous function. The previous RBP has not been pushed yet. w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); w->WriteULEB128(AMD64_RSP); w->WriteSLEB128(-kPointerSize); // The RA is stored at location CFA + kCallerPCOffset. This is an invariant, // and hence omitted from the next states. w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); w->WriteULEB128(AMD64_RA); w->WriteSLEB128(StandardFrameConstants::kCallerPCOffset); // The RBP of the previous function is still in RBP. w->Write<uint8_t>(DW_CFA_SAME_VALUE); w->WriteULEB128(AMD64_RBP); // Last location described by this entry. w->Write<uint8_t>(DW_CFA_SET_LOC); w->Write<uint64_t>( desc_->GetStackStateStartAddress(CodeDescription::POST_RBP_PUSH)); } void UnwindInfoSection::WriteFDEStateAfterRBPPush(Writer* w) { // The second state, just after RBP has been pushed. // RBP / CFA for this function is now the current RSP, so just set the // offset from the previous rule (from -8) to 0. w->Write<uint8_t>(DW_CFA_DEF_CFA_OFFSET); w->WriteULEB128(0); // The previous RBP is stored at CFA + kCallerFPOffset. This is an invariant // in this and the next state, and hence omitted in the next state. w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); w->WriteULEB128(AMD64_RBP); w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); // Last location described by this entry. w->Write<uint8_t>(DW_CFA_SET_LOC); w->Write<uint64_t>( desc_->GetStackStateStartAddress(CodeDescription::POST_RBP_SET)); } void UnwindInfoSection::WriteFDEStateAfterRBPSet(Writer* w) { // The third state, after the RBP has been set. // The CFA can now directly be set to RBP. w->Write<uint8_t>(DW_CFA_DEF_CFA); w->WriteULEB128(AMD64_RBP); w->WriteULEB128(0); // Last location described by this entry. w->Write<uint8_t>(DW_CFA_SET_LOC); w->Write<uint64_t>( desc_->GetStackStateStartAddress(CodeDescription::POST_RBP_POP)); } void UnwindInfoSection::WriteFDEStateAfterRBPPop(Writer* w) { // The fourth (final) state. The RBP has been popped (just before issuing a // return). // The CFA can is now calculated in the same way as in the first state. w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); w->WriteULEB128(AMD64_RSP); w->WriteSLEB128(-kPointerSize); // The RBP w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); w->WriteULEB128(AMD64_RBP); w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); // Last location described by this entry. w->Write<uint8_t>(DW_CFA_SET_LOC); w->Write<uint64_t>(desc_->CodeEnd()); } bool UnwindInfoSection::WriteBodyInternal(Writer* w) { uint32_t cie_position = WriteCIE(w); WriteFDE(w, cie_position); return true; } #endif // V8_TARGET_ARCH_X64 static void CreateDWARFSections(CodeDescription* desc, Zone* zone, DebugObject* obj) { if (desc->IsLineInfoAvailable()) { obj->AddSection(new(zone) DebugInfoSection(desc)); obj->AddSection(new(zone) DebugAbbrevSection(desc)); obj->AddSection(new(zone) DebugLineSection(desc)); } #if V8_TARGET_ARCH_X64 obj->AddSection(new(zone) UnwindInfoSection(desc)); #endif } // your_sha256_hash--- // Binary GDB JIT Interface as described in // path_to_url extern "C" { typedef enum { JIT_NOACTION = 0, JIT_REGISTER_FN, JIT_UNREGISTER_FN } JITAction; struct JITCodeEntry { JITCodeEntry* next_; JITCodeEntry* prev_; Address symfile_addr_; uint64_t symfile_size_; }; struct JITDescriptor { uint32_t version_; uint32_t action_flag_; JITCodeEntry* relevant_entry_; JITCodeEntry* first_entry_; }; // GDB will place breakpoint into this function. // To prevent GCC from inlining or removing it we place noinline attribute // and inline assembler statement inside. void __attribute__((noinline)) __jit_debug_register_code() { __asm__(""); } // GDB will inspect contents of this descriptor. // Static initialization is necessary to prevent GDB from seeing // uninitialized descriptor. JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 }; #ifdef OBJECT_PRINT void __gdb_print_v8_object(Object* object) { OFStream os(stdout); object->Print(os); os << std::flush; } #endif } static JITCodeEntry* CreateCodeEntry(Address symfile_addr, uintptr_t symfile_size) { JITCodeEntry* entry = static_cast<JITCodeEntry*>( malloc(sizeof(JITCodeEntry) + symfile_size)); entry->symfile_addr_ = reinterpret_cast<Address>(entry + 1); entry->symfile_size_ = symfile_size; MemCopy(entry->symfile_addr_, symfile_addr, symfile_size); entry->prev_ = entry->next_ = nullptr; return entry; } static void DestroyCodeEntry(JITCodeEntry* entry) { free(entry); } static void RegisterCodeEntry(JITCodeEntry* entry) { entry->next_ = __jit_debug_descriptor.first_entry_; if (entry->next_ != nullptr) entry->next_->prev_ = entry; __jit_debug_descriptor.first_entry_ = __jit_debug_descriptor.relevant_entry_ = entry; __jit_debug_descriptor.action_flag_ = JIT_REGISTER_FN; __jit_debug_register_code(); } static void UnregisterCodeEntry(JITCodeEntry* entry) { if (entry->prev_ != nullptr) { entry->prev_->next_ = entry->next_; } else { __jit_debug_descriptor.first_entry_ = entry->next_; } if (entry->next_ != nullptr) { entry->next_->prev_ = entry->prev_; } __jit_debug_descriptor.relevant_entry_ = entry; __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; __jit_debug_register_code(); } static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) { #ifdef __MACH_O Zone zone(isolate->allocator(), ZONE_NAME); MachO mach_o(&zone); Writer w(&mach_o); mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment, desc->CodeStart(), desc->CodeSize())); CreateDWARFSections(desc, &zone, &mach_o); mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); #else Zone zone(isolate->allocator(), ZONE_NAME); ELF elf(&zone); Writer w(&elf); int text_section_index = elf.AddSection( new(&zone) FullHeaderELFSection( ".text", ELFSection::TYPE_NOBITS, kCodeAlignment, desc->CodeStart(), 0, desc->CodeSize(), ELFSection::FLAG_ALLOC | ELFSection::FLAG_EXEC)); CreateSymbolsTable(desc, &zone, &elf, text_section_index); CreateDWARFSections(desc, &zone, &elf); elf.Write(&w); #endif return CreateCodeEntry(w.buffer(), w.position()); } struct AddressRange { Address start; Address end; }; struct SplayTreeConfig { typedef AddressRange Key; typedef JITCodeEntry* Value; static const AddressRange kNoKey; static Value NoValue() { return nullptr; } static int Compare(const AddressRange& a, const AddressRange& b) { // ptrdiff_t probably doesn't fit in an int. if (a.start < b.start) return -1; if (a.start == b.start) return 0; return 1; } }; const AddressRange SplayTreeConfig::kNoKey = {0, 0}; typedef SplayTree<SplayTreeConfig> CodeMap; static CodeMap* GetCodeMap() { static CodeMap* code_map = nullptr; if (code_map == nullptr) code_map = new CodeMap(); return code_map; } static uint32_t HashCodeAddress(Address addr) { static const uintptr_t kGoldenRatio = 2654435761u; uintptr_t offset = OffsetFrom(addr); return static_cast<uint32_t>((offset >> kCodeAlignmentBits) * kGoldenRatio); } static base::HashMap* GetLineMap() { static base::HashMap* line_map = nullptr; if (line_map == nullptr) { line_map = new base::HashMap(); } return line_map; } static void PutLineInfo(Address addr, LineInfo* info) { base::HashMap* line_map = GetLineMap(); base::HashMap::Entry* e = line_map->LookupOrInsert(addr, HashCodeAddress(addr)); if (e->value != nullptr) delete static_cast<LineInfo*>(e->value); e->value = info; } static LineInfo* GetLineInfo(Address addr) { void* value = GetLineMap()->Remove(addr, HashCodeAddress(addr)); return static_cast<LineInfo*>(value); } static void AddUnwindInfo(CodeDescription* desc) { #if V8_TARGET_ARCH_X64 if (desc->is_function()) { // To avoid propagating unwinding information through // compilation pipeline we use an approximation. // For most use cases this should not affect usability. static const int kFramePointerPushOffset = 1; static const int kFramePointerSetOffset = 4; static const int kFramePointerPopOffset = -3; uintptr_t frame_pointer_push_address = desc->CodeStart() + kFramePointerPushOffset; uintptr_t frame_pointer_set_address = desc->CodeStart() + kFramePointerSetOffset; uintptr_t frame_pointer_pop_address = desc->CodeEnd() + kFramePointerPopOffset; desc->SetStackStateStartAddress(CodeDescription::POST_RBP_PUSH, frame_pointer_push_address); desc->SetStackStateStartAddress(CodeDescription::POST_RBP_SET, frame_pointer_set_address); desc->SetStackStateStartAddress(CodeDescription::POST_RBP_POP, frame_pointer_pop_address); } else { desc->SetStackStateStartAddress(CodeDescription::POST_RBP_PUSH, desc->CodeStart()); desc->SetStackStateStartAddress(CodeDescription::POST_RBP_SET, desc->CodeStart()); desc->SetStackStateStartAddress(CodeDescription::POST_RBP_POP, desc->CodeEnd()); } #endif // V8_TARGET_ARCH_X64 } static base::LazyMutex mutex = LAZY_MUTEX_INITIALIZER; // Remove entries from the splay tree that intersect the given address range, // and deregister them from GDB. static void RemoveJITCodeEntries(CodeMap* map, const AddressRange& range) { DCHECK(range.start < range.end); CodeMap::Locator cur; if (map->FindGreatestLessThan(range, &cur) || map->FindLeast(&cur)) { // Skip entries that are entirely less than the range of interest. while (cur.key().end <= range.start) { // CodeMap::FindLeastGreaterThan succeeds for entries whose key is greater // than _or equal to_ the given key, so we have to advance our key to get // the next one. AddressRange new_key; new_key.start = cur.key().end; new_key.end = 0; if (!map->FindLeastGreaterThan(new_key, &cur)) return; } // Evict intersecting ranges. while (cur.key().start < range.end) { AddressRange old_range = cur.key(); JITCodeEntry* old_entry = cur.value(); UnregisterCodeEntry(old_entry); DestroyCodeEntry(old_entry); CHECK(map->Remove(old_range)); if (!map->FindLeastGreaterThan(old_range, &cur)) return; } } } // Insert the entry into the splay tree and register it with GDB. static void AddJITCodeEntry(CodeMap* map, const AddressRange& range, JITCodeEntry* entry, bool dump_if_enabled, const char* name_hint) { #if defined(DEBUG) && !V8_OS_WIN static int file_num = 0; if (FLAG_gdbjit_dump && dump_if_enabled) { static const int kMaxFileNameSize = 64; char file_name[64]; SNPrintF(Vector<char>(file_name, kMaxFileNameSize), "/tmp/elfdump%s%d.o", (name_hint != nullptr) ? name_hint : "", file_num++); WriteBytes(file_name, entry->symfile_addr_, static_cast<int>(entry->symfile_size_)); } #endif CodeMap::Locator cur; CHECK(map->Insert(range, &cur)); cur.set_value(entry); RegisterCodeEntry(entry); } static void AddCode(const char* name, Code* code, SharedFunctionInfo* shared, LineInfo* lineinfo) { DisallowHeapAllocation no_gc; CodeMap* code_map = GetCodeMap(); AddressRange range; range.start = code->address(); range.end = code->address() + code->CodeSize(); RemoveJITCodeEntries(code_map, range); CodeDescription code_desc(name, code, shared, lineinfo); if (!FLAG_gdbjit_full && !code_desc.IsLineInfoAvailable()) { delete lineinfo; return; } AddUnwindInfo(&code_desc); Isolate* isolate = code->GetIsolate(); JITCodeEntry* entry = CreateELFObject(&code_desc, isolate); delete lineinfo; const char* name_hint = nullptr; bool should_dump = false; if (FLAG_gdbjit_dump) { if (strlen(FLAG_gdbjit_dump_filter) == 0) { name_hint = name; should_dump = true; } else if (name != nullptr) { name_hint = strstr(name, FLAG_gdbjit_dump_filter); should_dump = (name_hint != nullptr); } } AddJITCodeEntry(code_map, range, entry, should_dump, name_hint); } void EventHandler(const v8::JitCodeEvent* event) { if (!FLAG_gdbjit) return; if (event->code_type != v8::JitCodeEvent::JIT_CODE) return; base::LockGuard<base::Mutex> lock_guard(mutex.Pointer()); switch (event->type) { case v8::JitCodeEvent::CODE_ADDED: { Address addr = reinterpret_cast<Address>(event->code_start); Code* code = Code::GetCodeFromTargetAddress(addr); LineInfo* lineinfo = GetLineInfo(addr); EmbeddedVector<char, 256> buffer; StringBuilder builder(buffer.start(), buffer.length()); builder.AddSubstring(event->name.str, static_cast<int>(event->name.len)); // It's called UnboundScript in the API but it's a SharedFunctionInfo. SharedFunctionInfo* shared = event->script.IsEmpty() ? nullptr : *Utils::OpenHandle(*event->script); AddCode(builder.Finalize(), code, shared, lineinfo); break; } case v8::JitCodeEvent::CODE_MOVED: // Enabling the GDB JIT interface should disable code compaction. UNREACHABLE(); break; case v8::JitCodeEvent::CODE_REMOVED: // Do nothing. Instead, adding code causes eviction of any entry whose // address range intersects the address range of the added code. break; case v8::JitCodeEvent::CODE_ADD_LINE_POS_INFO: { LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); line_info->SetPosition(static_cast<intptr_t>(event->line_info.offset), static_cast<int>(event->line_info.pos), event->line_info.position_type == v8::JitCodeEvent::STATEMENT_POSITION); break; } case v8::JitCodeEvent::CODE_START_LINE_INFO_RECORDING: { v8::JitCodeEvent* mutable_event = const_cast<v8::JitCodeEvent*>(event); mutable_event->user_data = new LineInfo(); break; } case v8::JitCodeEvent::CODE_END_LINE_INFO_RECORDING: { LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); break; } } } #endif } // namespace GDBJITInterface } // namespace internal } // namespace v8 ```
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- 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 --> <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> <concept id="parquet_read_page_index"> <title>PARQUET_READ_PAGE_INDEX Query Option</title> <titlealts audience="PDF"> <navtitle>PARQUET READ PAGE INDEX</navtitle> </titlealts> <prolog> <metadata> <data name="Category" value="Impala"/> <data name="Category" value="Impala Query Options"/> <data name="Category" value="Parquet"/> <data name="Category" value="Developers"/> <data name="Category" value="Data Analysts"/> </metadata> </prolog> <conbody> <p> Use the <codeph>PARQUET_READ_PAGE_INDEX</codeph> query option to disable or enable using the Parquet page index during scans. The page index contains min/max statistics at the page-level granularity. It can be used to skip pages and rows that do not match the conditions in the <codeph>WHERE</codeph> clause. </p> <p> This option enables the same optimization as the <codeph>PARQUET_READ_STATISTICS</codeph> at the finer grained page level. </p> <p> Impala supports filtering based on Parquet statistics: </p> <ul> <li> Of the types: Boolean, Integer, Decimal, String, Timestamp </li> <li> For simple predicates of the forms: <codeph>&lt;slot> &lt;op> &lt;constant></codeph> or <codeph>&lt;constant> &lt;op> &lt;slot></codeph>, where <codeph>&lt;op></codeph> is LT, LE, GE, GT, and EQ </li> </ul> <p> The supported values for the query option are: <ul> <li> <codeph>true</codeph> (<codeph>1</codeph>): Read the page-level statistics from the Parquet page index during query processing and filter out pages based on the statistics. </li> <li> <codeph>false</codeph> (<codeph>0</codeph>): Do not use the Parquet page index. </li> <li> Any other values are treated as <codeph>false</codeph>. </li> </ul> </p> <p> <b>Type:</b> Boolean </p> <p> <b>Default:</b> <codeph>TRUE</codeph> </p> </conbody> </concept> ```
```c /* xmtx.c -- mutex support for VC++ */ #include "xmtx.h" #include <awint.h> #if !_MULTI_THREAD #else /* !_MULTI_THREAD */ /* Win32 critical sections are recursive */ void __CLRCALL_PURE_OR_CDECL _Mtxinit(_Rmtx *_Mtx) { /* initialize mutex */ __crtInitializeCriticalSectionEx(_Mtx, 4000, 0); } void __CLRCALL_PURE_OR_CDECL _Mtxdst(_Rmtx *_Mtx) { /* delete mutex */ DeleteCriticalSection(_Mtx); } _RELIABILITY_CONTRACT void __CLRCALL_PURE_OR_CDECL _Mtxlock(_Rmtx *_Mtx) { /* lock mutex */ #ifdef _M_CEE System::Threading::Thread::BeginThreadAffinity(); #endif /* _M_CEE */ EnterCriticalSection(_Mtx); } _RELIABILITY_CONTRACT void __CLRCALL_PURE_OR_CDECL _Mtxunlock(_Rmtx *_Mtx) { /* unlock mutex */ LeaveCriticalSection(_Mtx); #ifdef _M_CEE System::Threading::Thread::EndThreadAffinity(); #endif /* _M_CEE */ } #endif /* !_MULTI_THREAD */ /* * Consult your license regarding permissions and restrictions. V6.50:0009 */ ```
```java /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.thingsboard.server.common.data.device.profile; public enum AlarmConditionSpecType { SIMPLE, DURATION, REPEATING } ```
Jennifer Baumgardner (born 1970) is a writer, activist, filmmaker, and lecturer whose work explores abortion, sex, bisexuality, rape, single parenthood, and women's power. From 2013 to 2017, she served as the Executive Director/Publisher at The Feminist Press at the City University of New York (CUNY), a feminist institution founded by Florence Howe in 1970. She is most known for her contribution to the development of third-wave feminism. Early and personal life Baumgardner grew up in Fargo, North Dakota, the middle of three daughters. She attended Lawrence University in Appleton, Wisconsin, graduating in 1992. While at Lawrence, she helped organize an anti-war "Guerrilla Theater," led a feminist group on campus, and co-founded an alternative newspaper called The Other that focused on intersectional issues of liberation. She moved to New York City after graduation and in 1993 began working as an unpaid intern for Ms. magazine. By 1997 she had become the youngest editor at Ms. While working at Ms., Baumgardner fell in love with a female intern, Anastasia. They broke up in 1996, but the relationship inspired her to write the memoir Look Both Ways: Bisexual Politics. In 1997 she began dating Amy Ray of the Indigo Girls; the couple broke up in 2002. She currently lives in New York with her husband Michael and two sons, Skuli and Magnus. Mid life Baumgardner left Ms. in 1998 and began writing independently for magazines and news organizations, including the New York Times and NPR. She has since written for numerous magazines, including Glamour, The Nation, Babble, More, and Maxim. Her books include Manifesta: Young Women, Feminism and the Future, Grassroots: A Field Guide for Feminist Activism written with Amy Richards, and Look Both Ways: Bisexual Politics. In 2004 she produced the documentary film Speak Out: I Had an Abortion, which tells the story of ten women's abortion experiences from the 1920s to the present, including the reproductive justice architect Loretta Ross, feminist and journalist Gloria Steinem, and activist Florence Rice. She has written about purity balls (rituals celebrating virginity), Catholic hospitals taking over secular ones and eliminating their reproductive services, rape, and breastfeeding her friend's son. Baumgardner's work has been featured on shows from The Oprah Winfrey Show to NPR's Talk of the Nation, as well as in the New York Times, BBC News Hour, Bitch, and various other venues. She has keynoted at more than 250 universities, organizations, and conferences, including the National Coalition of Abortion Providers, Amherst College, Take Back The Night UW-Madison, and the New Jersey Women and Gender Studies Consortium. In 2003, the Commonwealth Club of California hailed her in their centennial year as one of six "Visionaries for the 21st Century," commenting that "in her role as author and activist, [Jennifer has] permanently changed the way people think about feminism...and will shape the next 100 years of politics and culture." Contribution to Third Wave Feminism Through public appearances, books, articles, and film, Baumgardner promoted a positive, matter-of-fact, and accessible approach to speaking publicly about controversial issues—which she referred to as "common-but-silenced"—such as abortion, rape, and sexuality. Called "dependably attentive to the gray areas around divisive issues," this "simple" approach also elicits criticism of her work from feminists and other who find her "off-puttingly naive". In her 2009 collection of essays entitled F 'em: Goo Goo, Gaga, and Some Thoughts on Balls, Baumgardner described the Third Wave she helped to define and represent: Overview of major works Manifesta: Young Women, Feminism, and the Future (2000) On October 4, 2000 Baumgardner and Amy Richards published their first co-authored book Manifesta: Young Women, Feminism and the Future. Speaking directly to young third wave feminists, Baumgardner and Richards wrote the book to inspire women of the current generation to consciously embrace the liberation of today while remembering the work of previous feminist generations, writing: Consciousness among women is what caused this [change], and consciousness, one's ability to open their (sic) mind to the fact that male domination does affect the women of our generation, is what we need... The presence of feminism in our lives is taken for granted. For our generation, feminism is like fluoride. We scarcely notice we have it—it's simply in the water. Prologue: A Day Without Feminism In the prologue of Manifesta, the two authors recall the most vital achievements of women's liberation, which can be credited to the 2nd Wave of Feminists of the 1960s, 70s and 80s. Both of the authors, Baumgardner and Richards, were profoundly influenced by feminism from an early age, as both of their mothers took part in consciousness-raising groups, and Baumgardner's went even further to participate in the staged laundry strikes. So both of these authors are asking the audience to figuratively jump on a time machine and go back to the 1970s for a day. The purpose of this is to see exactly what the 2nd Wave feminists have succeeded in changing in a male-dominant patriarchal society, and what so many now take for granted - including the 3rd Wave feminists. The authors are aiming their point towards all future feminists (particularly 3rd wave), who are often in conflict with the previous generation of feminists. The tension comes from the belief that 2nd Wave is exclusively white-middle class and over essentialist in the view of femininity. This conflict has led to an almost ideological split between the two factions, but Manifesta's prologue allows for the justification of the 2nd wave's actions. If 2nd Wave feminists not precipitated society to what it was for the 3rd Wave feminists, who knows how the power struggle might have unfolded. This is not taking away anything from the authors' identified group—the 3rd Wave feminists, it is just reminding all of the current feminists, not to criticize what they do not completely know or understand. The accomplishments of the previous generations can never be taken for granted, their success came from radical action which pushed the limits in every segment of society. They did what was deemed reasonably possible, and what the white-male patriarchal society would accept. From their success sprouts and blossoms another movement—the 3rd wave. Society was ready for this movement, people were ready to change the norms of white-male dominance, hence 3rd Wave can manifest in the success of the 2nd Wave, not treat it as its enemy. The two authors just want more harmony within the bigger picture. Throughout the book the authors traces feminism's evolution from the First Wave suffragette movement to the Third Wave feminism of today, all the while encouraging readers to continue the feminist fight of previous generations. Who are feminists and what is feminism? Baumgardner and Richards ask the fundamental but often overlooked questions, "who are the feminists?" and "what is feminism?" They cut to the foundational questions framing contemporary and past feminist movements in order to expose the stereotypes, inaccuracies, or misconceptions that derail and devalue the movement. This goal not only contributes to an established canon of third-wave feminist literature, but also makes the movement more appealing to young women who are misled by negative or stereotypical media and popular culture representations of feminism. They start with foundational definitions of what feminism means to them, invoking politically and socially conscious women and men. They clarify that there is no one formal alliance composed of "the feminists," but instead, feminism is a fluid alliance among individual citizens. This definition displays the differences between how a movement may appear on the surface—cohesive and homogeneous—and how it actually is internally. This disparity may be positive, and lend weight to feminist struggles, but it may also be negative, when the movement as a whole is judged based on the actions of one or a few individual(s). The authors argue that the latter disparity demonstrates the oppressed status of women and feminist activists, as a whole group is easily reduced to one or a few individuals, particularly in media, which disseminates this incomplete illusion. The authors use matter of fact language to address their next question: what exactly is feminism? Feminism is not only a movement for social, political, and economic equality among men and women, but also requires the freedom to access information and education. Race and ethnicity are key to the modern feminist movement. This natural partnership also invokes the fight for gay rights. Feminism involves men and women of diverse ethnicities and sexual orientations united with the goal to liberate all individuals. It is a movement with the very clear goals of social and political change. This change is epitomized by engagement with government and the law, in addition to broader societal norms and practices. Beyond this foundational definition of feminism, there exists ample elasticity for women to define feminism according to their personal experiences. Because the lived experiences of women are so diverse, feminism itself must accommodate for these differences. However, because of this fluidity, some modern women in prominent leadership positions have uneasy public relationships with feminism. The authors cite the example of G. E. executive Sam Allison, who sits on the board of The Women's Center in Milwaukee, and claims that she is not a feminist, she is just an "advocate to end violence against women." The modern-day example would be Facebook COO Sheryl Sandberg proclaiming that her book, Lean In, "is not a feminist manifesto — okay, it is sort of a feminist manifesto" (Hoedel, 2013, para. 10). These are two examples of the authors' assertions that issues separated from their feminist roots become depoliticized, and the fundamental causes of a particular societal problem are obscured. For example, the problem for Sandberg is an absence of women "leaning in" to positions of workplace leadership. This and other issues of economic development need to unequivocally identified as feminist issues in order to be dealt with equitably and effectively. Grassroots: A Field Guide for Feminist Activism (2004) After the critical and commercial success of Manifesta Baumgardner co-authored yet another book with Amy Richards entitled Grassroots: A Field Guide for Feminist Activism which was published in January, 2005. The purpose of the book was to provide a "handbook" for social activism and to help readers answer the social justice question: What can I do? Based on the authors' own experiences, and the stories of both the large number of activists they work with as well as the countless everyday people they have encountered over the years, Grassroots encourages people to move beyond the "generic three" (check writing, contacting congressional representatives, and volunteering) and make a difference with clear guidelines and models for activism. The authors draw heavily on individual stories as examples, inspiring readers to recognize the tools right in front of them—be it the office copier or the family living room—in order to make change. Activism is accessible to all, and Grassroots shows how anyone, no matter how much or little time they have to offer, can create a world that more clearly reflects their values. Look Both Ways: Bisexual Politics (2007) On February 20, 2007, Baumgardner published Look Both Ways: Bisexual Politics, the first book she had written without the co-authorship of Amy Richards. In Look Both Ways, Baumgardner takes a close look at the growing visibility of gay and bisexual characters, performers, and issues on the national cultural stage. Despite the prevalence of bisexuality among Generation X and Y women, she finds that it continues to be marginalized by both gay and straight cultures, and dismissed either as a phase or a cop-out. Woven in between her cultural commentary, Baumgardner discusses her own experience as a bisexual, and the struggle she's undergone to reconcile the privilege she's garnered as a woman who is perceived as straight and the empowerment and satisfaction she's derived from her relationships with women. The book was a finalist for the Lambda Literary Award for Bisexual Literature. Abortion & Life (2008) In October 2008, Baumgardner published Abortion & Life (Akashic), which attempted to reckon with the unease that even people within pro-choice circles feel about abortion with personal portraits, chapters on history, and an assertion that one could be pro-life and a feminist. Noted for its candor and lack of defensiveness, the book stated that "abortion is the result, not the cause, of social problems." Activism Soapbox, Inc. Speakers Who Speak Out Soapbox, Inc. is a non-profit feminist organization started by Baumgardner and Amy Richards in 2002. Baumgardner and Richards formed the organization with the purpose of providing a national platform for spreading their activist message. Since its creation in 2002 Soapbox, Inc. has come to represent dozens of authors, scholars, speakers, and artists at the forefront of feminist politics, and has developed a client base of more than 500 schools and organizations, including Planned Parenthood, St. Thomas University, Unitarian Universalist Association, University of Pennsylvania, and Shoreline Community College. In 2007, they devised an innovative way of "bringing the campus to the speakers" with the creation of Soapbox Feminist Boot Camps . These week-long intensives immerse participants (of all ages and genders) in the practice of feminism and exposes the myriad of issues, approaches, organizations, and individuals that are the lifeblood of the movement. Currently these boot camps are the largest feminist immersion programs in the country. The "I Had an Abortion" Project (2004) In 2004, Baumgardner created the "I Had an Abortion" project to encourage women (and men) to "come out" about their procedures. The campaign included t-shirts that said "I had an abortion," a film (made with Gillian Aldrich) documenting women's stories of abortion, a book, and a photo exhibit. The film features ten different women—one of which being famous feminist Gloria Steinem—openly speaking about their abortion experiences spanning over seven decades from the years prior to Roe vs. Wade to present day. On the "I Had an Abortion" film website Baumgardner writes about her involvement with the campaign, saying: The "It Was Rape" Project (2008) After the success of the "I Had an Abortion" campaign Baumgardner began spearheading the "I Was Raped" project in 2008. She later changed the name to "It was Rape." Modeled after the 2004 abortion campaign, the project encouraged men and women to "come out" about their experiences with sexual assault, and included the production and distribution of "I was raped" t-shirts and a 2013 film, It Was Rape, documenting the stories of individuals who had experienced sexual assault in their lifetimes. In a 2008 interview with Scarleteen, Baumgardner spoke about the campaign, remarking "The 'It Was Rape' Project is a documentary, t-shirt campaign, and resources designed to A) highlight the prevalence of rape in our culture and B) interrupt the silence and shame that surrounds it. The goal of this project is to add nuance to the cultural conversation around rape. The reality of rape is more subtle than the preconceptions suggest. The act of rape—as well as the emotions and reactions of the raped—fall somewhere outside of the black-and-white roles of perpetrator and victim. The current things we have in place for justice are also inadequate, since the vast majority of rape victims don't want to or choose not to press charges. The aim of this documentary is to highlight these issues, as well as to give rape survivors a voice." Personal life She lives in New York City with her husband, two sons, and two cats. Selected bibliography Books Baumgardner, Jennifer; Kunin, Madeleine M.. (2013). We Do: American Leaders who Believe in Marriage Equality: Akashic Books. Films Speak Out: I Had an Abortion (2005) Co-Producer It Was Rape (2013) Director, Producer Articles See also The left and feminism New social movements References External links Official website The Third Wave Foundation Interview with Jennifer Baumgardner and Amy Richards Activist Mamas: An Interview With Jennifer Baumgardner and Amy Richards article by Amy Anderson in mamazine published January 15, 2006 Looking both ways with Jennifer Baumgardner article by Mandy Van Deven in feministing published April 16, 2007 Look Both Ways: Baumgardner Makes Bisexuality Visible article by Eleanor J. Bader in AlterNet published March 7, 2007 All women are bi like me, journalist says book review by Susan Comninos in the San Francisco Chronicle published March 4, 2007 Can You Be a Feminist and Anti-Abortion? article by Mandy Van Deven in AlterNet published September 25, 2008 Jennifer Baumgardner papers at the Sophia Smith Collections, Smith College Special Collections 1970 births American feminists Bisexual feminists Bisexual women writers Lawrence University alumni LGBT people from North Dakota Living people Writers from New York City Writers from Fargo, North Dakota American women writers Fourth-wave feminism 21st-century American women writers American bisexual writers 21st-century American women academics
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <dataset> <metadata> <column name="relid"/> <column name="schemaname"/> <column name="relname"/> <column name="seq_scan"/> <column name="seq_tup_read"/> <column name="idx_scan"/> <column name="idx_tup_fetch"/> <column name="n_tup_ins"/> <column name="n_tup_upd"/> <column name="n_tup_del"/> <column name="n_tup_hot_upd"/> <column name="n_live_tup"/> <column name="n_dead_tup"/> <column name="last_vacuum"/> <column name="last_autovacuum"/> <column name="last_analyze"/> <column name="last_autoanalyze"/> <column name="vacuum_count"/> <column name="autovacuum_count"/> <column name="analyze_count"/> <column name="autoanalyze_count"/> <column name="last_data_changed"/> </metadata> </dataset> ```
```python # your_sha256_hash___________ # # Pyomo: Python Optimization Modeling Objects # National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain # rights in this software. # your_sha256_hash___________ import pyomo.core.beta.dict_objects import pyomo.core.beta.list_objects ```
```java package com.reactnativenavigation.react; public interface NavigationDevBundleDownloadListener { void onSuccess(); } ```
```objective-c /* * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef VTTRegionList_h #define VTTRegionList_h #include "bindings/core/v8/ScriptWrappable.h" #include "core/html/track/vtt/VTTRegion.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" #include "wtf/Vector.h" namespace blink { class VTTRegionList final : public RefCountedWillBeGarbageCollected<VTTRegionList>, public ScriptWrappable { DEFINE_WRAPPERTYPEINFO(); public: static PassRefPtrWillBeRawPtr<VTTRegionList> create() { return adoptRefWillBeNoop(new VTTRegionList()); } unsigned long length() const; VTTRegion* item(unsigned index) const; VTTRegion* getRegionById(const String&) const; void add(PassRefPtrWillBeRawPtr<VTTRegion>); bool remove(VTTRegion*); DECLARE_TRACE(); private: VTTRegionList(); WillBeHeapVector<RefPtrWillBeMember<VTTRegion>> m_list; }; } // namespace blink #endif // VTTRegionList_h ```
```haskell -- editorconfig-checker-disable-file {-# LANGUAGE ApplicativeDo #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RecordWildCards #-} module Main (main) where import PlutusTx.Options qualified as O import Control.Lens import Data.Map qualified as Map import Data.Text (Text) import Data.Text qualified as Text import Data.Text.IO qualified as Text import Options.Applicative qualified as OA import Prettyprinter import PyF (fmt) newtype Params = Params {paramOutputFile :: Text} parseParams :: OA.Parser Params parseParams = do paramOutputFile <- OA.argument OA.str $ mconcat [ OA.metavar "OUTPUT_FILE" , OA.help "Output file path" ] pure Params{..} main :: IO () main = do params <- OA.execParser $ OA.info (parseParams OA.<**> OA.helper) (OA.fullDesc <> OA.header "Generate plugin option documentation") Text.writeFile (Text.unpack $ paramOutputFile params) optionsTable optionsTable :: Text optionsTable = Text.stripStart $ [fmt| --- sidebar_position: 5 --- # Plutus Tx compiler options <!--- This file is generated by running plutus-tx-plugin:gen-plugin-opts-doc. Do NOT modify by hand. ---> These options can be passed to the compiler via the `OPTIONS_GHC` pragma, for instance ``` haskell {{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:dump-uplc #-}} {{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:max-simplifier-iterations-uplc=3 #-}} ``` For each boolean option, you can add a `no-` prefix to switch it off, such as `no-typecheck`, `no-simplifier-beta`. |Option|Value Type|Default|Description| |-|-|-|-| {Text.unlines $ uncurry genRow <$> Map.toList O.pluginOptions} |] genRow :: O.OptionKey -> O.PluginOption -> Text genRow k (O.PluginOption tr _ field desc _) = [fmt||`{k}`|{show tr}|{show (pretty defaultValue)}|{desc}||] where defaultValue = O.defaultPluginOptions ^. field ```
On October 31, 1870, a popular insurrection occupied Paris's City Hall (Hôtel de Ville). Amidst the Franco-Prussian War, Parisians simultaneously heard of losses at Le Bourget and Metz alongside armstice negotiations. Incensed by what they viewed as treason, a group of 300 to 400 demonstrated at the City Hall and members of the left-wing National Guard captured and occupied the building with several members of the Government of National Defense inside. Causes Parisians were exasperated by the defeat which occurred at Le Bourget on October 30, 1870. Parisian soldiers had succeeded on October 28 to capture the village of Le Bourget, near Paris, despite the encirclement of the capital by German troops. However, the Germans counter-attacked and retook the village. Moreover, on October 27, the government denied any rumors of capitulation of the French army, which had 100,000 men intact. Lastly, Parisians learned that the government had sent Adolphe Thiers to negotiate an armistice at Versailles with Otto von Bismarck, and they had felt betrayed. Uprising On October 31, 1870, Charles Delescluze called for the proclamation of a Commune as well as a mass uprising. That morning, working-class people from Paris' eastern neighborhoods, mixed with people from the National Guard and the bourgeois, gathered at the Place de L'Hotel de Ville. It was a spontaneous republican demonstration, without a plan set in advance. References Bibliography Rebellions in France October 1870 events Events in Paris Franco-Prussian War
The United States Sanitary Commission (USSC) was a private relief agency created by federal legislation on June 18, 1861, to support sick and wounded soldiers of the United States Army (Federal / Northern / Union Army) during the American Civil War. It operated across the North, raised an estimated $25 million in Civil War era revenue (assuming 1865 dollars, $ million in ) and in-kind contributions to support the cause, and enlisted thousands of volunteers. The president was Henry Whitney Bellows, and Frederick Law Olmsted acted as executive secretary. It was modeled on the British Sanitary Commission, set up during the Crimean War (1853-1856), and from the British parliamentary report published after the Indian Rebellion of 1857 ("Sepoy Rebellion"). History Henry Whitney Bellows, (1814-1882), a Massachusetts clergyman, planned the USSC and served as its only president. According to The Wall Street Journal, "its first executive secretary was Frederick Law Olmsted, (1822-1903), the famed landscape architect who designed New York's Central Park". George Templeton Strong, (1820-1875), New York lawyer and diarist, helped found the commission and served as treasurer and member of the executive committee. In June 1861, the Sanitary Commission set up its central office inside the United States Treasury Building, just east of the Executive Mansion (now the White House), on Pennsylvania Avenue and 15th Street in central Washington, D.C. By late October 1861, the USSC Central Office and the U.S. War Department had received detailed studies and reports from the Sanitary Inspectors of more than four hundred regimental camp inspections. The rapidly crowded events of those first six months of the war displayed the sheer gravity of the situation in which the adjustment to the means and agencies were desperately needed to ensure a high health-rate in all those untrained Union Army regiments. Immediately following the First Battle of Bull Run in July 1861, the first orders and receipts submitted to the Central Office began to arrive from the military Union Army hospitals at Alexandria, Virginia, and Washington, D.C., requesting water-beds, small tables for writing in bed, iron wire cradles for protecting wounded limbs, dominoes, checkerboards, Delphinium and hospital gowns for the wounded. The demands of the war soon required more frequent decision-making. This led to the creation of the Standing Committee, which met on a nearly daily basis in New York City where most of its members resided. The Standing Committee initially consisted of five commissioners who retained their position for the entire war: Henry W. Bellows, George Templeton Strong, William H. Van Buren, M.D., Cornelius R. Agnew, M.D., and Wolcott Gibbs, M.D. In addition to setting up and staffing hospitals, the USSC operated 30 soldiers' homes, lodges, or rest houses for traveling or disabled Union soldiers. Most of these closed shortly after the war. Also active in the association was Colonel Leavitt Hunt, (1831-1907), a New York lawyer and pioneering photographer. In January 1864, he wrote to 16th President Abraham Lincoln's secretary John George Nicolay asking that Nicolay forward him any documents he might have available with the President's signature. Hunt's mother, the widow of Vermont congressman Jonathan Hunt, planned to attach Lincoln's signature to copies of several casts of the President's hand, to be sold to raise funds for the war effort. Other fund raising events included the famous 50 pound sack of flour that was auctioned off by Reuel Colt Gridley. By auctioning off the same sack of flour, which was then re-donated to be sold again, Gridley eventually raised more than $250,000.00 for the Sanitary Commission. States could use their own tax money to supplement the Commission's work, as Ohio did. Under the energetic leadership of Governor David Tod, a War Democrat who won office on a coalition "Union Party" ticket with Republicans, Ohio acted vigorously. Following the unexpected carnage at the Battle of Shiloh in April 1862, it sent three steamboats to the scene as floating hospitals with doctors, nurses and medical supplies. The state fleet expanded to eleven hospital ships. The state also set up 12 local offices in main transportation nodes to help Ohio soldiers moving back and forth. The government constructed the Pension Building in Washington, DC to handle all the staff to process the pension requests and administer them. It is now listed on the National Register of Historic Places. After the war, the USSC volunteers continued to work with Union Army veterans to secure their bounties, back pay, and apply for pensions. It supported the "health and hygiene" of the veterans. They had a Department of General Relief which accepted donations for veterans, too. The USSC organization was finally disbanded in May 1866. Women in the USSC Arising from a meeting in New York City of the Women's Central Relief Association of New York, the organization was also inspired by the British Sanitary Commission of the Crimean War. The American volunteers raised money (estimated at $25 million), collected donations, made uniforms, worked as nurses, ran kitchens in army camps, and administered hospital ships, soldiers' homes, lodges, and rests for traveling or disabled soldiers. They organized Sanitary Fairs in numerous cities to support the Federal army with funds and supplies, and to raise funds for the work of the USSC. Women who were prominent in the organization, often traveling great distances, and working in harsh conditions, included Louisa May Alcott, Almira Fales, Eliza Emily Chappell Porter, Katherine Prescott Wormeley, and many others. Dorothea Dix, serving as the commission's superintendent, convinced the medical corps of the value of women working in their hospitals. Over 15,000 women volunteered to work in hospitals, usually in nursing care. They assisted surgeons during procedures, gave medicines, supervised the feedings and cleaned the bedding and clothes. They gave good cheer, wrote letters the men dictated, and comforted the dying. A representative nurse was Helen L. Gilson (1835–68) of Chelsea, Massachusetts, who served in Sanitary Commission. She supervised supplies, dressed wounds, and cooked special foods for patients on a limited diet. She worked in hospitals after the battles of Antietam, Fredericksburg, Chancellorsville, Gettysburg. She was a successful administrator, especially at the hospital for black soldiers at City Point, Virginia. The middle-class women who volunteered provided vitally needed nursing services and were rewarded with a sense of patriotism and civic duty in addition to the opportunity to demonstrate their skills and gain new ones, while receiving wages and sharing the hardships of the men. Mary Livermore, Mary Ann Bickerdyke, and Annie Wittenmeyer played leadership roles. After the war some nurses wrote memoirs of their experiences; examples include Dix, Livermore, Sarah Palmer Young, and Sarah Emma Edmonds. Bridget Diver also worked for the Commission. Sanitary Fairs From the outset, many local groups sponsored fund-raising events to benefit the Commission. As the war progressed, these became larger and more elaborate Sanitary Fairs. One of the first events was in Lowell, Massachusetts, 1863. Groups in other cities soon adopted this plan. Organizing these Sanitary Fairs offered ways for local communities to be directly part of supporting the war effort of the nation. The largest Sanitary Fair during the war was held in Chicago in 1863. Chicago held a second sanitary fair in 1865. Notable members Louisa May Alcott served as a nurse for the Sanitary Commission at a Union Army Hospital in Georgetown. Martia L. Davis Berry raised supplies for the Great Northwestern Sanitary Fair (Chicago, 1865), receiving medal No. 15 for her services Mary Ann Bickerdyke served as a nurse for the Sanitary Commission and is credited with establishing 300 field hospitals during the Civil War Henry Whitney Bellows served as the President of the Commission. Atherton Blight, served as a Director of the Commission. Samuel Howe served as a Director of the Commission. Mary Livermore led the Northwestern Branch of the Sanitary Commission John Strong Newberry Frederick Law Olmsted served as the Executive Secretary of the Sanitary Commission. George Templeton Strong was Treasurer of the Commission Mary Tileston Hemenway was a philanthropist who helped to fund the Commission. Legacy The U.S. Sanitary Commission is memorialized by a group of re-enactors who portray the Boston branch of the commission at various civic events, educational programs, and Civil War re-enactments. The group is based out of the Greater Boston area of Massachusetts. Gallery See also United States Christian Commission, a similar organization Western Sanitary Commission, a smaller rival based in St. Louis Hospital Ships of the Sanitary Commission Notes References Further reading Attie, Jeanie. Patriotic Toil: Northern Women and the American Civil War (1998), focus on the Sanitary Commission online edition Bremner, Robert Hamlett. The Public Good: Philanthropy and Welfare in the Civil War Era. New York: Knopf, 1980. Brockett, Linus Pierpont. The Philanthropic Results of the War in America. New York: Sheldon & Co., 1864. Catalogue of the Department of Arms and Trophies Donated and Exhibited at the Northwestern Sanitary Fair, Held at Chicago, Illinois, May 30th to June 21st, 1865 including United States Flags Carried in Different Battles, Captured Rebel Flags, Autographs, Photographs, Etc. Chicago: Rounds and James, 1865. Catalogue of Paintings, Statuary, Etc. Exhibited for the Benefit of Ladies' North-Western Fair, In Aid of the Chicago Branch of the U.S. Sanitary Commission, For the Relief of Soldiers. Chicago, 1863. Coatsworth, Stella S. The Loyal People of the North-West, A Record of Prominent Persons, Places and Events, During Eight Years of Unparalleled American History. Chicago: Church, Goodman & Donnelley, 1869. Giesberg, Judith Ann. Civil War Sisterhood: The U.S. Sanitary Commission and Women's Politics in Transition (2006) Gordon, Beverly. "A Furor of Benevolence." Chicago History 15, no. 4 (1986): 48–65. Martin, Justin. Genius of Place: The Life of Frederick Law Olmsted (2011) pp 178–230 Maxwell, William Quentin. Lincoln's Fifth Wheel: The Political History of the U.S. Sanitary Commission (1956) online edition Olmsted, Frederick Law. The Papers of Frederick Law Olmsted. Vol. 4: Defending the Union: The Civil War and the U.S. Sanitary Commission, 1861-1863 (1986) excerpt and text search Schnell, Christopher J. "Mary Livermore and the Great Northwestern Fair." Chicago History 4, no. 1 (1975): 34–43. Tise, Pam. "A Fragile Legacy: The Contributions of Women in the United States Sanitary Commission to the United States Administrative State" (Applied research project). Texas State University. (2013) Mark Twain in his book "Roughing It" has a small section, Chapter 43, on the activities of the Commission in Virginia City, NV. External links United States Sanitary Commission records, 1861-1879 (bulk 1861-1872), held by the Manuscripts and Archives Division, New York Public Library The United States Sanitary Commission Philadelphia Branch collection, containing materials on several humanitarian efforts made by the association during the Civil War, are available for research use at the Historical Society of Pennsylvania. List of 30 USSC soldiers' homes, lodges, and rests in 25 cities in 15 states North and South in 1865. 1861 establishments in the United States 1866 disestablishments in the United States Government agencies established in 1861 Organizations disestablished in 1866 Veterans' affairs in the United States Old soldiers' homes in the United States
The Happiness Hypothesis: Finding Modern Truth in Ancient Wisdom is a 2006 psychology book written by Jonathan Haidt for a general audience. In it, Haidt poses several "Great Ideas" on happiness espoused by thinkers of the past—Plato, Buddha, Jesus, and others—and examines them in the light of contemporary psychological research, extracting from them any lessons that still apply to our modern lives. Central to the book are the concepts of virtue, happiness, fulfillment, and meaning. Summary of chapters The introduction first explains that the author's goal is to reduce the infinite 'wisdom' accessible to modern people into 10 great ideas, one per chapter. The remainder of the Introduction provides a concise preview of those ten chapters as follows. The first chapter describes how each person has two parts: the primitive part, which includes our basic instincts; and the highly evolved part, which tries to control the instincts. This effort to control our instincts is shown in chapter two to tend to cause us too much worry, but various techniques, such as meditation, might be employed to detach the worrier from his worries. The third chapter goes to the relationship of the individual to other individuals by beginning with the Golden Rule of doing unto others as you would have them do unto you. This leads in the fourth chapter to a description of the tendency that people have of seeing faults in others more readily than in themselves, which by simply realizing we might go to some length to rectify and thus come closer to living by the Golden Rule. By the fifth chapter, at the halfway point of the book, Haidt introduces the notion of the Happiness Hypothesis. The Happiness Hypothesis could be that happiness comes from within, as Buddha said, or could be that happiness comes from outside. Haidt argues in Chapter Six that the truth might lie between the two extremes and contends that love depends on more than the self and is crucial to happiness. The seventh chapter asks whether adversity is essential to happiness and provides a nuanced answer which is that it depends on your stage in life. Achieving happiness is a complex process which includes acting virtuously, and Haidt claims in chapter eight that behaving virtuously means to do as Aristotle said and to develop your strengths and realize your native potential. Chapter nine extends the idea that a person's happiness benefits from living virtuously by noting that some feeling of divinity helps where divinity comes through a life-long practice of moral actions. Chapter ten takes this idea of a life-long practice yet further and contends that a happy life is one where you get the relationships right between yourself and others, yourself and your work, and between your work and something larger than yourself—you feel a sense of purpose. Ch.1: The divided self Haidt looks at a number of ways of dividing the self that have existed since ancient times: mind vs body left brain vs. right brain (lateralisation of brain function) old brain vs. new brain (frontal cortex) controlled vs. automatic Haidt focuses on this last division, between the conscious/reasoned processes and automatic/implicit processes. His metaphor is a rider on the back of an elephant in which the conscious mind is the rider and the unconscious mind is the elephant. The rider is unable to control the elephant by force: this explains many puzzles about our mental life, particularly why we have such trouble with weakness of will. Learning how to train the elephant is the secret of self-improvement. Ch.2: Changing your mind The automatic emotional reactions of the "elephant" (affective priming) guide us throughout our lives. People even tend to choose mates, and professions, whose names resemble their own. Though there is a bias towards negativity, some people are optimists and others pessimists. Haidt discusses three ways of changing those automatic reactions: (1) meditation, (2) cognitive therapy, and (3) SSRI medications such as Prozac. Ch.3: Reciprocity with a vengeance Many species have a social life, but among mammals, only humans in particular are ultra-social—able to live in very large cooperative groups. The Golden Rule, supplemented with gossip, is the secret of our success. Calling on Robert Cialdini's "six weapons of influence," Haidt describes ways in which understanding the deep workings of reciprocity can help to solve problems in our social lives and guard against the many ways that we can be manipulated. Ch.4: The faults of others Part of our ultra-sociality is that we are constantly trying to manipulate others' perceptions of ourselves, without realizing that we are doing so. As Jesus said, we see the faults of others clearly, but are blind to our own. ("Why do you see the speck in your neighbour's eye, but do not notice the log in your own eye?") Haidt looks at what social psychology has to say about this, beginning with the work of Daniel Batson on cheating and self-justification, mentioning Robert Wright's description of our "constitutional ignorance" of hypocrisy in The Moral Animal, and moving on to work by Deanna Kuhn and David Perkins on confirmation bias and Roy Baumeister's work on "The Myth of Pure Evil." Haidt then discusses ways of taking off "the moral glasses" and seeing the world as it really is. Ch.5: The pursuit of happiness It is a common idea that happiness comes from within and can't be found in external things. For a while in the 1990s, psychologists agreed with ancient sages (such as Buddha and Epictetus) that external conditions are not what matter. However, Haidt argues that we now know that some external circumstances do matter. He identifies ways of improving happiness by altering these, including spending money well, and argues that the Western emphasis on action and striving is not without merit. Ch.6: Love and attachments There are many kinds of love, but, Haidt asserts, they all begin to make sense when you see where love comes from, and what it does. To do this he examines John Bowlby's World Health Organization-sponsored study and report, "Maternal Care and Mental Health" in 1950, and the subsequent work with monkeys by Harry Harlow. Understanding the different kinds of love, he writes, can help explain why people make so many mistakes with love, and why philosophers hate love and give us bad advice about it. Ch.7: The uses of adversity Nietzsche wrote, "What doesn't kill me makes me stronger," but this is not true for everyone; adversity may result in post-traumatic stress disorder. Haidt discusses how and why some people grow from their suffering, along with ways of improving one's chances of finding post-traumatic growth. Adversity at the right time in life, as Robert Sternberg's research on wisdom shows, can make people more compassionate and better able to balance the needs of self and others. Ch.8: The felicity of virtue Taking Benjamin Franklin as an example, Haidt looks at how success can follow virtue, in the broad sense of virtue that goes back to the Ancient Greek arete, excellence. The ancients, according to Haidt, had a sophisticated psychological understanding of virtue, using maxims, fables and role-models to train "the elephant," the automatic responses of the individual. Though the beginnings of Western virtue lie in Homer, Aesop and the Old Testament, the modern understanding of it has much to do with the arguments of Kant (the categorical imperative) and Bentham (utilitarianism). With these came a shift from character ethics to quandary ethics, from moral education to moral reasoning. To address the question of how a common morality can be forged in a diverse society, Haidt turns to positive psychology, specifically to Seligman and Peterson's work on virtues and strengths. Ch.9: Divinity with or without God Using the metaphor of Flatland, Haidt argues that the perception of sacredness and divinity are two basic features of the human mind; the emotions of disgust, moral elevation, and awe tell us about this dimension, but not everybody listens. The "religious right" can only be understood by acknowledging this dimension, which most liberals and secular thinkers ignore or misunderstand. The work of William James and of Abraham Maslow (on "peak experiences") shows ways in which this dimension is also relevant to the non-religious. Ch.10: Happiness comes from between Haidt discusses "the meaning of life," making the distinction between a purpose for life and a purpose within life. Love and work give a sense of meaning to life. A study by Mihaly Csikszentmihalyi, Howard Gardner and William Damon established the concept of "vital engagement" which characterises work with the most sense of purpose. "Cross-level coherence" within one's self and life is also vital, coherence between the physical, psychological and sociocultural levels. Haidt argues that religion is an evolved mechanism for creating this coherence. Ch.11: On balance Haidt concludes by arguing that the ancient idea of Yin and Yang turns out to be the wisest idea of all. We need, he writes, the perspectives of ancient religion and modern science; of east and west; even of liberal and conservative. "Words of wisdom really do flood over us, but only by drawing from many sources can we become wise." Reception The Happiness Hypothesis received positive reviews. Daniel Nettle, reviewing the book in Nature, accepted its central premise of a "striking similarity between the advice of the ancients on how to live, and the thoughts of modern psychologists on how to have a healthy mind." He was impressed by the breadth of Haidt's grasp of modern behavioural science, and found the book "by some margin the most intellectually substantial book to arise from the 'positive psychology' movement." James Flint concluded his review of the book in The Guardian saying, "I don't think I've ever read a book that laid out the contemporary understanding of the human condition with such simple clarity and sense." Christopher Hart writing in The Times described the book as "humane, witty and comforting...brilliantly synthesising ancient cultural insights with modern psychology." See also Happiness Positive psychology References External links www.happinesshypothesis.com – author's website Happiness Popular psychology books 2006 non-fiction books Works by Jonathan Haidt
```javascript const ipc = Electron.ipcRenderer import FileTreeClient from 'file-tree-client' import transport from 'file-tree-client-transport-electron' export const fileTreeController = new FileTreeClient(transport(ipc)) import select from './plugins/select' import expand from './plugins/expand' import context from './plugins/context' export const PLUGINS = [select, expand, context] export const getTrackedFiles = () => { const {tree, metadata} = fileTreeController return fileTreeController.filter(node => { const itemMetadata = metadata[node.path] return node.type === 'file' && !(itemMetadata && itemMetadata.ignoredByGit) }) } ```
```c /* * */ #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <zephyr/bluetooth/hci_types.h> #include <zephyr/sys/byteorder.h> #include "hal/cpu.h" #include "hal/ccm.h" #include "hal/radio.h" #include "hal/ticker.h" #include "util/util.h" #include "util/mem.h" #include "util/memq.h" #include "util/mfifo.h" #include "util/mayfly.h" #include "util/dbuf.h" #include "ticker/ticker.h" #include "pdu_df.h" #include "pdu_vendor.h" #include "pdu.h" #include "lll.h" #include "lll_vendor.h" #include "lll_clock.h" #include "lll_adv_types.h" #include "lll_adv.h" #include "lll_adv_pdu.h" #include "lll_adv_aux.h" #include "lll_adv_sync.h" #include "lll_df_types.h" #include "lll_conn.h" #include "lll_chan.h" #include "lll_filter.h" #include "lll_internal.h" #include "lll_tim_internal.h" #include "lll_adv_internal.h" #include "lll_prof_internal.h" #include "lll_df_internal.h" #include "hal/debug.h" #define PDU_FREE_TIMEOUT K_SECONDS(5) static int init_reset(void); static void pdu_free_sem_give(void); #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) static inline void adv_extra_data_release(struct lll_adv_pdu *pdu, int idx); static void *adv_extra_data_allocate(struct lll_adv_pdu *pdu, uint8_t last); static int adv_extra_data_free(struct lll_adv_pdu *pdu, uint8_t last); static void extra_data_free_sem_give(void); #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ static int prepare_cb(struct lll_prepare_param *p); static int is_abort_cb(void *next, void *curr, lll_prepare_cb_t *resume_cb); static void abort_cb(struct lll_prepare_param *prepare_param, void *param); static void isr_tx(void *param); static void isr_rx(void *param); static void isr_done(void *param); static void isr_abort(void *param); static struct pdu_adv *chan_prepare(struct lll_adv *lll); static inline int isr_rx_pdu(struct lll_adv *lll, uint8_t devmatch_ok, uint8_t devmatch_id, uint8_t irkmatch_ok, uint8_t irkmatch_id, uint8_t rssi_ready); static bool isr_rx_sr_adva_check(uint8_t tx_addr, uint8_t *addr, struct pdu_adv *sr); static inline bool isr_rx_ci_tgta_check(struct lll_adv *lll, uint8_t rx_addr, uint8_t *tgt_addr, struct pdu_adv *ci, uint8_t rl_idx); static inline bool isr_rx_ci_adva_check(uint8_t tx_addr, uint8_t *addr, struct pdu_adv *ci); #if defined(CONFIG_BT_CTLR_ADV_EXT) #define PAYLOAD_BASED_FRAG_COUNT \ DIV_ROUND_UP(CONFIG_BT_CTLR_ADV_DATA_LEN_MAX, \ PDU_AC_PAYLOAD_SIZE_MAX) #define PAYLOAD_FRAG_COUNT \ MAX(PAYLOAD_BASED_FRAG_COUNT, BT_CTLR_DF_PER_ADV_CTE_NUM_MAX) #define BT_CTLR_ADV_AUX_SET CONFIG_BT_CTLR_ADV_AUX_SET #if defined(CONFIG_BT_CTLR_ADV_PERIODIC) #define BT_CTLR_ADV_SYNC_SET CONFIG_BT_CTLR_ADV_SYNC_SET #else /* !CONFIG_BT_CTLR_ADV_PERIODIC */ #define BT_CTLR_ADV_SYNC_SET 0 #endif /* !CONFIG_BT_CTLR_ADV_PERIODIC */ #else #define PAYLOAD_BASED_FRAG_COUNT 1 #define PAYLOAD_FRAG_COUNT (PAYLOAD_BASED_FRAG_COUNT) #define BT_CTLR_ADV_AUX_SET 0 #define BT_CTLR_ADV_SYNC_SET 0 #endif #define PDU_MEM_SIZE PDU_ADV_MEM_SIZE /* AD data and Scan Response Data need 2 PDU buffers each in the double buffer * implementation. Allocate 3 PDU buffers plus CONFIG_BT_CTLR_ADV_DATA_BUF_MAX * defined buffer count as the minimum number of buffers that meet the legacy * advertising needs. Add 1 each for Extended and Periodic Advertising, needed * extra for double buffers for these is kept as configurable, by increasing * CONFIG_BT_CTLR_ADV_DATA_BUF_MAX. */ #define PDU_MEM_COUNT_MIN (((BT_CTLR_ADV_SET) * 3) + \ ((BT_CTLR_ADV_AUX_SET) * \ PAYLOAD_BASED_FRAG_COUNT)) /* Maximum advertising PDU buffers to allocate, which is the sum of minimum * plus configured additional count in CONFIG_BT_CTLR_ADV_DATA_BUF_MAX. */ #if defined(CONFIG_BT_CTLR_ADV_EXT) #if defined(CONFIG_BT_CTLR_ADV_PERIODIC) /* NOTE: When Periodic Advertising is supported then one chain of PDU buffers * plus the additional CONFIG_BT_CTLR_ADV_DATA_BUF_MAX amount of chain * buffers is allocated. * Set CONFIG_BT_CTLR_ADV_DATA_BUF_MAX to (BT_CTLR_ADV_AUX_SET + * BT_CTLR_ADV_SYNC_SET) if PDU data is updated more frequently compare to * the advertising interval with random delay included. */ #define PDU_MEM_COUNT_MAX ((PDU_MEM_COUNT_MIN) + \ ((BT_CTLR_ADV_SYNC_SET) * \ PAYLOAD_FRAG_COUNT) + \ (CONFIG_BT_CTLR_ADV_DATA_BUF_MAX * \ PAYLOAD_FRAG_COUNT)) #else /* !CONFIG_BT_CTLR_ADV_PERIODIC */ /* NOTE: When Extended Advertising is supported but no Periodic Advertising * then additional CONFIG_BT_CTLR_ADV_DATA_BUF_MAX amount of chain buffers * is allocated. * Set CONFIG_BT_CTLR_ADV_DATA_BUF_MAX to BT_CTLR_ADV_AUX_SET if * PDU data is updated more frequently compare to the advertising * interval with random delay included. */ #define PDU_MEM_COUNT_MAX (PDU_MEM_COUNT_MIN + \ (CONFIG_BT_CTLR_ADV_DATA_BUF_MAX * \ PAYLOAD_BASED_FRAG_COUNT)) #endif /* !CONFIG_BT_CTLR_ADV_PERIODIC */ #else /* !CONFIG_BT_CTLR_ADV_EXT */ /* NOTE: When Extended Advertising is not supported then * CONFIG_BT_CTLR_ADV_DATA_BUF_MAX is restricted to 1 in Kconfig file. */ #define PDU_MEM_COUNT_MAX (PDU_MEM_COUNT_MIN + CONFIG_BT_CTLR_ADV_DATA_BUF_MAX) #endif /* !CONFIG_BT_CTLR_ADV_EXT */ /* FIFO element count, that returns the consumed advertising PDUs (AD and Scan * Response). 1 each for primary channel PDU (AD and Scan Response), plus one * each for Extended Advertising and Periodic Advertising times the number of * chained fragments that would get returned. */ #define PDU_MEM_FIFO_COUNT ((BT_CTLR_ADV_SET) + 1 + \ ((BT_CTLR_ADV_AUX_SET) * \ PAYLOAD_BASED_FRAG_COUNT) + \ ((BT_CTLR_ADV_SYNC_SET) * \ PAYLOAD_FRAG_COUNT)) #define PDU_POOL_SIZE (PDU_MEM_SIZE * PDU_MEM_COUNT_MAX) /* Free AD data PDU buffer pool */ static struct { void *free; uint8_t pool[PDU_POOL_SIZE]; } mem_pdu; /* FIFO to return stale AD data PDU buffers from LLL to thread context */ static MFIFO_DEFINE(pdu_free, sizeof(void *), PDU_MEM_FIFO_COUNT); /* Semaphore to wakeup thread waiting for free AD data PDU buffers */ static struct k_sem sem_pdu_free; #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) #if defined(CONFIG_BT_CTLR_DF_ADV_CTE_TX) #define EXTRA_DATA_MEM_SIZE MROUND(sizeof(struct lll_df_adv_cfg)) #else #define EXTRA_DATA_MEM_SIZE 0 #endif /* CONFIG_BT_CTLR_DF_ADV_CTE_TX */ /* ToDo check if number of fragments is not smaller than number of CTE * to be transmitted. Pay attention it would depend on the chain PDU storage * * Currently we can send only single CTE with AUX_SYNC_IND. * Number is equal to allowed adv sync sets * 2 (double buffering). */ #define EXTRA_DATA_MEM_COUNT (BT_CTLR_ADV_SYNC_SET * PAYLOAD_FRAG_COUNT + 1) #define EXTRA_DATA_MEM_FIFO_COUNT (EXTRA_DATA_MEM_COUNT * 2) #define EXTRA_DATA_POOL_SIZE (EXTRA_DATA_MEM_SIZE * EXTRA_DATA_MEM_COUNT * 2) /* Free extra data buffer pool */ static struct { void *free; uint8_t pool[EXTRA_DATA_POOL_SIZE]; } mem_extra_data; /* FIFO to return stale extra data buffers from LLL to thread context. */ static MFIFO_DEFINE(extra_data_free, sizeof(void *), EXTRA_DATA_MEM_FIFO_COUNT); static struct k_sem sem_extra_data_free; #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ int lll_adv_init(void) { int err; #if defined(CONFIG_BT_CTLR_ADV_EXT) #if (BT_CTLR_ADV_AUX_SET > 0) err = lll_adv_aux_init(); if (err) { return err; } #endif /* BT_CTLR_ADV_AUX_SET > 0 */ #if defined(CONFIG_BT_CTLR_ADV_PERIODIC) err = lll_adv_sync_init(); if (err) { return err; } #endif /* CONFIG_BT_CTLR_ADV_PERIODIC */ #endif /* CONFIG_BT_CTLR_ADV_EXT */ err = init_reset(); if (err) { return err; } return 0; } int lll_adv_reset(void) { int err; #if defined(CONFIG_BT_CTLR_ADV_EXT) #if (BT_CTLR_ADV_AUX_SET > 0) err = lll_adv_aux_reset(); if (err) { return err; } #endif /* BT_CTLR_ADV_AUX_SET > 0 */ #if defined(CONFIG_BT_CTLR_ADV_PERIODIC) err = lll_adv_sync_reset(); if (err) { return err; } #endif /* CONFIG_BT_CTLR_ADV_PERIODIC */ #endif /* CONFIG_BT_CTLR_ADV_EXT */ err = init_reset(); if (err) { return err; } return 0; } int lll_adv_data_init(struct lll_adv_pdu *pdu) { struct pdu_adv *p; p = mem_acquire(&mem_pdu.free); if (!p) { return -ENOMEM; } #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) PDU_ADV_NEXT_PTR(p) = NULL; #endif /* CONFIG_BT_CTLR_ADV_PDU_LINK */ p->len = 0U; pdu->pdu[0] = (void *)p; return 0; } int lll_adv_data_reset(struct lll_adv_pdu *pdu) { /* NOTE: this function is used on HCI reset to mem-zero the structure * members that otherwise was zero-ed by the architecture * startup code that zero-ed the .bss section. * pdu[0] element in the array is not initialized as subsequent * call to lll_adv_data_init will allocate a PDU buffer and * assign that. */ pdu->first = 0U; pdu->last = 0U; pdu->pdu[1] = NULL; #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) /* Both slots are NULL because the extra_memory is allocated only * on request. Not every advertising PDU includes extra_data. */ pdu->extra_data[0] = NULL; pdu->extra_data[1] = NULL; #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ return 0; } int lll_adv_data_dequeue(struct lll_adv_pdu *pdu) { uint8_t first; void *p; first = pdu->first; if (first == pdu->last) { return -ENOMEM; } p = pdu->pdu[first]; pdu->pdu[first] = NULL; mem_release(p, &mem_pdu.free); first++; if (first == DOUBLE_BUFFER_SIZE) { first = 0U; } pdu->first = first; return 0; } int lll_adv_data_release(struct lll_adv_pdu *pdu) { uint8_t last; void *p; last = pdu->last; p = pdu->pdu[last]; if (p) { pdu->pdu[last] = NULL; mem_release(p, &mem_pdu.free); } last++; if (last == DOUBLE_BUFFER_SIZE) { last = 0U; } p = pdu->pdu[last]; if (p) { pdu->pdu[last] = NULL; mem_release(p, &mem_pdu.free); } return 0; } struct pdu_adv *lll_adv_pdu_alloc(struct lll_adv_pdu *pdu, uint8_t *idx) { uint8_t first, last; void *p; /* TODO: Make this unique mechanism to update last element in double * buffer a reusable utility function. */ first = pdu->first; last = pdu->last; if (first == last) { /* Return the index of next free PDU in the double buffer */ last++; if (last == DOUBLE_BUFFER_SIZE) { last = 0U; } } else { uint8_t first_latest; /* LLL has not consumed the first PDU. Revert back the `last` so * that LLL still consumes the first PDU while the caller of * this function updates/modifies the latest PDU. * * Under race condition: * 1. LLL runs before `pdu->last` is reverted, then `pdu->first` * has changed, hence restore `pdu->last` and return index of * next free PDU in the double buffer. * 2. LLL runs after `pdu->last` is reverted, then `pdu->first` * will not change, return the saved `last` as the index of * the next free PDU in the double buffer. */ pdu->last = first; cpu_dmb(); first_latest = pdu->first; if (first_latest != first) { pdu->last = last; last++; if (last == DOUBLE_BUFFER_SIZE) { last = 0U; } } } *idx = last; p = (void *)pdu->pdu[last]; if (p) { return p; } p = lll_adv_pdu_alloc_pdu_adv(); pdu->pdu[last] = (void *)p; return p; } struct pdu_adv *lll_adv_pdu_alloc_pdu_adv(void) { struct pdu_adv *p; int err; p = MFIFO_DEQUEUE_PEEK(pdu_free); if (p) { k_sem_reset(&sem_pdu_free); MFIFO_DEQUEUE(pdu_free); #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) PDU_ADV_NEXT_PTR(p) = NULL; #endif return p; } p = mem_acquire(&mem_pdu.free); if (p) { #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) PDU_ADV_NEXT_PTR(p) = NULL; #endif return p; } err = k_sem_take(&sem_pdu_free, PDU_FREE_TIMEOUT); LL_ASSERT(!err); k_sem_reset(&sem_pdu_free); p = MFIFO_DEQUEUE(pdu_free); LL_ASSERT(p); #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) PDU_ADV_NEXT_PTR(p) = NULL; #endif return p; } #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) void lll_adv_pdu_linked_release_all(struct pdu_adv *pdu_first) { struct pdu_adv *pdu = pdu_first; while (pdu) { struct pdu_adv *pdu_next; pdu_next = PDU_ADV_NEXT_PTR(pdu); PDU_ADV_NEXT_PTR(pdu) = NULL; mem_release(pdu, &mem_pdu.free); pdu = pdu_next; } } #endif struct pdu_adv *lll_adv_pdu_latest_get(struct lll_adv_pdu *pdu, uint8_t *is_modified) { uint8_t first; first = pdu->first; if (first != pdu->last) { uint8_t free_idx; uint8_t pdu_idx; void *p; pdu_idx = first; p = pdu->pdu[pdu_idx]; do { void *next; /* Store partial list in current data index if there is * no free slot in mfifo. It can be released on next * switch attempt (on next event). */ if (!MFIFO_ENQUEUE_IDX_GET(pdu_free, &free_idx)) { break; } #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) next = lll_adv_pdu_linked_next_get(p); #else next = NULL; #endif MFIFO_BY_IDX_ENQUEUE(pdu_free, free_idx, p); pdu_free_sem_give(); p = next; } while (p); /* If not all PDUs where released into mfifo, keep the list in * current data index, to be released on the next switch * attempt. */ pdu->pdu[pdu_idx] = p; /* Progress to next data index */ first += 1U; if (first == DOUBLE_BUFFER_SIZE) { first = 0U; } pdu->first = first; *is_modified = 1U; } return (void *)pdu->pdu[first]; } #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) int lll_adv_and_extra_data_init(struct lll_adv_pdu *pdu) { struct pdu_adv *p; void *extra_data; p = mem_acquire(&mem_pdu.free); if (!p) { return -ENOMEM; } #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) PDU_ADV_NEXT_PTR(p) = NULL; #endif /* CONFIG_BT_CTLR_ADV_PDU_LINK */ pdu->pdu[0] = (void *)p; extra_data = mem_acquire(&mem_extra_data.free); if (!extra_data) { return -ENOMEM; } pdu->extra_data[0] = extra_data; return 0; } int lll_adv_and_extra_data_release(struct lll_adv_pdu *pdu) { uint8_t last; void *p; last = pdu->last; p = pdu->pdu[last]; pdu->pdu[last] = NULL; mem_release(p, &mem_pdu.free); adv_extra_data_release(pdu, last); last++; if (last == DOUBLE_BUFFER_SIZE) { last = 0U; } p = pdu->pdu[last]; if (p) { pdu->pdu[last] = NULL; mem_release(p, &mem_pdu.free); } adv_extra_data_release(pdu, last); return 0; } struct pdu_adv *lll_adv_pdu_and_extra_data_alloc(struct lll_adv_pdu *pdu, void **extra_data, uint8_t *idx) { struct pdu_adv *p; p = lll_adv_pdu_alloc(pdu, idx); if (extra_data) { *extra_data = adv_extra_data_allocate(pdu, *idx); } else { if (adv_extra_data_free(pdu, *idx)) { /* There is no release of memory allocated by * adv_pdu_allocate because there is no memory leak. * If caller can recover from this error and subsequent * call to this function occurs, no new memory will be * allocated. adv_pdu_allocate will return already * allocated memory. */ return NULL; } } return p; } struct pdu_adv *lll_adv_pdu_and_extra_data_latest_get(struct lll_adv_pdu *pdu, void **extra_data, uint8_t *is_modified) { uint8_t first; first = pdu->first; if (first != pdu->last) { uint8_t pdu_free_idx; uint8_t ed_free_idx; void *ed; uint8_t pdu_idx; void *p; pdu_idx = first; p = pdu->pdu[pdu_idx]; ed = pdu->extra_data[pdu_idx]; do { void *next; /* Store partial list in current data index if there is * no free slot in mfifo. It can be released on next * switch attempt (on next event). */ if (!MFIFO_ENQUEUE_IDX_GET(pdu_free, &pdu_free_idx)) { pdu->pdu[pdu_idx] = p; return NULL; } #if defined(CONFIG_BT_CTLR_ADV_PDU_LINK) next = lll_adv_pdu_linked_next_get(p); #else next = NULL; #endif MFIFO_BY_IDX_ENQUEUE(pdu_free, pdu_free_idx, p); pdu_free_sem_give(); p = next; } while (p); pdu->pdu[pdu_idx] = NULL; if (ed && (!MFIFO_ENQUEUE_IDX_GET(extra_data_free, &ed_free_idx))) { /* No pdu_free_idx clean up is required, sobsequent * calls to MFIFO_ENQUEUE_IDX_GET return the same * index to memory that is in limbo state. */ return NULL; } first += 1U; if (first == DOUBLE_BUFFER_SIZE) { first = 0U; } pdu->first = first; *is_modified = 1U; pdu->pdu[pdu_idx] = NULL; if (ed) { pdu->extra_data[pdu_idx] = NULL; MFIFO_BY_IDX_ENQUEUE(extra_data_free, ed_free_idx, ed); extra_data_free_sem_give(); } } if (extra_data) { *extra_data = pdu->extra_data[first]; } return (void *)pdu->pdu[first]; } #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ void lll_adv_prepare(void *param) { int err; err = lll_hfclock_on(); LL_ASSERT(err >= 0); err = lll_prepare(is_abort_cb, abort_cb, prepare_cb, 0, param); LL_ASSERT(!err || err == -EINPROGRESS); } bool lll_adv_scan_req_check(struct lll_adv *lll, struct pdu_adv *sr, uint8_t tx_addr, uint8_t *addr, uint8_t devmatch_ok, uint8_t *rl_idx) { #if defined(CONFIG_BT_CTLR_PRIVACY) return ((((lll->filter_policy & BT_LE_ADV_FP_FILTER_SCAN_REQ) == 0) && ull_filter_lll_rl_addr_allowed(sr->tx_addr, sr->scan_req.scan_addr, rl_idx)) || (((lll->filter_policy & BT_LE_ADV_FP_FILTER_SCAN_REQ) != 0) && (devmatch_ok || ull_filter_lll_irk_in_fal(*rl_idx)))) && isr_rx_sr_adva_check(tx_addr, addr, sr); #else return (((lll->filter_policy & BT_LE_ADV_FP_FILTER_SCAN_REQ) == 0U) || devmatch_ok) && isr_rx_sr_adva_check(tx_addr, addr, sr); #endif /* CONFIG_BT_CTLR_PRIVACY */ } #if defined(CONFIG_BT_CTLR_SCAN_REQ_NOTIFY) int lll_adv_scan_req_report(struct lll_adv *lll, struct pdu_adv *pdu_adv_rx, uint8_t rl_idx, uint8_t rssi_ready) { struct node_rx_pdu *node_rx; node_rx = ull_pdu_rx_alloc_peek(3); if (!node_rx) { return -ENOBUFS; } ull_pdu_rx_alloc(); /* Prepare the report (scan req) */ node_rx->hdr.type = NODE_RX_TYPE_SCAN_REQ; node_rx->hdr.handle = ull_adv_lll_handle_get(lll); node_rx->rx_ftr.rssi = (rssi_ready) ? radio_rssi_get() : BT_HCI_LE_RSSI_NOT_AVAILABLE; #if defined(CONFIG_BT_CTLR_PRIVACY) node_rx->rx_ftr.rl_idx = rl_idx; #endif ull_rx_put_sched(node_rx->hdr.link, node_rx); return 0; } #endif /* CONFIG_BT_CTLR_SCAN_REQ_NOTIFY */ bool lll_adv_connect_ind_check(struct lll_adv *lll, struct pdu_adv *ci, uint8_t tx_addr, uint8_t *addr, uint8_t rx_addr, uint8_t *tgt_addr, uint8_t devmatch_ok, uint8_t *rl_idx) { /* LL 4.3.2: filter policy shall be ignored for directed adv */ if (tgt_addr) { #if defined(CONFIG_BT_CTLR_PRIVACY) return ull_filter_lll_rl_addr_allowed(ci->tx_addr, ci->connect_ind.init_addr, rl_idx) && #else return (1) && #endif isr_rx_ci_adva_check(tx_addr, addr, ci) && isr_rx_ci_tgta_check(lll, rx_addr, tgt_addr, ci, *rl_idx); } #if defined(CONFIG_BT_CTLR_PRIVACY) return ((((lll->filter_policy & BT_LE_ADV_FP_FILTER_CONN_IND) == 0) && ull_filter_lll_rl_addr_allowed(ci->tx_addr, ci->connect_ind.init_addr, rl_idx)) || (((lll->filter_policy & BT_LE_ADV_FP_FILTER_CONN_IND) != 0) && (devmatch_ok || ull_filter_lll_irk_in_fal(*rl_idx)))) && isr_rx_ci_adva_check(tx_addr, addr, ci); #else return (((lll->filter_policy & BT_LE_ADV_FP_FILTER_CONN_IND) == 0) || (devmatch_ok)) && isr_rx_ci_adva_check(tx_addr, addr, ci); #endif /* CONFIG_BT_CTLR_PRIVACY */ } /* Helper function to initialize data variable both at power up and on * HCI reset. */ static int init_reset(void) { /* Initialize AC PDU pool */ mem_init(mem_pdu.pool, PDU_MEM_SIZE, (sizeof(mem_pdu.pool) / PDU_MEM_SIZE), &mem_pdu.free); /* Initialize AC PDU free buffer return queue */ MFIFO_INIT(pdu_free); #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) /* Initialize extra data pool */ mem_init(mem_extra_data.pool, EXTRA_DATA_MEM_SIZE, (sizeof(mem_extra_data.pool) / EXTRA_DATA_MEM_SIZE), &mem_extra_data.free); /* Initialize extra data free buffer return queue */ MFIFO_INIT(extra_data_free); k_sem_init(&sem_extra_data_free, 0, EXTRA_DATA_MEM_FIFO_COUNT); #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ /* Initialize semaphore for ticker API blocking wait */ k_sem_init(&sem_pdu_free, 0, PDU_MEM_FIFO_COUNT); return 0; } #if defined(CONFIG_BT_CTLR_ZLI) static void mfy_pdu_free_sem_give(void *param) { ARG_UNUSED(param); k_sem_give(&sem_pdu_free); } static void pdu_free_sem_give(void) { static memq_link_t link; static struct mayfly mfy = {0, 0, &link, NULL, mfy_pdu_free_sem_give}; /* Ignore mayfly_enqueue failure on repeated enqueue call */ (void)mayfly_enqueue(TICKER_USER_ID_LLL, TICKER_USER_ID_ULL_HIGH, 0, &mfy); } #else /* !CONFIG_BT_CTLR_ZLI */ static void pdu_free_sem_give(void) { k_sem_give(&sem_pdu_free); } #endif /* !CONFIG_BT_CTLR_ZLI */ #if defined(CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY) static void *adv_extra_data_allocate(struct lll_adv_pdu *pdu, uint8_t last) { void *extra_data; int err; extra_data = pdu->extra_data[last]; if (extra_data) { return extra_data; } extra_data = MFIFO_DEQUEUE_PEEK(extra_data_free); if (extra_data) { err = k_sem_take(&sem_extra_data_free, K_NO_WAIT); LL_ASSERT(!err); MFIFO_DEQUEUE(extra_data_free); pdu->extra_data[last] = extra_data; return extra_data; } extra_data = mem_acquire(&mem_extra_data.free); if (extra_data) { pdu->extra_data[last] = extra_data; return extra_data; } err = k_sem_take(&sem_extra_data_free, PDU_FREE_TIMEOUT); LL_ASSERT(!err); extra_data = MFIFO_DEQUEUE(extra_data_free); LL_ASSERT(extra_data); pdu->extra_data[last] = (void *)extra_data; return extra_data; } static int adv_extra_data_free(struct lll_adv_pdu *pdu, uint8_t last) { uint8_t ed_free_idx; void *ed; ed = pdu->extra_data[last]; if (ed) { if (!MFIFO_ENQUEUE_IDX_GET(extra_data_free, &ed_free_idx)) { /* ToDo what if enqueue fails and assert does not fire? * pdu_free_idx should be released before return. */ return -ENOMEM; } pdu->extra_data[last] = NULL; MFIFO_BY_IDX_ENQUEUE(extra_data_free, ed_free_idx, ed); extra_data_free_sem_give(); } return 0; } static inline void adv_extra_data_release(struct lll_adv_pdu *pdu, int idx) { void *extra_data; extra_data = pdu->extra_data[idx]; if (extra_data) { pdu->extra_data[idx] = NULL; mem_release(extra_data, &mem_extra_data.free); } } #if defined(CONFIG_BT_CTLR_ZLI) static void mfy_extra_data_free_sem_give(void *param) { ARG_UNUSED(param); k_sem_give(&sem_extra_data_free); } static void extra_data_free_sem_give(void) { static memq_link_t link; static struct mayfly mfy = {0, 0, &link, NULL, mfy_extra_data_free_sem_give}; uint32_t retval; retval = mayfly_enqueue(TICKER_USER_ID_LLL, TICKER_USER_ID_ULL_HIGH, 0, &mfy); LL_ASSERT(!retval); } #else /* !CONFIG_BT_CTLR_ZLI */ static void extra_data_free_sem_give(void) { k_sem_give(&sem_extra_data_free); } #endif /* !CONFIG_BT_CTLR_ZLI */ #endif /* CONFIG_BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY */ static int prepare_cb(struct lll_prepare_param *p) { uint32_t ticks_at_event; uint32_t ticks_at_start; struct pdu_adv *pdu; struct ull_hdr *ull; struct lll_adv *lll; uint32_t remainder; uint32_t start_us; uint32_t ret; uint32_t aa; DEBUG_RADIO_START_A(1); lll = p->param; #if defined(CONFIG_BT_PERIPHERAL) /* Check if stopped (on connection establishment- or disabled race * between LLL and ULL. * When connectable advertising is disabled in thread context, cancelled * flag is set, and initiated flag is checked. Here, we avoid * transmitting connectable advertising event if cancelled flag is set. */ if (unlikely(lll->conn && (lll->conn->periph.initiated || lll->conn->periph.cancelled))) { radio_isr_set(lll_isr_early_abort, lll); radio_disable(); return 0; } #endif /* CONFIG_BT_PERIPHERAL */ radio_reset(); #if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL) radio_tx_power_set(lll->tx_pwr_lvl); #else radio_tx_power_set(RADIO_TXP_DEFAULT); #endif /* CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */ #if defined(CONFIG_BT_CTLR_ADV_EXT) /* TODO: if coded we use S8? */ radio_phy_set(lll->phy_p, lll->phy_flags); radio_pkt_configure(RADIO_PKT_CONF_LENGTH_8BIT, PDU_AC_LEG_PAYLOAD_SIZE_MAX, RADIO_PKT_CONF_PHY(lll->phy_p)); #else /* !CONFIG_BT_CTLR_ADV_EXT */ radio_phy_set(0, 0); radio_pkt_configure(RADIO_PKT_CONF_LENGTH_8BIT, PDU_AC_LEG_PAYLOAD_SIZE_MAX, RADIO_PKT_CONF_PHY(RADIO_PKT_CONF_PHY_LEGACY)); #endif /* !CONFIG_BT_CTLR_ADV_EXT */ aa = sys_cpu_to_le32(PDU_AC_ACCESS_ADDR); radio_aa_set((uint8_t *)&aa); radio_crc_configure(PDU_CRC_POLYNOMIAL, PDU_AC_CRC_IV); lll->chan_map_curr = lll->chan_map; pdu = chan_prepare(lll); #if defined(CONFIG_BT_HCI_MESH_EXT) _radio.mesh_adv_end_us = 0; #endif /* CONFIG_BT_HCI_MESH_EXT */ #if defined(CONFIG_BT_CTLR_PRIVACY) if (ull_filter_lll_rl_enabled()) { struct lll_filter *filter = ull_filter_lll_get(!!(lll->filter_policy)); radio_filter_configure(filter->enable_bitmask, filter->addr_type_bitmask, (uint8_t *)filter->bdaddr); } else #endif /* CONFIG_BT_CTLR_PRIVACY */ if (IS_ENABLED(CONFIG_BT_CTLR_FILTER_ACCEPT_LIST) && lll->filter_policy) { /* Setup Radio Filter */ struct lll_filter *fal = ull_filter_lll_get(true); radio_filter_configure(fal->enable_bitmask, fal->addr_type_bitmask, (uint8_t *)fal->bdaddr); } ticks_at_event = p->ticks_at_expire; ull = HDR_LLL2ULL(lll); ticks_at_event += lll_event_offset_get(ull); ticks_at_start = ticks_at_event; ticks_at_start += HAL_TICKER_US_TO_TICKS(EVENT_OVERHEAD_START_US); remainder = p->remainder; start_us = radio_tmr_start(1, ticks_at_start, remainder); /* capture end of Tx-ed PDU, used to calculate HCTO. */ radio_tmr_end_capture(); #if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) radio_gpio_pa_setup(); radio_gpio_pa_lna_enable(start_us + radio_tx_ready_delay_get(0, 0) - HAL_RADIO_GPIO_PA_OFFSET); #else /* !HAL_RADIO_GPIO_HAVE_PA_PIN */ ARG_UNUSED(start_us); #endif /* !HAL_RADIO_GPIO_HAVE_PA_PIN */ #if defined(CONFIG_BT_CTLR_XTAL_ADVANCED) && \ (EVENT_OVERHEAD_PREEMPT_US <= EVENT_OVERHEAD_PREEMPT_MIN_US) uint32_t overhead; overhead = lll_preempt_calc(ull, (TICKER_ID_ADV_BASE + ull_adv_lll_handle_get(lll)), ticks_at_event); /* check if preempt to start has changed */ if (overhead) { LL_ASSERT_OVERHEAD(overhead); radio_isr_set(isr_abort, lll); radio_disable(); return -ECANCELED; } #endif /* CONFIG_BT_CTLR_XTAL_ADVANCED */ #if defined(CONFIG_BT_CTLR_ADV_EXT) && defined(CONFIG_BT_TICKER_EXT_EXPIRE_INFO) if (lll->aux) { /* fill in aux ptr in pdu */ ull_adv_aux_lll_auxptr_fill(pdu, lll); /* NOTE: as first primary channel PDU does not use remainder, the packet * timer is started one tick in advance to start the radio with * microsecond precision, hence compensate for the higher start_us value * captured at radio start of the first primary channel PDU. */ lll->aux->ticks_pri_pdu_offset += 1U; } #endif ret = lll_prepare_done(lll); LL_ASSERT(!ret); DEBUG_RADIO_START_A(1); return 0; } #if defined(CONFIG_BT_PERIPHERAL) static int resume_prepare_cb(struct lll_prepare_param *p) { struct ull_hdr *ull; ull = HDR_LLL2ULL(p->param); p->ticks_at_expire = ticker_ticks_now_get() - lll_event_offset_get(ull); p->remainder = 0; p->lazy = 0; return prepare_cb(p); } #endif /* CONFIG_BT_PERIPHERAL */ static int is_abort_cb(void *next, void *curr, lll_prepare_cb_t *resume_cb) { #if defined(CONFIG_BT_PERIPHERAL) struct lll_adv *lll = curr; struct pdu_adv *pdu; #endif /* CONFIG_BT_PERIPHERAL */ /* TODO: prio check */ if (next != curr) { if (0) { #if defined(CONFIG_BT_PERIPHERAL) } else if (lll->is_hdcd) { int err; /* wrap back after the pre-empter */ *resume_cb = resume_prepare_cb; /* Retain HF clk */ err = lll_hfclock_on(); LL_ASSERT(err >= 0); return -EAGAIN; #endif /* CONFIG_BT_PERIPHERAL */ } else { return -ECANCELED; } } #if defined(CONFIG_BT_PERIPHERAL) pdu = lll_adv_data_curr_get(lll); if (pdu->type == PDU_ADV_TYPE_DIRECT_IND) { return 0; } #endif /* CONFIG_BT_PERIPHERAL */ return -ECANCELED; } static void abort_cb(struct lll_prepare_param *prepare_param, void *param) { int err; /* NOTE: This is not a prepare being cancelled */ if (!prepare_param) { /* Perform event abort here. * After event has been cleanly aborted, clean up resources * and dispatch event done. */ radio_isr_set(isr_abort, param); radio_disable(); return; } /* NOTE: Else clean the top half preparations of the aborted event * currently in preparation pipeline. */ err = lll_hfclock_off(); LL_ASSERT(err >= 0); lll_done(param); } static void isr_tx(void *param) { struct node_rx_pdu *node_rx_prof; struct node_rx_pdu *node_rx; #if defined(CONFIG_BT_CTLR_ADV_EXT) struct lll_adv *lll = param; uint8_t phy_p = lll->phy_p; uint8_t phy_flags = lll->phy_flags; #else const uint8_t phy_p = 0U; const uint8_t phy_flags = 0U; #endif uint32_t hcto; if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_latency_capture(); node_rx_prof = lll_prof_reserve(); } /* Clear radio tx status and events */ lll_isr_tx_status_reset(); /* setup tIFS switching */ radio_tmr_tifs_set(EVENT_IFS_US); radio_switch_complete_and_tx(phy_p, 0, phy_p, phy_flags); /* setup Rx buffer */ node_rx = ull_pdu_rx_alloc_peek(1); LL_ASSERT(node_rx); radio_pkt_rx_set(node_rx->pdu); /* assert if radio packet ptr is not set and radio started rx */ LL_ASSERT(!radio_is_ready()); if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_cputime_capture(); } radio_isr_set(isr_rx, param); #if defined(CONFIG_BT_CTLR_PRIVACY) if (ull_filter_lll_rl_enabled()) { uint8_t count, *irks = ull_filter_lll_irks_get(&count); radio_ar_configure(count, irks, 0); } #endif /* CONFIG_BT_CTLR_PRIVACY */ /* +/- 2us active clock jitter, +1 us PPI to timer start compensation */ hcto = radio_tmr_tifs_base_get() + EVENT_IFS_US + (EVENT_CLOCK_JITTER_US << 1) + RANGE_DELAY_US + HAL_RADIO_TMR_START_DELAY_US; hcto += radio_rx_chain_delay_get(phy_p, 0); hcto += addr_us_get(phy_p); hcto -= radio_tx_chain_delay_get(phy_p, 0); radio_tmr_hcto_configure(hcto); /* capture end of CONNECT_IND PDU, used for calculating first * peripheral event. */ radio_tmr_end_capture(); if (IS_ENABLED(CONFIG_BT_CTLR_SCAN_REQ_RSSI) || IS_ENABLED(CONFIG_BT_CTLR_CONN_RSSI)) { radio_rssi_measure(); } #if defined(HAL_RADIO_GPIO_HAVE_LNA_PIN) if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { /* PA/LNA enable is overwriting packet end used in ISR * profiling, hence back it up for later use. */ lll_prof_radio_end_backup(); } radio_gpio_lna_setup(); radio_gpio_pa_lna_enable(radio_tmr_tifs_base_get() + EVENT_IFS_US - 4 - radio_tx_chain_delay_get(phy_p, 0) - HAL_RADIO_GPIO_LNA_OFFSET); #endif /* HAL_RADIO_GPIO_HAVE_LNA_PIN */ if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { /* NOTE: as scratch packet is used to receive, it is safe to * generate profile event using rx nodes. */ lll_prof_reserve_send(node_rx_prof); } } static void isr_rx(void *param) { uint8_t devmatch_ok; uint8_t devmatch_id; uint8_t irkmatch_ok; uint8_t irkmatch_id; uint8_t rssi_ready; uint8_t trx_done; uint8_t crc_ok; if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_latency_capture(); } /* Read radio status and events */ trx_done = radio_is_done(); if (trx_done) { crc_ok = radio_crc_is_valid(); devmatch_ok = radio_filter_has_match(); devmatch_id = radio_filter_match_get(); if (IS_ENABLED(CONFIG_BT_CTLR_PRIVACY)) { irkmatch_ok = radio_ar_has_match(); irkmatch_id = radio_ar_match_get(); } else { irkmatch_ok = 0U; irkmatch_id = FILTER_IDX_NONE; } rssi_ready = radio_rssi_is_ready(); } else { crc_ok = devmatch_ok = irkmatch_ok = rssi_ready = 0U; devmatch_id = irkmatch_id = FILTER_IDX_NONE; } /* Clear radio status and events */ lll_isr_status_reset(); /* No Rx */ if (!trx_done) { goto isr_rx_do_close; } if (crc_ok) { int err; err = isr_rx_pdu(param, devmatch_ok, devmatch_id, irkmatch_ok, irkmatch_id, rssi_ready); if (!err) { if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_send(); } return; } } if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_cputime_capture(); lll_prof_send(); } isr_rx_do_close: radio_isr_set(isr_done, param); radio_disable(); } static void isr_done(void *param) { struct lll_adv *lll; /* Clear radio status and events */ lll_isr_status_reset(); #if defined(CONFIG_BT_HCI_MESH_EXT) if (_radio.advertiser.is_mesh && !_radio.mesh_adv_end_us) { _radio.mesh_adv_end_us = radio_tmr_end_get(); } #endif /* CONFIG_BT_HCI_MESH_EXT */ lll = param; #if defined(CONFIG_BT_PERIPHERAL) if (!IS_ENABLED(CONFIG_BT_CTLR_LOW_LAT) && lll->is_hdcd && !lll->chan_map_curr) { lll->chan_map_curr = lll->chan_map; } #endif /* CONFIG_BT_PERIPHERAL */ /* NOTE: Do not continue to connectable advertise if advertising is * being disabled, by checking the cancelled flag. */ if (lll->chan_map_curr && #if defined(CONFIG_BT_PERIPHERAL) (!lll->conn || !lll->conn->periph.cancelled) && #endif /* CONFIG_BT_PERIPHERAL */ 1) { struct pdu_adv *pdu; uint32_t start_us; pdu = chan_prepare(lll); #if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) || defined(CONFIG_BT_CTLR_ADV_EXT) start_us = radio_tmr_start_now(1); #if defined(CONFIG_BT_CTLR_ADV_EXT) struct lll_adv_aux *lll_aux; lll_aux = lll->aux; if (lll_aux) { (void)ull_adv_aux_lll_offset_fill(pdu, lll_aux->ticks_pri_pdu_offset, lll_aux->us_pri_pdu_offset, start_us); } #else /* !CONFIG_BT_CTLR_ADV_EXT */ ARG_UNUSED(pdu); #endif /* !CONFIG_BT_CTLR_ADV_EXT */ #if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) radio_gpio_pa_setup(); radio_gpio_pa_lna_enable(start_us + radio_tx_ready_delay_get(0, 0) - HAL_RADIO_GPIO_PA_OFFSET); #endif /* HAL_RADIO_GPIO_HAVE_PA_PIN */ #else /* !(HAL_RADIO_GPIO_HAVE_PA_PIN || defined(CONFIG_BT_CTLR_ADV_EXT)) */ ARG_UNUSED(start_us); radio_tx_enable(); #endif /* !(HAL_RADIO_GPIO_HAVE_PA_PIN || defined(CONFIG_BT_CTLR_ADV_EXT)) */ /* capture end of Tx-ed PDU, used to calculate HCTO. */ radio_tmr_end_capture(); return; } radio_filter_disable(); #if defined(CONFIG_BT_PERIPHERAL) if (!lll->is_hdcd) #endif /* CONFIG_BT_PERIPHERAL */ { #if defined(CONFIG_BT_HCI_MESH_EXT) if (_radio.advertiser.is_mesh) { uint32_t err; err = isr_close_adv_mesh(); if (err) { return 0; } } #endif /* CONFIG_BT_HCI_MESH_EXT */ } #if defined(CONFIG_BT_CTLR_ADV_INDICATION) struct node_rx_pdu *node_rx = ull_pdu_rx_alloc_peek(3); if (node_rx) { ull_pdu_rx_alloc(); /* TODO: add other info by defining a payload struct */ node_rx->hdr.type = NODE_RX_TYPE_ADV_INDICATION; ull_rx_put_sched(node_rx->hdr.link, node_rx); } #endif /* CONFIG_BT_CTLR_ADV_INDICATION */ #if defined(CONFIG_BT_CTLR_ADV_EXT) || defined(CONFIG_BT_CTLR_JIT_SCHEDULING) #if defined(CONFIG_BT_CTLR_ADV_EXT) && !defined(CONFIG_BT_CTLR_JIT_SCHEDULING) /* If no auxiliary PDUs scheduled, generate primary radio event done */ if (!lll->aux) #endif /* CONFIG_BT_CTLR_ADV_EXT && !CONFIG_BT_CTLR_JIT_SCHEDULING */ { struct event_done_extra *extra; extra = ull_done_extra_type_set(EVENT_DONE_EXTRA_TYPE_ADV); LL_ASSERT(extra); } #endif /* CONFIG_BT_CTLR_ADV_EXT || CONFIG_BT_CTLR_JIT_SCHEDULING */ lll_isr_cleanup(param); } static void isr_abort(void *param) { /* Clear radio status and events */ lll_isr_status_reset(); /* Disable any filter that was setup */ radio_filter_disable(); /* Current LLL radio event is done*/ lll_isr_cleanup(param); } #if defined(CONFIG_BT_PERIPHERAL) static void isr_abort_all(void *param) { static memq_link_t link; static struct mayfly mfy = {0, 0, &link, NULL, lll_disable}; uint32_t ret; /* Clear radio status and events */ lll_isr_status_reset(); /* Disable any filter that was setup */ radio_filter_disable(); /* Current LLL radio event is done*/ lll_isr_cleanup(param); /* Abort any LLL prepare/resume enqueued in pipeline */ mfy.param = param; ret = mayfly_enqueue(TICKER_USER_ID_LLL, TICKER_USER_ID_LLL, 1U, &mfy); LL_ASSERT(!ret); } #endif /* CONFIG_BT_PERIPHERAL */ static struct pdu_adv *chan_prepare(struct lll_adv *lll) { struct pdu_adv *pdu; uint8_t chan; uint8_t upd; chan = find_lsb_set(lll->chan_map_curr); LL_ASSERT(chan); lll->chan_map_curr &= (lll->chan_map_curr - 1); lll_chan_set(36 + chan); /* FIXME: get latest only when primary PDU without Aux PDUs */ upd = 0U; pdu = lll_adv_data_latest_get(lll, &upd); LL_ASSERT(pdu); radio_pkt_tx_set(pdu); if ((pdu->type != PDU_ADV_TYPE_NONCONN_IND) && (!IS_ENABLED(CONFIG_BT_CTLR_ADV_EXT) || (pdu->type != PDU_ADV_TYPE_EXT_IND))) { struct pdu_adv *scan_pdu; scan_pdu = lll_adv_scan_rsp_latest_get(lll, &upd); LL_ASSERT(scan_pdu); #if defined(CONFIG_BT_CTLR_PRIVACY) if (upd) { /* Copy the address from the adv packet we will send * into the scan response. */ memcpy(&scan_pdu->scan_rsp.addr[0], &pdu->adv_ind.addr[0], BDADDR_SIZE); } #else ARG_UNUSED(scan_pdu); ARG_UNUSED(upd); #endif /* !CONFIG_BT_CTLR_PRIVACY */ radio_isr_set(isr_tx, lll); radio_tmr_tifs_set(EVENT_IFS_US); radio_switch_complete_and_rx(0); } else { radio_isr_set(isr_done, lll); radio_switch_complete_and_disable(); } return pdu; } static inline int isr_rx_pdu(struct lll_adv *lll, uint8_t devmatch_ok, uint8_t devmatch_id, uint8_t irkmatch_ok, uint8_t irkmatch_id, uint8_t rssi_ready) { struct node_rx_pdu *node_rx; struct pdu_adv *pdu_adv; struct pdu_adv *pdu_rx; uint8_t tx_addr; uint8_t *addr; uint8_t rx_addr; uint8_t *tgt_addr; #if defined(CONFIG_BT_CTLR_PRIVACY) /* An IRK match implies address resolution enabled */ uint8_t rl_idx = irkmatch_ok ? ull_filter_lll_rl_irk_idx(irkmatch_id) : FILTER_IDX_NONE; #else uint8_t rl_idx = FILTER_IDX_NONE; #endif /* CONFIG_BT_CTLR_PRIVACY */ node_rx = ull_pdu_rx_alloc_peek(1); LL_ASSERT(node_rx); pdu_rx = (void *)node_rx->pdu; pdu_adv = lll_adv_data_curr_get(lll); addr = pdu_adv->adv_ind.addr; tx_addr = pdu_adv->tx_addr; if (pdu_adv->type == PDU_ADV_TYPE_DIRECT_IND) { tgt_addr = pdu_adv->direct_ind.tgt_addr; } else { tgt_addr = NULL; } rx_addr = pdu_adv->rx_addr; if ((pdu_rx->type == PDU_ADV_TYPE_SCAN_REQ) && (pdu_rx->len == sizeof(struct pdu_adv_scan_req)) && (tgt_addr == NULL) && lll_adv_scan_req_check(lll, pdu_rx, tx_addr, addr, devmatch_ok, &rl_idx)) { radio_isr_set(isr_done, lll); radio_switch_complete_and_disable(); radio_pkt_tx_set(lll_adv_scan_rsp_curr_get(lll)); /* assert if radio packet ptr is not set and radio started tx */ LL_ASSERT(!radio_is_ready()); if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_cputime_capture(); } #if defined(CONFIG_BT_CTLR_SCAN_REQ_NOTIFY) if (!IS_ENABLED(CONFIG_BT_CTLR_ADV_EXT) || lll->scan_req_notify) { uint32_t err; /* Generate the scan request event */ err = lll_adv_scan_req_report(lll, pdu_rx, rl_idx, rssi_ready); if (err) { /* Scan Response will not be transmitted */ return err; } } #endif /* CONFIG_BT_CTLR_SCAN_REQ_NOTIFY */ #if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { /* PA/LNA enable is overwriting packet end used in ISR * profiling, hence back it up for later use. */ lll_prof_radio_end_backup(); } radio_gpio_pa_setup(); radio_gpio_pa_lna_enable(radio_tmr_tifs_base_get() + EVENT_IFS_US - radio_rx_chain_delay_get(0, 0) - HAL_RADIO_GPIO_PA_OFFSET); #endif /* HAL_RADIO_GPIO_HAVE_PA_PIN */ return 0; #if defined(CONFIG_BT_PERIPHERAL) /* NOTE: Do not accept CONNECT_IND if cancelled flag is set in thread * context when disabling connectable advertising. This is to * avoid any race in checking the initiated flags in thread mode * which is set here if accepting a connection establishment. * * Under this race, peer central would get failed to establish * connection as the disconnect reason. This is an acceptable * outcome to keep the thread mode implementation simple when * disabling connectable advertising. */ } else if ((pdu_rx->type == PDU_ADV_TYPE_CONNECT_IND) && (pdu_rx->len == sizeof(struct pdu_adv_connect_ind)) && lll->conn && !lll->conn->periph.cancelled && lll_adv_connect_ind_check(lll, pdu_rx, tx_addr, addr, rx_addr, tgt_addr, devmatch_ok, &rl_idx)) { struct node_rx_ftr *ftr; struct node_rx_pdu *rx; if (IS_ENABLED(CONFIG_BT_CTLR_CHAN_SEL_2)) { rx = ull_pdu_rx_alloc_peek(4); } else { rx = ull_pdu_rx_alloc_peek(3); } if (!rx) { return -ENOBUFS; } radio_isr_set(isr_abort_all, lll); radio_disable(); /* assert if radio started tx */ LL_ASSERT(!radio_is_ready()); if (IS_ENABLED(CONFIG_BT_CTLR_PROFILE_ISR)) { lll_prof_cputime_capture(); } #if defined(CONFIG_BT_CTLR_CONN_RSSI) if (rssi_ready) { lll->conn->rssi_latest = radio_rssi_get(); } #endif /* CONFIG_BT_CTLR_CONN_RSSI */ /* Stop further LLL radio events */ lll->conn->periph.initiated = 1; rx = ull_pdu_rx_alloc(); rx->hdr.type = NODE_RX_TYPE_CONNECTION; rx->hdr.handle = 0xffff; ftr = &(rx->rx_ftr); ftr->param = lll; ftr->ticks_anchor = radio_tmr_start_get(); ftr->radio_end_us = radio_tmr_end_get() - radio_rx_chain_delay_get(0, 0); #if defined(CONFIG_BT_CTLR_PRIVACY) ftr->rl_idx = irkmatch_ok ? rl_idx : FILTER_IDX_NONE; #endif /* CONFIG_BT_CTLR_PRIVACY */ if (IS_ENABLED(CONFIG_BT_CTLR_CHAN_SEL_2)) { ftr->extra = ull_pdu_rx_alloc(); } ull_rx_put_sched(rx->hdr.link, rx); return 0; #endif /* CONFIG_BT_PERIPHERAL */ } return -EINVAL; } static bool isr_rx_sr_adva_check(uint8_t tx_addr, uint8_t *addr, struct pdu_adv *sr) { return (tx_addr == sr->rx_addr) && !memcmp(addr, sr->scan_req.adv_addr, BDADDR_SIZE); } static inline bool isr_rx_ci_tgta_check(struct lll_adv *lll, uint8_t rx_addr, uint8_t *tgt_addr, struct pdu_adv *ci, uint8_t rl_idx) { #if defined(CONFIG_BT_CTLR_PRIVACY) if (rl_idx != FILTER_IDX_NONE && lll->rl_idx != FILTER_IDX_NONE) { return rl_idx == lll->rl_idx; } #endif /* CONFIG_BT_CTLR_PRIVACY */ return (rx_addr == ci->tx_addr) && !memcmp(tgt_addr, ci->connect_ind.init_addr, BDADDR_SIZE); } static inline bool isr_rx_ci_adva_check(uint8_t tx_addr, uint8_t *addr, struct pdu_adv *ci) { return (tx_addr == ci->rx_addr) && !memcmp(addr, ci->connect_ind.adv_addr, BDADDR_SIZE); } #if defined(CONFIG_ZTEST) uint32_t lll_adv_free_pdu_fifo_count_get(void) { return MFIFO_AVAIL_COUNT_GET(pdu_free); } uint32_t lll_adv_pdu_mem_free_count_get(void) { return mem_free_count_get(mem_pdu.free); } #endif /* CONFIG_ZTEST */ ```
```php <?php declare(strict_types=1); // Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/Tracing/FederatedTracing/reports.proto namespace Nuwave\Lighthouse\Tracing\FederatedTracing\Proto; use Google\Protobuf\Internal\GPBUtil; /** * The context around a block of stats and traces indicating from which client the operation was executed and its * operation type. Operation type and subtype are only used by Apollo Router. * * Generated from protobuf message <code>StatsContext</code> */ class StatsContext extends \Google\Protobuf\Internal\Message { /** Generated from protobuf field <code>string client_name = 2 [json_name = "clientName"];</code> */ protected $client_name = ''; /** Generated from protobuf field <code>string client_version = 3 [json_name = "clientVersion"];</code> */ protected $client_version = ''; /** Generated from protobuf field <code>string operation_type = 4 [json_name = "operationType"];</code> */ protected $operation_type = ''; /** Generated from protobuf field <code>string operation_subtype = 5 [json_name = "operationSubtype"];</code> */ protected $operation_subtype = ''; /** * The result of the operation. Either OK or the error code that caused the operation to fail. * This will not contain all errors from a query, only the primary reason the operation failed. e.g. a limits failure or an auth failure. * * Generated from protobuf field <code>string result = 6 [json_name = "result"];</code> */ protected $result = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @var string $client_name * @var string $client_version * @var string $operation_type * @var string $operation_subtype * @var string $result * The result of the operation. Either OK or the error code that caused the operation to fail. * This will not contain all errors from a query, only the primary reason the operation failed. e.g. a limits failure or an auth failure. * } */ public function __construct($data = null) { Metadata\Reports::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>string client_name = 2 [json_name = "clientName"];</code>. * * @return string */ public function getClientName() { return $this->client_name; } /** * Generated from protobuf field <code>string client_name = 2 [json_name = "clientName"];</code>. * * @param string $var * * @return $this */ public function setClientName($var) { GPBUtil::checkString($var, true); $this->client_name = $var; return $this; } /** * Generated from protobuf field <code>string client_version = 3 [json_name = "clientVersion"];</code>. * * @return string */ public function getClientVersion() { return $this->client_version; } /** * Generated from protobuf field <code>string client_version = 3 [json_name = "clientVersion"];</code>. * * @param string $var * * @return $this */ public function setClientVersion($var) { GPBUtil::checkString($var, true); $this->client_version = $var; return $this; } /** * Generated from protobuf field <code>string operation_type = 4 [json_name = "operationType"];</code>. * * @return string */ public function getOperationType() { return $this->operation_type; } /** * Generated from protobuf field <code>string operation_type = 4 [json_name = "operationType"];</code>. * * @param string $var * * @return $this */ public function setOperationType($var) { GPBUtil::checkString($var, true); $this->operation_type = $var; return $this; } /** * Generated from protobuf field <code>string operation_subtype = 5 [json_name = "operationSubtype"];</code>. * * @return string */ public function getOperationSubtype() { return $this->operation_subtype; } /** * Generated from protobuf field <code>string operation_subtype = 5 [json_name = "operationSubtype"];</code>. * * @param string $var * * @return $this */ public function setOperationSubtype($var) { GPBUtil::checkString($var, true); $this->operation_subtype = $var; return $this; } /** * The result of the operation. Either OK or the error code that caused the operation to fail. * This will not contain all errors from a query, only the primary reason the operation failed. e.g. a limits failure or an auth failure. * * Generated from protobuf field <code>string result = 6 [json_name = "result"];</code> * * @return string */ public function getResult() { return $this->result; } /** * The result of the operation. Either OK or the error code that caused the operation to fail. * This will not contain all errors from a query, only the primary reason the operation failed. e.g. a limits failure or an auth failure. * * Generated from protobuf field <code>string result = 6 [json_name = "result"];</code> * * @param string $var * * @return $this */ public function setResult($var) { GPBUtil::checkString($var, true); $this->result = $var; return $this; } } ```
```scala /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.openwhisk.core.loadBalancer import akka.actor.{ActorRef, ActorSystem, Props} import org.apache.openwhisk.common._ import org.apache.openwhisk.core.WhiskConfig._ import org.apache.openwhisk.core.connector._ import org.apache.openwhisk.core.containerpool.ContainerPoolConfig import org.apache.openwhisk.core.entity._ import org.apache.openwhisk.core.invoker.InvokerProvider import org.apache.openwhisk.core.{ConfigKeys, WhiskConfig} import org.apache.openwhisk.spi.SpiLoader import org.apache.openwhisk.utils.ExecutionContextFactory import pureconfig._ import pureconfig.generic.auto._ import org.apache.openwhisk.core.entity.size._ import scala.concurrent.Future /** * Lean loadbalancer implemetation. * * Communicates with Invoker directly without Kafka in the middle. Invoker does not exist as a separate entity, it is built together with Controller * Uses LeanMessagingProvider to use in-memory queue instead of Kafka */ class LeanBalancer(config: WhiskConfig, feedFactory: FeedFactory, controllerInstance: ControllerInstanceId, implicit val messagingProvider: MessagingProvider = SpiLoader.get[MessagingProvider])( implicit actorSystem: ActorSystem, logging: Logging) extends CommonLoadBalancer(config, feedFactory, controllerInstance) { /** Loadbalancer interface methods */ override def invokerHealth(): Future[IndexedSeq[InvokerHealth]] = Future.successful(IndexedSeq.empty[InvokerHealth]) override def clusterSize: Int = 1 val poolConfig: ContainerPoolConfig = loadConfigOrThrow[ContainerPoolConfig](ConfigKeys.containerPool) val invokerName = InvokerInstanceId(0, None, None, poolConfig.userMemory) /** 1. Publish a message to the loadbalancer */ override def publish(action: ExecutableWhiskActionMetaData, msg: ActivationMessage)( implicit transid: TransactionId): Future[Future[Either[ActivationId, WhiskActivation]]] = { /** 2. Update local state with the activation to be executed scheduled. */ val activationResult = setupActivation(msg, action, invokerName) sendActivationToInvoker(messageProducer, msg, invokerName).map(_ => activationResult) } /** Creates an invoker for executing user actions. There is only one invoker in the lean model. */ private def makeALocalThreadedInvoker(): Unit = { implicit val ec = ExecutionContextFactory.makeCachedThreadPoolExecutionContext() val limitConfig: IntraConcurrencyLimitConfig = loadConfigOrThrow[IntraConcurrencyLimitConfig](ConfigKeys.concurrencyLimit) SpiLoader.get[InvokerProvider].instance(config, invokerName, messageProducer, poolConfig, limitConfig) } makeALocalThreadedInvoker() override protected val invokerPool: ActorRef = actorSystem.actorOf(Props.empty) override protected def releaseInvoker(invoker: InvokerInstanceId, entry: ActivationEntry) = { // Currently do nothing } override protected def emitMetrics() = { super.emitMetrics() } } object LeanBalancer extends LoadBalancerProvider { override def instance(whiskConfig: WhiskConfig, instance: ControllerInstanceId)(implicit actorSystem: ActorSystem, logging: Logging): LoadBalancer = { new LeanBalancer(whiskConfig, createFeedFactory(whiskConfig, instance), instance) } def requiredProperties = ExecManifest.requiredProperties ++ wskApiHost } ```
```css @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-black.eot'); src: url('../fonts/lato/lato-black.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-black.woff') format('woff'), url('../fonts/lato/lato-black.ttf') format('truetype'), url('../fonts/lato/lato-black.svg#latoblack') format('svg'); font-weight: 900; font-style: normal; } @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-bold.eot'); src: url('../fonts/lato/lato-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-bold.woff') format('woff'), url('../fonts/lato/lato-bold.ttf') format('truetype'), url('../fonts/lato/lato-bold.svg#latobold') format('svg'); font-weight: bold; font-style: normal; } @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-bolditalic.eot'); src: url('../fonts/lato/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-bolditalic.woff') format('woff'), url('../fonts/lato/lato-bolditalic.ttf') format('truetype'), url('../fonts/lato/lato-bolditalic.svg#latobold-italic') format('svg'); font-weight: bold; font-style: italic; } @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-italic.eot'); src: url('../fonts/lato/lato-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-italic.woff') format('woff'), url('../fonts/lato/lato-italic.ttf') format('truetype'), url('../fonts/lato/lato-italic.svg#latoitalic') format('svg'); font-weight: normal; font-style: italic; } @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-light.eot'); src: url('../fonts/lato/lato-light.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-light.woff') format('woff'), url('../fonts/lato/lato-light.ttf') format('truetype'), url('../fonts/lato/lato-light.svg#latolight') format('svg'); font-weight: 300; font-style: normal; } @font-face { font-family: 'Lato'; src: url('../fonts/lato/lato-regular.eot'); src: url('../fonts/lato/lato-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-regular.woff') format('woff'), url('../fonts/lato/lato-regular.ttf') format('truetype'), url('../fonts/lato/lato-regular.svg#latoregular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: "Flat-UI-Icons"; src: url('../fonts/flat-ui-icons-regular.eot'); src: url('../fonts/flat-ui-icons-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/flat-ui-icons-regular.woff') format('woff'), url('../fonts/flat-ui-icons-regular.ttf') format('truetype'), url('../fonts/flat-ui-icons-regular.svg#flat-ui-icons-regular') format('svg'); font-weight: normal; font-style: normal; } /* Use the following CSS code if you want to use data attributes for inserting your icons */ [data-icon]:before { font-family: 'Flat-UI-Icons'; content: attr(data-icon); speak: none; font-weight: normal; font-variant: normal; text-transform: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Use the following CSS code if you want to have a class per icon */ /* Instead of a list of all class selectors, you can use the generic selector below, but it's slower: [class*="fui-"] { */ .fui-arrow-right, .fui-arrow-left, .fui-cmd, .fui-check-inverted, .fui-heart, .fui-location, .fui-plus, .fui-check, .fui-cross, .fui-list, .fui-new, .fui-video, .fui-photo, .fui-volume, .fui-time, .fui-eye, .fui-chat, .fui-search, .fui-user, .fui-mail, .fui-lock, .fui-gear, .fui-radio-unchecked, .fui-radio-checked, .fui-checkbox-unchecked, .fui-checkbox-checked, .fui-calendar-solid, .fui-pause, .fui-play, .fui-check-inverted-2{ display: inline-block; font-family: 'Flat-UI-Icons'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .fui-arrow-right:before { content: "\e02c"; } .fui-arrow-left:before { content: "\e02d"; } .fui-cmd:before { content: "\e02f"; } .fui-check-inverted:before { content: "\e006"; } .fui-heart:before { content: "\e007"; } .fui-location:before { content: "\e008"; } .fui-plus:before { content: "\e009"; } .fui-check:before { content: "\e00a"; } .fui-cross:before { content: "\e00b"; } .fui-list:before { content: "\e00c"; } .fui-new:before { content: "\e00d"; } .fui-video:before { content: "\e00e"; } .fui-photo:before { content: "\e00f"; } .fui-volume:before { content: "\e010"; } .fui-time:before { content: "\e011"; } .fui-eye:before { content: "\e012"; } .fui-chat:before { content: "\e013"; } .fui-search:before { content: "\e01c"; } .fui-user:before { content: "\e01d"; } .fui-mail:before { content: "\e01e"; } .fui-lock:before { content: "\e01f"; } .fui-gear:before { content: "\e024"; } .fui-radio-unchecked:before { content: "\e02b"; } .fui-radio-checked:before { content: "\e032"; } .fui-checkbox-unchecked:before { content: "\e033"; } .fui-checkbox-checked:before { content: "\e034"; } .fui-calendar-solid:before { content: "\e022"; } .fui-pause:before { content: "\e03b"; } .fui-play:before { content: "\e03c"; } .fui-check-inverted-2:before { content: "\e000"; } .dropdown-arrow-inverse { border-bottom-color: #34495e !important; border-top-color: #34495e !important; } body { font-family: "Lato", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.72222; color: #34495e; background-color: #ffffff; } a { color: #16a085; text-decoration: none; -webkit-transition: 0.25s; transition: 0.25s; } a:hover, a:focus { color: #1abc9c; text-decoration: none; } a:focus { outline: none; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.72222; background-color: #ffffff; border: 2px solid #bdc3c7; border-radius: 6px; -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-comment { font-size: 15px; line-height: 1.2; font-style: italic; margin: 24px 0; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 700; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small { color: #e7e9ec; } h1, h2, h3 { margin-top: 30px; margin-bottom: 15px; } h4, h5, h6 { margin-top: 15px; margin-bottom: 15px; } h6 { font-weight: normal; } h1, .h1 { font-size: 61px; } h2, .h2 { font-size: 53px; } h3, .h3 { font-size: 40px; } h4, .h4 { font-size: 29px; } h5, .h5 { font-size: 28px; } h6, .h6 { font-size: 24px; } p { font-size: 18px; line-height: 1.72222; margin: 0 0 15px; } .lead { margin-bottom: 30px; font-size: 28px; line-height: 1.46428571; font-weight: 300; } @media (min-width: 768px) { .lead { font-size: 30.006px; } } small, .small { font-size: 83%; line-height: 2.067; } .text-muted { color: #bdc3c7; } .text-inverse { color: #ffffff; } .text-primary { color: #1abc9c; } a.text-primary:hover { color: #15967d; } .text-warning { color: #f1c40f; } a.text-warning:hover { color: #c19d0c; } .text-danger { color: #e74c3c; } a.text-danger:hover { color: #b93d30; } .text-success { color: #2ecc71; } a.text-success:hover { color: #25a35a; } .text-info { color: #3498db; } a.text-info:hover { color: #2a7aaf; } .bg-primary { color: #ffffff; background-color: #34495e; } a.bg-primary:hover { background-color: #222f3d; } .bg-success { background-color: #dff0d8; } a.bg-success:hover { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover { background-color: #e4b9b9; } .page-header { padding-bottom: 14px; margin: 60px 0 30px; border-bottom: 1px solid #e7e9ec; } ul, ol { margin-bottom: 15px; } dl { margin-bottom: 30px; } dt, dd { line-height: 1.72222; } @media (min-width: 768px) { .dl-horizontal dt { width: 160px; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { border-bottom: 1px dotted #bdc3c7; } blockquote { border-left: 3px solid #e7e9ec; padding: 0 0 0 16px; margin: 0 0 30px; } blockquote p { font-size: 20px; line-height: 1.55; font-weight: normal; margin-bottom: .4em; } blockquote small, blockquote .small { font-size: 18px; line-height: 1.72222; font-style: italic; color: inherit; } blockquote small:before, blockquote .small:before { content: ""; } blockquote.pull-right { padding-right: 16px; padding-left: 0; border-right: 3px solid #e7e9ec; border-left: 0; } blockquote.pull-right small:after { content: ""; } address { margin-bottom: 30px; line-height: 1.72222; } code, kbd, pre, samp { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 6px; font-size: 85%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; } kbd { padding: 2px 6px; font-size: 85%; color: #ffffff; background-color: #34495e; border-radius: 4px; box-shadow: none; } pre { padding: 8px; margin: 0 0 15px; font-size: 13px; line-height: 1.72222; color: inherit; background-color: #ffffff; border: 2px solid #e7e9ec; border-radius: 6px; white-space: pre; } .pre-scrollable { max-height: 340px; } .thumbnail { display: block; padding: 4px; margin-bottom: 5px; line-height: 1.72222; background-color: #ffffff; border: 2px solid #bdc3c7; border-radius: 6px; -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; } .thumbnail > img, .thumbnail a > img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #16a085; } .thumbnail .caption { padding: 9px; color: #34495e; } .btn { border: none; font-size: 15px; font-weight: normal; line-height: 1.4; border-radius: 4px; padding: 10px 15px; -webkit-font-smoothing: subpixel-antialiased; -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; transition: border .25s linear, color .25s linear, background-color .25s linear; } .btn:hover, .btn:focus { outline: none; color: #ffffff; } .btn:active, .btn.active { outline: none; -webkit-box-shadow: none; box-shadow: none; } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { background-color: #bdc3c7; color: rgba(255, 255, 255, 0.75); opacity: 0.7; filter: alpha(opacity=70); } .btn > [class^="fui-"] { margin: 0 1px; position: relative; line-height: 1; top: 1px; } .btn-xs.btn > [class^="fui-"] { font-size: 11px; top: 0; } .btn-hg.btn > [class^="fui-"] { top: 2px; } .btn-default { color: #ffffff; background-color: #bdc3c7; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #ffffff; background-color: #cacfd2; border-color: #cacfd2; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background: #a1a6a9; border-color: #a1a6a9; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #bdc3c7; border-color: #bdc3c7; } .btn-primary { color: #ffffff; background-color: #1abc9c; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #48c9b0; border-color: #48c9b0; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background: #16a085; border-color: #16a085; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #1abc9c; border-color: #1abc9c; } .btn-info { color: #ffffff; background-color: #3498db; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #5dade2; border-color: #5dade2; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background: #2c81ba; border-color: #2c81ba; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #3498db; border-color: #3498db; } .btn-danger { color: #ffffff; background-color: #e74c3c; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #ec7063; border-color: #ec7063; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background: #c44133; border-color: #c44133; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #e74c3c; border-color: #e74c3c; } .btn-success { color: #ffffff; background-color: #2ecc71; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #58d68d; border-color: #58d68d; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background: #27ad60; border-color: #27ad60; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #2ecc71; border-color: #2ecc71; } .btn-warning { color: #ffffff; background-color: #f1c40f; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #f5d313; border-color: #f5d313; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background: #cda70d; border-color: #cda70d; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f1c40f; border-color: #f1c40f; } .btn-inverse { color: #ffffff; background-color: #34495e; } .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .open .dropdown-toggle.btn-inverse { color: #ffffff; background-color: #415b76; border-color: #415b76; } .btn-inverse:active, .btn-inverse.active, .open .dropdown-toggle.btn-inverse { background: #2c3e50; border-color: #2c3e50; } .btn-inverse.disabled, .btn-inverse[disabled], fieldset[disabled] .btn-inverse, .btn-inverse.disabled:hover, .btn-inverse[disabled]:hover, fieldset[disabled] .btn-inverse:hover, .btn-inverse.disabled:focus, .btn-inverse[disabled]:focus, fieldset[disabled] .btn-inverse:focus, .btn-inverse.disabled:active, .btn-inverse[disabled]:active, fieldset[disabled] .btn-inverse:active, .btn-inverse.disabled.active, .btn-inverse[disabled].active, fieldset[disabled] .btn-inverse.active { background-color: #34495e; border-color: #34495e; } .btn-embossed { -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); } .btn-embossed.active, .btn-embossed:active { -webkit-box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.15); } .btn-wide { min-width: 140px; padding-left: 30px; padding-right: 30px; } .btn-link { color: #16a085; } .btn-link:hover, .btn-link:focus { color: #1abc9c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #bdc3c7; text-decoration: none; } .btn-hg { padding: 13px 20px; font-size: 22px; line-height: 1.227; border-radius: 6px; } .btn-lg { padding: 10px 19px; font-size: 17px; line-height: 1.471; border-radius: 6px; } .btn-sm { padding: 9px 13px; font-size: 13px; line-height: 1.385; border-radius: 4px; } .btn-xs { padding: 6px 9px; font-size: 12px; line-height: 1.083; border-radius: 3px; } .btn-tip { font-weight: 300; padding-left: 10px; font-size: 92%; } .btn-block { white-space: normal; } .btn-default .caret { border-top-color: #ffffff; } .btn-primary .caret, .btn-success .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret { border-top-color: #ffffff; } .dropup .btn-default .caret { border-bottom-color: #ffffff; } .dropup .btn-primary .caret, .dropup .btn-success .caret, .dropup .btn-warning .caret, .dropup .btn-danger .caret, .dropup .btn-info .caret { border-bottom-color: #ffffff; } .btn-group-xs > .btn { padding: 6px 9px; font-size: 12px; line-height: 1.083; border-radius: 3px; } .btn-group-sm > .btn { padding: 9px 13px; font-size: 13px; line-height: 1.385; border-radius: 4px; } .btn-group-lg > .btn { padding: 10px 19px; font-size: 17px; line-height: 1.471; border-radius: 6px; } .btn-group-gh > .btn { padding: 13px 20px; font-size: 22px; line-height: 1.227; border-radius: 6px; } .btn-group > .btn + .btn { margin-left: 0; } .btn-group > .btn + .dropdown-toggle { border-left: 2px solid rgba(52, 73, 94, 0.15); padding-left: 12px; padding-right: 12px; } .btn-group > .btn + .dropdown-toggle .caret { margin-left: 3px; margin-right: 3px; } .btn-group > .btn.btn-gh + .dropdown-toggle .caret { margin-left: 7px; margin-right: 7px; } .btn-group > .btn.btn-sm + .dropdown-toggle .caret { margin-left: 0; margin-right: 0; } .dropdown-toggle .caret { margin-left: 8px; } .btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-weight: 400; } .btn-group:focus .dropdown-toggle { outline: none; -webkit-transition: 0.25s; transition: 0.25s; } .btn-group.open .dropdown-toggle { color: rgba(255, 255, 255, 0.75); -webkit-box-shadow: none; box-shadow: none; } .btn-toolbar .btn.active { color: #ffffff; } .btn-toolbar .btn > [class^="fui-"] { font-size: 16px; margin: 0 1px; } .caret { border-width: 8px 6px; border-bottom-color: #34495e; border-top-color: #34495e; border-style: solid; border-bottom-style: none; -webkit-transition: 0.25s; transition: 0.25s; -webkit-transform: scale(1.001); -ms-transform: scale(1.001); transform: scale(1.001); } .dropup .caret, .dropup .btn-lg .caret, .navbar-fixed-bottom .dropdown .caret { border-bottom-width: 8px; } .btn-lg .caret { border-top-width: 8px; border-right-width: 6px; border-left-width: 6px; } .select { display: inline-block; margin-bottom: 10px; } [class*="span"] > .select[class*="span"] { margin-left: 0; } .select[class*="span"] .btn { width: 100%; } .select.select-block { display: block; float: none; margin-left: 0; width: auto; } .select.select-block:before, .select.select-block:after { content: " "; /* 1 */ display: table; /* 2 */ } .select.select-block:after { clear: both; } .select.select-block .btn { width: 100%; } .select.select-block .dropdown-menu { width: 100%; } .select .btn { width: 220px; } .select .btn.btn-hg .filter-option { left: 20px; right: 40px; top: 13px; } .select .btn.btn-hg .caret { right: 20px; } .select .btn.btn-lg .filter-option { left: 18px; right: 38px; } .select .btn.btn-sm .filter-option { left: 13px; right: 33px; } .select .btn.btn-sm .caret { right: 13px; } .select .btn.btn-xs .filter-option { left: 13px; right: 33px; top: 5px; } .select .btn.btn-xs .caret { right: 13px; } .select .btn .filter-option { height: 26px; left: 13px; overflow: hidden; position: absolute; right: 33px; text-align: left; top: 10px; } .select .btn .caret { position: absolute; right: 16px; top: 50%; margin-top: -3px; } .select .btn .dropdown-toggle { border-radius: 6px; } .select .btn .dropdown-menu { min-width: 100%; } .select .btn .dropdown-menu dt { cursor: default; display: block; padding: 3px 20px; } .select .btn .dropdown-menu li:not(.disabled) > a:hover small { color: rgba(255, 255, 255, 0.004); } .select .btn .dropdown-menu li > a { min-height: 20px; } .select .btn .dropdown-menu li > a.opt { padding-left: 35px; } .select .btn .dropdown-menu li small { padding-left: .5em; } .select .btn .dropdown-menu li > dt small { font-weight: normal; } .select .btn > .disabled, .select .btn .dropdown-menu li.disabled > a { cursor: default; } .select .caret { border-bottom-color: #ffffff; border-top-color: #ffffff; } legend { display: block; width: 100%; padding: 0; margin-bottom: 15px; font-size: 24px; line-height: inherit; color: inherit; border-bottom: none; } textarea { font-size: 20px; line-height: 24px; padding: 5px 11px; } input[type="search"] { -webkit-appearance: none !important; } label { font-weight: normal; font-size: 15px; line-height: 2.4; } .form-control:-moz-placeholder { color: #b2bcc5; } .form-control::-moz-placeholder { color: #b2bcc5; opacity: 1; } .form-control:-ms-input-placeholder { color: #b2bcc5; } .form-control::-webkit-input-placeholder { color: #b2bcc5; } .form-control.placeholder { color: #b2bcc5; } .form-control { border: 2px solid #bdc3c7; color: #34495e; font-family: "Lato", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.467; padding: 8px 12px; height: 42px; -webkit-appearance: none; border-radius: 6px; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; transition: border .25s linear, color .25s linear, background-color .25s linear; } .form-group.focus .form-control, .form-control:focus { border-color: #1abc9c; outline: 0; -webkit-box-shadow: none; box-shadow: none; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #f4f6f6; border-color: #d5dbdb; color: #d5dbdb; cursor: default; opacity: 0.7; filter: alpha(opacity=70); } .form-control.flat { border-color: transparent; } .form-control.flat:hover { border-color: #bdc3c7; } .form-control.flat:focus { border-color: #1abc9c; } .input-sm { height: 35px; padding: 6px 10px; font-size: 13px; line-height: 1.462; border-radius: 6px; } select.input-sm { height: 35px; line-height: 35px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .input-lg { height: 45px; padding: 10px 15px; font-size: 17px; line-height: 1.235; border-radius: 6px; } select.input-lg { height: 45px; line-height: 45px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .input-hg { height: 53px; padding: 10px 16px; font-size: 22px; line-height: 1.318; border-radius: 6px; } select.input-hg { height: 53px; line-height: 53px; } textarea.input-hg, select[multiple].input-hg { height: auto; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { color: #f1c40f; } .has-warning .form-control { color: #f1c40f; border-color: #f1c40f; -webkit-box-shadow: none; box-shadow: none; } .has-warning .form-control:-moz-placeholder { color: #f1c40f; } .has-warning .form-control::-moz-placeholder { color: #f1c40f; opacity: 1; } .has-warning .form-control:-ms-input-placeholder { color: #f1c40f; } .has-warning .form-control::-webkit-input-placeholder { color: #f1c40f; } .has-warning .form-control.placeholder { color: #f1c40f; } .has-warning .form-control:focus { border-color: #f1c40f; -webkit-box-shadow: none; box-shadow: none; } .has-warning .input-group-addon { color: #f1c40f; border-color: #f1c40f; background-color: #ffffff; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: #e74c3c; } .has-error .form-control { color: #e74c3c; border-color: #e74c3c; -webkit-box-shadow: none; box-shadow: none; } .has-error .form-control:-moz-placeholder { color: #e74c3c; } .has-error .form-control::-moz-placeholder { color: #e74c3c; opacity: 1; } .has-error .form-control:-ms-input-placeholder { color: #e74c3c; } .has-error .form-control::-webkit-input-placeholder { color: #e74c3c; } .has-error .form-control.placeholder { color: #e74c3c; } .has-error .form-control:focus { border-color: #e74c3c; -webkit-box-shadow: none; box-shadow: none; } .has-error .input-group-addon { color: #e74c3c; border-color: #e74c3c; background-color: #ffffff; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { color: #2ecc71; } .has-success .form-control { color: #2ecc71; border-color: #2ecc71; -webkit-box-shadow: none; box-shadow: none; } .has-success .form-control:-moz-placeholder { color: #2ecc71; } .has-success .form-control::-moz-placeholder { color: #2ecc71; opacity: 1; } .has-success .form-control:-ms-input-placeholder { color: #2ecc71; } .has-success .form-control::-webkit-input-placeholder { color: #2ecc71; } .has-success .form-control.placeholder { color: #2ecc71; } .has-success .form-control:focus { border-color: #2ecc71; -webkit-box-shadow: none; box-shadow: none; } .has-success .input-group-addon { color: #2ecc71; border-color: #2ecc71; background-color: #ffffff; } .help-block { font-size: 15px; margin-bottom: 5px; color: inherit; } .form-group { position: relative; margin-bottom: 20px; } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 6px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { content: " "; /* 1 */ display: table; /* 2 */ } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-control-static { padding-top: 6px; } .form-group { position: relative; } .form-control + .input-icon { position: absolute; top: 2px; right: 2px; line-height: 37px; vertical-align: middle; font-size: 20px; color: #b2bcc5; background-color: #ffffff; padding: 0 12px 0 0; border-radius: 6px; } .input-hg + .input-icon { line-height: 49px; padding: 0 16px 0 0; } .input-lg + .input-icon { line-height: 41px; padding: 0 15px 0 0; } .input-sm + .input-icon { font-size: 18px; line-height: 30px; padding: 0 10px 0 0; } .has-success .input-icon { color: #2ecc71; } .has-warning .input-icon { color: #f1c40f; } .has-error .input-icon { color: #e74c3c; } .form-control[disabled] + .input-icon, .form-control[readonly] + .input-icon, fieldset[disabled] .form-control + .input-icon, .form-control.disabled + .input-icon { color: #d5dbdb; background-color: transparent; opacity: 0.7; filter: alpha(opacity=70); } .input-group-hg > .form-control, .input-group-hg > .input-group-addon, .input-group-hg > .input-group-btn > .btn { height: 53px; padding: 10px 16px; font-size: 22px; line-height: 1.318; border-radius: 6px; } select.input-group-hg > .form-control, select.input-group-hg > .input-group-addon, select.input-group-hg > .input-group-btn > .btn { height: 53px; line-height: 53px; } textarea.input-group-hg > .form-control, textarea.input-group-hg > .input-group-addon, textarea.input-group-hg > .input-group-btn > .btn, select[multiple].input-group-hg > .form-control, select[multiple].input-group-hg > .input-group-addon, select[multiple].input-group-hg > .input-group-btn > .btn { height: auto; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 45px; padding: 10px 15px; font-size: 17px; line-height: 1.235; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 45px; line-height: 45px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 35px; padding: 6px 10px; font-size: 13px; line-height: 1.462; border-radius: 6px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 35px; line-height: 35px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon { padding: 10px 12px; font-size: 15px; color: #ffffff; text-align: center; background-color: #bdc3c7; border: 1px solid #bdc3c7; border-radius: 6px; -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; transition: border .25s linear, color .25s linear, background-color .25s linear; } .input-group-hg .input-group-addon, .input-group-lg .input-group-addon, .input-group-sm .input-group-addon { line-height: 1; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .form-group.focus .input-group-addon, .input-group.focus .input-group-addon { background-color: #1abc9c; border-color: #1abc9c; } .form-group.focus .input-group-btn > .btn-default + .btn-default, .input-group.focus .input-group-btn > .btn-default + .btn-default { border-left-color: #16a085; } .form-group.focus .input-group-btn .btn, .input-group.focus .input-group-btn .btn { border-color: #1abc9c; background-color: #ffffff; color: #1abc9c; } .form-group.focus .input-group-btn .btn-default, .input-group.focus .input-group-btn .btn-default { color: #ffffff; background-color: #1abc9c; } .form-group.focus .input-group-btn .btn-default:hover, .input-group.focus .input-group-btn .btn-default:hover, .form-group.focus .input-group-btn .btn-default:focus, .input-group.focus .input-group-btn .btn-default:focus, .form-group.focus .input-group-btn .btn-default:active, .input-group.focus .input-group-btn .btn-default:active, .form-group.focus .input-group-btn .btn-default.active, .input-group.focus .input-group-btn .btn-default.active, .open .dropdown-toggle.form-group.focus .input-group-btn .btn-default, .open .dropdown-toggle.input-group.focus .input-group-btn .btn-default { color: #ffffff; background-color: #48c9b0; border-color: #48c9b0; } .form-group.focus .input-group-btn .btn-default:active, .input-group.focus .input-group-btn .btn-default:active, .form-group.focus .input-group-btn .btn-default.active, .input-group.focus .input-group-btn .btn-default.active, .open .dropdown-toggle.form-group.focus .input-group-btn .btn-default, .open .dropdown-toggle.input-group.focus .input-group-btn .btn-default { background: #16a085; border-color: #16a085; } .form-group.focus .input-group-btn .btn-default.disabled, .input-group.focus .input-group-btn .btn-default.disabled, .form-group.focus .input-group-btn .btn-default[disabled], .input-group.focus .input-group-btn .btn-default[disabled], fieldset[disabled] .form-group.focus .input-group-btn .btn-default, fieldset[disabled] .input-group.focus .input-group-btn .btn-default, .form-group.focus .input-group-btn .btn-default.disabled:hover, .input-group.focus .input-group-btn .btn-default.disabled:hover, .form-group.focus .input-group-btn .btn-default[disabled]:hover, .input-group.focus .input-group-btn .btn-default[disabled]:hover, fieldset[disabled] .form-group.focus .input-group-btn .btn-default:hover, fieldset[disabled] .input-group.focus .input-group-btn .btn-default:hover, .form-group.focus .input-group-btn .btn-default.disabled:focus, .input-group.focus .input-group-btn .btn-default.disabled:focus, .form-group.focus .input-group-btn .btn-default[disabled]:focus, .input-group.focus .input-group-btn .btn-default[disabled]:focus, fieldset[disabled] .form-group.focus .input-group-btn .btn-default:focus, fieldset[disabled] .input-group.focus .input-group-btn .btn-default:focus, .form-group.focus .input-group-btn .btn-default.disabled:active, .input-group.focus .input-group-btn .btn-default.disabled:active, .form-group.focus .input-group-btn .btn-default[disabled]:active, .input-group.focus .input-group-btn .btn-default[disabled]:active, fieldset[disabled] .form-group.focus .input-group-btn .btn-default:active, fieldset[disabled] .input-group.focus .input-group-btn .btn-default:active, .form-group.focus .input-group-btn .btn-default.disabled.active, .input-group.focus .input-group-btn .btn-default.disabled.active, .form-group.focus .input-group-btn .btn-default[disabled].active, .input-group.focus .input-group-btn .btn-default[disabled].active, fieldset[disabled] .form-group.focus .input-group-btn .btn-default.active, fieldset[disabled] .input-group.focus .input-group-btn .btn-default.active { background-color: #1abc9c; border-color: #1abc9c; } .input-group-btn .btn { background-color: #ffffff; border: 2px solid #bdc3c7; color: #bdc3c7; line-height: 18px; } .input-group-btn .btn-default { color: #ffffff; background-color: #bdc3c7; } .input-group-btn .btn-default:hover, .input-group-btn .btn-default:focus, .input-group-btn .btn-default:active, .input-group-btn .btn-default.active, .open .dropdown-toggle.input-group-btn .btn-default { color: #ffffff; background-color: #cacfd2; border-color: #cacfd2; } .input-group-btn .btn-default:active, .input-group-btn .btn-default.active, .open .dropdown-toggle.input-group-btn .btn-default { background: #a1a6a9; border-color: #a1a6a9; } .input-group-btn .btn-default.disabled, .input-group-btn .btn-default[disabled], fieldset[disabled] .input-group-btn .btn-default, .input-group-btn .btn-default.disabled:hover, .input-group-btn .btn-default[disabled]:hover, fieldset[disabled] .input-group-btn .btn-default:hover, .input-group-btn .btn-default.disabled:focus, .input-group-btn .btn-default[disabled]:focus, fieldset[disabled] .input-group-btn .btn-default:focus, .input-group-btn .btn-default.disabled:active, .input-group-btn .btn-default[disabled]:active, fieldset[disabled] .input-group-btn .btn-default:active, .input-group-btn .btn-default.disabled.active, .input-group-btn .btn-default[disabled].active, fieldset[disabled] .input-group-btn .btn-default.active { background-color: #bdc3c7; border-color: #bdc3c7; } .input-group-hg .input-group-btn .btn { line-height: 31px; } .input-group-lg .input-group-btn .btn { line-height: 21px; } .input-group-sm .input-group-btn .btn { line-height: 19px; } .input-group-btn:first-child > .btn { border-right-width: 0; margin-right: -2px; } .input-group-btn:last-child > .btn { border-left-width: 0; margin-left: -2px; } .input-group-btn > .btn-default + .btn-default { border-left: 2px solid #bdc3c7; } .input-group-btn > .btn:first-child + .btn .caret { margin-left: 0; } .input-group-rounded .input-group-btn + .form-control, .input-group-rounded .input-group-btn:last-child .btn { border-bottom-right-radius: 20px; border-top-right-radius: 20px; } .input-group-hg.input-group-rounded .input-group-btn + .form-control, .input-group-hg.input-group-rounded .input-group-btn:last-child .btn { border-bottom-right-radius: 27px; border-top-right-radius: 27px; } .input-group-lg.input-group-rounded .input-group-btn + .form-control, .input-group-lg.input-group-rounded .input-group-btn:last-child .btn { border-bottom-right-radius: 25px; border-top-right-radius: 25px; } .input-group-rounded .form-control:first-child, .input-group-rounded .input-group-btn:first-child .btn { border-bottom-left-radius: 20px; border-top-left-radius: 20px; } .input-group-hg.input-group-rounded .form-control:first-child, .input-group-hg.input-group-rounded .input-group-btn:first-child .btn { border-bottom-left-radius: 27px; border-top-left-radius: 27px; } .input-group-lg.input-group-rounded .form-control:first-child, .input-group-lg.input-group-rounded .input-group-btn:first-child .btn { border-bottom-left-radius: 25px; border-top-left-radius: 25px; } .input-group-rounded .input-group-btn + .form-control { padding-left: 0; } .checkbox, .radio { margin-bottom: 12px; padding-left: 32px; position: relative; -webkit-transition: color 0.25s linear; transition: color 0.25s linear; font-size: 14px; line-height: 1.5; } .checkbox input, .radio input { outline: none !important; display: none; } .checkbox .icons, .radio .icons { color: #bdc3c7; display: block; height: 20px; left: 0; position: absolute; top: 0; width: 20px; text-align: center; line-height: 21px; font-size: 20px; cursor: pointer; -webkit-transition: color 0.25s linear; transition: color 0.25s linear; } .checkbox .icons .first-icon, .radio .icons .first-icon, .checkbox .icons .second-icon, .radio .icons .second-icon { display: inline-table; position: absolute; left: 0; top: 0; background-color: transparent; margin: 0; opacity: 1; filter: alpha(opacity=100); } .checkbox .icons .second-icon, .radio .icons .second-icon { opacity: 0; filter: alpha(opacity=0); } .checkbox:hover, .radio:hover { -webkit-transition: color 0.25s linear; transition: color 0.25s linear; } .checkbox:hover .first-icon, .radio:hover .first-icon { opacity: 0; filter: alpha(opacity=0); } .checkbox:hover .second-icon, .radio:hover .second-icon { opacity: 1; filter: alpha(opacity=100); } .checkbox.checked, .radio.checked { color: #1abc9c; } .checkbox.checked .first-icon, .radio.checked .first-icon { opacity: 0; filter: alpha(opacity=0); } .checkbox.checked .second-icon, .radio.checked .second-icon { opacity: 1; filter: alpha(opacity=100); color: #1abc9c; -webkit-transition: color 0.25s linear; transition: color 0.25s linear; } .checkbox.disabled, .radio.disabled { cursor: default; color: #e6e8ea; } .checkbox.disabled .icons, .radio.disabled .icons { color: #e6e8ea; } .checkbox.disabled .first-icon, .radio.disabled .first-icon { opacity: 1; filter: alpha(opacity=100); } .checkbox.disabled .second-icon, .radio.disabled .second-icon { opacity: 0; filter: alpha(opacity=0); } .checkbox.disabled.checked .icons, .radio.disabled.checked .icons { color: #e6e8ea; } .checkbox.disabled.checked .first-icon, .radio.disabled.checked .first-icon { opacity: 0; filter: alpha(opacity=0); } .checkbox.disabled.checked .second-icon, .radio.disabled.checked .second-icon { opacity: 1; filter: alpha(opacity=100); color: #e6e8ea; } .checkbox.primary .icons, .radio.primary .icons { color: #34495e; } .checkbox.primary.checked, .radio.primary.checked { color: #1abc9c; } .checkbox.primary.checked .icons, .radio.primary.checked .icons { color: #1abc9c; } .checkbox.primary.disabled, .radio.primary.disabled { cursor: default; color: #bdc3c7; } .checkbox.primary.disabled .icons, .radio.primary.disabled .icons { color: #bdc3c7; } .checkbox.primary.disabled.checked .icons, .radio.primary.disabled.checked .icons { color: #bdc3c7; } .radio + .radio, .checkbox + .checkbox { margin-top: 10px; } .navbar { font-size: 16px; min-height: 53px; margin-bottom: 30px; border: none; border-radius: 6px; } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { box-shadow: none; padding-right: 21px; padding-left: 21px; } @media (min-width: 768px) { .navbar-collapse .navbar-nav.navbar-left:first-child { margin-left: -21px; } .navbar-collapse .navbar-nav.navbar-left:first-child > li:first-child a { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .navbar-collapse .navbar-nav.navbar-right:last-child { margin-right: -21px; } .navbar > .container .navbar-collapse .navbar-nav.navbar-right:last-child { margin-right: -36px; } .navbar-collapse .navbar-nav.navbar-right:last-child > .dropdown:last-child > a { border-radius: 0 6px 6px 0; } .navbar-collapse .navbar-form.navbar-right:last-child { margin-right: -17px; } .navbar-fixed-top .navbar-collapse .navbar-form.navbar-right:last-child, .navbar-fixed-bottom .navbar-collapse .navbar-form.navbar-right:last-child { margin-right: 0; } } @media (max-width: 767px) { .navbar-collapse .navbar-nav.navbar-right:last-child { margin-bottom: 3px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -21px; margin-left: -21px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { z-index: 1030; border-radius: 0; } .navbar-fixed-top { border-width: 0; } .navbar-fixed-bottom { margin-bottom: 0; border-width: 0; } .navbar-brand { font-size: 24px; line-height: 1.042; font-weight: 700; padding: 14px 21px; } .navbar-brand > [class*="fui-"] { font-size: 19px; line-height: 1.263; vertical-align: top; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -21px; } } .navbar-toggle { border: none; color: #34495e; margin: 0 0 0 21px; padding: 0 21px; height: 53px; line-height: 53px; } .navbar-toggle:before { color: #16a085; content: "\e00c"; font-family: "Flat-UI-Icons"; font-size: 22px; font-style: normal; font-weight: normal; -webkit-font-smoothing: antialiased; -webkit-transition: color 0.25s linear; transition: color 0.25s linear; } .navbar-toggle:hover, .navbar-toggle:focus { outline: none; } .navbar-toggle:hover:before, .navbar-toggle:focus:before { color: #1abc9c; } .navbar-toggle .icon-bar { display: none; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 0; } .navbar-nav > li > a { font-size: 16px; padding: 15px 21px; line-height: 23px; font-weight: 700; } .navbar-nav .dropdown-toggle .caret { border-top-color: #16a085; border-bottom-color: #16a085; border-width: 8px 6px 0; margin-left: 12px; } .navbar-nav > li > a:hover, .navbar-nav > li > a:focus, .navbar-nav .open > a:focus, .navbar-nav .open > a:hover { background-color: transparent; } .navbar-nav > li > a:hover .caret, .navbar-nav > li > a:focus .caret, .navbar-nav .open > a:focus .caret, .navbar-nav .open > a:hover .caret { border-top-color: #1abc9c; border-bottom-color: #1abc9c; } .navbar-nav [class^="fui-"] { line-height: 20px; position: relative; top: 1px; } .navbar-nav .visible-sm > [class^="fui-"], .navbar-nav .visible-xs > [class^="fui-"] { margin-left: 12px; } @media (max-width: 767px) { .navbar-nav { margin: 0 -21px; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 7px 15px 7px 31px !important; } .navbar-nav .open .dropdown-menu > li > a { line-height: 23px; } .navbar-nav > li > a { padding-top: 7px; padding-bottom: 7px; } } .navbar-input { height: 35px; padding: 5px 10px; font-size: 13px; line-height: 1.4; border-radius: 6px; } select.navbar-input { height: 35px; line-height: 35px; } textarea.navbar-input, select[multiple].navbar-input { height: auto; } .navbar-form { -webkit-box-shadow: none; box-shadow: none; margin-top: 0; margin-bottom: 0; padding-right: 19px; padding-left: 19px; padding-top: 9px; padding-bottom: 9px; } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (max-width: 767px) { .navbar-form { margin: 3px -21px; width: auto; } } @media (min-width: 768px) { .navbar-nav + .navbar-form.navbar-left, .navbar-form.navbar-right:last-child { width: 260px; } } .navbar-form .form-control, .navbar-form .input-group-addon, .navbar-form .btn { height: 35px; padding: 5px 10px; font-size: 13px; line-height: 1.4; border-radius: 6px; } select.navbar-form .form-control, select.navbar-form .input-group-addon, select.navbar-form .btn { height: 35px; line-height: 35px; } textarea.navbar-form .form-control, textarea.navbar-form .input-group-addon, textarea.navbar-form .btn, select[multiple].navbar-form .form-control, select[multiple].navbar-form .input-group-addon, select[multiple].navbar-form .btn { height: auto; } .navbar-form .input-group .form-control:first-child, .navbar-form .input-group-addon:first-child, .navbar-form .input-group-btn:first-child > .btn, .navbar-form .input-group-btn:first-child > .dropdown-toggle, .navbar-form .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .navbar-form .input-group .form-control:last-child, .navbar-form .input-group-addon:last-child, .navbar-form .input-group-btn:last-child > .btn, .navbar-form .input-group-btn:last-child > .dropdown-toggle, .navbar-form .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .navbar-form .form-control { font-size: 15px; border-radius: 5px; display: table-cell; } .navbar-form .form-group + .btn { font-size: 15px; border-radius: 5px; margin-left: 4px; } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 0; } .navbar-form .form-group + .btn { margin-top: 9px; margin-left: 0; } } .navbar-nav > li > .dropdown-menu { min-width: 100%; border-radius: 4px; } @media (max-width: 767px) { .navbar-nav > li > .dropdown-menu { -webkit-transition: all 0s; transition: all 0s; display: none; } } @media (max-width: 767px) { .navbar-nav > li.open > .dropdown-menu { margin-top: 0 !important; display: block; } } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .navbar-nav > .open > .dropdown-toggle, .navbar-nav > .open > .dropdown-toggle:focus, .navbar-nav > .open > .dropdown-toggle:hover { background-color: transparent; } .navbar-text { font-size: 16px; line-height: 1.438; color: #34495e; margin-top: 0; margin-bottom: 0; padding-top: 15px; padding-bottom: 15px; } @media (min-width: 768px) { .navbar-text { margin-left: 21px; margin-right: 21px; } .navbar-text.navbar-right:last-child { margin-right: 0; } } .navbar-btn { margin-top: 6px; margin-bottom: 6px; } .navbar-btn.btn-sm { margin-top: 9px; margin-bottom: 8px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-unread, .navbar-new { font-family: "Lato", Helvetica, Arial, sans-serif; background-color: #1abc9c; border-radius: 50%; color: #ffffff; font-size: 0; font-weight: 700; height: 6px; line-height: 1; position: absolute; right: 12px; text-align: center; top: 35%; width: 6px; z-index: 10; } @media (max-width: 768px) { .navbar-unread, .navbar-new { position: static; float: right; margin: 0 0 0 10px; } } .active .navbar-unread, .active .navbar-new { background-color: #ffffff; display: none; } .navbar-new { background-color: #e74c3c; font-size: 12px; height: 18px; line-height: 17px; margin: -6px -10px; min-width: 18px; padding: 0 1px; width: auto; -webkit-font-smoothing: subpixel-antialiased; } .navbar-default { background-color: #ecf0f1; } .navbar-default .navbar-brand { color: #34495e; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #1abc9c; background-color: transparent; } .navbar-default .navbar-toggle:before { color: #34495e; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: transparent; } .navbar-default .navbar-toggle:hover:before, .navbar-default .navbar-toggle:focus:before { color: #1abc9c; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e5e9ea; border-width: 2px; } .navbar-default .navbar-nav > li > a { color: #34495e; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #1abc9c; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #1abc9c; background-color: transparent; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-nav > .dropdown > a .caret { border-top-color: #34495e; border-bottom-color: #34495e; } .navbar-default .navbar-nav > .active > a .caret { border-top-color: #1abc9c; border-bottom-color: #1abc9c; } .navbar-default .navbar-nav > .dropdown > a:hover .caret, .navbar-default .navbar-nav > .dropdown > a:focus .caret { border-top-color: #1abc9c; border-bottom-color: #1abc9c; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: transparent; color: #1abc9c; } .navbar-default .navbar-nav > .open > a .caret, .navbar-default .navbar-nav > .open > a:hover .caret, .navbar-default .navbar-nav > .open > a:focus .caret { border-top-color: #1abc9c; border-bottom-color: #1abc9c; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #34495e; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #1abc9c; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #1abc9c; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-form .form-control { border-color: transparent; } .navbar-default .navbar-form .form-control:-moz-placeholder { color: #aeb6bf; } .navbar-default .navbar-form .form-control::-moz-placeholder { color: #aeb6bf; opacity: 1; } .navbar-default .navbar-form .form-control:-ms-input-placeholder { color: #aeb6bf; } .navbar-default .navbar-form .form-control::-webkit-input-placeholder { color: #aeb6bf; } .navbar-default .navbar-form .form-control.placeholder { color: #aeb6bf; } .navbar-default .navbar-form .form-control:focus { border-color: #1abc9c; color: #1abc9c; } .navbar-default .navbar-form .input-group-btn .btn { border-color: transparent; color: #919ba4; } .navbar-default .navbar-form .input-group.focus .form-control, .navbar-default .navbar-form .input-group.focus .input-group-btn .btn { border-color: #1abc9c; color: #1abc9c; } .navbar-default .navbar-text { color: #34495e; } .navbar-default .navbar-text a { color: #34495e; } .navbar-default .navbar-text a:hover, .navbar-default .navbar-text a:focus { color: #1abc9c; } .navbar-inverse { background-color: #34495e; } .navbar-inverse .navbar-brand { color: #ffffff; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #1abc9c; background-color: transparent; } .navbar-inverse .navbar-toggle:before { color: #ffffff; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: transparent; } .navbar-inverse .navbar-toggle:hover:before, .navbar-inverse .navbar-toggle:focus:before { color: #1abc9c; } .navbar-inverse .navbar-collapse { border-color: #2f4154; border-width: 2px; } .navbar-inverse .navbar-nav > li > a { color: #ffffff; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #1abc9c; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #1abc9c; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret, .navbar-inverse .navbar-nav > .dropdown > a:focus .caret { border-top-color: #1abc9c; border-bottom-color: #1abc9c; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #1abc9c; color: #ffffff; border-left-color: transparent; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #4b6075; border-bottom-color: #4b6075; } .navbar-inverse .navbar-nav > .open > .dropdown-arrow { border-top-color: #34495e; border-bottom-color: #34495e; } .navbar-inverse .navbar-nav > .open > .dropdown-menu { background-color: #34495e; padding: 3px 4px; } .navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a { color: #e1e4e7; border-radius: 4px; padding: 6px 9px; } .navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a:focus { color: #ffffff; background-color: #1abc9c; } .navbar-inverse .navbar-nav > .open > .dropdown-menu > .divider { background-color: #2f4154; height: 2px; margin-left: -4px; margin-right: -4px; } @media (max-width: 767px) { .navbar-inverse .navbar-nav > li > a { border-left-width: 0; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #ffffff; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #1abc9c; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #1abc9c; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-nav .dropdown-menu .divider { background-color: #2f4154; } } .navbar-inverse .navbar-form .form-control { color: #536a81; border-color: transparent; background-color: #293a4a; } .navbar-inverse .navbar-form .form-control:-moz-placeholder { color: #536a81; } .navbar-inverse .navbar-form .form-control::-moz-placeholder { color: #536a81; opacity: 1; } .navbar-inverse .navbar-form .form-control:-ms-input-placeholder { color: #536a81; } .navbar-inverse .navbar-form .form-control::-webkit-input-placeholder { color: #536a81; } .navbar-inverse .navbar-form .form-control.placeholder { color: #536a81; } .navbar-inverse .navbar-form .form-control:focus { border-color: #1abc9c; color: #1abc9c; } .navbar-inverse .navbar-form .btn { color: #ffffff; background-color: #1abc9c; } .navbar-inverse .navbar-form .btn:hover, .navbar-inverse .navbar-form .btn:focus, .navbar-inverse .navbar-form .btn:active, .navbar-inverse .navbar-form .btn.active, .open .dropdown-toggle.navbar-inverse .navbar-form .btn { color: #ffffff; background-color: #48c9b0; border-color: #48c9b0; } .navbar-inverse .navbar-form .btn:active, .navbar-inverse .navbar-form .btn.active, .open .dropdown-toggle.navbar-inverse .navbar-form .btn { background: #16a085; border-color: #16a085; } .navbar-inverse .navbar-form .btn.disabled, .navbar-inverse .navbar-form .btn[disabled], fieldset[disabled] .navbar-inverse .navbar-form .btn, .navbar-inverse .navbar-form .btn.disabled:hover, .navbar-inverse .navbar-form .btn[disabled]:hover, fieldset[disabled] .navbar-inverse .navbar-form .btn:hover, .navbar-inverse .navbar-form .btn.disabled:focus, .navbar-inverse .navbar-form .btn[disabled]:focus, fieldset[disabled] .navbar-inverse .navbar-form .btn:focus, .navbar-inverse .navbar-form .btn.disabled:active, .navbar-inverse .navbar-form .btn[disabled]:active, fieldset[disabled] .navbar-inverse .navbar-form .btn:active, .navbar-inverse .navbar-form .btn.disabled.active, .navbar-inverse .navbar-form .btn[disabled].active, fieldset[disabled] .navbar-inverse .navbar-form .btn.active { background-color: #1abc9c; border-color: #1abc9c; } .navbar-inverse .navbar-form .input-group-btn .btn { border-color: transparent; background-color: #293a4a; color: #526a82; } .navbar-inverse .navbar-form .input-group.focus .form-control, .navbar-inverse .navbar-form .input-group.focus .input-group-btn .btn { border-color: #1abc9c; color: #1abc9c; } @media (max-width: 767px) { .navbar-inverse .navbar-form { border-color: #2f4154; border-width: 2px 0; } } .navbar-inverse .navbar-text { color: #ffffff; } .navbar-inverse .navbar-text a { color: #ffffff; } .navbar-inverse .navbar-text a:hover, .navbar-inverse .navbar-text a:focus { color: #1abc9c; } .navbar-inverse .navbar-btn { color: #ffffff; background-color: #1abc9c; } .navbar-inverse .navbar-btn:hover, .navbar-inverse .navbar-btn:focus, .navbar-inverse .navbar-btn:active, .navbar-inverse .navbar-btn.active, .open .dropdown-toggle.navbar-inverse .navbar-btn { color: #ffffff; background-color: #48c9b0; border-color: #48c9b0; } .navbar-inverse .navbar-btn:active, .navbar-inverse .navbar-btn.active, .open .dropdown-toggle.navbar-inverse .navbar-btn { background: #16a085; border-color: #16a085; } .navbar-inverse .navbar-btn.disabled, .navbar-inverse .navbar-btn[disabled], fieldset[disabled] .navbar-inverse .navbar-btn, .navbar-inverse .navbar-btn.disabled:hover, .navbar-inverse .navbar-btn[disabled]:hover, fieldset[disabled] .navbar-inverse .navbar-btn:hover, .navbar-inverse .navbar-btn.disabled:focus, .navbar-inverse .navbar-btn[disabled]:focus, fieldset[disabled] .navbar-inverse .navbar-btn:focus, .navbar-inverse .navbar-btn.disabled:active, .navbar-inverse .navbar-btn[disabled]:active, fieldset[disabled] .navbar-inverse .navbar-btn:active, .navbar-inverse .navbar-btn.disabled.active, .navbar-inverse .navbar-btn[disabled].active, fieldset[disabled] .navbar-inverse .navbar-btn.active { background-color: #1abc9c; border-color: #1abc9c; } @media (min-width: 768px) { .navbar-embossed > .navbar-collapse { border-radius: 6px; -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); } .navbar-embossed.navbar-inverse .navbar-nav .active > a, .navbar-embossed.navbar-inverse .navbar-nav .open > a { -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); } } .navbar-lg { min-height: 76px; } .navbar-lg .navbar-brand { line-height: 1; padding-top: 26px; padding-bottom: 26px; } .navbar-lg .navbar-brand > [class*="fui-"] { font-size: 24px; line-height: 1; } .navbar-lg .navbar-nav > li > a { font-size: 15px; line-height: 1.6; } @media (min-width: 768px) { .navbar-lg .navbar-nav > li > a { padding-top: 26px; padding-bottom: 26px; } } .navbar-lg .navbar-toggle { height: 76px; line-height: 76px; } .navbar-lg .navbar-form { padding-top: 20.5px; padding-bottom: 20.5px; } .navbar-lg .navbar-text { padding-top: 26.5px; padding-bottom: 26.5px; } .navbar-lg .navbar-btn { margin-top: 17.5px; margin-bottom: 17.5px; } .navbar-lg .navbar-btn.btn-sm { margin-top: 20.5px; margin-bottom: 20.5px; } .navbar-lg .navbar-btn.btn-xs { margin-top: 25.5px; margin-bottom: 25.5px; } .tagsinput { background: white; border: 2px solid #1abc9c; border-radius: 6px; height: 100px; margin-bottom: 18px; padding: 6px 1px 1px 6px; overflow-y: auto; text-align: left; } .tagsinput .tag { border-radius: 4px; background-color: #1abc9c; color: #ffffff; font-size: 14px; cursor: pointer; display: inline-block; margin-right: 5px; margin-bottom: 5px; overflow: hidden; line-height: 15px; padding: 6px 13px 8px 19px; position: relative; vertical-align: middle; -webkit-transition: 0.25s linear; transition: 0.25s linear; } .tagsinput .tag:hover { background-color: #16a085; color: #ffffff; padding-left: 12px; padding-right: 20px; } .tagsinput .tag:hover .tagsinput-remove-link { color: #ffffff; opacity: 1; display: block\9; } .tagsinput input { background: transparent; border: none; color: #34495e; font-family: "Lato", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0 0 0 5px; outline: none !important; margin: 6px 5px 0 0; vertical-align: top; width: 12px; } .tagsinput-remove-link { bottom: 0; color: #ffffff; cursor: pointer; font-size: 12px; opacity: 0; padding: 7px 7px 5px 0; position: absolute; right: 0; text-align: right; text-decoration: none; top: 0; width: 100%; z-index: 2; display: none\9; } .tagsinput-remove-link:before { color: #ffffff; content: "\e00b"; font-family: "Flat-UI-Icons"; } .tagsinput-add-container { vertical-align: middle; display: inline-block; } .tagsinput-add { background-color: #d6dbdf; border-radius: 3px; color: #ffffff; cursor: pointer; display: inline-block; font-size: 14px; line-height: 1; margin-bottom: 5px; padding: 7px 9px; vertical-align: top; -webkit-transition: 0.25s linear; transition: 0.25s linear; } .tagsinput-add:hover { background-color: #1abc9c; } .tagsinput-add:before { content: "\e009"; font-family: "Flat-UI-Icons"; } .tags_clear { clear: both; width: 100%; height: 0px; } .not_valid { background: #fbd8db !important; color: #90111a !important; margin-left: 5px !important; } .twitter-typeahead { width: 100%; } .twitter-typeahead .tt-query, .twitter-typeahead .tt-hint { border: 2px solid #bdc3c7; color: #34495e; font-family: "Lato", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.467; padding: 8px 12px; height: 42px; -webkit-appearance: none; border-radius: 6px; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; transition: border .25s linear, color .25s linear, background-color .25s linear; } .twitter-typeahead .tt-query:-moz-placeholder, .twitter-typeahead .tt-hint:-moz-placeholder { color: #b2bcc5; } .twitter-typeahead .tt-query::-moz-placeholder, .twitter-typeahead .tt-hint::-moz-placeholder { color: #b2bcc5; opacity: 1; } .twitter-typeahead .tt-query:-ms-input-placeholder, .twitter-typeahead .tt-hint:-ms-input-placeholder { color: #b2bcc5; } .twitter-typeahead .tt-query::-webkit-input-placeholder, .twitter-typeahead .tt-hint::-webkit-input-placeholder { color: #b2bcc5; } .twitter-typeahead .tt-query.placeholder, .twitter-typeahead .tt-hint.placeholder { color: #b2bcc5; } .form-group.focus .twitter-typeahead .tt-query, .form-group.focus .twitter-typeahead .tt-hint, .twitter-typeahead .tt-query:focus, .twitter-typeahead .tt-hint:focus { border-color: #1abc9c; outline: 0; -webkit-box-shadow: none; box-shadow: none; } .twitter-typeahead .tt-query[disabled], .twitter-typeahead .tt-hint[disabled], .twitter-typeahead .tt-query[readonly], .twitter-typeahead .tt-hint[readonly], fieldset[disabled] .twitter-typeahead .tt-query, fieldset[disabled] .twitter-typeahead .tt-hint { background-color: #f4f6f6; border-color: #d5dbdb; color: #d5dbdb; cursor: default; opacity: 0.7; filter: alpha(opacity=70); } .twitter-typeahead .tt-query.flat, .twitter-typeahead .tt-hint.flat { border-color: transparent; } .twitter-typeahead .tt-query.flat:hover, .twitter-typeahead .tt-hint.flat:hover { border-color: #bdc3c7; } .twitter-typeahead .tt-query.flat:focus, .twitter-typeahead .tt-hint.flat:focus { border-color: #1abc9c; } .twitter-typeahead .tt-query + .input-icon, .twitter-typeahead .tt-hint + .input-icon { position: absolute; top: 2px; right: 2px; line-height: 37px; vertical-align: middle; font-size: 20px; color: #b2bcc5; background-color: #ffffff; padding: 0 12px 0 0; border-radius: 6px; } .twitter-typeahead .tt-dropdown-menu { width: 100%; margin-top: 5px; border: 2px solid #1abc9c; padding: 5px 0; background-color: #ffffff; border-radius: 6px; } .twitter-typeahead .tt-suggestion p { padding: 6px 14px; font-size: 14px; line-height: 1.429; margin: 0; } .twitter-typeahead .tt-suggestion:first-child p, .twitter-typeahead .tt-suggestion:last-child p { padding: 6px 14px; } .twitter-typeahead .tt-suggestion.tt-is-under-cursor { color: #fff; background-color: #16a085; } .progress { background: #ebedef; border-radius: 32px; height: 12px; -webkit-box-shadow: none; box-shadow: none; } .progress-bar { background: #1abc9c; line-height: 12px; -webkit-box-shadow: none; box-shadow: none; } .progress-bar-success { background-color: #2ecc71; } .progress-bar-warning { background-color: #f1c40f; } .progress-bar-danger { background-color: #e74c3c; } .progress-bar-info { background-color: #3498db; } .ui-slider { background: #ebedef; border-radius: 32px; height: 12px; -webkit-box-shadow: none; box-shadow: none; margin-bottom: 20px; position: relative; cursor: pointer; } .ui-slider-handle { background-color: #16a085; border-radius: 50%; cursor: pointer; height: 18px; position: absolute; width: 18px; z-index: 2; -webkit-transition: background 0.25s; transition: background 0.25s; } .ui-slider-handle:hover, .ui-slider-handle:focus { background-color: #48c9b0; outline: none; } .ui-slider-handle:active { background-color: #16a085; } .ui-slider-range { background-color: #1abc9c; display: block; height: 100%; position: absolute; z-index: 1; } .ui-slider-segment { background-color: #d9dbdd; border-radius: 50%; height: 6px; width: 6px; } .ui-slider-value { float: right; font-size: 13px; margin-top: 12px; } .ui-slider-value.first { clear: left; float: left; } .ui-slider-horizontal .ui-slider-handle { margin-left: -9px; top: -3px; } .ui-slider-horizontal .ui-slider-handle[style*="100"] { margin-left: -15px; } .ui-slider-horizontal .ui-slider-range { border-radius: 30px 0 0 30px; } .ui-slider-horizontal .ui-slider-segment { float: left; margin: 3px -6px 0 0; } .ui-slider-vertical { width: 12px; } .ui-slider-vertical .ui-slider-handle { margin-left: -3px; margin-bottom: -11px; top: auto; } .ui-slider-vertical .ui-slider-range { width: 100%; bottom: 0; border-radius: 0 0 30px 30px; } .ui-slider-vertical .ui-slider-segment { position: absolute; right: 3px; } .pager { background-color: #34495e; border-radius: 6px; color: #ffffff; font-size: 16px; font-weight: 700; display: inline-block; } .pager li:first-child > a, .pager li:first-child > span { border-left: none; border-radius: 6px 0 0 6px; } .pager li > a, .pager li > span { background: none; border: none; border-left: 2px solid #2c3e50; color: #ffffff; padding: 9px 15px 10px; text-decoration: none; white-space: nowrap; border-radius: 0 6px 6px 0; line-height: 1.313; } .pager li > a:hover, .pager li > span:hover, .pager li > a:focus, .pager li > span:focus { background-color: #2c3e50; } .pager li > a:active, .pager li > span:active { background-color: #2c3e50; } .pager li > a [class*="fui-"] + span, .pager li > span [class*="fui-"] + span { margin-left: 8px; } .pager li > a span + [class*="fui-"], .pager li > span span + [class*="fui-"] { margin-left: 8px; } .pagination { position: relative; } .pagination ul { background: #d6dbdf; color: #ffffff; padding: 0; margin: 0; display: inline-block; border-radius: 6px; } .pagination ul li { display: inline-block; margin-right: -3px; vertical-align: middle; } .pagination ul li:first-child { border-radius: 6px 0 0 6px; } .pagination ul li:first-child.previous + li > a, .pagination ul li:first-child.previous + li > span { border-left-width: 5px; } .pagination ul li:last-child { border-radius: 0 6px 6px 0; margin-right: 0; } .pagination ul li.previous > a, .pagination ul li.next > a, .pagination ul li.previous > span, .pagination ul li.next > span { background: transparent; border: none; border-right: 2px solid #e4e7ea; font-size: 16px; margin: 0 9px 0 0; padding: 12px 17px; border-radius: 6px 0 0 6px; } .pagination ul li.previous > a, .pagination ul li.next > a, .pagination ul li.previous > span, .pagination ul li.next > span, .pagination ul li.previous > a:hover, .pagination ul li.next > a:hover, .pagination ul li.previous > span:hover, .pagination ul li.next > span:hover, .pagination ul li.previous > a:focus, .pagination ul li.next > a:focus, .pagination ul li.previous > span:focus, .pagination ul li.next > span:focus { border-color: #e4e7ea !important; } @media (max-width: 480px) { .pagination ul li.previous > a, .pagination ul li.next > a, .pagination ul li.previous > span, .pagination ul li.next > span { margin-right: 0; } } .pagination ul li.next { margin-left: 9px; } .pagination ul li.next > a, .pagination ul li.next > span { border-left: 2px solid #e4e7ea; border-right: none; margin: 0; border-radius: 0 6px 6px 0; } .pagination ul li.active > a, .pagination ul li.active > span { background-color: #ffffff; border-color: #ffffff; border-width: 2px !important; color: #d6dbdf; margin: 10px 5px 9px; } .pagination ul li.active > a:hover, .pagination ul li.active > span:hover, .pagination ul li.active > a:focus, .pagination ul li.active > span:focus { background-color: #ffffff; border-color: #ffffff; color: #d6dbdf; } .pagination ul li.active.previous, .pagination ul li.active.next { border-color: #e4e7ea; } .pagination ul li.active.previous > a, .pagination ul li.active.next > a, .pagination ul li.active.previous > span, .pagination ul li.active.next > span { margin: 0; } .pagination ul li.active.previous > a, .pagination ul li.active.next > a, .pagination ul li.active.previous > span, .pagination ul li.active.next > span, .pagination ul li.active.previous > a:hover, .pagination ul li.active.next > a:hover, .pagination ul li.active.previous > span:hover, .pagination ul li.active.next > span:hover, .pagination ul li.active.previous > a:focus, .pagination ul li.active.next > a:focus, .pagination ul li.active.previous > span:focus, .pagination ul li.active.next > span:focus { background-color: #1abc9c; color: #ffffff; } .pagination ul li.active.previous { margin-right: 6px; } .pagination ul li > a, .pagination ul li > span { display: inline-block; background: #ffffff; border: 5px solid #d6dbdf; color: #ffffff; font-size: 14px; line-height: 16px; margin: 7px 2px 6px; min-width: 0; min-height: 16px; padding: 0 4px; border-radius: 50px; -webkit-transition: background .2s ease-out, border-color 0s ease-out, color .2s ease-out; transition: background .2s ease-out, border-color 0s ease-out, color .2s ease-out; } .pagination ul li > a:hover, .pagination ul li > span:hover, .pagination ul li > a:focus, .pagination ul li > span:focus { background-color: #1abc9c; border-color: #1abc9c; color: #ffffff; -webkit-transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out; transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out; } .pagination ul li > a:active, .pagination ul li > span:active { background-color: #16a085; border-color: #16a085; } .pagination > .btn.previous, .pagination > .btn.next { margin-right: 8px; font-size: 14px; line-height: 1.429; padding-left: 23px; padding-right: 23px; } .pagination > .btn.previous [class*="fui-"], .pagination > .btn.next [class*="fui-"] { font-size: 16px; margin-left: -2px; margin-top: -2px; } .pagination > .btn.next { margin-left: 8px; margin-right: 0; } .pagination > .btn.next [class*="fui-"] { margin-right: -2px; margin-left: 4px; } .tooltip { font-size: 14px; line-height: 1.286; } .tooltip.in { opacity: 1; } .tooltip.top { padding-bottom: 9px; } .tooltip.top .tooltip-arrow { border-top-color: #34495e; border-width: 9px 9px 0; bottom: 0; margin-left: -9px; } .tooltip.right .tooltip-arrow { border-right-color: #34495e; border-width: 9px 9px 9px 0; margin-top: -9px; left: -3px; } .tooltip.bottom { padding-top: 8px; } .tooltip.bottom .tooltip-arrow { border-bottom-color: #34495e; border-width: 0 9px 9px; margin-left: -9px; top: -1px; } .tooltip.left .tooltip-arrow { border-left-color: #34495e; border-width: 9px 0 9px 9px; margin-top: -9px; right: -3px; } .tooltip-inner { background-color: #34495e; line-height: 1.286; padding: 12px 12px; text-align: center; width: 183px; border-radius: 6px; } .dropdown-menu { background-color: #f3f4f5; border: none; display: block; margin-top: 8px; opacity: 0; padding: 0; visibility: hidden; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: 0.25s; transition: 0.25s; } .open > .dropdown-menu { margin-top: 18px !important; opacity: 1; visibility: visible; } .dropdown-menu li:first-child dt + a { border-radius: 0; } .dropdown-menu li:first-child > a { border-radius: 6px 6px 0 0; padding-top: 8px; } .dropdown-menu li:last-child > a { border-radius: 0 0 6px 6px; padding-bottom: 10px; } .dropdown-menu li.active > a, .dropdown-menu li.selected > a, .dropdown-menu li.active > a.highlighted, .dropdown-menu li.selected > a.highlighted { background: #1abc9c; color: #ffffff; } .dropdown-menu li.active > a:hover, .dropdown-menu li.selected > a:hover, .dropdown-menu li.active > a.highlighted:hover, .dropdown-menu li.selected > a.highlighted:hover, .dropdown-menu li.active > a:focus, .dropdown-menu li.selected > a:focus, .dropdown-menu li.active > a.highlighted:focus, .dropdown-menu li.selected > a.highlighted:focus { background: #16a085; color: #ffffff; } .dropdown-menu li > a { color: rgba(52, 73, 94, 0.75); padding: 6px 15px 8px; text-decoration: none; -webkit-transition: background-color 0.25s; transition: background-color 0.25s; } .dropdown-menu li > a:before, .dropdown-menu li > a:after { content: " "; /* 1 */ display: table; /* 2 */ } .dropdown-menu li > a:after { clear: both; } .dropdown-menu li > a:hover, .dropdown-menu li > a:active, .dropdown-menu li > a:focus { background: #e1e4e7; color: inherit; outline: none; } .dropdown-menu li > a.highlighted { background: #c9cfd4; color: #ffffff; } .dropdown-menu li > a.highlighted:hover, .dropdown-menu li > a.highlighted:focus { background: #bac1c8; color: #ffffff; } .dropdown-menu li > a:before { float: right; margin-top: 3px; } .dropdown-menu li dt { font-weight: 300; margin-bottom: 3px; margin-top: 12px; padding: 0 15px; } @media (max-width: 991px) { .dropdown-menu { border-radius: 0 0 6px 6px !important; } } .dropdown-menu .divider { margin-top: 3px; margin-bottom: 3px; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { margin-bottom: 8px; } .dropup .dropdown-arrow, .navbar-fixed-bottom .dropdown .dropdown-arrow { border-bottom: none; border-top: 8px outset #f3f4f5; bottom: 100%; top: auto; } .navbar-fixed-bottom .nav > li > ul:before { border-bottom: none; border-top: 9px outset #34495e; bottom: 4px; top: auto; } .open.dropup > .dropdown-menu { margin-bottom: 18px; } .open.dropup > .dropdown-arrow { margin-bottom: 10px; } .open.dropup > .dropdown-arrow.dropdown-arrow-inverse { border-top-color: #34495e; } .open > .dropdown-arrow { margin-top: 11px; opacity: 1; } .dropdown-arrow { border-style: solid; border-width: 0 8px 7px; border-color: transparent transparent #f3f4f5 transparent; height: 0; margin-top: 0; opacity: 0; position: absolute; right: 19px; top: 100%; width: 0; z-index: 10; -webkit-transform: rotate(360deg); -webkit-transition: 0.25s; transition: 0.25s; } .dropdown-inverse { background-color: #34495e; color: #cccccc; padding: 4px 0 6px; } .dropdown-inverse li { margin: 0 4px -2px; } .dropdown-inverse li:first-child > a, .dropdown-inverse li:last-child > a { border-radius: 2px; padding-bottom: 7px; padding-top: 5px; } .dropdown-inverse li:first-child dt + a, .dropdown-inverse li:last-child dt + a { border-radius: 2px; } .dropdown-inverse li.active > a, .dropdown-inverse li.selected > a { background: #1abc9c; color: #ffffff; position: relative; z-index: 1; } .dropdown-inverse li dt { padding-left: 11px; padding-right: 11px; } .dropdown-inverse li .divider { margin-left: 11px; margin-right: 11px; } .dropdown-inverse li > a { border-radius: 2px; color: #ffffff; padding: 5px 11px 7px; } .dropdown-inverse li > a:hover, .dropdown-inverse li > a:active, .dropdown-inverse li > a:focus { background: #2c3e50; } .dropdown-inverse li > a.highlighted { background: #526476; } .dropdown-inverse li > a.highlighted:hover, .dropdown-inverse li > a.highlighted:focus { background: #677786; } .dropdown-inverse li .divider { background-color: #526476; border-bottom-color: #526476; } /* ============================================================ * bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru * path_to_url * ============================================================ * path_to_url * ============================================================ */ .has-switch { border-radius: 30px; display: inline-block; cursor: pointer; line-height: 1.72222; overflow: hidden; position: relative; text-align: left; width: 80px; -webkit-mask: url('../images/switch/mask.png') 0 0 no-repeat; mask: url('../images/switch/mask.png') 0 0 no-repeat; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .has-switch.deactivate { opacity: 0.5; filter: alpha(opacity=50); cursor: default !important; } .has-switch.deactivate label, .has-switch.deactivate span { cursor: default !important; } .has-switch > div { width: 130px; position: relative; top: 0; } .has-switch > div.switch-animate { -webkit-transition: left 0.25s ease-out; transition: left 0.25s ease-out; } .has-switch > div.switch-off { left: -50px; } .has-switch > div.switch-off label { background-color: #7f8c9a; border-color: #bdc3c7; -webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5); box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5); } .has-switch > div.switch-on { left: 0; } .has-switch > div.switch-on label { background-color: #1abc9c; } .has-switch input[type=checkbox] { display: none; } .has-switch span { cursor: pointer; font-size: 15px; font-weight: 700; float: left; height: 29px; line-height: 19px; margin: 0; padding-bottom: 6px; padding-top: 5px; position: relative; text-align: center; width: 50%; z-index: 1; -webkit-transition: 0.25s ease-out; transition: 0.25s ease-out; } .has-switch span.switch-left { border-radius: 30px 0 0 30px; background-color: #34495e; color: #1abc9c; border-left: 1px solid transparent; } .has-switch span.switch-right { border-radius: 0 30px 30px 0; background-color: #bdc3c7; color: #ffffff; text-indent: 7px; } .has-switch span.switch-right [class*="fui-"] { text-indent: 0; } .has-switch label { border: 4px solid #34495e; border-radius: 50%; float: left; height: 29px; margin: 0 -15px; padding: 0; position: relative; vertical-align: middle; width: 29px; z-index: 100; -webkit-transition: 0.25s ease-out; transition: 0.25s ease-out; } .switch-square { border-radius: 6px; -webkit-mask: url('../images/switch/mask.png') 0 0 no-repeat; mask: url('../images/switch/mask.png') 0 0 no-repeat; } .switch-square > div.switch-off label { border-color: #7f8c9a; border-radius: 6px 0 0 6px; } .switch-square span.switch-left { border-radius: 6px 0 0 6px; } .switch-square span.switch-left [class*="fui-"] { text-indent: -10px; } .switch-square span.switch-right { border-radius: 0 6px 6px 0; } .switch-square span.switch-right [class*="fui-"] { text-indent: 5px; } .switch-square label { border-radius: 0 6px 6px 0; border-color: #1abc9c; } .share { background-color: #eff0f2; position: relative; border-radius: 6px; } .share:before { content: ""; border-style: solid; border-width: 0 9px 9px 9px; border-color: transparent transparent #eff0f2 transparent; height: 0; position: absolute; left: 23px; top: -9px; width: 0; -webkit-transform: rotate(360deg); } .share ul { list-style-type: none; margin: 0; padding: 15px; } .share li { font-size: 15px; line-height: 1.4; padding-top: 11px; } .share li:before, .share li:after { content: " "; /* 1 */ display: table; /* 2 */ } .share li:after { clear: both; } .share li:first-child { padding-top: 0; } .share .toggle { float: right; margin: 0; } .share .btn { border-radius: 0 0 6px 6px; } .share-label { float: left; font-size: 15px; line-height: 1.4; padding-top: 5px; width: 50%; } .pallete-item { width: 140px; float: left; margin: 0 0 20px 20px; } .palette { font-size: 14px; line-height: 1.214; color: #ffffff; margin: 0; padding: 15px; text-transform: uppercase; } .palette dt, .palette dd { line-height: 1.429; } .palette dt { display: block; font-weight: bold; opacity: 0.8; filter: alpha(opacity=80); } .palette dd { font-weight: 300; margin-left: 0; opacity: 0.8; filter: alpha(opacity=80); -webkit-font-smoothing: subpixel-antialiased; } .palette-turquoise { background-color: #1abc9c; } .palette-green-sea { background-color: #16a085; } .palette-emerald { background-color: #2ecc71; } .palette-nephritis { background-color: #27ae60; } .palette-peter-river { background-color: #3498db; } .palette-belize-hole { background-color: #2980b9; } .palette-amethyst { background-color: #9b59b6; } .palette-wisteria { background-color: #8e44ad; } .palette-wet-asphalt { background-color: #34495e; } .palette-midnight-blue { background-color: #2c3e50; } .palette-sun-flower { background-color: #f1c40f; } .palette-orange { background-color: #f39c12; } .palette-carrot { background-color: #e67e22; } .palette-pumpkin { background-color: #d35400; } .palette-alizarin { background-color: #e74c3c; } .palette-pomegranate { background-color: #c0392b; } .palette-clouds { background-color: #ecf0f1; } .palette-silver { background-color: #bdc3c7; } .palette-concrete { background-color: #95a5a6; } .palette-asbestos { background-color: #7f8c8d; } .palette-clouds { color: #bdc3c7; } .palette-paragraph { color: #7f8c8d; font-size: 12px; line-height: 17px; } .palette-paragraph span { color: #bdc3c7; } .palette-headline { color: #7f8c8d; font-size: 13px; font-weight: 700; margin-top: -3px; } .tile { background-color: #eff0f2; border-radius: 6px; padding: 14px; position: relative; text-align: center; } .tile.tile-hot:before { background: url(../images/tile/ribbon.png) 0 0 no-repeat; background-size: 82px 82px; content: ''; height: 82px; position: absolute; right: -4px; top: -4px; width: 82px; } .tile p { font-size: 15px; margin-bottom: 33px; } .tile-image { height: 100px; margin: 31px 0 27px; vertical-align: bottom; } .tile-image.big-illustration { height: 111px; margin-top: 20px; width: 112px; } .tile-title { font-size: 20px; margin: 0; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) { .tile.tile-hot:before { background-image: url(../images/tile/ribbon-2x.png); } } .todo { color: #798795; margin-bottom: 20px; border-radius: 6px; } .todo ul { background-color: #2c3e50; margin: 0; padding: 0; list-style-type: none; border-radius: 0 0 6px 6px; } .todo li { background: #34495e url(../images/todo/todo.png) 92% center no-repeat; background-size: 20px 20px; cursor: pointer; font-size: 14px; line-height: 1.214; margin-top: 2px; padding: 18px 42px 21px 25px; position: relative; -webkit-transition: 0.25s; transition: 0.25s; } .todo li:first-child { margin-top: 0; } .todo li:last-child { border-radius: 0 0 6px 6px; padding-bottom: 21px; } .todo li.todo-done { background: transparent url(../images/todo/done.png) 92% center no-repeat; background-size: 20px 20px; color: #1abc9c; } .todo li.todo-done .todo-name { color: #1abc9c; } .todo-search { position: relative; background: #1abc9c; background-size: 16px 16px; border-radius: 6px 6px 0 0; color: #34495e; padding: 19px 25px 20px; } .todo-search:before { position: absolute; font-family: 'Flat-UI-Icons'; /* content: "\e01c"; */ font-size: 16px; line-height: 17px; display: inline-block; top: 50%; left: 92%; margin: -0.5em 0 0 -1em; } input.todo-search-field { background: none; border: none; color: #34495e; font-size: 19px; font-weight: 700; margin: 0; line-height: 23px; padding: 5px 0; text-indent: 0; -webkit-box-shadow: none; box-shadow: none; } input.todo-search-field:-moz-placeholder { color: #34495e; } input.todo-search-field::-moz-placeholder { color: #34495e; opacity: 1; } input.todo-search-field:-ms-input-placeholder { color: #34495e; } input.todo-search-field::-webkit-input-placeholder { color: #34495e; } input.todo-search-field.placeholder { color: #34495e; } .todo-icon { float: left; font-size: 24px; padding: 11px 22px 0 0; } .todo-content { padding-top: 1px; overflow: hidden; } .todo-name { color: #ffffff; font-size: 17px; margin: 1px 0 3px; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) { .todo li { background-image: url(../images/todo/todo-2x.png); } .todo li.todo-done { background-image: url(../images/todo/done-2x.png); } } .video-js { background-color: transparent; margin-top: -95px; position: relative; padding: 0; font-size: 10px; vertical-align: middle; border-radius: 6px 6px 0 0; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden; backface-visibility: hidden; } .video-js .vjs-tech { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 6px 6px 0 0; } .video-js:-moz-full-screen { position: absolute; } body.vjs-full-window { padding: 0; margin: 0; height: 100%; overflow-y: auto; } .video-js.vjs-fullscreen { position: fixed; overflow: hidden; z-index: 1000; left: 0; top: 0; bottom: 0; right: 0; width: 100% !important; height: 100% !important; _position: absolute; } .video-js:-webkit-full-screen { width: 100% !important; height: 100% !important; } .vjs-poster { margin: 0 auto; padding: 0; cursor: pointer; position: relative; width: 100%; max-height: 100%; border-radius: 6px 6px 0 0; } .video-js .vjs-text-track-display { text-align: center; position: absolute; bottom: 4em; left: 1em; right: 1em; font-family: "Lato", Helvetica, Arial, sans-serif; } .video-js .vjs-text-track { display: none; color: #ffffff; font-size: 1.4em; text-align: center; margin-bottom: .1em; background: #000; background: rgba(0, 0, 0, 0.5); } .video-js .vjs-subtitles { color: #fff; } .video-js .vjs-captions { color: #fc6; } .vjs-tt-cue { display: block; } .vjs-fade-in { visibility: visible !important; opacity: 1 !important; -webkit-transition: visibility 0s linear 0s, opacity .3s linear; transition: visibility 0s linear 0s, opacity .3s linear; } .vjs-fade-out { visibility: hidden !important; opacity: 0 !important; -webkit-transition: visibility 0s linear 1.5s, opacity 1.5s linear; transition: visibility 0s linear 1.5s, opacity 1.5s linear; } .vjs-control-bar { position: absolute; bottom: -47px; left: 0; right: 0; margin: 0; padding: 0; height: 47px; color: #ffffff; background: #273747; border-radius: 0 0 6px 6px; } .vjs-control-bar.vjs-fade-out { visibility: visible !important; opacity: 1 !important; } .vjs-control { background-position: center center; background-repeat: no-repeat; position: relative; float: left; text-align: center; margin: 0; padding: 0; height: 18px; width: 18px; } .vjs-control:focus { outline: 0; } .vjs-control div { background-position: center center; background-repeat: no-repeat; } .vjs-control-text { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } .vjs-play-control { cursor: pointer !important; height: 47px; left: 0; position: absolute; top: 0; width: 58px; } .vjs-play-control div { position: relative; height: 47px; } .vjs-play-control div:before, .vjs-play-control div:after { position: absolute; font-family: "Flat-UI-Icons"; color: #1abc9c; font-size: 16px; top: 50%; left: 50%; margin: -0.55em 0 0 -0.5em; -webkit-transition: color .25s, opacity .25s; transition: color .25s, opacity .25s; } .vjs-play-control div:after { content: "\e03b"; } .vjs-play-control div:before { content: "\e03c"; } .vjs-paused .vjs-play-control:hover div:before { color: #16a085; } .vjs-paused .vjs-play-control div:after { opacity: 0; filter: alpha(opacity=0); } .vjs-paused .vjs-play-control div:before { opacity: 1; filter: alpha(opacity=100); } .vjs-playing .vjs-play-control:hover div:after { color: #16a085; } .vjs-playing .vjs-play-control div:after { opacity: 1; filter: alpha(opacity=100); } .vjs-playing .vjs-play-control div:before { opacity: 0; filter: alpha(opacity=0); } .vjs-rewind-control { width: 5em; cursor: pointer !important; } .vjs-rewind-control div { width: 19px; height: 16px; background: none transparent; margin: .5em auto 0; } .vjs-mute-control { background: url(../images/video/volume-full.png) center -48px no-repeat; background-size: 16px 64px; cursor: pointer !important; position: absolute; right: 51px; top: 14px; } .vjs-mute-control:hover div, .vjs-mute-control:focus div { opacity: 0; } .vjs-mute-control.vjs-vol-0, .vjs-mute-control.vjs-vol-0 div { background-image: url(../images/video/volume-off.png); } .vjs-mute-control div { background: #273747 url(../images/video/volume-full.png) no-repeat center 2px; background-size: 16px 64px; height: 18px; -webkit-transition: opacity 0.25s; transition: opacity 0.25s; } .vjs-volume-control, .vjs-volume-level, .vjs-volume-handle, .vjs-volume-bar { display: none; } .vjs-progress-control { position: absolute; left: 60px; right: 180px; height: 12px; width: auto; top: 18px; background: #425669; border-radius: 32px; } .vjs-progress-holder { position: relative; cursor: pointer !important; padding: 0; margin: 0; height: 12px; } .vjs-play-progress, .vjs-load-progress { position: absolute; display: block; height: 12px; margin: 0; padding: 0; left: 0; top: 0; border-radius: 32px; } .vjs-play-progress { background: #1abc9c; left: -1px; } .vjs-load-progress { background: #d6dbdf; border-radius: 32px 0 0 32px; } .vjs-load-progress[style*='100%'], .vjs-load-progress[style*='99%'] { border-radius: 32px; } .vjs-seek-handle { background-color: #16a085; position: absolute; width: 18px; height: 18px; margin: -3px 0 0 1px; left: 0; top: 0; border-radius: 50%; -webkit-transition: background-color 0.25s; transition: background-color 0.25s; } .vjs-seek-handle[style*='95.'] { margin-left: 3px; } .vjs-seek-handle[style='left: 0%;'] { margin-left: -2px; } .vjs-seek-handle:hover, .vjs-seek-handle:focus { background-color: #148d75; } .vjs-seek-handle:active { background-color: #117a65; } .vjs-time-controls { position: absolute; height: 20px; width: 50px; top: 16px; font: 300 13px "Lato", Helvetica, Arial, sans-serif; } .vjs-current-time { right: 128px; text-align: right; } .vjs-duration { color: #5d6d7e; right: 69px; text-align: left; } .vjs-remaining-time { display: none; } .vjs-time-divider { color: #5d6d7e; font-size: 14px; position: absolute; right: 121px; top: 15px; } .vjs-secondary-controls { float: right; } .vjs-fullscreen-control { background-image: url(../images/video/fullscreen.png); background-position: center -47px; background-size: 15px 64px; cursor: pointer !important; position: absolute; right: 17px; top: 13px; } .vjs-fullscreen-control:hover div, .vjs-fullscreen-control:focus div { opacity: 0; } .vjs-fullscreen-control div { height: 18px; background: url(../images/video/fullscreen.png) no-repeat center 2px; background-size: 15px 64px; -webkit-transition: opacity 0.25s; transition: opacity 0.25s; } .vjs-menu-button { display: none !important; } @-webkit-keyframes sharp { 0% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } 50% { background: #ebedee; border-radius: 0; -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } 100% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes sharp { 0% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } 50% { background: #ebedee; border-radius: 0; -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } 100% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } } @-o-keyframes sharp { 0% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } 50% { background: #ebedee; border-radius: 0; -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } 100% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes sharp { 0% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } 50% { background: #ebedee; border-radius: 0; -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } 100% { background: #e74c3c; border-radius: 10px; -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } } .vjs-loading-spinner { background: #ebedee; display: none; height: 16px; left: 50%; margin: -8px 0 0 -8px; position: absolute; top: 50%; width: 16px; border-radius: 10px; -webkit-animation: sharp 2s ease infinite; animation: sharp 2s ease infinite; } .login { background: url(../images/login/imac.png) 0 0 no-repeat; background-size: 940px 778px; color: #ffffff; margin-bottom: 77px; padding: 38px 38px 267px; position: relative; } .login-screen { background-color: #1abc9c; min-height: 473px; padding: 123px 199px 33px 306px; } .login-icon { left: 200px; position: absolute; top: 160px; width: 96px; } .login-icon > img { display: block; margin-bottom: 6px; width: 100%; } .login-icon > h4 { font-size: 17px; font-weight: 300; line-height: 34px; opacity: 0.95; filter: alpha(opacity=95); } .login-icon > h4 small { color: inherit; display: block; font-size: inherit; font-weight: 700; } .login-form { background-color: #edeff1; padding: 24px 23px 20px; position: relative; border-radius: 6px; } .login-form:before { content: ''; border-style: solid; border-width: 12px 12px 12px 0; border-color: transparent #edeff1 transparent transparent; height: 0; position: absolute; left: -12px; top: 35px; width: 0; -webkit-transform: rotate(360deg); } .login-form .control-group { margin-bottom: 6px; position: relative; } .login-form .login-field { border-color: transparent; font-size: 17px; text-indent: 3px; } .login-form .login-field:focus { border-color: #1abc9c; } .login-form .login-field:focus + .login-field-icon { color: #1abc9c; } .login-form .login-field-icon { color: #bfc9ca; font-size: 16px; position: absolute; right: 15px; top: 3px; -webkit-transition: 0.25s; transition: 0.25s; } .login-link { color: #bfc9ca; display: block; font-size: 13px; margin-top: 15px; text-align: center; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) { .login { background-image: url(../images/login/imac-2x.png); } } footer { background-color: #edeff1; color: #bac1c8; font-size: 15px; padding: 0; } footer a { color: #9aa4af; font-weight: 700; } footer p { font-size: 15px; line-height: 20px; margin-bottom: 10px; } .footer-title { margin: 0 0 22px; padding-top: 21px; font-size: 24px; line-height: 40px; } .footer-brand { display: block; margin-bottom: 26px; width: 220px; } .footer-brand img { width: 216px; } .footer-banner { background-color: #1abc9c; color: #d1f2eb; margin-left: 42px; min-height: 316px; padding: 0 30px 30px; } .footer-banner .footer-title { color: #ffffff; } .footer-banner a { color: #b7f5e9; text-decoration: underline; } .footer-banner a:hover { text-decoration: none; } .footer-banner ul { list-style-type: none; margin: 0 0 26px; padding: 0; } .footer-banner ul li { border-top: 1px solid #1bc5a3; line-height: 19px; padding: 6px 0; } .footer-banner ul li:first-child { border-top: none; padding-top: 1px; } .last-col { overflow: hidden; } .ptn, .pvn, .pan { padding-top: 0; } .ptx, .pvx, .pax { padding-top: 3px; } .pts, .pvs, .pas { padding-top: 5px; } .ptm, .pvm, .pam { padding-top: 10px; } .ptl, .pvl, .pal { padding-top: 20px; } .prn, .phn, .pan { padding-right: 0; } .prx, .phx, .pax { padding-right: 3px; } .prs, .phs, .pas { padding-right: 5px; } .prm, .phm, .pam { padding-right: 10px; } .prl, .phl, .pal { padding-right: 20px; } .pbn, .pvn, .pan { padding-bottom: 0; } .pbx, .pvx, .pax { padding-bottom: 3px; } .pbs, .pvs, .pas { padding-bottom: 5px; } .pbm, .pvm, .pam { padding-bottom: 10px; } .pbl, .pvl, .pal { padding-bottom: 20px; } .pln, .phn, .pan { padding-left: 0; } .plx, .phx, .pax { padding-left: 3px; } .pls, .phs, .pas { padding-left: 5px; } .plm, .phm, .pam { padding-left: 10px; } .pll, .phl, .pal { padding-left: 20px; } .mtn, .mvn, .man { margin-top: 0px; } .mtx, .mvx, .max { margin-top: 3px; } .mts, .mvs, .mas { margin-top: 5px; } .mtm, .mvm, .mam { margin-top: 10px; } .mtl, .mvl, .mal { margin-top: 20px; } .mrn, .mhn, .man { margin-right: 0px; } .mrx, .mhx, .max { margin-right: 3px; } .mrs, .mhs, .mas { margin-right: 5px; } .mrm, .mhm, .mam { margin-right: 10px; } .mrl, .mhl, .mal { margin-right: 20px; } .mbn, .mvn, .man { margin-bottom: 0px; } .mbx, .mvx, .max { margin-bottom: 3px; } .mbs, .mvs, .mas { margin-bottom: 5px; } .mbm, .mvm, .mam { margin-bottom: 10px; } .mbl, .mvl, .mal { margin-bottom: 20px; } .mln, .mhn, .man { margin-left: 0px; } .mlx, .mhx, .max { margin-left: 3px; } .mls, .mhs, .mas { margin-left: 5px; } .mlm, .mhm, .mam { margin-left: 10px; } .mll, .mhl, .mal { margin-left: 20px; } ```
```xml <dict> <key>LayoutID</key> <integer>11</integer> <key>PathMapRef</key> <array> <dict> <key>CodecID</key> <array> <integer>283902550</integer> </array> <key>Headphone</key> <dict> <key>DefaultVolume</key> <integer>4292870144</integer> <key>Headset_dBV</key> <integer>3239051264</integer> </dict> <key>Inputs</key> <array> <string>Mic</string> <string>LineIn</string> </array> <key>IntSpeaker</key> <dict> <key>AmpPostDelay</key> <integer>150</integer> <key>AmpPreDelay</key> <integer>150</integer> <key>MaximumBootBeepValue</key> <integer>64</integer> </dict> <key>LineIn</key> <dict> <key>HeadsetMic_dBV</key> <integer>1088421888</integer> <key>MuteGPIO</key> <integer>1342242841</integer> <key>SignalProcessing</key> <dict> <key>SoftwareDSP</key> <dict> <key>DspFunction0</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>0</integer> <key>DspFuncName</key> <string>DspNoiseReduction</string> <key>DspFuncProcessingIndex</key> <integer>0</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>2</key> <integer>1</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>-1063256063</integer> <key>5</key> <data>O7qJwvAsd8IxFYLCNC+Iwgh8h8JYT3zCTGxtwjCQbMLsb3/C58KIwmIAjcKqEZTCM22Xwr5/k8L6Q5DCUXiPwhlqksKOQ5TCQS2XwkCYnMLSmqPCbK+your_sha256_hashqwvxyqcLWr6XCdkajwulQpMJs1afCbmCqwqbpqcIaSKrCSrmpwjv+p8KjIqjCVkOowh9WqMLun6nCudimwvISp8K686rC+your_sha256_hash8GswgJLr8Ku2a/your_sha256_hashCQGK1woYFtcIw7LHCOMuxwiKZs8K8YrXC6nO4ws5cu8KCa73CJjG+wqekvMK9RLnC4/a2wuKBt8Jyyour_sha512_hash/Rwhmf0cImvtPClErXwmrF18JUfdvCNi7fwty43cL+WdvCuqrawiIL3cKCR+HCYPDnwqQ67MLYserCshHowl7L6MK2guzCsvrvwu4o8cJyfv7C</data> </dict> <key>PatchbayInfo</key> <dict/> </dict> <key>DspFunction1</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>1</integer> <key>DspFuncName</key> <string>DspEqualization32</string> <key>DspFuncProcessingIndex</key> <integer>1</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>9</key> <integer>0</integer> <key>Filter</key> <array> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1120623594</integer> <key>7</key> <integer>1060439283</integer> <key>8</key> <integer>-1069504319</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>3</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134130816</integer> <key>7</key> <integer>1068239080</integer> <key>8</key> <integer>-1073964333</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>4</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1143149396</integer> <key>7</key> <integer>1069838081</integer> <key>8</key> <integer>-1072785033</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>5</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1161109679</integer> <key>7</key> <integer>1093706804</integer> <key>8</key> <integer>-1069580896</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>7</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1138536183</integer> <key>7</key> <integer>1094714319</integer> <key>8</key> <integer>-1069046873</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>9</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134823262</integer> <key>7</key> <integer>1088568216</integer> <key>8</key> <integer>-1073319056</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>10</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1140763936</integer> <key>7</key> <integer>1095878445</integer> <key>8</key> <integer>-1066910782</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>11</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1150711009</integer> <key>7</key> <integer>1082220668</integer> <key>8</key> <integer>-1072251010</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>22</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1169045837</integer> <key>7</key> <integer>1080998247</integer> <key>8</key> <integer>-1076100424</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>23</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>6</integer> <key>6</key> <integer>1174718752</integer> <key>7</key> <integer>1074226939</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>24</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1174256827</integer> <key>7</key> <integer>1091118565</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1120623594</integer> <key>7</key> <integer>1060439283</integer> <key>8</key> <integer>-1069504319</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>3</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134130816</integer> <key>7</key> <integer>1068239080</integer> <key>8</key> <integer>-1073964333</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>4</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1143149396</integer> <key>7</key> <integer>1069838081</integer> <key>8</key> <integer>-1072785033</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>5</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1161109679</integer> <key>7</key> <integer>1093706804</integer> <key>8</key> <integer>-1069580896</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>7</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1138536183</integer> <key>7</key> <integer>1094714319</integer> <key>8</key> <integer>-1069046873</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>9</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134823262</integer> <key>7</key> <integer>1088568216</integer> <key>8</key> <integer>-1073319056</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>10</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1140763936</integer> <key>7</key> <integer>1095878445</integer> <key>8</key> <integer>-1066910782</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>11</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1150711009</integer> <key>7</key> <integer>1082220668</integer> <key>8</key> <integer>-1072251010</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>22</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1169045837</integer> <key>7</key> <integer>1080998247</integer> <key>8</key> <integer>-1076100424</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>23</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>6</integer> <key>6</key> <integer>1174718752</integer> <key>7</key> <integer>1074226939</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>24</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1174256827</integer> <key>7</key> <integer>1091118565</integer> <key>8</key> <integer>-1065842737</integer> </dict> </array> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>0</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>0</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> <key>DspFunction2</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>2</integer> <key>DspFuncName</key> <string>DspGainStage</string> <key>DspFuncProcessingIndex</key> <integer>2</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>2</key> <integer>1065353216</integer> <key>3</key> <integer>1065353216</integer> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>1</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>1</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> <key>DspFunction3</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>3</integer> <key>DspFuncName</key> <string>DspClientGainAdjustStage</string> <key>DspFuncProcessingIndex</key> <integer>3</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>1</integer> <key>2</key> <integer>0</integer> <key>3</key> <integer>1082130432</integer> <key>4</key> <integer>1103626240</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1082130432</integer> <key>7</key> <integer>3</integer> <key>8</key> <integer>0</integer> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>2</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>2</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> </dict> </dict> </dict> <key>Mic</key> <dict> <key>HeadsetMic_dBV</key> <integer>1088421888</integer> <key>MuteGPIO</key> <integer>0</integer> <key>SignalProcessing</key> <dict> <key>SoftwareDSP</key> <dict> <key>DspFunction0</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>0</integer> <key>DspFuncName</key> <string>DspNoiseReduction</string> <key>DspFuncProcessingIndex</key> <integer>0</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>2</key> <integer>1</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>-1063256063</integer> <key>5</key> <data>O7qJwvAsd8IxFYLCNC+Iwgh8h8JYT3zCTGxtwjCQbMLsb3/C58KIwmIAjcKqEZTCM22Xwr5/k8L6Q5DCUXiPwhlqksKOQ5TCQS2XwkCYnMLSmqPCbK+your_sha256_hashqwvxyqcLWr6XCdkajwulQpMJs1afCbmCqwqbpqcIaSKrCSrmpwjv+p8KjIqjCVkOowh9WqMLun6nCudimwvISp8K686rC+your_sha256_hash8GswgJLr8Ku2a/your_sha256_hashCQGK1woYFtcIw7LHCOMuxwiKZs8K8YrXC6nO4ws5cu8KCa73CJjG+wqekvMK9RLnC4/a2wuKBt8Jyyour_sha512_hash/Rwhmf0cImvtPClErXwmrF18JUfdvCNi7fwty43cL+WdvCuqrawiIL3cKCR+HCYPDnwqQ67MLYserCshHowl7L6MK2guzCsvrvwu4o8cJyfv7C</data> </dict> <key>PatchbayInfo</key> <dict/> </dict> <key>DspFunction1</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>1</integer> <key>DspFuncName</key> <string>DspEqualization32</string> <key>DspFuncProcessingIndex</key> <integer>1</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>9</key> <integer>0</integer> <key>Filter</key> <array> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1120623594</integer> <key>7</key> <integer>1060439283</integer> <key>8</key> <integer>-1069504319</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>3</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134130816</integer> <key>7</key> <integer>1068239080</integer> <key>8</key> <integer>-1073964333</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>4</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1143149396</integer> <key>7</key> <integer>1069838081</integer> <key>8</key> <integer>-1072785033</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>5</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1161109679</integer> <key>7</key> <integer>1093706804</integer> <key>8</key> <integer>-1069580896</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>7</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1138536183</integer> <key>7</key> <integer>1094714319</integer> <key>8</key> <integer>-1069046873</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>9</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134823262</integer> <key>7</key> <integer>1088568216</integer> <key>8</key> <integer>-1073319056</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>10</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1140763936</integer> <key>7</key> <integer>1095878445</integer> <key>8</key> <integer>-1066910782</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>11</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1150711009</integer> <key>7</key> <integer>1082220668</integer> <key>8</key> <integer>-1072251010</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>22</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1169045837</integer> <key>7</key> <integer>1080998247</integer> <key>8</key> <integer>-1076100424</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>23</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>6</integer> <key>6</key> <integer>1174718752</integer> <key>7</key> <integer>1074226939</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>0</integer> <key>3</key> <integer>24</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1174256827</integer> <key>7</key> <integer>1091118565</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>0</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1120623594</integer> <key>7</key> <integer>1060439283</integer> <key>8</key> <integer>-1069504319</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>3</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134130816</integer> <key>7</key> <integer>1068239080</integer> <key>8</key> <integer>-1073964333</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>4</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1143149396</integer> <key>7</key> <integer>1069838081</integer> <key>8</key> <integer>-1072785033</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>5</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1161109679</integer> <key>7</key> <integer>1093706804</integer> <key>8</key> <integer>-1069580896</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>7</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1138536183</integer> <key>7</key> <integer>1094714319</integer> <key>8</key> <integer>-1069046873</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>9</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1134823262</integer> <key>7</key> <integer>1088568216</integer> <key>8</key> <integer>-1073319056</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>10</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1140763936</integer> <key>7</key> <integer>1095878445</integer> <key>8</key> <integer>-1066910782</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>11</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1150711009</integer> <key>7</key> <integer>1082220668</integer> <key>8</key> <integer>-1072251010</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>22</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1169045837</integer> <key>7</key> <integer>1080998247</integer> <key>8</key> <integer>-1076100424</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>23</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>6</integer> <key>6</key> <integer>1174718752</integer> <key>7</key> <integer>1074226939</integer> <key>8</key> <integer>-1065842737</integer> </dict> <dict> <key>2</key> <integer>1</integer> <key>3</key> <integer>24</integer> <key>4</key> <integer>0</integer> <key>5</key> <integer>4</integer> <key>6</key> <integer>1174256827</integer> <key>7</key> <integer>1091118565</integer> <key>8</key> <integer>-1065842737</integer> </dict> </array> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>0</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>0</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> <key>DspFunction2</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>2</integer> <key>DspFuncName</key> <string>DspGainStage</string> <key>DspFuncProcessingIndex</key> <integer>2</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>0</integer> <key>2</key> <integer>1065353216</integer> <key>3</key> <integer>1065353216</integer> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>1</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>1</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> <key>DspFunction3</key> <dict> <key>FunctionInfo</key> <dict> <key>DspFuncInstance</key> <integer>3</integer> <key>DspFuncName</key> <string>DspClientGainAdjustStage</string> <key>DspFuncProcessingIndex</key> <integer>3</integer> </dict> <key>ParameterInfo</key> <dict> <key>1</key> <integer>1</integer> <key>2</key> <integer>0</integer> <key>3</key> <integer>1082130432</integer> <key>4</key> <integer>1103626240</integer> <key>5</key> <integer>1</integer> <key>6</key> <integer>1082130432</integer> <key>7</key> <integer>3</integer> <key>8</key> <integer>0</integer> </dict> <key>PatchbayInfo</key> <dict> <key>InputPort0</key> <dict> <key>PortInstance</key> <integer>0</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>2</integer> <key>SourcePortIndex</key> <integer>0</integer> </dict> <key>InputPort1</key> <dict> <key>PortInstance</key> <integer>1</integer> <key>PortWidth</key> <integer>1</integer> <key>SourceFuncInstance</key> <integer>2</integer> <key>SourcePortIndex</key> <integer>1</integer> </dict> </dict> </dict> </dict> </dict> </dict> <key>Outputs</key> <array> <string>Headphone</string> <string>IntSpeaker</string> </array> <key>PathMapID</key> <integer>256</integer> </dict> </array> </dict> ```
Senoj-Jay Givans (Born December 30, 1993 in Jamaica) is a track runner formerly from the University of Texas born in Jamaica. He ran a 9.96 100-meter time at the 2016 NCAA championships breaking the 10-second barrier. This was the 9th fastest time in collegiate history. He competed in the Olympic Trials for the Jamaica in 2016. He earned a bronze medal at the 2012 World Junior Championships in Athletics – Men's 4 × 100 metres relay. References Texas Longhorns men's track and field athletes Jamaican male sprinters World Athletics Championships athletes for Jamaica 1993 births Living people
```c++ #include "fileheader.h" #include <vespa/vespalib/stllike/asciistream.h> #include <vespa/vespalib/data/databuffer.h> #include <vespa/fastos/file.h> #include <vespa/log/log.h> LOG_SETUP(".fileheader"); namespace vespalib { VESPA_IMPLEMENT_EXCEPTION(IllegalHeaderException, vespalib::Exception); const uint32_t GenericHeader::MAGIC(0x5ca1ab1e); const uint32_t GenericHeader::VERSION(1); const GenericHeader::Tag GenericHeader::EMPTY; const size_t ALIGNMENT=0x1000; GenericHeader::Tag::~Tag() = default; GenericHeader::Tag::Tag(const Tag &) = default; GenericHeader::Tag & GenericHeader::Tag::operator=(const Tag &) = default; GenericHeader::Tag::Tag() : _type(TYPE_EMPTY), _name(), _fVal(0), _iVal(0), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, float val) : _type(TYPE_FLOAT), _name(name), _fVal(val), _iVal(0), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, double val) : _type(TYPE_FLOAT), _name(name), _fVal(val), _iVal(0), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, int8_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, uint8_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, int16_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, uint16_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, int32_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, uint32_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, int64_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, uint64_t val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, bool val) : _type(TYPE_INTEGER), _name(name), _fVal(0), _iVal(val ? 1 : 0), _sVal() { } GenericHeader::Tag::Tag(const std::string &name, const char *val) : _type(TYPE_STRING), _name(name), _fVal(0), _iVal(0), _sVal(val) { } GenericHeader::Tag::Tag(const std::string &name, const std::string &val) : _type(TYPE_STRING), _name(name), _fVal(0), _iVal(0), _sVal(val) { } size_t GenericHeader::Tag::getSize() const { size_t ret = _name.size() + 2; switch (_type) { case TYPE_FLOAT: case TYPE_INTEGER: ret += 8; break; case TYPE_STRING: ret += _sVal.size() + 1; break; default: LOG_ASSERT(false); } return ret; } size_t GenericHeader::Tag::read(DataBuffer &buf) { char *pos = buf.getData(); std::string name(pos); buf.moveDataToDead(name.size() + 1); uint8_t type = buf.readInt8(); switch (type) { case TYPE_FLOAT: _fVal = buf.readDouble(); break; case TYPE_INTEGER: _iVal = buf.readInt64(); break; case TYPE_STRING: _sVal = std::string(buf.getData()); buf.moveDataToDead(_sVal.size() + 1); break; default: throw IllegalHeaderException("Can not deserialize empty tag."); } _name = name; // assign here for exception safety _type = (Type)type; return buf.getData() - pos; } size_t GenericHeader::Tag::write(DataBuffer &buf) const { int pos = buf.getDataLen(); buf.writeBytes(_name.c_str(), _name.size() + 1); buf.writeInt8(_type); switch (_type) { case TYPE_FLOAT: buf.writeDouble(_fVal); break; case TYPE_INTEGER: buf.writeInt64(_iVal); break; case TYPE_STRING: buf.writeBytes(_sVal.c_str(), _sVal.size() + 1); break; default: LOG_ASSERT(false); } return buf.getDataLen() - pos; } GenericHeader::BufferReader::BufferReader(DataBuffer &buf) : _buf(buf) { } size_t GenericHeader::BufferReader::getData(char *buf, size_t len) { if (len > _buf.getDataLen()) { len = _buf.getDataLen(); } _buf.readBytes(buf, len); return len; } GenericHeader::BufferWriter::BufferWriter(DataBuffer &buf) : _buf(buf) { } size_t GenericHeader::BufferWriter::putData(const char *buf, size_t len) { if (len > _buf.getFreeLen()) { len = _buf.getFreeLen(); } _buf.writeBytes(buf, len); return len; } GenericHeader::MMapReader::MMapReader(const char *buf, size_t sz) : _buf(buf), _sz(sz) { } size_t GenericHeader::MMapReader::getData(char *buf, size_t len) { size_t clen = std::min(len, _sz); memcpy(buf, _buf, clen); _buf += clen; _sz -= clen; return clen; } GenericHeader::GenericHeader() noexcept = default; GenericHeader::~GenericHeader() = default; const GenericHeader::Tag & GenericHeader::getTag(size_t idx) const { if (idx >= _tags.size()) { return EMPTY; } auto it = _tags.begin(); std::advance(it, idx); return it->second; } const GenericHeader::Tag & GenericHeader::getTag(const std::string &key) const { auto it = _tags.find(key); if (it == _tags.end()) { return EMPTY; } return it->second; } bool GenericHeader::hasTag(const std::string &key) const { return _tags.find(key) != _tags.end(); } bool GenericHeader::putTag(const GenericHeader::Tag &tag) { const std::string &key = tag.getName(); auto it = _tags.find(key); if (it != _tags.end()) { it->second = tag; return false; } _tags.insert(TagMap::value_type(key, tag)); return true; } bool GenericHeader::removeTag(const std::string &key) { auto it = _tags.find(key); if (it == _tags.end()) { return false; } _tags.erase(it); return true; } size_t GenericHeader::getMinSize() { return 4 /* magic */ + 4 /* size */ + 4 /* version */ + 4 /* num tags */; } size_t GenericHeader::getSize() const { size_t ret = getMinSize(); for (const auto & tag : _tags) { ret += tag.second.getSize(); } return ret; } size_t GenericHeader::readSize(IDataReader &reader) { size_t hhSize = getMinSize(); DataBuffer buf(hhSize, ALIGNMENT); size_t numBytesRead = reader.getData(buf.getFree(), hhSize); buf.moveFreeToData(numBytesRead); if (numBytesRead < hhSize) { throw IllegalHeaderException("Failed to read header info."); } uint32_t magic = buf.readInt32(); if (magic != MAGIC) { throw IllegalHeaderException("Failed to verify magic bits."); } uint32_t numBytesTotal = buf.readInt32(); if (numBytesTotal == 0) { throw IllegalHeaderException("Failed to read header size."); } if (numBytesTotal < getMinSize()) { throw IllegalHeaderException("Failed to verify header size."); } uint32_t version = buf.readInt32(); if (version != VERSION) { throw IllegalHeaderException("Failed to verify header version."); } return numBytesTotal; } size_t GenericHeader::read(IDataReader &reader) { size_t bufLen = 4_Ki; DataBuffer buf(bufLen, ALIGNMENT); size_t numBytesRead = reader.getData(buf.getFree(), bufLen); buf.moveFreeToData(numBytesRead); if (numBytesRead < 4 /* magic */ + 4 /* size */) { throw IllegalHeaderException("Failed to read header info."); } uint32_t magic = buf.readInt32(); if (magic != MAGIC) { throw IllegalHeaderException("Failed to verify magic bits."); } uint32_t numBytesTotal = buf.readInt32(); if (numBytesTotal == 0) { throw IllegalHeaderException("Failed to read header size."); } if (numBytesTotal < getMinSize()) { throw IllegalHeaderException("Failed to verify header size."); } if (numBytesRead < numBytesTotal) { LOG(debug, "Read %d of %d header bytes, performing backfill.", (uint32_t)numBytesRead, numBytesTotal); uint32_t numBytesRemain = numBytesTotal - numBytesRead; buf.ensureFree(numBytesRemain); LOG(debug, "Reading remaining %d bytes of header.", numBytesRemain); numBytesRead += reader.getData(buf.getFree(), numBytesRemain); if (numBytesRead != numBytesTotal) { throw IllegalHeaderException("Failed to read full header."); } buf.moveFreeToData(numBytesRemain); } else { buf.moveDataToFree(numBytesRead - numBytesTotal); } uint32_t version = buf.readInt32(); if (version != VERSION) { throw IllegalHeaderException("Failed to verify header version."); } uint32_t numTags = buf.readInt32(); TagMap tags; for (uint32_t i = 0; i < numTags; ++i) { Tag tag; tag.read(buf); tags.insert(TagMap::value_type(tag.getName(), tag)); } _tags.swap(tags); return numBytesTotal; } size_t GenericHeader::write(IDataWriter &writer) const { size_t numBytesTotal = getSize(); DataBuffer buf(numBytesTotal, ALIGNMENT); buf.writeInt32(MAGIC); buf.writeInt32((uint32_t)numBytesTotal); buf.writeInt32(VERSION); buf.writeInt32((uint32_t)_tags.size()); uint32_t numBytesInBuf = 16; for (const auto & tag : _tags) { numBytesInBuf += tag.second.write(buf); } if (numBytesInBuf < numBytesTotal) { buf.zeroFill(numBytesTotal - numBytesInBuf); } size_t numBytesWritten = writer.putData(buf.getData(), numBytesTotal); if (numBytesWritten != numBytesTotal) { throw IllegalHeaderException("Failed to write header."); } return numBytesWritten; } FileHeader::FileReader::FileReader(FastOS_FileInterface &file) : _file(file) { } size_t FileHeader::FileReader::getData(char *buf, size_t len) { LOG_ASSERT(_file.IsOpened()); LOG_ASSERT(_file.IsReadMode()); return _file.Read(buf, len); } FileHeader::FileWriter::FileWriter(FastOS_FileInterface &file) : _file(file) { } size_t FileHeader::FileWriter::putData(const char *buf, size_t len) { LOG_ASSERT(_file.IsOpened()); LOG_ASSERT(_file.IsWriteMode()); return _file.Write2(buf, len); } FileHeader::FileHeader(size_t alignTo, size_t minSize) noexcept : GenericHeader(), _alignTo(alignTo), _minSize(minSize), _fileSize(0) { } size_t FileHeader::getSize() const { size_t ret = GenericHeader::getSize(); if (_fileSize > ret) { return _fileSize; } if (_minSize > ret) { return _minSize; } size_t pad = ret % _alignTo; return ret + (pad > 0 ? _alignTo - pad : 0); } size_t FileHeader::readFile(FastOS_FileInterface &file) { FileReader reader(file); return GenericHeader::read(reader); } size_t FileHeader::writeFile(FastOS_FileInterface &file) const { FileWriter writer(file); return GenericHeader::write(writer); } size_t FileHeader::rewriteFile(FastOS_FileInterface &file) { LOG_ASSERT(file.IsOpened()); LOG_ASSERT(file.IsReadMode()); LOG_ASSERT(file.IsWriteMode()); // Store current position in file. int64_t pos = file.getPosition(); if (pos != 0) { file.SetPosition(0); } // Assert that header size agrees with file content. FileReader reader(file); size_t wantSize = 4 /* magic */ + 4 /* size */; DataBuffer buf(wantSize, ALIGNMENT); size_t numBytesRead = reader.getData(buf.getFree(), wantSize); if (numBytesRead < wantSize) { throw IllegalHeaderException("Failed to read header info."); } uint32_t magic = buf.readInt32(); if (magic != MAGIC) { throw IllegalHeaderException("Failed to verify magic bits."); } uint32_t size = buf.readInt32(); if (size == 0) { throw IllegalHeaderException("Failed to read header size."); } if (size < GenericHeader::getSize()) { throw IllegalHeaderException("Failed to rewrite resized header."); } _fileSize = size; // Write new header and reset file position. file.SetPosition(0); size_t ret = writeFile(file); if (file.getPosition() != pos) { file.SetPosition(pos); } return ret; } vespalib::asciistream & operator<<(vespalib::asciistream &out, const GenericHeader::Tag &tag) { switch (tag.getType()) { case GenericHeader::Tag::TYPE_FLOAT: out << tag.asFloat(); break; case GenericHeader::Tag::TYPE_INTEGER: out << tag.asInteger(); break; case GenericHeader::Tag::TYPE_STRING: out << tag.asString(); break; default: LOG_ASSERT(false); } return out; } } // namespace ```
```yaml # UTF-8 # YAML # # name name: # other_names ... # YAML # other_names: {"":"", "":"", "":"Tom"} # other_names: # sex M/F / sex: M # birth 4 N/A birth: 1950 # death 4 N/A death: N/A # desc YAML # desc desc: | # links YAML list # # links: ```
```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 utils import ( "encoding/json" "fmt" "io" "net/http" "time" ) type RemoteJobStream struct { JobType string `json:"jobType"` Metadata RemoteJobStreamMetadata `json:"metadata"` Consumers []RemoteJobStreamConsumer `json:"consumers"` } type RemoteJobStreamMetadata struct { Worker string `json:"worker"` Timeout string `json:"timeout"` FetchVariables []string `json:"fetchVariables"` } type RemoteJobStreamConsumer struct { ID string `json:"id"` Receiver string `json:"receiver"` } // We use the worker name to differentiate which stream we await func AwaitJobStreamExists(workerName string, monitoringAddress string) bool { streamExists := false for start := time.Now(); !streamExists && time.Since(start) < 10*time.Second; { response, err := http.Get(fmt.Sprintf("path_to_url", monitoringAddress)) if err != nil { time.Sleep(time.Second) continue } remoteStreams := make([]RemoteJobStream, 1) responseData, err := io.ReadAll(response.Body) if err != nil { time.Sleep(time.Second) continue } err = json.Unmarshal(responseData, &remoteStreams) if err != nil { time.Sleep(time.Second) continue } for _, remoteStream := range remoteStreams { if remoteStream.Metadata.Worker == workerName { return true } } } return false } ```
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. """Extracts file paths to copy files from pyinstaller-generated executables""" import os import sys import shutil import zipfile # Finds all *.toc files in ./workpath and reads these files in order to # identify Python files associated with a pyinstaller packaged executable. # Copies all of the Python files to a temporary directory (/medio) following # the original directory structure. def get_all_files_from_toc(toc_file, file_path_set): """ Extract filepaths from a .toc file and add to file_path_set """ with open(toc_file, 'rb') as toc_file_fd: for line in toc_file_fd: try: line = line.decode() except: # pylint:disable=bare-except continue if '.py' not in line: continue split_line = line.split(' ') for word in split_line: word = word.replace('\'', '').replace(',', '').replace('\n', '') if '.py' not in word: continue # Check if .egg is in the path and if so we need to split it if os.path.isfile(word): file_path_set.add(word) elif '.egg' in word: # check if this is an egg egg_path_split = word.split('.egg') if len(egg_path_split) != 2: continue egg_path = egg_path_split[0] + '.egg' if not os.path.isfile(egg_path): continue print('Unzipping contents of %s' % egg_path) # We have an egg. This needs to be unzipped and then replaced # with the unzipped data. tmp_dir_name = 'zipdcontents' if os.path.isdir(tmp_dir_name): shutil.rmtree(tmp_dir_name) # unzip egg and replace path with unzipped content with zipfile.ZipFile(egg_path, 'r') as zip_f: zip_f.extractall(tmp_dir_name) os.remove(egg_path) shutil.copytree(tmp_dir_name, egg_path) # Now the lines should be accessible, so check again if os.path.isfile(word): file_path_set.add(word) def create_file_structure_from_tocs(work_path, out_path): """ Extract the Python files that are added as paths in the output of a pyinstaller operation. The files are determined by reading through all of the *.toc files in the workpath of pyinstaller. The files will be copied into the out_path using a similar file path as they originally are. If any archive (.egg) files are present in the .toc files, then unzip the archives and substitute the archive for the unzipped content, i.e. we will extract the archives and collect the source files. """ print('Extracts files from the pyinstaller workpath') file_path_set = set() for path1 in os.listdir(work_path): full_path = os.path.join(work_path, path1) if not os.path.isdir(full_path): continue # We have a directory for path2 in os.listdir(full_path): if not '.toc' in path2: continue full_toc_file = os.path.join(full_path, path2) get_all_files_from_toc(full_toc_file, file_path_set) for file_path in file_path_set: relative_src = file_path[1:] if file_path[0] == '/' else file_path dst_path = os.path.join(out_path, relative_src) os.makedirs(os.path.dirname(dst_path), exist_ok=True) shutil.copy(file_path, dst_path) def main(): """ Main handler. """ if len(sys.argv) != 3: print('Use: python3 python_coverage_helper.py pyinstaller_workpath ' 'destination_for_output') sys.exit(1) work_path = sys.argv[1] out_path = sys.argv[2] create_file_structure_from_tocs(work_path, out_path) if __name__ == '__main__': main() ```
Brazil was a post-hardcore and progressive rock band from Indiana, USA. Band history The band was formed as London in the summer of 2000 by the brothers Jonathon and Nicholas Newby. In early 2001 the band renamed themselves Brazil, taken from the Terry Gilliam film Brazil. In 2002 the band signed a small contract with Fearless Records who released the Dasein EP. In 2004 they released their debut album A Hostage and the Meaning of Life, also released by Fearless Records. The band later signed with Immortal Records to release The Philosophy of Velocity in 2006. In August 2007, Jonathon Newby left the band, resulting in the band breaking up. Their final show was performed on August 18, 2007. Members Final Lineup Jonathon Newby - Vocals (2001-2007) Nic Newby - Keyboards (2001-2007) Aaron Smith - Guitars (2002-2007), Bass (2001) Eric Johnson - Guitars (2002-2007) James Sefchek - Drums (2003-2007) Philip Williams - Bass (2004-2007) Previous members Jonny Richardson - Guitars, vocals (2001) Jonathan May - Guitars (2001) Benjamin Hunt - Bass (2001-2004) Matt Miller - Guitars (2002) Alex Bond - Live drums (2002) Andrew Gaub - Drums (2001) Scott Freeman - Drums (2002) Tim Hardy - Live drums (2002) Jason Bradley - Live drums (2003) James Cole - Live drums (2003) Nater Kane - Live drums (2003) Brandon Beaver - Live drums (2003) Christopher Swinney- Live bass (2004) Discography Brazil (Demo, Self-released, 2000) Dasein (EP, Fearless Records, 2002) A Hostage and the Meaning of Life (LP, Fearless Records, 2004) The Philosophy of Velocity (LP, Immortal Records, 2006) Compilation Appearances Wrapped Around Your Finger (The Police Cover) - Punk Goes 80s Compilation (Fearless Records, 2005) Cities Made of Snow - Santa Cause Benefit Compilation (Fearless Records, 2006) External links American musical sextets American progressive rock groups Musical groups from Indiana Fearless Records artists
```fortran !> \brief \b LA_CONSTANTS is a module for the scaling constants for the compiled Fortran single and double precisions ! ! =========== DOCUMENTATION =========== ! ! Online html documentation available at ! path_to_url ! ! Authors: ! ======== ! !> \author Edward Anderson, Lockheed Martin ! !> \date May 2016 ! !> \ingroup la_constants ! !> \par Contributors: ! ================== !> !> Weslley Pereira, University of Colorado Denver, USA !> Nick Papior, Technical University of Denmark, DK ! !> \par Further Details: ! ===================== !> !> \verbatim !> !> Anderson E. (2017) !> Algorithm 978: Safe Scaling in the Level 1 BLAS !> ACM Trans Math Softw 44:1--28 !> path_to_url !> !> Blue, James L. (1978) !> A Portable Fortran Program to Find the Euclidean Norm of a Vector !> ACM Trans Math Softw 4:15--23 !> path_to_url !> !> \endverbatim ! module LA_CONSTANTS ! -- LAPACK auxiliary module -- ! -- LAPACK is a software package provided by Univ. of Tennessee, -- ! -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- ! Standard constants for integer, parameter :: sp = kind(1.e0) real(sp), parameter :: szero = 0.0_sp real(sp), parameter :: shalf = 0.5_sp real(sp), parameter :: sone = 1.0_sp real(sp), parameter :: stwo = 2.0_sp real(sp), parameter :: sthree = 3.0_sp real(sp), parameter :: sfour = 4.0_sp real(sp), parameter :: seight = 8.0_sp real(sp), parameter :: sten = 10.0_sp complex(sp), parameter :: czero = ( 0.0_sp, 0.0_sp ) complex(sp), parameter :: chalf = ( 0.5_sp, 0.0_sp ) complex(sp), parameter :: cone = ( 1.0_sp, 0.0_sp ) character*1, parameter :: sprefix = 'S' character*1, parameter :: cprefix = 'C' ! Scaling constants real(sp), parameter :: sulp = epsilon(0._sp) real(sp), parameter :: seps = sulp * 0.5_sp real(sp), parameter :: ssafmin = real(radix(0._sp),sp)**max( & minexponent(0._sp)-1, & 1-maxexponent(0._sp) & ) real(sp), parameter :: ssafmax = sone / ssafmin real(sp), parameter :: ssmlnum = ssafmin / sulp real(sp), parameter :: sbignum = ssafmax * sulp real(sp), parameter :: srtmin = sqrt(ssmlnum) real(sp), parameter :: srtmax = sqrt(sbignum) ! Blue's scaling constants real(sp), parameter :: stsml = real(radix(0._sp), sp)**ceiling( & (minexponent(0._sp) - 1) * 0.5_sp) real(sp), parameter :: stbig = real(radix(0._sp), sp)**floor( & (maxexponent(0._sp) - digits(0._sp) + 1) * 0.5_sp) ! ssml >= 1/s, where s was defined in path_to_url ! The correction was added in path_to_url to scale denormalized numbers correctly real(sp), parameter :: sssml = real(radix(0._sp), sp)**( - floor( & (minexponent(0._sp) - digits(0._sp)) * 0.5_sp)) ! sbig = 1/S, where S was defined in path_to_url real(sp), parameter :: ssbig = real(radix(0._sp), sp)**( - ceiling( & (maxexponent(0._sp) + digits(0._sp) - 1) * 0.5_sp)) ! Standard constants for integer, parameter :: dp = kind(1.d0) real(dp), parameter :: dzero = 0.0_dp real(dp), parameter :: dhalf = 0.5_dp real(dp), parameter :: done = 1.0_dp real(dp), parameter :: dtwo = 2.0_dp real(dp), parameter :: dthree = 3.0_dp real(dp), parameter :: dfour = 4.0_dp real(dp), parameter :: deight = 8.0_dp real(dp), parameter :: dten = 10.0_dp complex(dp), parameter :: zzero = ( 0.0_dp, 0.0_dp ) complex(dp), parameter :: zhalf = ( 0.5_dp, 0.0_dp ) complex(dp), parameter :: zone = ( 1.0_dp, 0.0_dp ) character*1, parameter :: dprefix = 'D' character*1, parameter :: zprefix = 'Z' ! Scaling constants real(dp), parameter :: dulp = epsilon(0._dp) real(dp), parameter :: deps = dulp * 0.5_dp real(dp), parameter :: dsafmin = real(radix(0._dp),dp)**max( & minexponent(0._dp)-1, & 1-maxexponent(0._dp) & ) real(dp), parameter :: dsafmax = done / dsafmin real(dp), parameter :: dsmlnum = dsafmin / dulp real(dp), parameter :: dbignum = dsafmax * dulp real(dp), parameter :: drtmin = sqrt(dsmlnum) real(dp), parameter :: drtmax = sqrt(dbignum) ! Blue's scaling constants real(dp), parameter :: dtsml = real(radix(0._dp), dp)**ceiling( & (minexponent(0._dp) - 1) * 0.5_dp) real(dp), parameter :: dtbig = real(radix(0._dp), dp)**floor( & (maxexponent(0._dp) - digits(0._dp) + 1) * 0.5_dp) ! ssml >= 1/s, where s was defined in path_to_url ! The correction was added in path_to_url to scale denormalized numbers correctly real(dp), parameter :: dssml = real(radix(0._dp), dp)**( - floor( & (minexponent(0._dp) - digits(0._dp)) * 0.5_dp)) ! sbig = 1/S, where S was defined in path_to_url real(dp), parameter :: dsbig = real(radix(0._dp), dp)**( - ceiling( & (maxexponent(0._dp) + digits(0._dp) - 1) * 0.5_dp)) end module LA_CONSTANTS ```
Villers-les-Bois () is a commune in the Jura department in the Bourgogne-Franche-Comté region in eastern France. Population See also Communes of the Jura department References Communes of Jura (department)
Mohamad Syarafuddin Hamdi bin Haji Talip (born 8 October 1987) is a Bruneian former footballer who played as a defender. He is currently with the futsal team of Kota Ranger FC. Club career A career police officer in the Royal Brunei Police Force, Syarafuddin started playing league football when his employers entered a soccer team to compete in the Brunei football leagues in 2011, namely MS PDB. Having helped secure his team's participation in the inaugural 2012–13 Brunei Super League, Syarafuddin also managed to score in the semi-final of the Brunei Darussalam National Games' football tournament on 12 September as team captain. The policemen ultimately lost to the Armed Forces in the final. Later in December of that year, MS PDB managed to get to the semi-finals of the 2012 Brunei FA Cup but lost in penalties to Indera FC, even though Syarafuddin greatly contributed en route by scoring in the two previous rounds. Syarafuddin played in the first ever fixture of the Brunei Super League on 14 December 2012, which was eventually won by MS ABDB. MS PDB finished fifth in the 10-team league that season, with Syarafuddin occasionally playing as a target striker. MS PDB would perform modestly in the next two seasons, finishing in the lower half of the Super League table. Syarafuddin transferred to Kota Ranger FC in 2017, after a brief stop at Tutong Hotspurs where he won the Tutong District League. The Brunei international scored his first goal for Kota Ranger on 8 July against Wijaya FC in a 3–2 win. He helped Kota Ranger to finish second behind MS ABDB at the conclusion of the 2017–18 season. In the following year, he managed to collect his first Brunei FA Cup medal by beating his old club MS PDB in the final. International career Syarafuddin was a Bruneian youth international who was selected for the 2007 Hassanal Bolkiah Trophy held in his home country. He played in two group games against the Philippines and Cambodia. He was dropped to the bench for Abdul Aziz Tamit in the final group game against Myanmar in which the team lost 3–1, eliminating the hosts from the knockout phase via number of goals scored. Syarafuddin made his senior international debut as a substitute in a 5–1 loss against Singapore on 6 June 2015. Two years later, he was bound for the island of Sumatra for the 2017 Aceh World Solidarity Tsunami Cup held in Banda Aceh in early December. He took the field in a 4–0 defeat to Indonesia in the first game. His most recent involvement with the national team was as assistant coach to Robbie Servais for the 2022 FIFA World Cup qualification matches against Mongolia in 2019. Coaching career While still registered as a player, Syarafuddin coached the team starting from the 2021 Brunei Super League. He became head coach full time the next year, competing for the 2022 Brunei FA Cup. Honours Team Tutong Hotspurs FT Tutong District League: 2017 Kota Ranger FC Brunei FA Cup: 2019 References External links 1987 births Living people Bruneian Muslims Bruneian police officers Futsal defenders Men's association football defenders Bruneian men's footballers Brunei men's international footballers Kota Ranger FC players Brunei Super League players
```objective-c This program is free software; you can redistribute it and/or modify the Free Software Foundation 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 with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ // Animation names #define BURNEDSTAINONTHEWALL_ANIM_DEFAULT_ANIMATION 0 // Color names // Patch names // Names of collision boxes #define BURNEDSTAINONTHEWALL_COLLISION_BOX_PART_NAME 0 // Attaching position names // Sound names ```
The Wild is the seventh studio album by American rapper Raekwon. The album was released on March 24, 2017, by Ice H2O Records and Empire Distribution. Critical reception The Wild received generally positive reviews from critics. At Metacritic, which assigns a normalized rating out of 100 to reviews from mainstream publications, the album received an average score of 80, based on seven reviews. Track listing Notes signifies a co-producer Charts References 2017 albums Raekwon albums Albums produced by Dame Grease Albums produced by J.U.S.T.I.C.E. League Empire Distribution albums
Middle River is an unincorporated community located in the town of Amnicon, Douglas County, Wisconsin, United States. Middle River is located on County Road E near the Middle River, west-southwest of Poplar. Notes Unincorporated communities in Douglas County, Wisconsin Unincorporated communities in Wisconsin
```go package pgtype import ( "bytes" "database/sql/driver" "encoding/binary" "errors" "fmt" "strings" "unicode" "unicode/utf8" "github.com/jackc/pgio" ) // Hstore represents an hstore column that can be null or have null values // associated with its keys. type Hstore struct { Map map[string]Text Status Status } func (dst *Hstore) Set(src interface{}) error { if src == nil { *dst = Hstore{Status: Null} return nil } if value, ok := src.(interface{ Get() interface{} }); ok { value2 := value.Get() if value2 != value { return dst.Set(value2) } } switch value := src.(type) { case map[string]string: m := make(map[string]Text, len(value)) for k, v := range value { m[k] = Text{String: v, Status: Present} } *dst = Hstore{Map: m, Status: Present} case map[string]*string: m := make(map[string]Text, len(value)) for k, v := range value { if v == nil { m[k] = Text{Status: Null} } else { m[k] = Text{String: *v, Status: Present} } } *dst = Hstore{Map: m, Status: Present} case map[string]Text: *dst = Hstore{Map: value, Status: Present} default: return fmt.Errorf("cannot convert %v to Hstore", src) } return nil } func (dst Hstore) Get() interface{} { switch dst.Status { case Present: return dst.Map case Null: return nil default: return dst.Status } } func (src *Hstore) AssignTo(dst interface{}) error { switch src.Status { case Present: switch v := dst.(type) { case *map[string]string: *v = make(map[string]string, len(src.Map)) for k, val := range src.Map { if val.Status != Present { return fmt.Errorf("cannot decode %#v into %T", src, dst) } (*v)[k] = val.String } return nil case *map[string]*string: *v = make(map[string]*string, len(src.Map)) for k, val := range src.Map { switch val.Status { case Null: (*v)[k] = nil case Present: str := val.String (*v)[k] = &str default: return fmt.Errorf("cannot decode %#v into %T", src, dst) } } return nil default: if nextDst, retry := GetAssignToDstType(dst); retry { return src.AssignTo(nextDst) } return fmt.Errorf("unable to assign to %T", dst) } case Null: return NullAssignTo(dst) } return fmt.Errorf("cannot decode %#v into %T", src, dst) } func (dst *Hstore) DecodeText(ci *ConnInfo, src []byte) error { if src == nil { *dst = Hstore{Status: Null} return nil } keys, values, err := parseHstore(string(src)) if err != nil { return err } m := make(map[string]Text, len(keys)) for i := range keys { m[keys[i]] = values[i] } *dst = Hstore{Map: m, Status: Present} return nil } func (dst *Hstore) DecodeBinary(ci *ConnInfo, src []byte) error { if src == nil { *dst = Hstore{Status: Null} return nil } rp := 0 if len(src[rp:]) < 4 { return fmt.Errorf("hstore incomplete %v", src) } pairCount := int(int32(binary.BigEndian.Uint32(src[rp:]))) rp += 4 m := make(map[string]Text, pairCount) for i := 0; i < pairCount; i++ { if len(src[rp:]) < 4 { return fmt.Errorf("hstore incomplete %v", src) } keyLen := int(int32(binary.BigEndian.Uint32(src[rp:]))) rp += 4 if len(src[rp:]) < keyLen { return fmt.Errorf("hstore incomplete %v", src) } key := string(src[rp : rp+keyLen]) rp += keyLen if len(src[rp:]) < 4 { return fmt.Errorf("hstore incomplete %v", src) } valueLen := int(int32(binary.BigEndian.Uint32(src[rp:]))) rp += 4 var valueBuf []byte if valueLen >= 0 { valueBuf = src[rp : rp+valueLen] rp += valueLen } var value Text err := value.DecodeBinary(ci, valueBuf) if err != nil { return err } m[key] = value } *dst = Hstore{Map: m, Status: Present} return nil } func (src Hstore) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) { switch src.Status { case Null: return nil, nil case Undefined: return nil, errUndefined } firstPair := true inElemBuf := make([]byte, 0, 32) for k, v := range src.Map { if firstPair { firstPair = false } else { buf = append(buf, ',') } buf = append(buf, quoteHstoreElementIfNeeded(k)...) buf = append(buf, "=>"...) elemBuf, err := v.EncodeText(ci, inElemBuf) if err != nil { return nil, err } if elemBuf == nil { buf = append(buf, "NULL"...) } else { buf = append(buf, quoteHstoreElementIfNeeded(string(elemBuf))...) } } return buf, nil } func (src Hstore) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) { switch src.Status { case Null: return nil, nil case Undefined: return nil, errUndefined } buf = pgio.AppendInt32(buf, int32(len(src.Map))) var err error for k, v := range src.Map { buf = pgio.AppendInt32(buf, int32(len(k))) buf = append(buf, k...) sp := len(buf) buf = pgio.AppendInt32(buf, -1) elemBuf, err := v.EncodeText(ci, buf) if err != nil { return nil, err } if elemBuf != nil { buf = elemBuf pgio.SetInt32(buf[sp:], int32(len(buf[sp:])-4)) } } return buf, err } var quoteHstoreReplacer = strings.NewReplacer(`\`, `\\`, `"`, `\"`) func quoteHstoreElement(src string) string { return `"` + quoteArrayReplacer.Replace(src) + `"` } func quoteHstoreElementIfNeeded(src string) string { if src == "" || (len(src) == 4 && strings.ToLower(src) == "null") || strings.ContainsAny(src, ` {},"\=>`) { return quoteArrayElement(src) } return src } const ( hsPre = iota hsKey hsSep hsVal hsNul hsNext ) type hstoreParser struct { str string pos int } func newHSP(in string) *hstoreParser { return &hstoreParser{ pos: 0, str: in, } } func (p *hstoreParser) Consume() (r rune, end bool) { if p.pos >= len(p.str) { end = true return } r, w := utf8.DecodeRuneInString(p.str[p.pos:]) p.pos += w return } func (p *hstoreParser) Peek() (r rune, end bool) { if p.pos >= len(p.str) { end = true return } r, _ = utf8.DecodeRuneInString(p.str[p.pos:]) return } // parseHstore parses the string representation of an hstore column (the same // you would get from an ordinary SELECT) into two slices of keys and values. it // is used internally in the default parsing of hstores. func parseHstore(s string) (k []string, v []Text, err error) { if s == "" { return } buf := bytes.Buffer{} keys := []string{} values := []Text{} p := newHSP(s) r, end := p.Consume() state := hsPre for !end { switch state { case hsPre: if r == '"' { state = hsKey } else { err = errors.New("String does not begin with \"") } case hsKey: switch r { case '"': //End of the key keys = append(keys, buf.String()) buf = bytes.Buffer{} state = hsSep case '\\': //Potential escaped character n, end := p.Consume() switch { case end: err = errors.New("Found EOS in key, expecting character or \"") case n == '"', n == '\\': buf.WriteRune(n) default: buf.WriteRune(r) buf.WriteRune(n) } default: //Any other character buf.WriteRune(r) } case hsSep: if r == '=' { r, end = p.Consume() switch { case end: err = errors.New("Found EOS after '=', expecting '>'") case r == '>': r, end = p.Consume() switch { case end: err = errors.New("Found EOS after '=>', expecting '\"' or 'NULL'") case r == '"': state = hsVal case r == 'N': state = hsNul default: err = fmt.Errorf("Invalid character '%c' after '=>', expecting '\"' or 'NULL'", r) } default: err = fmt.Errorf("Invalid character after '=', expecting '>'") } } else { err = fmt.Errorf("Invalid character '%c' after value, expecting '='", r) } case hsVal: switch r { case '"': //End of the value values = append(values, Text{String: buf.String(), Status: Present}) buf = bytes.Buffer{} state = hsNext case '\\': //Potential escaped character n, end := p.Consume() switch { case end: err = errors.New("Found EOS in key, expecting character or \"") case n == '"', n == '\\': buf.WriteRune(n) default: buf.WriteRune(r) buf.WriteRune(n) } default: //Any other character buf.WriteRune(r) } case hsNul: nulBuf := make([]rune, 3) nulBuf[0] = r for i := 1; i < 3; i++ { r, end = p.Consume() if end { err = errors.New("Found EOS in NULL value") return } nulBuf[i] = r } if nulBuf[0] == 'U' && nulBuf[1] == 'L' && nulBuf[2] == 'L' { values = append(values, Text{Status: Null}) state = hsNext } else { err = fmt.Errorf("Invalid NULL value: 'N%s'", string(nulBuf)) } case hsNext: if r == ',' { r, end = p.Consume() switch { case end: err = errors.New("Found EOS after ',', expecting space") case (unicode.IsSpace(r)): r, end = p.Consume() state = hsKey default: err = fmt.Errorf("Invalid character '%c' after ', ', expecting \"", r) } } else { err = fmt.Errorf("Invalid character '%c' after value, expecting ','", r) } } if err != nil { return } r, end = p.Consume() } if state != hsNext { err = errors.New("Improperly formatted hstore") return } k = keys v = values return } // Scan implements the database/sql Scanner interface. func (dst *Hstore) Scan(src interface{}) error { if src == nil { *dst = Hstore{Status: Null} return nil } switch src := src.(type) { case string: return dst.DecodeText(nil, []byte(src)) case []byte: srcCopy := make([]byte, len(src)) copy(srcCopy, src) return dst.DecodeText(nil, srcCopy) } return fmt.Errorf("cannot scan %T", src) } // Value implements the database/sql/driver Valuer interface. func (src Hstore) Value() (driver.Value, error) { return EncodeValueText(src) } ```
Igor Vasilevich Buldakov (, 26 August 1930 – 30 April 1979) was a Russian rower who competed for the Soviet Union in the 1956 Summer Olympics. In 1956 he and his partner Viktor Ivanov won the silver medal in the coxless pairs event. References External links 1930 births 1979 deaths Russian male rowers Soviet male rowers Olympic rowers for the Soviet Union Rowers at the 1956 Summer Olympics Olympic silver medalists for the Soviet Union Olympic medalists in rowing Medalists at the 1956 Summer Olympics European Rowing Championships medalists
```ruby # frozen_string_literal: true class Api::V1::StatusesController < Api::BaseController include Authorization before_action -> { authorize_if_got_token! :read, :'read:statuses' }, except: [:create, :update, :destroy] before_action -> { doorkeeper_authorize! :write, :'write:statuses' }, only: [:create, :update, :destroy] before_action :require_user!, except: [:index, :show, :context] before_action :set_statuses, only: [:index] before_action :set_status, only: [:show, :context] before_action :set_thread, only: [:create] before_action :check_statuses_limit, only: [:index] override_rate_limit_headers :create, family: :statuses override_rate_limit_headers :update, family: :statuses # This API was originally unlimited, pagination cannot be introduced without # breaking backwards-compatibility. Arbitrarily high number to cover most # conversations as quasi-unlimited, it would be too much work to render more # than this anyway CONTEXT_LIMIT = 4_096 # This remains expensive and we don't want to show everything to logged-out users ANCESTORS_LIMIT = 40 DESCENDANTS_LIMIT = 60 DESCENDANTS_DEPTH_LIMIT = 20 def index @statuses = preload_collection(@statuses, Status) render json: @statuses, each_serializer: REST::StatusSerializer end def show cache_if_unauthenticated! @status = preload_collection([@status], Status).first render json: @status, serializer: REST::StatusSerializer end def context cache_if_unauthenticated! ancestors_limit = CONTEXT_LIMIT descendants_limit = CONTEXT_LIMIT descendants_depth_limit = nil if current_account.nil? ancestors_limit = ANCESTORS_LIMIT descendants_limit = DESCENDANTS_LIMIT descendants_depth_limit = DESCENDANTS_DEPTH_LIMIT end ancestors_results = @status.in_reply_to_id.nil? ? [] : @status.ancestors(ancestors_limit, current_account) descendants_results = @status.descendants(descendants_limit, current_account, descendants_depth_limit) loaded_ancestors = preload_collection(ancestors_results, Status) loaded_descendants = preload_collection(descendants_results, Status) @context = Context.new(ancestors: loaded_ancestors, descendants: loaded_descendants) statuses = [@status] + @context.ancestors + @context.descendants render json: @context, serializer: REST::ContextSerializer, relationships: StatusRelationshipsPresenter.new(statuses, current_user&.account_id) end def create @status = PostStatusService.new.call( current_user.account, text: status_params[:status], thread: @thread, media_ids: status_params[:media_ids], sensitive: status_params[:sensitive], spoiler_text: status_params[:spoiler_text], visibility: status_params[:visibility], language: status_params[:language], scheduled_at: status_params[:scheduled_at], application: doorkeeper_token.application, poll: status_params[:poll], allowed_mentions: status_params[:allowed_mentions], idempotency: request.headers['Idempotency-Key'], with_rate_limit: true ) render json: @status, serializer: serializer_for_status rescue PostStatusService::UnexpectedMentionsError => e render json: unexpected_accounts_error_json(e), status: 422 end def update @status = Status.where(account: current_account).find(params[:id]) authorize @status, :update? UpdateStatusService.new.call( @status, current_account.id, text: status_params[:status], media_ids: status_params[:media_ids], media_attributes: status_params[:media_attributes], sensitive: status_params[:sensitive], language: status_params[:language], spoiler_text: status_params[:spoiler_text], poll: status_params[:poll] ) render json: @status, serializer: REST::StatusSerializer end def destroy @status = Status.where(account: current_account).find(params[:id]) authorize @status, :destroy? @status.discard_with_reblogs StatusPin.find_by(status: @status)&.destroy @status.account.statuses_count = @status.account.statuses_count - 1 json = render_to_body json: @status, serializer: REST::StatusSerializer, source_requested: true RemovalWorker.perform_async(@status.id, { 'redraft' => true }) render json: json end private def set_statuses @statuses = Status.permitted_statuses_from_ids(status_ids, current_account) end def set_status @status = Status.find(params[:id]) authorize @status, :show? rescue Mastodon::NotPermittedError not_found end def set_thread @thread = Status.find(status_params[:in_reply_to_id]) if status_params[:in_reply_to_id].present? authorize(@thread, :show?) if @thread.present? rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError render json: { error: I18n.t('statuses.errors.in_reply_not_found') }, status: 404 end def check_statuses_limit raise(Mastodon::ValidationError) if status_ids.size > DEFAULT_STATUSES_LIMIT end def status_ids Array(statuses_params[:id]).uniq.map(&:to_i) end def statuses_params params.permit(id: []) end def status_params params.permit( :status, :in_reply_to_id, :sensitive, :spoiler_text, :visibility, :language, :scheduled_at, allowed_mentions: [], media_ids: [], media_attributes: [ :id, :thumbnail, :description, :focus, ], poll: [ :multiple, :hide_totals, :expires_in, options: [], ] ) end def serializer_for_status @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer end def unexpected_accounts_error_json(error) { error: error.message, unexpected_accounts: serialized_accounts(error.accounts), } end def serialized_accounts(accounts) ActiveModel::Serializer::CollectionSerializer.new(accounts, serializer: REST::AccountSerializer) end end ```
```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 version import "github.com/prometheus/client_golang/prometheus" // Info contains versioning information. // TODO: Add []string of api versions supported? It's still unclear // how we'll want to distribute that information. type Info struct { Major string `json:"major"` Minor string `json:"minor"` GitVersion string `json:"gitVersion"` GitCommit string `json:"gitCommit"` GitTreeState string `json:"gitTreeState"` } // Get returns the overall codebase version. It's for detecting // what code a binary was built from. func Get() Info { // These variables typically come from -ldflags settings and in // their absence fallback to the settings in pkg/version/base.go return Info{ Major: gitMajor, Minor: gitMinor, GitVersion: gitVersion, GitCommit: gitCommit, GitTreeState: gitTreeState, } } // String returns info as a human-friendly version string. func (info Info) String() string { return info.GitVersion } func init() { buildInfo := prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "kubernetes_build_info", Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit and git tree state from which Kubernetes was built.", }, []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState"}, ) info := Get() buildInfo.WithLabelValues(info.Major, info.Minor, info.GitVersion, info.GitCommit, info.GitTreeState).Set(1) prometheus.MustRegister(buildInfo) } ```
```smalltalk using System; using System.Linq; using System.Reflection; namespace Volo.Abp.Modularity; /// <summary> /// Used to define additional assemblies for a module. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class AdditionalAssemblyAttribute : Attribute, IAdditionalModuleAssemblyProvider { public Type[] TypesInAssemblies { get; } public AdditionalAssemblyAttribute(params Type[]? typesInAssemblies) { TypesInAssemblies = typesInAssemblies ?? Type.EmptyTypes; } public virtual Assembly[] GetAssemblies() { return TypesInAssemblies.Select(t => t.Assembly).Distinct().ToArray(); } } ```
The Martin Nunataks () are a pair of isolated nunataks situated along the northern margin of David Glacier, southeast of Mount Wood, in Victoria Land, Antarctica. They were mapped by the United States Geological Survey (USGS) from surveys and U.S. Navy air photos, 1956–62, and were named by the Advisory Committee on Antarctic Names for Robert D. Martin, a USGS topographic engineer at McMurdo Station, 1961–62. References Nunataks of Oates Land
The Mamberamo (Indonesian: Sungai Mamberamo) is the second longest river on the island of New Guinea, after Sepik River (1,146 km) and third largest in Oceania by discharge (5,500 m3/s) volume after Fly River (7,500 m3/s) and Sepik (7,000 m3/s). It is located in the Indonesian province of Papua. It is the second largest river in Indonesia by volume of discharge after Kapuas River (6,500 m3/s) and also the widest. The river is formed from the confluence of its upper tributaries, the Tariku and Taritatu rivers in the Lakes Plains region, an interior basin with extensive freshwater swamp forests and grasslands. It flows northwards between the Van Rees Range (Pegunungan Van Rees) and Foja Mountains through a series of rapids and gorges. The last 160 km of the river are navigable. In the coastal lowlands the river is lined with marshes and forms a broad river delta. The Mamberamo discharges into the Pacific Ocean at the northern point of Point D'Urville or Cape Narwaku (Tanjung Narwaku). The river's huge valley is home to various uncontacted peoples and incredible biodiversity. In the 1990s, the Indonesian Government had plans to construct a large hydroelectric dam on the Mamberamo that would have submerged much of the area. This plan was shelved after the Indonesian financial crisis from 1998–1999, but there are concerns by environmental groups that it could be resurrected sometime in the future. At present, the Mamberamo remains the second largest river in the world to be completely unfragmented by dams in its catchment, behind only the relatively nearby Fly. The Mamberamo area also broadly refers to several nearby mountain ranges, including the Van Rees and Foja Mountains (also known as Foya), which were the subject of a recent rapid biological assessment conducted by Conservation International, the Indonesian Institute of Sciences, and Cenderawasih University. The scientific team discovered the first new bird species from New Guinea in 60 years, and a wealth of other new plants and animals. The Foya Mountains appear to be a globally outstanding repository of biodiversity. Tributary Mamberamo River List of Tributaries by length. Taritatu River Tariku River History In 1545, the Spanish navigator Iñigo Ortiz de Retes sailed along the northern coast of the island as far as the mouth of this river that he charted as San Agustín. At this spot, on 20 June 1545, he claimed the territory for the Spanish Crown, and in the process bestowing the name to the island (Nueva Guinea) by which it is known today. The first European to enter the mouth of the Mamberamo was Dutchman Dr D. F. van Braam Morris in 1883. The resident from the northern Moluccas (Ternate) rowed up the river to ascertain that it was navigable by steamer. The following year in 1884 Van Braam Morris returned in the steamship Havik and travelled (as the crow flies) along its course. Mamberamo Foja Wildlife Reserve The Mamberamo Foja Wildlife Reserve covers an area of 16,610 km², extending along the Mamberamo and its major tributaries from the Central Range foothills to the Pacific Ocean. It encompasses the central Lakes Plains region, and extends southwards along the eastern side of the river to include the Foya Mountains, the river delta, and the sea. Mamberamo Bridge The Mamberamo Bridge was the second longest cable stayed span in Indonesia after Kutai Kartanegara Bridge with 235 meters and 270 meters respectively until the latter bridge collapsed in November 2011. See also List of drainage basins of Indonesia Mekong-Mamberamo linguistic area Lower Mamberamo languages Kwerba Mamberamo language References External links Rivers of Papua (province) Mamberamo basin
```yaml --- upload: false users: - email: "user@example.com" upload: true delete: true token: 123456 ```
```c /* Simple DirectMedia Layer This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "../../SDL_internal.h" #if SDL_VIDEO_DRIVER_X11 #include "SDL_x11video.h" #include "SDL_x11touch.h" #include "SDL_x11xinput2.h" #include "../../events/SDL_touch_c.h" void X11_InitTouch(_THIS) { if (X11_Xinput2IsMultitouchSupported()) { X11_InitXinput2Multitouch(_this); } } void X11_QuitTouch(_THIS) { SDL_TouchQuit(); } #endif /* SDL_VIDEO_DRIVER_X11 */ /* vi: set ts=4 sw=4 expandtab: */ ```
Nandikoor railway station is a station on Konkan Railway. It is at a distance of down from origin. The preceding station on the northside is Padubidri railway station and the next station on southside is Mulki railway station. Nearest temple is Durgaparameshwari temple. References Railway stations along Konkan Railway line Railway stations in Udupi district Karwar railway division
Americanization is the process of an immigrant to the United States becoming a person who shares American culture, values, beliefs, and customs by assimilating into the American nation. This process typically involves learning the American English language and adjusting to American culture, values, and customs. The Americanization movement was a nationwide organized effort in the 1910s to bring millions of recent immigrants into the American cultural system. 30+ states passed laws requiring Americanization programs; in hundreds of cities the chamber of commerce organized classes in English language and American civics; many factories cooperated. Over 3000 school boards, especially in the Northeast and Midwest, operated after-school and Saturday classes. Labor unions, especially the coal miners, (United Mine Workers of America) helped their members take out citizenship papers. In the cities, the YMCA and YWCA were especially active, as were the organization of descendants of the founding generation such as the Daughters of the American Revolution. The movement climaxed during World War I, as eligible young immigrant men were drafted into the Army, and the nation made every effort to integrate the European ethnic groups into the national identity. As a form of cultural assimilation, the movement stands in contrast to later ideas of multiculturalism. Americanization efforts during this time period went beyond education and English learning, into active and sometimes coercive suppression of "foreign" cultural elements. The movement has been criticized as xenophobic and prejudiced against Southern Europeans, though anti-German sentiment also became widespread during World War I, as the United States and German Empire were part of opposing military alliances. Background The initial stages of immigrant Americanization began in the 1830s. Prior to 1820, foreign immigration to the United States was predominantly from the British Isles. There were other ethnic groups present, such as the French, Swedes and Germans in colonial times, but comparably, these ethnic groups were a minuscule fraction of the whole. Soon after 1820, for the first time, there began a substantial Irish and German migration to the United States. Up until 1885, immigrants were overwhelmingly Northwestern European (90% in that year) which brought a similar culture to that already existing in the U.S. maintaining stability within their bubble of natives and newcomers. By 1905, a major shift had occurred, and three-fourths of these newcomers were born in Southern and Eastern Europe. Their religion was mainly Roman Catholic, Greek Catholic and Jewish; Americanization became more difficult because of the notable contrasts of customs, habits, and ideals to those of Northern and Western European immigrants. According to the United States Census Bureau, in 1910, there were about 13,000,000 foreign-born and 33,000,000 residents of a foreign origin living in the United States. About 3,000,000 of the foreign-born over ten years of age were unable to speak English and about 1,650,000 were unable to read or write in any language. Close to half of the foreign-born populace were males of voting age; but only 4 out of every 1,000 of them were being educated to learn English and about American citizenship. In total, about five million people in the United States were unable to speak English, and of those two million were illiterate. World War I (which started in 1914) and the years immediately following represented a turning point in the Americanization process. In 1910, 34% of foreign males of draft age were unable to speak English; about half a million of the registered alien male draftees were unable to understand military orders given in English. At the same time, more immigrants displaced by the war began arriving. A number of Americans feared the growing presence of immigrants in the country posed a sufficient threat to the political order. Americans' awareness of and attitudes towards immigrants and their foreign relations changed dramatically with America's increasing role in the world. As Americans' views towards immigrants were growing more negative, fearful, and xenophobic, the United States resorted to programs of forced Americanization, as well as the immigration restriction acts of the 1920s, including the Immigration Act of 1924, primarily focused on restricting immigration from Southern and Southeastern Europe, in addition, to heavily restrict immigration of Africans, and a complete ban on immigration of Arabs and Asians. At the same time, a new positive outlook of a pluralist society began to progress. History The term "Americanization" was brought into general use during the organization of "Americanization Day" celebrations in a number of cities for July 4, 1915. Interest in the process of assimilation had been increasing for many years before such programs were designated "Americanization." The publication of a report of the United States Immigration Commission in 1911 marked the culmination of an attempt to formulate a constructive national policy toward immigration and naturalization and was the basis of many of the programs adopted afterwards. The National Americanization Committee was established in May, 1915, with aid from the Committee for Immigration in America in the pursuit to bring all American citizens together as one to celebrate common rights as Americans, wherever born. The committee was so effective that it turned into a powerful organization, dealing with many aspects of American society, such as governmental departments, schools, courts, churches, women's clubs, institutions, and groups as units of co-operation. This committee was responsible for the standardization of Americanization work and methods, stimulating immigrant thought, interest and activity. Their many experiments were later incorporated into governmental, educational, and business systems of the country. Its services and publications were free. During the period of mass immigration, the main target group of Americanization projects included Jews and Catholics and from southern and southeastern Europe. Churches, unions, and charities attempted to Americanize the new immigrants both formally through structured programs and informally at work through the environment created by management. Americanization also suggests a broader process that includes the everyday struggle of immigrants to understand their new environment and how they invent ways to cope with it. "During the late nineteenth Century, skilled Germans, British, Irish and native-born male workers built strong craft unions and settle into comfortable communities. Through their craft unions, churches, fraternal organizations, and other institutions, they created their own cultural worlds, ones that often left little room for newcomers." Private agencies also gave high priority to Americanization projects. The Ford Motor Company had an especially well-publicized program. Among the religious groups carrying on systematic programs of work among immigrants were most of the larger Protestant denominations, the National Catholic War Council, the Y.M.C.A., the Y.W.C.A., the Knights of Columbus, and the Y.M.H.A. Extensive campaigns were also conducted by old stock patriotic organizations such as the National Security League, the Sons and Daughters of the American Revolution, and the Colonial Dames of America. The National Chamber of Commerce and hundreds of city chambers also did systematic work. Public libraries also embraced Americanization as a patriotic duty during and after World War I. The National Federation of Women's Clubs and the National Council of Jewish Women also adopted definite and comprehensive programs of work. The organizations assisted newcomers with naturalization papers, helped reunite families, provided interpreters, warned about fraudulent offers, provided access to lawyers, and provided information about employment. In the aftermath the target populations learned English and adopted American life styles in speech, clothing and recreation. They clung to their historic religions. They not only retained their traditional cuisines, but they also introduced the wider American public to the taste for pizza, bagels and tacos. Historian Vincent Cannato adds: "From sports and food to movies and music, they haven’t just contributed to the culture, they have helped redefine it." Social workers generally supported the Americanization movement, but not all of them. Edith Terry Bremer strongly opposed Americanization programs before the war and wrote that Americanization stimulated fear and hate. She then served as a special agent for the United States Immigration Commission Bremer was concerned that the existing public and private agencies serving immigrants largely ignored women so she made her most important contribution by establishing the first International Institute in New York City as a YMCA experiment in December, 1910. World War I Interest in the foreign born in the United States was quickened by the outbreak of World War I in 1914. Although the United States remained neutral until April 1917, the war in Europe cast attention on the many recent immigrants in the United States. Of special concern was the issue of their political loyalty, whether to the United States or to their mother country, and the long-term tension regarding assimilation into American society. Numerous agencies became active, such as the Councils of National Defense, the United States Department of the Interior, the Food Administration and other federal agencies charged with the task of uniting the people of the United States in support of the war aims of the government. The National Americanization Committee (NAC) was by far the most important private organization in the movement. It was directed by Frances Kellor. Second in importance was the Committee for Immigrants in America, which helped fund the Division of Immigrant Education in the federal Bureau of Education. While John Foster Carr, a publisher and propagandist for Americanization, was convinced that the American public library was the most effective Americanization force. He joined the American Library Association on 1913, with the hope that American libraries would use his publications in their Americanization work with immigrants. A year later he founded the Immigrant Publication Society of New York, which published his guidebooks for immigrants as well as handbooks and pamphlets on Americanization topics for librarians and social workers. Frederic C. Howe, Commissioner at Ellis Island, asked mayors nationwide to make July 4, 1915, Americanization night in their communities. Impact of war Millions of recently arrived immigrants who had originally intended to return to the mother country were unable to return to Europe because of the war from 1914 to 1919. The great majority decided to stay permanently in America, and foreign language use declined dramatically as they switched to English. Instead of resisting Americanization they welcomed it, often signing up for English classes and using their savings to buy homes and bring over other family members. Kellor, speaking for the NAC in 1916, proposed to combine efficiency and patriotism in her Americanization programs. It would be more efficient, she argued, once the factory workers could all understand English and therefore better understand orders and avoid accidents. Once Americanized, they would grasp American industrial ideals and be open to American influences and not subject only to strike agitators or foreign propagandists. The result, she argued, would transform indifferent and ignorant residents into understanding voters, to make their homes into American homes, and to establish American standards of living throughout the ethnic communities. Ultimately she argued it would, "unite foreign-born and native alike in enthusiastic loyalty to our national ideals of liberty and justice." 1920s After World War I, the emphasis on Americanization programs was gradually shifted from emergency propaganda to a long-time educational program, when a study of conditions in the draft army made by the United States Surgeon General's office showed that 18% to 42% of the men in army camps were unable to read a newspaper or to write a letter home, and that in the Northeastern, Midwestern, and Western United States, these illiterates were almost entirely foreign born. Indications were that barriers to any understanding of U.S. aims and interests were even more marked than this among the older men and the women in the foreign colonies of the U.S. Hundreds of Americanization agencies sprang up overnight. Late 20th century After the 1970s, proponents of multiculturalism began attacking Americanization programs as coercive and not respectful of immigrant culture. A major debate today is on whether speaking English is an essential component of being American. Immigrant groups Cajuns The French-speaking Cajuns of southern Louisiana were not immigrants—they arrived before the American Revolution in an isolated area that allowed little contact with other groups. The Cajuns were forcefully Anglicized in the 20th century. Children were punished in school for using French; they were called names like "swamp rat" and "bougalie", forced to write lines ("I will not speak French in school"), made to kneel on kernels of corn, and slapped with rulers. French was also banned as a medium of education by the State of Louisiana in 1912. English also gained more prestige than Cajun French due to the spread of English-language movies, newspapers and radio into Acadiana. Wartime military service broke the crust of traditionalism for younger men, while automobiles and the highway system allowed easy movement to Anglo cities. Prosperity and consumer culture, and a host of other influences have effaced much of the linguistic and cultural uniqueness of the Cajuns. Dutch Leonard Dinnerstein and David M. Reimers showed that immigrants who arrived during the 19th century in large numbers from western and northern Europe had mostly been assimilated. They call this process the loss of "Old World culture" including increasing rates of intermarriage outside the native ethnic group and not using native languages in daily life, church, school, or media. This process continues across generations and these immigrant groups have become more assimilated into the mainstream American culture over time. Irish The Irish were the most influential ethnic group regarding the initial waves of immigration to the United States and of Americanization. Newly arrived immigrants in American cities had a hard time avoiding the Irish. There was no way around the Irish for the newcomers, as the Irish were present in every aspect of American working-class society. Between 1840 and 1890, more than 3,000,000 Irish immigrants had entered the United States, and by 1900, about 5,000,000 of their first and second generations were settled in. There were more Irish living in the United States than in Ireland. Irish Americans played a major role in the newcomer's Americanization. In other words, identity in the United States emerged from dynamic relationships among ethnic groups, as well as from particular groups' own distinct history and traditions. The newer ethnic groups were not directly assimilated to the American cultural mainstream, but rather, there was a gradual process of acculturation, where newcomer immigrants acculturated to a new way of life, learning new skills and habits through their unique experiences. This form of Americanization was a process carried out partially through force and coercion, that occurred in settlement houses, night school classes, and corporate programs, where these working-class immigrants were pressed to learn WASP values. "A key to understanding the multi-ethnic American city is that most immigrants came to understand their new world less through such formal programs, than through informal contacts with the Irish and other experienced working-class Americans of diverse ethnic backgrounds in the streets, churches, and theaters." Historian James Barrett states, "Inside the labor movement, the Catholic Church, and the political organizations of many working-class communities, the Irish occupied vital positions as Americanizers of later groups." By the late nineteenth century, racism was genuinely rooted in the world views of many workers and was passed on to newcomer immigrants, expediting the process of class unity. Jews Jacob Schiff played a major role as a leader of the American Jewish community in the late 19th century. At a time of increasing demand for immigration restriction, Schiff supported and worked for Jewish Americanization. A Reform Jew, he backed the creation of the Conservative Jewish Theological Seminary of America. He took a stand favoring a modified form of Zionism, reversing his earlier opposition. Above all, Schiff believed that American Jewry could live in both the Jewish and American worlds, creating a balance that made possible an enduring American Jewish community. The National Council of Jewish Women (NCJW), founded in Chicago in 1893, had the goals of philanthropy and the Americanization of Jewish immigrants. Responding to the plight of Jewish women and girls from Eastern Europe, the NCJW created its Department of Immigrant Aid to assist and protect female immigrants from the time of their arrival at Ellis Island until their settlement at their final destination. The NCJW's Americanization program included assisting immigrants with housing, health, and employment problems, leading them to organizations where women could begin to socialize, and conducting English classes while helping them maintain a strong Jewish identity. The council, pluralistic rather than conformist, continued its Americanization efforts and fought against restrictive immigration laws after World War I. At the forefront of its activities was the religious education of Jewish girls, who were ignored by the Orthodox community. Americanization did not mean giving up traditional ethnic foods. Italians World War I closed off most new arrivals and departures from Italy. The Italian American community supported the American war effort, sending tens of thousands of young men into the armed forces, as others took jobs in war factories. Buying war bonds became patriotic, and use of English surged as the community supported the Americanization campaigns. By the 1920s the Little Italies had stabilized and grew richer, as workers gained skills and entrepreneurs opened restaurants, groceries, construction firms and other small businesses. With few new arrivals, there was less Italian and more English spoken, especially by the younger generation. Mexicans Ethnic Mexicans are one of the largest groups of people in the United States of America. Early on, many Mexican migrants and Mexican-Americans were actively trying to become a part of Anglo-American society. From the 1910s and onward there has been a big focus put onto the youth in California. There were, and still are, stereotypes of the youth ranging from "illegal aliens" to "criminals." Mexican-Americans who were interested in assimilating or being accepted into white American society. In an attempt to combat negative stereotypes associated with Mexicans in the United States, some Mexicans chose to embrace Mexican American identity promoted by the nativists in California. In Merton E. Hill's “The Development of an Americanization Program,” Hill states that “the public must be aroused to a realization of the great and immediate need of making provision for educational, vocational, and sanitation programs that will result in…promoting the use of the English language, the right American customs, and the best possible standards of American life.” The goal was to integrate Ethnic Mexican youth into American society so they would become truly American in the public's view. This Americanization took over the people's Mexican culture and made labeled “outwardly Mexican” culture as un-American. The Americanization efforts were also passed on through the home. From the point of view of Anglo-Americans, the best way to change the youth was through the help of mothers. Mothers were one of the preferred vessels of the Americanization of Mexicans because they were the ones that spent more time in the home and they could pass on their learned American values to the youth. In order to Americanize the mothers, they were taught through the help of the Home Teacher Act of 1915. With this act, teachers were allowed to enter the homes of Mexicans in California and teach the women how to be American and to pass on values to their children. Other than the mothers, another effort that was made to Americanize the youth was to Americanize young Mexican girls. Young girls were starting to be taught in schools about different American values and customs through activities such as sewing, budgeting, and motherhood. The same idea for educating young girls was the reason that they were educating mothers, the girls would grow up to be mothers and have an influence on the lives of Mexican Americans in and outside the household. Education was the main focus of the Americanization efforts. Soon, it became engraved in the minds of Mexican-Americans that the best way to become a part of American society was through leaving their own Mexican culture behind. Throughout the southwest, new organizations were being created to fully integrate Mexican-Americans into society. One example is the League of United Latin American Citizens (LULAC), which was founded in 1929 and only allowed United States Citizens to join. Found in a LULAC pamphlet is the phrase “We believe that education is the foundation for the cultural grown and development of this nation and that we are obligated to protect and promote the education of our people in accordance with the best American principles and standards,” showing the organization's dedication to Americanization. Through organizations that supported Americanization being created before World War II, there came a larger divide between Mexican immigrants and Mexican-Americans. Some Mexican Americans also rejected Americanization by creating a distinct identity influenced by the Black American counterculture of zoot suiters in the jazz and swing music scene on the east coast. Anti-assimilationist Mexican American as early as the 1940s youth rejected the previous generation's aspirations to assimilate into Anglo-American or American society and instead developed an "alienated pachuco culture that fashioned itself neither as Mexican nor American." Some pachucos/as and Mexican American youth began to identify as Chicano/a as early as the 1940s and 1950s. Identifying as Chicano/a was a way of reclaiming what had widely been used as a classist term of derision directed towards ethnic Mexicans who were not Americanized. Chicano/a was widely reclaimed in the 1960s and 1970s to express political empowerment, ethnic solidarity, and pride in being of Indigenous descent, diverging from Mexican American identity. Poles The study of Polish immigrants to the United States, The Polish Peasant in Europe and America (1918–1920), became the landmark first study of this process. Other uses The term also is used for the cultural transformation of areas brought into the U.S., such as Alaska, and on the assimilation of Native Americans. Impact on other countries The term Americanization has been used since 1907 for the American impact on other countries. Other countries often perceive America to be one, if not the most powerful, modern nation in the world. As a result many other countries have attempted to replicate elements of the American way of life. See also Americanization (foreign culture and media) Anglicisation of names Melting pot Civic nationalism, and its converse, ethnic nationalism Nativism Immigration to the United States of America Salad bowl (cultural idea) Americanization Now and Then References Further reading Barrett, James R. "Americanization from the Bottom, Up: Immigration and the Remaking of the American Working Class, 1880–1930." Journal of American History (1992) 79#3 pp. 996–1020. in JSTOR Bernard, Shane. The Cajuns: Americanization of a People (2002). Cowan, Neil M. and Cowan, Ruth Schwartz. Our Parents' Lives: The Americanization of Eastern European Jews. (1989). McClymer, John F. War and Welfare: Social Engineering in America, 1890–1925 (1980) Olneck, Michael R. "Americanization and the Education Of Immigrants, 1900–1925: An Analysis Of Symbolic Action." American Journal of Education 1989 97(4): 398–423; shows that Americanization programs help liberate youth from the tight confines of traditional families in JSTOR Olneck, Michael R. "What Have Immigrants Wanted from American Schools? What Do They Want Now? Historical and Contemporary Perspectives on Immigrants, Language, and American Schooling," American Journal of Education, 115 (May 2009), 379–406. Seltzer, Robert M. and Cohen, Norman S., eds. The Americanization of the Jews. (1995). Sterba, Christopher M. Good Americans: Italian and Jewish immigrants during the First World War (2003). Van Nuys, Frank. Americanizing the West: Race, Immigrants, and Citizenship, 1890–1930 (2002). Ziegler-McPherson, Christina A. Americanization in the States: Immigrant Social Welfare Policy, Citizenship, and National Identity in the United States, 1908–1929, (2009) Historiography Brubaker, Rogers. "The return of assimilation? Changing perspectives on immigration and its sequels in France, Germany, and the United States." Ethnic and racial studies 24#4 (2001): 531–48. online Kazal, Russell A. "Revisiting Assimilation: The Rise, Fall, and Reappraisal of a Concept in American Ethnic History." American Historical Review (1995) 100#2 pp. 437–71 in JSTOR Steinberg, Stephen. "The long view of the melting pot." Ethnic and Racial Studies 37#5 (2014): 790–94. online Primary sources Bogardus, Emory Stephen. Essentials of Americanization (1920). Brooks, Charles Alvin. Christian Americanization: A Task for the Churches (1919). Discovery Set: Americanization. Social Welfare History Image Portal, Virginia Commonwealth University Libraries. Cultural assimilation American culture
```php <?php /** * Backpack\CRUD preferences. */ return [ /* |------------------- | TRANSLATABLE CRUDS |------------------- */ 'show_translatable_field_icon' => true, 'translatable_field_icon_position' => 'right', // left or right 'locales' => [ // "af_NA" => "Afrikaans (Namibia)", // "af_ZA" => "Afrikaans (South Africa)", // "af" => "Afrikaans", // "ak_GH" => "Akan (Ghana)", // "ak" => "Akan", // "sq_AL" => "Albanian (Albania)", // "sq" => "Albanian", // "am_ET" => "Amharic (Ethiopia)", // "am" => "Amharic", // "ar_DZ" => "Arabic (Algeria)", // "ar_BH" => "Arabic (Bahrain)", // "ar_EG" => "Arabic (Egypt)", // "ar_IQ" => "Arabic (Iraq)", // "ar_JO" => "Arabic (Jordan)", // "ar_KW" => "Arabic (Kuwait)", // "ar_LB" => "Arabic (Lebanon)", // "ar_LY" => "Arabic (Libya)", // "ar_MA" => "Arabic (Morocco)", // "ar_OM" => "Arabic (Oman)", // "ar_QA" => "Arabic (Qatar)", // "ar_SA" => "Arabic (Saudi Arabia)", // "ar_SD" => "Arabic (Sudan)", // "ar_SY" => "Arabic (Syria)", // "ar_TN" => "Arabic (Tunisia)", // "ar_AE" => "Arabic (United Arab Emirates)", // "ar_YE" => "Arabic (Yemen)", // "ar" => "Arabic", // "hy_AM" => "Armenian (Armenia)", // "hy" => "Armenian", // "as_IN" => "Assamese (India)", // "as" => "Assamese", // "asa_TZ" => "Asu (Tanzania)", // "asa" => "Asu", // "az_Cyrl" => "Azerbaijani (Cyrillic)", // "az_Cyrl_AZ" => "Azerbaijani (Cyrillic, Azerbaijan)", // "az_Latn" => "Azerbaijani (Latin)", // "az_Latn_AZ" => "Azerbaijani (Latin, Azerbaijan)", // "az" => "Azerbaijani", // "bm_ML" => "Bambara (Mali)", // "bm" => "Bambara", // "eu_ES" => "Basque (Spain)", // "eu" => "Basque", // "be_BY" => "Belarusian (Belarus)", // "be" => "Belarusian", // "bem_ZM" => "Bemba (Zambia)", // "bem" => "Bemba", // "bez_TZ" => "Bena (Tanzania)", // "bez" => "Bena", // "bn_BD" => "Bengali (Bangladesh)", // "bn_IN" => "Bengali (India)", // "bn" => "Bengali", // "bs_BA" => "Bosnian (Bosnia and Herzegovina)", // "bs" => "Bosnian", // "bg_BG" => "Bulgarian (Bulgaria)", // "bg" => "Bulgarian", // "my_MM" => "Burmese (Myanmar [Burma])", // "my" => "Burmese", // "ca_ES" => "Catalan (Spain)", // "ca" => "Catalan", // "tzm_Latn" => "Central Morocco Tamazight (Latin)", // "tzm_Latn_MA" => "Central Morocco Tamazight (Latin, Morocco)", // "tzm" => "Central Morocco Tamazight", // "chr_US" => "Cherokee (United States)", // "chr" => "Cherokee", // "cgg_UG" => "Chiga (Uganda)", // "cgg" => "Chiga", // "zh_Hans" => "Chinese (Simplified Han)", // "zh_Hans_CN" => "Chinese (Simplified Han, China)", // "zh_Hans_HK" => "Chinese (Simplified Han, Hong Kong SAR China)", // "zh_Hans_MO" => "Chinese (Simplified Han, Macau SAR China)", // "zh_Hans_SG" => "Chinese (Simplified Han, Singapore)", // "zh_Hant" => "Chinese (Traditional Han)", // "zh_Hant_HK" => "Chinese (Traditional Han, Hong Kong SAR China)", // "zh_Hant_MO" => "Chinese (Traditional Han, Macau SAR China)", // "zh_Hant_TW" => "Chinese (Traditional Han, Taiwan)", // "zh" => "Chinese", // "kw_GB" => "Cornish (United Kingdom)", // "kw" => "Cornish", // "hr_HR" => "Croatian (Croatia)", // "hr" => "Croatian", // "cs_CZ" => "Czech (Czech Republic)", // "cs" => "Czech", // "da_DK" => "Danish (Denmark)", // "da" => "Danish", // "nl_BE" => "Dutch (Belgium)", // "nl_NL" => "Dutch (Netherlands)", // "nl" => "Dutch", // "ebu_KE" => "Embu (Kenya)", // "ebu" => "Embu", // "en_AS" => "English (American Samoa)", // "en_AU" => "English (Australia)", // "en_BE" => "English (Belgium)", // "en_BZ" => "English (Belize)", // "en_BW" => "English (Botswana)", // "en_CA" => "English (Canada)", // "en_GU" => "English (Guam)", // "en_HK" => "English (Hong Kong SAR China)", // "en_IN" => "English (India)", // "en_IE" => "English (Ireland)", // "en_JM" => "English (Jamaica)", // "en_MT" => "English (Malta)", // "en_MH" => "English (Marshall Islands)", // "en_MU" => "English (Mauritius)", // "en_NA" => "English (Namibia)", // "en_NZ" => "English (New Zealand)", // "en_MP" => "English (Northern Mariana Islands)", // "en_PK" => "English (Pakistan)", // "en_PH" => "English (Philippines)", // "en_SG" => "English (Singapore)", // "en_ZA" => "English (South Africa)", // "en_TT" => "English (Trinidad and Tobago)", // "en_UM" => "English (U.S. Minor Outlying Islands)", // "en_VI" => "English (U.S. Virgin Islands)", // "en_GB" => "English (United Kingdom)", // "en_US" => "English (United States)", // "en_ZW" => "English (Zimbabwe)", 'en' => 'English', // "eo" => "Esperanto", // "et_EE" => "Estonian (Estonia)", // "et" => "Estonian", // "ee_GH" => "Ewe (Ghana)", // "ee_TG" => "Ewe (Togo)", // "ee" => "Ewe", // "fo_FO" => "Faroese (Faroe Islands)", // "fo" => "Faroese", // "fil_PH" => "Filipino (Philippines)", // "fil" => "Filipino", // "fi_FI" => "Finnish (Finland)", // "fi" => "Finnish", // "fr_BE" => "French (Belgium)", // "fr_BJ" => "French (Benin)", // "fr_BF" => "French (Burkina Faso)", // "fr_BI" => "French (Burundi)", // "fr_CM" => "French (Cameroon)", // "fr_CA" => "French (Canada)", // "fr_CF" => "French (Central African Republic)", // "fr_TD" => "French (Chad)", // "fr_KM" => "French (Comoros)", // "fr_CG" => "French (Congo - Brazzaville)", // "fr_CD" => "French (Congo - Kinshasa)", // "fr_CI" => "French (Cte dIvoire)", // "fr_DJ" => "French (Djibouti)", // "fr_GQ" => "French (Equatorial Guinea)", // "fr_FR" => "French (France)", // "fr_GA" => "French (Gabon)", // "fr_GP" => "French (Guadeloupe)", // "fr_GN" => "French (Guinea)", // "fr_LU" => "French (Luxembourg)", // "fr_MG" => "French (Madagascar)", // "fr_ML" => "French (Mali)", // "fr_MQ" => "French (Martinique)", // "fr_MC" => "French (Monaco)", // "fr_NE" => "French (Niger)", // "fr_RW" => "French (Rwanda)", // "fr_RE" => "French (Runion)", // "fr_BL" => "French (Saint Barthlemy)", // "fr_MF" => "French (Saint Martin)", // "fr_SN" => "French (Senegal)", // "fr_CH" => "French (Switzerland)", // "fr_TG" => "French (Togo)", 'fr' => 'French', // "ff_SN" => "Fulah (Senegal)", // "ff" => "Fulah", // "gl_ES" => "Galician (Spain)", // "gl" => "Galician", // "lg_UG" => "Ganda (Uganda)", // "lg" => "Ganda", // "ka_GE" => "Georgian (Georgia)", // "ka" => "Georgian", // "de_AT" => "German (Austria)", // "de_BE" => "German (Belgium)", // "de_DE" => "German (Germany)", // "de_LI" => "German (Liechtenstein)", // "de_LU" => "German (Luxembourg)", // "de_CH" => "German (Switzerland)", // "de" => "German", // "el_CY" => "Greek (Cyprus)", // "el_GR" => "Greek (Greece)", // "el" => "Greek", // "gu_IN" => "Gujarati (India)", // "gu" => "Gujarati", // "guz_KE" => "Gusii (Kenya)", // "guz" => "Gusii", // "ha_Latn" => "Hausa (Latin)", // "ha_Latn_GH" => "Hausa (Latin, Ghana)", // "ha_Latn_NE" => "Hausa (Latin, Niger)", // "ha_Latn_NG" => "Hausa (Latin, Nigeria)", // "ha" => "Hausa", // "haw_US" => "Hawaiian (United States)", // "haw" => "Hawaiian", // "he_IL" => "Hebrew (Israel)", // "he" => "Hebrew", // "hi_IN" => "Hindi (India)", // "hi" => "Hindi", // "hu_HU" => "Hungarian (Hungary)", // "hu" => "Hungarian", // "is_IS" => "Icelandic (Iceland)", // "is" => "Icelandic", // "ig_NG" => "Igbo (Nigeria)", // "ig" => "Igbo", // "id_ID" => "Indonesian (Indonesia)", // "id" => "Indonesian", // "ga_IE" => "Irish (Ireland)", // "ga" => "Irish", // "it_IT" => "Italian (Italy)", // "it_CH" => "Italian (Switzerland)", 'it' => 'Italian', // "ja_JP" => "Japanese (Japan)", // "ja" => "Japanese", // "kea_CV" => "Kabuverdianu (Cape Verde)", // "kea" => "Kabuverdianu", // "kab_DZ" => "Kabyle (Algeria)", // "kab" => "Kabyle", // "kl_GL" => "Kalaallisut (Greenland)", // "kl" => "Kalaallisut", // "kln_KE" => "Kalenjin (Kenya)", // "kln" => "Kalenjin", // "kam_KE" => "Kamba (Kenya)", // "kam" => "Kamba", // "kn_IN" => "Kannada (India)", // "kn" => "Kannada", // "kk_Cyrl" => "Kazakh (Cyrillic)", // "kk_Cyrl_KZ" => "Kazakh (Cyrillic, Kazakhstan)", // "kk" => "Kazakh", // "km_KH" => "Khmer (Cambodia)", // "km" => "Khmer", // "ki_KE" => "Kikuyu (Kenya)", // "ki" => "Kikuyu", // "rw_RW" => "Kinyarwanda (Rwanda)", // "rw" => "Kinyarwanda", // "kok_IN" => "Konkani (India)", // "kok" => "Konkani", // "ko_KR" => "Korean (South Korea)", // "ko" => "Korean", // "khq_ML" => "Koyra Chiini (Mali)", // "khq" => "Koyra Chiini", // "ses_ML" => "Koyraboro Senni (Mali)", // "ses" => "Koyraboro Senni", // "lag_TZ" => "Langi (Tanzania)", // "lag" => "Langi", // "lv_LV" => "Latvian (Latvia)", // "lv" => "Latvian", // "lt_LT" => "Lithuanian (Lithuania)", // "lt" => "Lithuanian", // "luo_KE" => "Luo (Kenya)", // "luo" => "Luo", // "luy_KE" => "Luyia (Kenya)", // "luy" => "Luyia", // "mk_MK" => "Macedonian (Macedonia)", // "mk" => "Macedonian", // "jmc_TZ" => "Machame (Tanzania)", // "jmc" => "Machame", // "kde_TZ" => "Makonde (Tanzania)", // "kde" => "Makonde", // "mg_MG" => "Malagasy (Madagascar)", // "mg" => "Malagasy", // "ms_BN" => "Malay (Brunei)", // "ms_MY" => "Malay (Malaysia)", // "ms" => "Malay", // "ml_IN" => "Malayalam (India)", // "ml" => "Malayalam", // "mt_MT" => "Maltese (Malta)", // "mt" => "Maltese", // "gv_GB" => "Manx (United Kingdom)", // "gv" => "Manx", // "mr_IN" => "Marathi (India)", // "mr" => "Marathi", // "mas_KE" => "Masai (Kenya)", // "mas_TZ" => "Masai (Tanzania)", // "mas" => "Masai", // "mer_KE" => "Meru (Kenya)", // "mer" => "Meru", // "mfe_MU" => "Morisyen (Mauritius)", // "mfe" => "Morisyen", // "naq_NA" => "Nama (Namibia)", // "naq" => "Nama", // "ne_IN" => "Nepali (India)", // "ne_NP" => "Nepali (Nepal)", // "ne" => "Nepali", // "nd_ZW" => "North Ndebele (Zimbabwe)", // "nd" => "North Ndebele", // "nb_NO" => "Norwegian Bokml (Norway)", // "nb" => "Norwegian Bokml", // "nn_NO" => "Norwegian Nynorsk (Norway)", // "nn" => "Norwegian Nynorsk", // "nyn_UG" => "Nyankole (Uganda)", // "nyn" => "Nyankole", // "or_IN" => "Oriya (India)", // "or" => "Oriya", // "om_ET" => "Oromo (Ethiopia)", // "om_KE" => "Oromo (Kenya)", // "om" => "Oromo", // "ps_AF" => "Pashto (Afghanistan)", // "ps" => "Pashto", // "fa_AF" => "Persian (Afghanistan)", // "fa_IR" => "Persian (Iran)", // "fa" => "Persian", // "pl_PL" => "Polish (Poland)", // "pl" => "Polish", // "pt_BR" => "Portuguese (Brazil)", // "pt_GW" => "Portuguese (Guinea-Bissau)", // "pt_MZ" => "Portuguese (Mozambique)", // "pt_PT" => "Portuguese (Portugal)", // "pt" => "Portuguese", // "pa_Arab" => "Punjabi (Arabic)", // "pa_Arab_PK" => "Punjabi (Arabic, Pakistan)", // "pa_Guru" => "Punjabi (Gurmukhi)", // "pa_Guru_IN" => "Punjabi (Gurmukhi, India)", // "pa" => "Punjabi", // "ro_MD" => "Romanian (Moldova)", // "ro_RO" => "Romanian (Romania)", 'ro' => 'Romanian', // "rm_CH" => "Romansh (Switzerland)", // "rm" => "Romansh", // "rof_TZ" => "Rombo (Tanzania)", // "rof" => "Rombo", // "ru_MD" => "Russian (Moldova)", // "ru_RU" => "Russian (Russia)", // "ru_UA" => "Russian (Ukraine)", // "ru" => "Russian", // "rwk_TZ" => "Rwa (Tanzania)", // "rwk" => "Rwa", // "saq_KE" => "Samburu (Kenya)", // "saq" => "Samburu", // "sg_CF" => "Sango (Central African Republic)", // "sg" => "Sango", // "seh_MZ" => "Sena (Mozambique)", // "seh" => "Sena", // "sr_Cyrl" => "Serbian (Cyrillic)", // "sr_Cyrl_BA" => "Serbian (Cyrillic, Bosnia and Herzegovina)", // "sr_Cyrl_ME" => "Serbian (Cyrillic, Montenegro)", // "sr_Cyrl_RS" => "Serbian (Cyrillic, Serbia)", // "sr_Latn" => "Serbian (Latin)", // "sr_Latn_BA" => "Serbian (Latin, Bosnia and Herzegovina)", // "sr_Latn_ME" => "Serbian (Latin, Montenegro)", // "sr_Latn_RS" => "Serbian (Latin, Serbia)", // "sr" => "Serbian", // "sn_ZW" => "Shona (Zimbabwe)", // "sn" => "Shona", // "ii_CN" => "Sichuan Yi (China)", // "ii" => "Sichuan Yi", // "si_LK" => "Sinhala (Sri Lanka)", // "si" => "Sinhala", // "sk_SK" => "Slovak (Slovakia)", // "sk" => "Slovak", // "sl_SI" => "Slovenian (Slovenia)", // "sl" => "Slovenian", // "xog_UG" => "Soga (Uganda)", // "xog" => "Soga", // "so_DJ" => "Somali (Djibouti)", // "so_ET" => "Somali (Ethiopia)", // "so_KE" => "Somali (Kenya)", // "so_SO" => "Somali (Somalia)", // "so" => "Somali", // "es_AR" => "Spanish (Argentina)", // "es_BO" => "Spanish (Bolivia)", // "es_CL" => "Spanish (Chile)", // "es_CO" => "Spanish (Colombia)", // "es_CR" => "Spanish (Costa Rica)", // "es_DO" => "Spanish (Dominican Republic)", // "es_EC" => "Spanish (Ecuador)", // "es_SV" => "Spanish (El Salvador)", // "es_GQ" => "Spanish (Equatorial Guinea)", // "es_GT" => "Spanish (Guatemala)", // "es_HN" => "Spanish (Honduras)", // "es_419" => "Spanish (Latin America)", // "es_MX" => "Spanish (Mexico)", // "es_NI" => "Spanish (Nicaragua)", // "es_PA" => "Spanish (Panama)", // "es_PY" => "Spanish (Paraguay)", // "es_PE" => "Spanish (Peru)", // "es_PR" => "Spanish (Puerto Rico)", // "es_ES" => "Spanish (Spain)", // "es_US" => "Spanish (United States)", // "es_UY" => "Spanish (Uruguay)", // "es_VE" => "Spanish (Venezuela)", // "es" => "Spanish", // "sw_KE" => "Swahili (Kenya)", // "sw_TZ" => "Swahili (Tanzania)", // "sw" => "Swahili", // "sv_FI" => "Swedish (Finland)", // "sv_SE" => "Swedish (Sweden)", // "sv" => "Swedish", // "gsw_CH" => "Swiss German (Switzerland)", // "gsw" => "Swiss German", // "shi_Latn" => "Tachelhit (Latin)", // "shi_Latn_MA" => "Tachelhit (Latin, Morocco)", // "shi_Tfng" => "Tachelhit (Tifinagh)", // "shi_Tfng_MA" => "Tachelhit (Tifinagh, Morocco)", // "shi" => "Tachelhit", // "dav_KE" => "Taita (Kenya)", // "dav" => "Taita", // "ta_IN" => "Tamil (India)", // "ta_LK" => "Tamil (Sri Lanka)", // "ta" => "Tamil", // "te_IN" => "Telugu (India)", // "te" => "Telugu", // "teo_KE" => "Teso (Kenya)", // "teo_UG" => "Teso (Uganda)", // "teo" => "Teso", // "th_TH" => "Thai (Thailand)", // "th" => "Thai", // "bo_CN" => "Tibetan (China)", // "bo_IN" => "Tibetan (India)", // "bo" => "Tibetan", // "ti_ER" => "Tigrinya (Eritrea)", // "ti_ET" => "Tigrinya (Ethiopia)", // "ti" => "Tigrinya", // "to_TO" => "Tonga (Tonga)", // "to" => "Tonga", // "tr_TR" => "Turkish (Turkey)", // "tr" => "Turkish", // "uk_UA" => "Ukrainian (Ukraine)", // "uk" => "Ukrainian", // "ur_IN" => "Urdu (India)", // "ur_PK" => "Urdu (Pakistan)", // "ur" => "Urdu", // "uz_Arab" => "Uzbek (Arabic)", // "uz_Arab_AF" => "Uzbek (Arabic, Afghanistan)", // "uz_Cyrl" => "Uzbek (Cyrillic)", // "uz_Cyrl_UZ" => "Uzbek (Cyrillic, Uzbekistan)", // "uz_Latn" => "Uzbek (Latin)", // "uz_Latn_UZ" => "Uzbek (Latin, Uzbekistan)", // "uz" => "Uzbek", // "vi_VN" => "Vietnamese (Vietnam)", // "vi" => "Vietnamese", // "vun_TZ" => "Vunjo (Tanzania)", // "vun" => "Vunjo", // "cy_GB" => "Welsh (United Kingdom)", // "cy" => "Welsh", // "yo_NG" => "Yoruba (Nigeria)", // "yo" => "Yoruba", // "zu_ZA" => "Zulu (South Africa)", // "zu" => "Zulu" ], 'view_namespaces' => [ 'buttons' => [ 'crud::buttons', // falls back to 'resources/views/vendor/backpack/crud/buttons' ], 'columns' => [ 'crud::columns', // falls back to 'resources/views/vendor/backpack/crud/columns' ], 'fields' => [ 'crud::fields', // falls back to 'resources/views/vendor/backpack/crud/fields' ], 'filters' => [ 'crud::filters', // falls back to 'resources/views/vendor/backpack/crud/filters' ], ], // the uploaders for the `withFiles` macro 'uploaders' => [ 'withFiles' => [ 'image' => \Backpack\CRUD\app\Library\Uploaders\SingleBase64Image::class, 'upload' => \Backpack\CRUD\app\Library\Uploaders\SingleFile::class, 'upload_multiple' => \Backpack\CRUD\app\Library\Uploaders\MultipleFiles::class, ], ], 'file_name_generator' => \Backpack\CRUD\app\Library\Uploaders\Support\FileNameGenerator::class, ]; ```
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_WIN_SCOPED_HDC_H_ #define BASE_WIN_SCOPED_HDC_H_ #include <windows.h> #include "base/basictypes.h" #include "base/logging.h" #include "base/win/scoped_handle.h" namespace base { namespace win { // Like ScopedHandle but for HDC. Only use this on HDCs returned from // GetDC. class ScopedGetDC { public: explicit ScopedGetDC(HWND hwnd) : hwnd_(hwnd) , hdc_(GetDC(hwnd)) { if (hwnd_) { DCHECK(IsWindow(hwnd_)); DCHECK(hdc_); } else { // If GetDC(NULL) returns NULL, something really bad has happened, like // GDI handle exhaustion. In this case Chrome is going to behave badly no // matter what, so we may as well just force a crash now. CHECK(hdc_); } } ~ScopedGetDC() { if (hdc_) ReleaseDC(hwnd_, hdc_); } operator HDC() { return hdc_; } private: HWND hwnd_; HDC hdc_; DISALLOW_COPY_AND_ASSIGN(ScopedGetDC); }; // Like ScopedHandle but for HDC. Only use this on HDCs returned from // CreateCompatibleDC, CreateDC and CreateIC. class CreateDCTraits { public: typedef HDC Handle; static bool CloseHandle(HDC handle) { return ::DeleteDC(handle) != FALSE; } static bool IsHandleValid(HDC handle) { return handle != NULL; } static HDC NullHandle() { return NULL; } private: DISALLOW_IMPLICIT_CONSTRUCTORS(CreateDCTraits); }; typedef GenericScopedHandle<CreateDCTraits, DummyVerifierTraits> ScopedCreateDC; } // namespace win } // namespace base #endif // BASE_WIN_SCOPED_HDC_H_ ```
The 2008–09 Minnesota Golden Gophers men's basketball team represented the University of Minnesota in the college basketball season of 2008–2009. The team's head coach was Tubby Smith. This was Smith's second year as Minnesota's head coach. The Golden Gophers played their home games at Williams Arena in Minneapolis, Minnesota. The Big Ten Network included the team in a two-and-a-half-hour special that featured Midnight Madness events from several Big Ten campuses on October 17, 2008; the Minnesota event to kick off the season was called "Tubby's Tipoff". The Gophers started the season on a twelve-game winning streak for the first time since the 1948–49 season. The team became ranked on December 22, the first time the team had been ranked since the 2002–03 season. Recruit Royce White signed with the Minnesota Golden Gophers, but did not play due to shoplifting and trespassing charges. He transferred to Iowa State in July 2010. Roster Incoming signees 2008–09 Schedule and Results |- !colspan="8" style="text-align: center; background:#800000" | Exhibition |- ! colspan="8" style="text-align: center; background:#800000"|Regular Season |- ! colspan="9" style="text-align: center; background:#800000"|Big Ten Regular Season |- ! colspan="9" style="text-align: center; background:#800000"|2009 Big Ten tournament |- ! colspan="9" style="text-align: center; background:#800000"|2009 NCAA Men's Basketball tournament Rankings References Minnesota Golden Gophers men's basketball seasons Minnesota Minnesota 2008 in sports in Minnesota 2009 in sports in Minnesota
Mason City is a village in Custer County, Nebraska, United States. The population was 171 at the 2010 census. History Mason City was platted in 1886 when the Burlington and Missouri River Railroad was extended to that point. The town was named for Oliver Perry Mason, a former Nebraska Supreme Court judge. Geography According to the United States Census Bureau, the village has a total area of , all land. Demographics 2010 census As of the census of 2010, there were 171 people, 75 households, and 45 families living in the village. The population density was . There were 93 housing units at an average density of . The racial makeup of the village was 94.2% White, 0.6% Native American, 1.2% Asian, and 4.1% from two or more races. Hispanic or Latino of any race were 2.3% of the population. There were 75 households, of which 22.7% had children under the age of 18 living with them, 46.7% were married couples living together, 10.7% had a female householder with no husband present, 2.7% had a male householder with no wife present, and 40.0% were non-families. 34.7% of all households were made up of individuals, and 21.3% had someone living alone who was 65 years of age or older. The average household size was 2.28 and the average family size was 2.84. The median age in the village was 47.4 years. 21.1% of residents were under the age of 18; 7.5% were between the ages of 18 and 24; 15.8% were from 25 to 44; 40.4% were from 45 to 64; and 15.2% were 65 years of age or older. The gender makeup of the village was 47.4% male and 52.6% female. 2000 census As of the census of 2000, there were 178 people, 72 households, and 49 families living in the village. The population density was . There were 91 housing units at an average density of . The racial makeup of the village was 94.38% White, 3.37% Native American, and 2.25% from two or more races. Hispanic or Latino of any race were 0.56% of the population. There were 72 households, out of which 30.6% had children under the age of 18 living with them, 61.1% were married couples living together, 4.2% had a female householder with no husband present, and 30.6% were non-families. 26.4% of all households were made up of individuals, and 20.8% had someone living alone who was 65 years of age or older. The average household size was 2.47 and the average family size was 3.02. In the village, the population was spread out, with 27.0% under the age of 18, 5.6% from 18 to 24, 19.1% from 25 to 44, 24.2% from 45 to 64, and 24.2% who were 65 years of age or older. The median age was 44 years. For every 100 females, there were 79.8 males. For every 100 females age 18 and over, there were 80.6 males. As of 2000 the median income for a household in the village was $26,719, and the median income for a family was $29,792. Males had a median income of $24,750 versus $21,786 for females. The per capita income for the village was $12,881. About 11.1% of families and 13.3% of the population were below the poverty line, including 20.5% of those under the age of eighteen and 25.7% of those 65 or over. References Villages in Custer County, Nebraska Villages in Nebraska
```html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url"> <html xmlns="path_to_url"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.10"/> <title>Introduction_to_Algorithms: src/graph_algorithms/basic_graph/graph_representation/graph_vertex/front_flow_vertex_test.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Introduction_to_Algorithms </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.10 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>File&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('front__flow__vertex__test_8h_source.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">front_flow_vertex_test.h</div> </div> </div><!--header--> <div class="contents"> <a href="front__flow__vertex__test_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or modify</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * along with this program. If not, see &lt;path_to_url <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * Author: huaxz1986@163.com (huaxz)</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> */</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef FRONTFLOWVERTEX_TEST</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define FRONTFLOWVERTEX_TEST</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include&quot;src/google_test/gtest.h&quot;</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="front__flow__vertex_8h.html">front_flow_vertex.h</a>&quot;</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">using</span> <a class="code" href=your_sha256_hashlow_vertex.html">IntroductionToAlgorithm::GraphAlgorithm::FrontFlowVertex</a>;</div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">using</span> <a class="code" href="struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_list.html">IntroductionToAlgorithm::GraphAlgorithm::List</a>;</div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">using</span> <a class="code" href=your_sha256_hashde.html">IntroductionToAlgorithm::GraphAlgorithm::ListNode</a>;</div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div> <div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html"> 27</a></span>&#160;<span class="keyword">namespace</span>{</div> <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a"> 28</a></span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a">FFV_NUM</a>=5;</div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div> <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html"> 30</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_front_flow_vertex_test.html">FrontFlowVertexTest</a>:<span class="keyword">public</span> ::testing::Test</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;{</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">public</span>:</div> <div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a0eefc91d4672952fe46aafe55b41d195"> 33</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href=your_sha256_hashlow_vertex.html">FrontFlowVertex&lt;int&gt;</a> <a class="code" href="class_front_flow_vertex_test.html#a0eefc91d4672952fe46aafe55b41d195">VertexType</a>; </div> <div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a80f3e381f6911872f7a4359ceff966bf"> 34</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href=your_sha256_hashde.html">ListNode&lt;VertexType&gt;</a> <a class="code" href="class_front_flow_vertex_test.html#a80f3e381f6911872f7a4359ceff966bf">NodeType</a>; </div> <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#ac30f272d98796ffce519f894f111fcaa"> 35</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_list.html">List&lt;NodeType&gt;</a> <a class="code" href="class_front_flow_vertex_test.html#ac30f272d98796ffce519f894f111fcaa">ListType</a>; </div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">protected</span>:</div> <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a8dfe07d5a92c681dcaa64ecc7dab5e2f"> 38</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_front_flow_vertex_test.html#a8dfe07d5a92c681dcaa64ecc7dab5e2f">SetUp</a>()</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; {</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="class_front_flow_vertex_test.html#a457ca07d1faf2d24e8bf7ab0116e822f">_default_vertex</a>=std::make_shared&lt;VertexType&gt;();</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="class_front_flow_vertex_test.html#a5f8a63b2d218d2e733e27ca598e9b864">_normal_vertex</a>=std::make_shared&lt;VertexType&gt;(21,1);</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="class_front_flow_vertex_test.html#a646ef544a16221c204d71d777c76b17b">_list</a>=std::make_shared&lt;ListType&gt;();</div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;<a class="code" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a">FFV_NUM</a>;i++)</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="class_front_flow_vertex_test.html#a87ecf1ffdaa2b7c78ba360b2deb4cfd1">_nodes</a>[i]=std::make_shared&lt;NodeType&gt;();</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; }</div> <div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a653d242a450fdfd6eed74c6540154681"> 49</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_front_flow_vertex_test.html#a653d242a450fdfd6eed74c6540154681">TearDown</a>(){}</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div> <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a457ca07d1faf2d24e8bf7ab0116e822f"> 51</a></span>&#160; std::shared_ptr&lt;VertexType&gt; <a class="code" href="class_front_flow_vertex_test.html#a457ca07d1faf2d24e8bf7ab0116e822f">_default_vertex</a>;</div> <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a5f8a63b2d218d2e733e27ca598e9b864"> 52</a></span>&#160; std::shared_ptr&lt;VertexType&gt; <a class="code" href="class_front_flow_vertex_test.html#a5f8a63b2d218d2e733e27ca598e9b864">_normal_vertex</a>;</div> <div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a646ef544a16221c204d71d777c76b17b"> 54</a></span>&#160; std::shared_ptr&lt;ListType&gt; <a class="code" href="class_front_flow_vertex_test.html#a646ef544a16221c204d71d777c76b17b">_list</a>;</div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_front_flow_vertex_test.html#a87ecf1ffdaa2b7c78ba360b2deb4cfd1"> 55</a></span>&#160; std::shared_ptr&lt;NodeType&gt; <a class="code" href="class_front_flow_vertex_test.html#a87ecf1ffdaa2b7c78ba360b2deb4cfd1">_nodes</a>[<a class="code" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a">FFV_NUM</a>];</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;};</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div> <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="front__flow__vertex__test_8h.html#a60894ac86e13516ec5842ac98fbd9433"> 63</a></span>&#160;<a class="code" href="front__flow__vertex__test_8h.html#a60894ac86e13516ec5842ac98fbd9433">TEST_F</a>(<a class="code" href="class_front_flow_vertex_test.html">FrontFlowVertexTest</a>,test_FrontFlowVertex_member)</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;{</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; EXPECT_EQ(_default_vertex-&gt;id,-1);</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; EXPECT_EQ(_default_vertex-&gt;key,0);</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; EXPECT_EQ(_default_vertex-&gt;h,0);</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; EXPECT_FALSE(_default_vertex-&gt;N_List.head);</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; EXPECT_EQ(_default_vertex-&gt;to_string(),<span class="stringliteral">&quot;vertex id:-1\t key:0\t h:0\t N_List:list:\n\ncurrent:\tnullptr&quot;</span>);</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; EXPECT_EQ(_normal_vertex-&gt;id,1);</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; EXPECT_EQ(_normal_vertex-&gt;key,21);</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; EXPECT_EQ(_normal_vertex-&gt;h,0);</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; EXPECT_FALSE(_normal_vertex-&gt;N_List.head);</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; EXPECT_EQ(_normal_vertex-&gt;to_string(),<span class="stringliteral">&quot;vertex id:1\t key:21\t h:0\t N_List:list:\n\ncurrent:\tnullptr&quot;</span>);</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;}</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div> <div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="front__flow__vertex__test_8h.html#a4ff706ae4943bf1b9ccad81ae05e059c"> 82</a></span>&#160;<a class="code" href="front__flow__vertex__test_8h.html#a60894ac86e13516ec5842ac98fbd9433">TEST_F</a>(<a class="code" href="class_front_flow_vertex_test.html">FrontFlowVertexTest</a>,test_node)</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;{</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; EXPECT_FALSE(_nodes[0]-&gt;next);</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; EXPECT_FALSE(_nodes[0]-&gt;value.lock());</div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; EXPECT_EQ(_nodes[0]-&gt;to_string(),<span class="stringliteral">&quot;list_node:nullptr&quot;</span>);</div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; _nodes[0]-&gt;value=_default_vertex;</div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; EXPECT_EQ(_nodes[0]-&gt;to_string(),<span class="stringliteral">&quot;list_node:vertex id:-1\t key:0\t h:0\t N_List:list:\n\ncurrent:\tnullptr&quot;</span>);</div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;}</div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div> <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="front__flow__vertex__test_8h.html#a39b90643d2be1b35699299eea2764922"> 96</a></span>&#160;<a class="code" href="front__flow__vertex__test_8h.html#a60894ac86e13516ec5842ac98fbd9433">TEST_F</a>(<a class="code" href="class_front_flow_vertex_test.html">FrontFlowVertexTest</a>,test_list)</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;{</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; EXPECT_FALSE(_list-&gt;head);</div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; EXPECT_FALSE(_list-&gt;current);</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; EXPECT_EQ(_list-&gt;to_string(),<span class="stringliteral">&quot;list:\n\ncurrent:\tnullptr&quot;</span>);</div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;<a class="code" href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a">FFV_NUM</a>-1;i++)</div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; {</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; _list-&gt;add(_nodes[i]);</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; EXPECT_EQ(_list-&gt;head,_nodes[i]);</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; }</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; EXPECT_EQ(_list-&gt;to_string(),<span class="stringliteral">&quot;list:\nlist_node:nullptr;\tlist_node:nullptr;\tlist_node:nullptr;\tlist_node:nullptr;\t\ncurrent:\tnullptr&quot;</span>);</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; EXPECT_THROW(_list-&gt;front_of(_nodes[FFV_NUM-1]),std::invalid_argument);</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; EXPECT_FALSE(_list-&gt;front_of(_list-&gt;head));</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=FFV_NUM-3;i&gt;=0;i--)</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; EXPECT_EQ(_list-&gt;front_of(_nodes[i]),_nodes[i+1]);</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;}</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="preprocessor">#endif // FRONTFLOWVERTEX_TEST</span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div> <div class="ttc" id=your_sha256_hashhtml_a376671144fcb4496d4ad27b14998ed8a"><div class="ttname"><a href="namespaceanonymous__namespace_02front__flow__vertex__test_8h_03.html#a376671144fcb4496d4ad27b14998ed8a">anonymous_namespace{front_flow_vertex_test.h}::FFV_NUM</a></div><div class="ttdeci">const int FFV_NUM</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00028">front_flow_vertex_test.h:28</a></div></div> <div class="ttc" id=your_sha256_hashlow_vertex_html"><div class="ttname"><a href=your_sha256_hashlow_vertex.html">IntroductionToAlgorithm::GraphAlgorithm::FrontFlowVertex</a></div><div class="ttdoc">FrontFlowVertexrelabel_to_front2626.4 </div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex_8h_source.html#l00175">front_flow_vertex.h:175</a></div></div> <div class="ttc" id=your_sha256_hash864"><div class="ttname"><a href="class_front_flow_vertex_test.html#a5f8a63b2d218d2e733e27ca598e9b864">FrontFlowVertexTest::_normal_vertex</a></div><div class="ttdeci">std::shared_ptr&lt; VertexType &gt; _normal_vertex</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00052">front_flow_vertex_test.h:52</a></div></div> <div class="ttc" id=your_sha256_hash22f"><div class="ttname"><a href="class_front_flow_vertex_test.html#a457ca07d1faf2d24e8bf7ab0116e822f">FrontFlowVertexTest::_default_vertex</a></div><div class="ttdeci">std::shared_ptr&lt; VertexType &gt; _default_vertex</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00051">front_flow_vertex_test.h:51</a></div></div> <div class="ttc" id=your_sha256_hashml"><div class="ttname"><a href="struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_list.html">IntroductionToAlgorithm::GraphAlgorithm::List</a></div><div class="ttdoc">List </div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex_8h_source.html#l00037">front_flow_vertex.h:37</a></div></div> <div class="ttc" id=your_sha256_hashfd1"><div class="ttname"><a href="class_front_flow_vertex_test.html#a87ecf1ffdaa2b7c78ba360b2deb4cfd1">FrontFlowVertexTest::_nodes</a></div><div class="ttdeci">std::shared_ptr&lt; NodeType &gt; _nodes[FFV_NUM]</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00055">front_flow_vertex_test.h:55</a></div></div> <div class="ttc" id="front__flow__vertex_8h_html"><div class="ttname"><a href="front__flow__vertex_8h.html">front_flow_vertex.h</a></div></div> <div class="ttc" id=your_sha256_hash195"><div class="ttname"><a href="class_front_flow_vertex_test.html#a0eefc91d4672952fe46aafe55b41d195">FrontFlowVertexTest::VertexType</a></div><div class="ttdeci">FrontFlowVertex&lt; int &gt; VertexType</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00033">front_flow_vertex_test.h:33</a></div></div> <div class="ttc" id=your_sha256_hash17b"><div class="ttname"><a href="class_front_flow_vertex_test.html#a646ef544a16221c204d71d777c76b17b">FrontFlowVertexTest::_list</a></div><div class="ttdeci">std::shared_ptr&lt; ListType &gt; _list</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00054">front_flow_vertex_test.h:54</a></div></div> <div class="ttc" id=your_sha256_hash6bf"><div class="ttname"><a href="class_front_flow_vertex_test.html#a80f3e381f6911872f7a4359ceff966bf">FrontFlowVertexTest::NodeType</a></div><div class="ttdeci">ListNode&lt; VertexType &gt; NodeType</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00034">front_flow_vertex_test.h:34</a></div></div> <div class="ttc" id=your_sha256_hash433"><div class="ttname"><a href="front__flow__vertex__test_8h.html#a60894ac86e13516ec5842ac98fbd9433">TEST_F</a></div><div class="ttdeci">TEST_F(FrontFlowVertexTest, test_FrontFlowVertex_member)</div><div class="ttdoc">FrontFlowVertexTest FrontFlowVertex. </div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00063">front_flow_vertex_test.h:63</a></div></div> <div class="ttc" id=your_sha256_hashe2f"><div class="ttname"><a href="class_front_flow_vertex_test.html#a8dfe07d5a92c681dcaa64ecc7dab5e2f">FrontFlowVertexTest::SetUp</a></div><div class="ttdeci">void SetUp()</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00038">front_flow_vertex_test.h:38</a></div></div> <div class="ttc" id=your_sha256_hashde_html"><div class="ttname"><a href=your_sha256_hashde.html">IntroductionToAlgorithm::GraphAlgorithm::ListNode</a></div><div class="ttdoc">ListNode </div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex_8h_source.html#l00133">front_flow_vertex.h:133</a></div></div> <div class="ttc" id=your_sha256_hash681"><div class="ttname"><a href="class_front_flow_vertex_test.html#a653d242a450fdfd6eed74c6540154681">FrontFlowVertexTest::TearDown</a></div><div class="ttdeci">void TearDown()</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00049">front_flow_vertex_test.h:49</a></div></div> <div class="ttc" id=your_sha256_hashcaa"><div class="ttname"><a href="class_front_flow_vertex_test.html#ac30f272d98796ffce519f894f111fcaa">FrontFlowVertexTest::ListType</a></div><div class="ttdeci">List&lt; NodeType &gt; ListType</div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00035">front_flow_vertex_test.h:35</a></div></div> <div class="ttc" id="class_front_flow_vertex_test_html"><div class="ttname"><a href="class_front_flow_vertex_test.html">FrontFlowVertexTest</a></div><div class="ttdef"><b>Definition:</b> <a href="front__flow__vertex__test_8h_source.html#l00030">front_flow_vertex_test.h:30</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_8ed9dba4cd616b67da9b1338594e34e0.html">src</a></li><li class="navelem"><a class="el" href="dir_aa0a5ddea82682e3e6fbdbaa3337ee0e.html">graph_algorithms</a></li><li class="navelem"><a class="el" href="dir_7ed7dee3af3b488a5e053ec9bcb71f0e.html">basic_graph</a></li><li class="navelem"><a class="el" href="dir_d12496f1fc7378ee9aea361c57814de0.html">graph_representation</a></li><li class="navelem"><a class="el" href="dir_fe18ed58836c2c8442913a14822c363c.html">graph_vertex</a></li><li class="navelem"><a class="el" href="front__flow__vertex__test_8h.html">front_flow_vertex_test.h</a></li> <li class="footer">Generated by <a href="path_to_url"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li> </ul> </div> </body> </html> ```
```ruby # frozen_string_literal: true module Decidim # A command with the business logic to invite an user to an organization. class InviteUserAgain < Decidim::Command # Public: Initializes the command. # # user - The user that receives the invitation instructions. # instructions - The invitation instructions that is sent to the user. def initialize(user, instructions) @user = user @instructions = instructions end def call user.invite!(user.invited_by, invitation_instructions: instructions) broadcast(:ok) end private attr_reader :user, :instructions end end ```
```ruby # frozen_string_literal: true require 'rails_helper' RSpec.describe TagsController do render_views describe 'GET #show' do let(:format) { 'html' } let(:tag) { Fabricate(:tag, name: 'test') } let(:tag_name) { tag&.name } before do get :show, params: { id: tag_name, format: format } end context 'when tag exists' do context 'when requested as HTML' do it 'returns http success' do expect(response).to have_http_status(200) end it_behaves_like 'cacheable response', expects_vary: 'Accept, Accept-Language, Cookie' end context 'when requested as JSON' do let(:format) { 'json' } it 'returns http success' do expect(response).to have_http_status(200) end it_behaves_like 'cacheable response', expects_vary: 'Accept, Accept-Language, Cookie' end end context 'when tag does not exist' do let(:tag_name) { 'hoge' } it 'returns http not found' do expect(response).to have_http_status(404) end end end end ```
```javascript // Alphabetical order. export { CreateSectionColumnsResetLayout } from './create-section-columns-reset-layout'; export { InnerSectionColumns } from './inner-section-columns'; export { IsValidChild } from './is-valid-child'; export { SectionColumns } from './section-columns'; export { SectionColumnsLimit } from './section-columns-limit'; ```
```smalltalk /* * Farseer Physics Engine: * * Original source Box2D: * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ //#define USE_ACTIVE_CONTACT_SET using System.Diagnostics; using FarseerPhysics.Collision; using FarseerPhysics.Collision.Shapes; using FarseerPhysics.Common; using Microsoft.Xna.Framework; namespace FarseerPhysics.Dynamics.Contacts { /// <summary> /// A contact edge is used to connect bodies and contacts together /// in a contact graph where each body is a node and each contact /// is an edge. A contact edge belongs to a doubly linked list /// maintained in each attached body. Each contact has two contact /// nodes, one for each attached body. /// </summary> public sealed class ContactEdge { /// <summary> /// The contact /// </summary> public Contact Contact; /// <summary> /// The next contact edge in the body's contact list /// </summary> public ContactEdge Next; /// <summary> /// Provides quick access to the other body attached. /// </summary> public Body Other; /// <summary> /// The previous contact edge in the body's contact list /// </summary> public ContactEdge Prev; } /// <summary> /// The class manages contact between two shapes. A contact exists for each overlapping /// AABB in the broad-phase (except if filtered). Therefore a contact object may exist /// that has no contact points. /// </summary> public class Contact { #region Properties/Fields public Fixture FixtureA; public Fixture FixtureB; public float Friction; public float Restitution; /// <summary> /// Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D. /// </summary> public Manifold Manifold; /// Get or set the desired tangent speed for a conveyor belt behavior. In meters per second. public float TangentSpeed; /// <summary> /// Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current /// time step (or sub-step in continuous collisions). /// NOTE: If you are setting Enabled to a constant true or false, use the explicit Enable() or Disable() functions instead to /// save the CPU from doing a branch operation. /// </summary> public bool Enabled; /// <summary> /// Get the child primitive index for fixture A. /// </summary> /// <value>The child index A.</value> public int ChildIndexA { get; internal set; } /// <summary> /// Get the child primitive index for fixture B. /// </summary> /// <value>The child index B.</value> public int ChildIndexB { get; internal set; } /// <summary> /// Determines whether this contact is touching. /// </summary> /// <returns> /// <c>true</c> if this instance is touching; otherwise, <c>false</c>. /// </returns> public bool IsTouching { get; set; } internal bool islandFlag; internal bool toiFlag; internal bool filterFlag; ContactType _type; static EdgeShape _edge = new EdgeShape(); static ContactType[,] _contactRegisters = new[,] { { ContactType.Circle, ContactType.EdgeAndCircle, ContactType.PolygonAndCircle, ContactType.ChainAndCircle, }, { ContactType.EdgeAndCircle, ContactType.NotSupported, // 1,1 is invalid (no ContactType.Edge) ContactType.EdgeAndPolygon, ContactType.NotSupported, // 1,3 is invalid (no ContactType.EdgeAndLoop) }, { ContactType.PolygonAndCircle, ContactType.EdgeAndPolygon, ContactType.Polygon, ContactType.ChainAndPolygon, }, { ContactType.ChainAndCircle, ContactType.NotSupported, // 3,1 is invalid (no ContactType.EdgeAndLoop) ContactType.ChainAndPolygon, ContactType.NotSupported, // 3,3 is invalid (no ContactType.Loop) }, }; // Nodes for connecting bodies. internal ContactEdge _nodeA = new ContactEdge(); internal ContactEdge _nodeB = new ContactEdge(); internal int _toiCount; internal float _toi; #endregion Contact(Fixture fA, int indexA, Fixture fB, int indexB) { Reset(fA, indexA, fB, indexB); } public void ResetRestitution() { Restitution = Settings.MixRestitution(FixtureA.Restitution, FixtureB.Restitution); } public void ResetFriction() { Friction = Settings.MixFriction(FixtureA.Friction, FixtureB.Friction); } /// <summary> /// Gets the world manifold. /// </summary> public void GetWorldManifold(out Vector2 normal, out FixedArray2<Vector2> points) { var bodyA = FixtureA.Body; var bodyB = FixtureB.Body; var shapeA = FixtureA.Shape; var shapeB = FixtureB.Shape; ContactSolver.WorldManifold.Initialize(ref Manifold, ref bodyA._xf, shapeA.Radius, ref bodyB._xf, shapeB.Radius, out normal, out points); } void Reset(Fixture fA, int indexA, Fixture fB, int indexB) { Enabled = true; IsTouching = false; islandFlag = false; filterFlag = false; toiFlag = false; FixtureA = fA; FixtureB = fB; ChildIndexA = indexA; ChildIndexB = indexB; Manifold.PointCount = 0; _nodeA.Contact = null; _nodeA.Prev = null; _nodeA.Next = null; _nodeA.Other = null; _nodeB.Contact = null; _nodeB.Prev = null; _nodeB.Next = null; _nodeB.Other = null; _toiCount = 0; //FPE: We only set the friction and restitution if we are not destroying the contact if (FixtureA != null && FixtureB != null) { Friction = Settings.MixFriction(FixtureA.Friction, FixtureB.Friction); Restitution = Settings.MixRestitution(FixtureA.Restitution, FixtureB.Restitution); } TangentSpeed = 0; } /// <summary> /// Update the contact manifold and touching status. /// Note: do not assume the fixture AABBs are overlapping or are valid. /// </summary> /// <param name="contactManager">The contact manager.</param> internal void Update(ContactManager contactManager) { var bodyA = FixtureA.Body; var bodyB = FixtureB.Body; if (FixtureA == null || FixtureB == null) return; var oldManifold = Manifold; // Re-enable this contact. Enabled = true; bool touching; var wasTouching = IsTouching; var sensor = FixtureA.IsSensor || FixtureB.IsSensor; // Is this contact a sensor? if (sensor) { var shapeA = FixtureA.Shape; var shapeB = FixtureB.Shape; touching = Collision.Collision.TestOverlap(shapeA, ChildIndexA, shapeB, ChildIndexB, ref bodyA._xf, ref bodyB._xf); // Sensors don't generate manifolds. Manifold.PointCount = 0; } else { Evaluate(ref Manifold, ref bodyA._xf, ref bodyB._xf); touching = Manifold.PointCount > 0; // Match old contact ids to new contact ids and copy the // stored impulses to warm start the solver. for (int i = 0; i < Manifold.PointCount; ++i) { var mp2 = Manifold.Points[i]; mp2.NormalImpulse = 0.0f; mp2.TangentImpulse = 0.0f; var id2 = mp2.Id; for (int j = 0; j < oldManifold.PointCount; ++j) { var mp1 = oldManifold.Points[j]; if (mp1.Id.Key == id2.Key) { mp2.NormalImpulse = mp1.NormalImpulse; mp2.TangentImpulse = mp1.TangentImpulse; break; } } Manifold.Points[i] = mp2; } if (touching != wasTouching) { bodyA.IsAwake = true; bodyB.IsAwake = true; } } IsTouching = touching; if (wasTouching == false) { if (touching) { if (Settings.AllCollisionCallbacksAgree) { bool enabledA = true, enabledB = true; // Report the collision to both participants. Track which ones returned true so we can // later call OnSeparation if the contact is disabled for a different reason. if (FixtureA.OnCollision != null) foreach (OnCollisionEventHandler handler in FixtureA.OnCollision.GetInvocationList()) enabledA = handler(FixtureA, FixtureB, this) && enabledA; // Reverse the order of the reported fixtures. The first fixture is always the one that the // user subscribed to. if (FixtureB.OnCollision != null) foreach (OnCollisionEventHandler handler in FixtureB.OnCollision.GetInvocationList()) enabledB = handler(FixtureB, FixtureA, this) && enabledB; Enabled = enabledA && enabledB; // BeginContact can also return false and disable the contact if (enabledA && enabledB && contactManager.OnBeginContact != null) Enabled = contactManager.OnBeginContact(this); } else { // Report the collision to both participants: if (FixtureA.OnCollision != null) foreach (OnCollisionEventHandler handler in FixtureA.OnCollision.GetInvocationList()) Enabled = handler(FixtureA, FixtureB, this); //Reverse the order of the reported fixtures. The first fixture is always the one that the //user subscribed to. if (FixtureB.OnCollision != null) foreach (OnCollisionEventHandler handler in FixtureB.OnCollision.GetInvocationList()) Enabled = handler(FixtureB, FixtureA, this); //BeginContact can also return false and disable the contact if (contactManager.OnBeginContact != null) Enabled = contactManager.OnBeginContact(this); } // If the user disabled the contact (needed to exclude it in TOI solver) at any point by // any of the callbacks, we need to mark it as not touching and call any separation // callbacks for fixtures that didn't explicitly disable the collision. if (!Enabled) IsTouching = false; } } else { if (touching == false) { // Report the separation to both participants: if (FixtureA != null && FixtureA.OnSeparation != null) FixtureA.OnSeparation(FixtureA, FixtureB); //Reverse the order of the reported fixtures. The first fixture is always the one that the //user subscribed to. if (FixtureB != null && FixtureB.OnSeparation != null) FixtureB.OnSeparation(FixtureB, FixtureA); if (contactManager.OnEndContact != null) contactManager.OnEndContact(this); } } if (sensor) return; if (contactManager.OnPreSolve != null) contactManager.OnPreSolve(this, ref oldManifold); } /// <summary> /// Evaluate this contact with your own manifold and transforms. /// </summary> /// <param name="manifold">The manifold.</param> /// <param name="transformA">The first transform.</param> /// <param name="transformB">The second transform.</param> void Evaluate(ref Manifold manifold, ref Transform transformA, ref Transform transformB) { switch (_type) { case ContactType.Polygon: Collision.Collision.CollidePolygons(ref manifold, (PolygonShape) FixtureA.Shape, ref transformA, (PolygonShape) FixtureB.Shape, ref transformB); break; case ContactType.PolygonAndCircle: Collision.Collision.CollidePolygonAndCircle(ref manifold, (PolygonShape) FixtureA.Shape, ref transformA, (CircleShape) FixtureB.Shape, ref transformB); break; case ContactType.EdgeAndCircle: Collision.Collision.CollideEdgeAndCircle(ref manifold, (EdgeShape) FixtureA.Shape, ref transformA, (CircleShape) FixtureB.Shape, ref transformB); break; case ContactType.EdgeAndPolygon: Collision.Collision.CollideEdgeAndPolygon(ref manifold, (EdgeShape) FixtureA.Shape, ref transformA, (PolygonShape) FixtureB.Shape, ref transformB); break; case ContactType.ChainAndCircle: var chain = (ChainShape) FixtureA.Shape; chain.GetChildEdge(_edge, ChildIndexA); Collision.Collision.CollideEdgeAndCircle(ref manifold, _edge, ref transformA, (CircleShape) FixtureB.Shape, ref transformB); break; case ContactType.ChainAndPolygon: var loop2 = (ChainShape) FixtureA.Shape; loop2.GetChildEdge(_edge, ChildIndexA); Collision.Collision.CollideEdgeAndPolygon(ref manifold, _edge, ref transformA, (PolygonShape) FixtureB.Shape, ref transformB); break; case ContactType.Circle: Collision.Collision.CollideCircles(ref manifold, (CircleShape) FixtureA.Shape, ref transformA, (CircleShape) FixtureB.Shape, ref transformB); break; } } internal static Contact Create(Fixture fixtureA, int indexA, Fixture fixtureB, int indexB) { var type1 = fixtureA.Shape.ShapeType; var type2 = fixtureB.Shape.ShapeType; Debug.Assert(ShapeType.Unknown < type1 && type1 < ShapeType.TypeCount); Debug.Assert(ShapeType.Unknown < type2 && type2 < ShapeType.TypeCount); Contact c; var pool = fixtureA.Body._world._contactPool; if (pool.Count > 0) { c = pool.Dequeue(); if ((type1 >= type2 || (type1 == ShapeType.Edge && type2 == ShapeType.Polygon)) && !(type2 == ShapeType.Edge && type1 == ShapeType.Polygon)) c.Reset(fixtureA, indexA, fixtureB, indexB); else c.Reset(fixtureB, indexB, fixtureA, indexA); } else { // Edge+Polygon is non-symetrical due to the way Erin handles collision type registration. if ((type1 >= type2 || (type1 == ShapeType.Edge && type2 == ShapeType.Polygon)) && !(type2 == ShapeType.Edge && type1 == ShapeType.Polygon)) c = new Contact(fixtureA, indexA, fixtureB, indexB); else c = new Contact(fixtureB, indexB, fixtureA, indexA); } c._type = _contactRegisters[(int) type1, (int) type2]; return c; } internal void Destroy() { #if USE_ACTIVE_CONTACT_SET FixtureA.Body.World.ContactManager.RemoveActiveContact(this); #endif FixtureA.Body._world._contactPool.Enqueue(this); if (Manifold.PointCount > 0 && FixtureA.IsSensor == false && FixtureB.IsSensor == false) { FixtureA.Body.IsAwake = true; FixtureB.Body.IsAwake = true; } Reset(null, 0, null, 0); } #region Nested type: ContactType public enum ContactType { NotSupported, Polygon, PolygonAndCircle, Circle, EdgeAndPolygon, EdgeAndCircle, ChainAndPolygon, ChainAndCircle, } #endregion } } ```
Colby Everette Jones (born May 28, 2002) is an American professional basketball player for the Sacramento Kings of the National Basketball Association (NBA). He played college basketball for Xavier. High school career Jones played basketball for Pinson Valley High School in Pinson, Alabama. As a sophomore, he averaged 23.9 points, 7.9 rebounds and 3.9 assists per game. After a coaching change at Pinson, he transferred to Mountain Brook High School in Mountain Brook, Alabama for his junior season to play under coach Bucky McMillan. Jones averaged 14 points, five rebounds and three assists per game as a junior. He played alongside Trendon Watford and helped the school win its third straight Class 7A state title. In his senior season, Jones assumed a leading role and averaged 25.2 points, 7.8 rebounds, 3.2 assists and 2.5 steals per game, helping Mountain Brook to a Class 7A runner-up finish. He was named Over the Mountain Journal Player of the Year, All-South Metro Player of the Year and Alabama Class 7A Player of the Year. A four-star recruit, he committed to play college basketball for Xavier over offers from Alabama, Auburn, Georgia and UAB. College career Jones missed the first five games of his freshman season at Xavier due to COVID-19 contact tracing. On January 10, 2021, he made a game-winning three-pointer in the final second of a 74–73 win against Providence. On February 16, he scored a season-high 20 points and had six rebounds in a 93–84 loss to St. John's. As a freshman, Jones averaged 7.7 points, 4.8 rebounds and 2.9 assists per game, and was selected to the Big East All-Freshman Team. Professional career Jones was drafted 34th overall by the Charlotte Hornets in the 2023 NBA draft. During the draft, the Boston Celtics traded for his draft rights, and then subsequently traded him to the Sacramento Kings for the draft rights to Jordan Walsh and a 2024 second-round pick. Career statistics College |- | style="text-align:left;"| 2020–21 | style="text-align:left;"| Xavier | 15 || 11 || 27.8 || .464 || .333 || .757 || 4.8 || 2.9 || 1.3 || .3 || 7.7 Personal life Jones' father, Chad, played college basketball for UAB. His older brother, C. J., played basketball for Arkansas and Middle Tennessee in college before embarking on a professional career. References External links Xavier Musketeers bio 2002 births Living people American men's basketball players Basketball players from Birmingham, Alabama Charlotte Hornets draft picks Sacramento Kings players Shooting guards Xavier Musketeers men's basketball players
```c++ #include <iostream> #include <iomanip> #include <IO/ReadHelpers.h> #include <Common/Stopwatch.h> #include <Common/Exception.h> #include <Common/ThreadPool.h> #include <Common/CurrentMetrics.h> int value = 0; static void f() { ++value; } static void * g(void *) { f(); return {}; } using ThreadFromGlobalPoolSimple = ThreadFromGlobalPoolImpl</* propagate_opentelemetry_context= */ false, /* global_trace_collector_allowed= */ false>; using SimpleThreadPool = ThreadPoolImpl<ThreadFromGlobalPoolSimple>; namespace CurrentMetrics { extern const Metric LocalThread; extern const Metric LocalThreadActive; extern const Metric LocalThreadScheduled; } namespace DB { namespace ErrorCodes { extern const int PTHREAD_ERROR; } } template <typename F> void test(size_t n, const char * name, F && kernel) { value = 0; Stopwatch watch; Stopwatch watch_one; double max_seconds = 0; std::cerr << name << ":\n"; for (size_t i = 0; i < n; ++i) { watch_one.restart(); kernel(); watch_one.stop(); max_seconds = std::max(watch_one.elapsedSeconds(), max_seconds); } watch.stop(); std::cerr << std::fixed << std::setprecision(2) << n << " ops in " << watch.elapsedSeconds() << " sec., " << n / watch.elapsedSeconds() << " ops/sec., " << "avg latency: " << watch.elapsedSeconds() / n * 1000000 << " s, " << "max latency: " << max_seconds * 1000000 << " s " << "(res = " << value << ")" << std::endl; } int main(int argc, char ** argv) { size_t n = argc == 2 ? DB::parse<UInt64>(argv[1]) : 100000; test(n, "Create and destroy ThreadPool each iteration", [] { SimpleThreadPool tp(CurrentMetrics::LocalThread, CurrentMetrics::LocalThreadActive, CurrentMetrics::LocalThreadScheduled, 1); tp.scheduleOrThrowOnError(f); tp.wait(); }); test(n, "pthread_create, pthread_join each iteration", [] { pthread_t thread; if (pthread_create(&thread, nullptr, g, nullptr)) throw DB::ErrnoException(DB::ErrorCodes::PTHREAD_ERROR, "Cannot create thread"); if (pthread_join(thread, nullptr)) throw DB::ErrnoException(DB::ErrorCodes::PTHREAD_ERROR, "Cannot join thread"); }); test(n, "Create and destroy std::thread each iteration", [] { std::thread thread(f); thread.join(); }); { SimpleThreadPool tp(CurrentMetrics::LocalThread, CurrentMetrics::LocalThreadActive, CurrentMetrics::LocalThreadScheduled, 1); test(n, "Schedule job for Threadpool each iteration", [&tp] { tp.scheduleOrThrowOnError(f); tp.wait(); }); } { SimpleThreadPool tp(CurrentMetrics::LocalThread, CurrentMetrics::LocalThreadActive, CurrentMetrics::LocalThreadScheduled, 128); test(n, "Schedule job for Threadpool with 128 threads each iteration", [&tp] { tp.scheduleOrThrowOnError(f); tp.wait(); }); } return 0; } ```
The Evangelical Library in Bounds Green, London, is a lending library for Christian ministers, students and other lay-persons. For many years the library was located on Chiltern Street in central London. It moved to North London in mid-2009. The Library was founded through the vision of Geoffrey Williams (1886–1975) to be a library that offered the very best of Protestant evangelical resources. In this aim he was much encouraged in 1938 by the then associate minister of Westminster Chapel, Dr Martyn Lloyd-Jones. Before the move in 1944 to its Chiltern Street location close to Baker Street Underground station, it was known as the Beddington Free Grace Library, based in the tiny village of Beddington, Surrey. The library is home to more than 80,000 evangelical books. It also has an extensive archive of several evangelical periodicals. It hosts an annual lecture and publishes a regular magazine called In Writing (formerly known as The Evangelical Library Bulletin). Following a major refurbishment in 2005, the library now has a reference room, known as the Robert Sheehan Puritan and Research Centre, named in honour of the late Robert J. Sheehan (1951–97), the former pastor of Welwyn Evangelical Church. It has links with a number of similar libraries worldwide, which it also supports. See also Dr Williams's Library, London St Deiniol's Library, Hawarden References External links The Evangelical Library – official website The Evangelical Library's E-Books Project Religion in the City of Westminster Libraries in the City of Westminster Evangelicalism in the United Kingdom
The Jenks baronetcy, of Cheape in the City of London, is a title in the baronetage of the United Kingdom. It was created on 8 October 1932 for Maurice Jenks, Lord Mayor of London from 1931 to 1932. Jenks baronets, of Cheape (1932) Sir Maurice Jenks, 1st Baronet (1872–1946) Sir Richard Atherley Jenks, 2nd Baronet (1906–1993) Sir Maurice Arthur Brian Jenks, 3rd Baronet (1933–2004) Sir Richard John Peter Jenks, 4th Baronet (born 1936) The heir apparent is the present holder's son Richard Albert Benedict Jenks (born 1965). References Kidd, Charles, Williamson, David (editors). Debrett's Peerage and Baronetage (1990 edition). New York: St Martin's Press, 1990. External links www.haberdashers.co.uk www.burkespeerage.com Jenks
```smalltalk // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; namespace Microsoft.Cci.Pdb { internal class DbiModuleInfo { internal DbiModuleInfo(BitAccess bits, bool readStrings) { bits.ReadInt32(out opened); new DbiSecCon(bits); bits.ReadUInt16(out flags); bits.ReadInt16(out stream); bits.ReadInt32(out cbSyms); bits.ReadInt32(out cbOldLines); bits.ReadInt32(out cbLines); bits.ReadInt16(out files); bits.ReadInt16(out pad1); bits.ReadUInt32(out offsets); bits.ReadInt32(out niSource); bits.ReadInt32(out niCompiler); if (readStrings) { bits.ReadCString(out moduleName); bits.ReadCString(out objectName); } else { bits.SkipCString(out moduleName); bits.SkipCString(out objectName); } bits.Align(4); //if (opened != 0 || pad1 != 0) { // throw new PdbException("Invalid DBI module. "+ // "(opened={0}, pad={1})", opened, pad1); //} } readonly internal int opened; // 0..3 //internal DbiSecCon section; // 4..31 readonly internal ushort flags; // 32..33 readonly internal short stream; // 34..35 readonly internal int cbSyms; // 36..39 readonly internal int cbOldLines; // 40..43 readonly internal int cbLines; // 44..57 readonly internal short files; // 48..49 readonly internal short pad1; // 50..51 readonly internal uint offsets; readonly internal int niSource; readonly internal int niCompiler; readonly internal string moduleName; readonly internal string objectName; } } ```
The Online Streaming Act (), commonly known as Bill C-11, is a bill introduced in the 44th Canadian Parliament. It was first introduced on November 3, 2020, by Minister of Canadian Heritage Steven Guilbeault during the second session of the 43rd Canadian Parliament as An Act to amend the Broadcasting Act and to make related and consequential amendments to other Acts, commonly known as Bill C-10, which passed in the House of Commons on June 22, 2021, but failed to pass the Senate before Parliament was dissolved for a federal election. It was reintroduced with amendments as the Online Streaming Act during the first session of the 44th Canadian Parliament in February 2022, passed in the House of Commons on June 21, 2022, and passed in the Senate on February 2, 2023. It received royal assent on April 27, 2023, after the consideration of amendments by the House. The bill amends the Broadcasting Act to account for the increased prominence of internet video and digital media, and to prioritize the "needs and interests" of Canadians, and the inclusion and involvement of Canadians of diverse backgrounds in broadcast programming. It adds undertakings that conduct "broadcasting" over the internet to the regulatory scope of the Canadian Radio-television and Telecommunications Commission (CRTC), giving it the power to impose "conditions" on their operation. These can include compelling them to make use of Canadian talent, mandating that they make expenditures in support of the production of Canadian content, and being ordered to improve the discoverability of Canadian content on their platforms. Alongside this, the bill also removes the seven-year term limit for CRTC-issued broadcast licences (a regulatory process which will not apply to internet broadcasters), adds a mechanism of imposing "conditions" on broadcasters without them being bound to a licence term, and introduces monetary fines for violating orders and regulations issued by the CRTC. Supporters of the bill state that it allows the CRTC to compel foreign streaming services to follow similar regulatory obligations to conventional radio and television broadcasters, and government officials projected that mandating participation in the CMF by online broadcasters would result in at least $830 million in additional funding by 2023. The opposition has directed criticism at the bill for granting a large amount of power to the CRTC, who are unelected regulators and receive very little guidance from Parliament or the government. Its unclear applicability to user-generated content on social media services has also faced concerns that it infringes freedom of expression, and that the bill would extraterritorially subject any form of audiovisual content distributed online via platforms accessible within Canada to regulation by the CRTC. The bill has also faced criticism over the lack of transparency in its legislative process, with both instances of the bill having faced arbitrarily limited time periods for their clause-by-clause review, thus limiting the amount of debate and discussion of individual amendments. History On January 19, 2021, the Broadcasting and Telecommunications Legislative Review Panel issued a report to Minister of Heritage Steven Guilbeault and Minister of Innovation, Science and Industry Navdeep Bains, calling for reforms of Canada's broadcasting system to account for digital media. Among other reforms, the panel urgently recommended that any company "with significant Canadian revenues" that distributes or curates audio, audiovisual, or news content be required to register with and be regulated by the CRTC (which the review proposed to be renamed to the "Canadian Communications Commission" to signify its wider scope), and become obligated to make expenditures towards the creation of Canadian content (just as licensed radio and television broadcasters must do under the existing Broadcasting Act and CRTC policy). The CRTC does not currently regulate internet content. The panel's urgent recommendations were incorporated into Bill C-10. The bill is the first in a series of three bills intended to address online platforms and their influence in Canada, alongside a proposed "online harms" bill that will seek to address online hate speech. On February 16, 2021, the bill completed its second reading and was referred to the Standing Committee on Canadian Heritage (CHPC). On June 1, 2022, a proposed amendment by the Conservatives to reinstate a clause excluding user-generated content from the scope of the bill, citing various concerns from critics and media outlets, was voted down by the House. The Liberals, with support of the Bloc, subsequently passed a motion of time allocation in order to limit debate of the bill (the first such motion in 20 years, and only the third overall) to five hours, after which the Heritage Committee was required to conclude its clause-by-clause review. Guilbeault cited "systematic obstruction" of the bill by Conservatives. As a result of the effective "gag order", a number of amendments were voted on with no discussion or publication of the amendments permitted. On June 14, another motion was introduced to only allow one hour of debate for the amended bill when it returned to the House, and only 75 minutes for the third reading. On June 15, the aforementioned amendments were voided by Speaker Anthony Rota, for having been passed by the Heritage Committee after the five-hour period expired. During a late-night session on June 21, most of the voided amendments were reintroduced, and the bill was passed by the House of Commons 196–112 during its third reading. It awaited Senate approval, but was unable to do so before Parliament was dissolved for the 2021 federal election. The bill was reintroduced in February 2022 as the Online Streaming Act, or Bill C-11 on February 2, 2022. Once again, in June 2022 debate was largely curtailed by providing only three,120-minute sessions for a clause-by-clause review, after which all remaining proposed amendments were voted on with no discussion or publication permitted. On May 20, 2022, CRTC Chair Ian Scott stated that the legislation would allow for user-generated content to be regulated but also stated that CRTC would not seek to do so. Minister of Heritage Pablo Rodriguez would later replace Scott with Vicky Eatrides as the new chair of the CRTC on January 5 2023. The bill was passed by the House of Commons 208–117 on June 21 during its third reading, and was sent to the Senate for review. Following the successful passage of the bill through the Senate, on March 7, 2023, Minister of Heritage Rodriguez and his caucus rejected a key amendment by the Senate that protected against the regulation of user-generated content. On April 27, 2023, the Senate voted 52–16 to approve amendments that had been considered by the House of Commons, thus passing the bill. It received royal assent the same day. Contents The bill consists primarily of amendments to the Broadcasting Act, along with consequential and related amendments to existing legislation such as Canada's Anti-Spam Legislation, the Cannabis Act, the Copyright Act, and the Canadian Radio-television and Telecommunications Commission Act. The exact regulatory policies will be determined by the CRTC based on its interpretation of the amended Broadcasting Act. Broadcasting policies of Canada The broadcasting policy of Canada as defined by the Broadcasting Act is amended, stating that the broadcasting system must serve the needs and interests of all Canadians (including age groups, economic backgrounds, ethnic groups, disabilities, and gender identities among other categories) via programming and employment opportunities. The CRTC is given the authority to impose conditions on broadcasters to uphold the broadcasting policy of Canada, including the production, presentation, and discoverability of Canadian content, accessibility of content to individuals with disabilities, and other regulatory matters similar to the current conditions of licence used to regulate broadcasters. Conditions would not be bound to licence terms. The licensing framework for broadcasters is modified to remove the seven-year limit for fixed terms, and authorize the CRTC to issue indefinite licences. The CRTC will be prohibited from imposing any obligation on the industry that "does not contribute in a material way to implementing the broadcasting policy for Canada." The Act introduces monetary penalties for violating any regulation or order issued by the CRTC, with fines of up to C$25,000 for the first offence by an individual, and up to $10 million for the first offence by a corporation. Online undertakings The Act is amended to include a definition of online undertakings, which are any internet service that broadcasts programs over the internet. The Act currently defines programs as "sounds or visual images, or a combination of sounds and visual images, that are intended to inform, enlighten or entertain, but does not include visual images, whether or not combined with sounds, that consist predominantly of alphanumeric text". The definition of broadcasting undertaking and broadcasting under the Act is also amended to include online transmission.. Foreign online undertakings are excluded from the requirement that all broadcasters be owned by Canadians, but are expected to "make the greatest practicable use of Canadian creative and other human resources", and "contribute in an equitable manner to strongly support the creation, production and presentation of Canadian programming". Online undertakings are not required to be licensed by the CRTC. However, the Act gives the CRTC power to impose regulatory conditions and obligations on them as with all other broadcasters, such as giving prominence to Canadian content on their platforms (although the bill prohibits mandating that algorithms be used to do so), paying expenditures in support of Canadian productions, and being compelled to provide information to the Commission on such matters when requested. The Act applies to programs on a social media service that are uploaded by "the provider of the service or the provider's affiliate, or the agent or mandatary of either of them", or otherwise covered under regulations created by the CRTC, making regulations that consider (Section 4.2(2)): Whether the program, uploaded to an online undertaking that operates a social media service, generates revenue directly or indirectly Whether the program has been broadcast via a broadcast undertaking that must be licensed or registered with the CRTC, and is not a social media service. Whether the program has been "assigned a unique identifier under an international standards system" The regulations do not apply to programs that consist "only of visual images" (Section 4.2(3b)), and programs "of which neither the user of a social media service who uploads the program nor the owner or licensee of copyright in the program receives revenues" (Section 4.2(3a)). A person is not considered to be carrying on a broadcasting undertaking for the purposes of the Act if (Section 3.2): They are uploading programs to a social media service for transmission to other users over the internet, and are not "the provider of the service or the provider’s affiliate, or the agent or mandatary of either of them." The transmissions are "ancillary" to a business not normally engaged in broadcasting to the public, and are "intended to provide clients with information or services directly related to that business" The transmissions are part of the operations of an educational institution, library, or museum The transmissions are part of the operations of a performing arts venue for the purposes of a live presentation. Reception Supporters of the bill argue that it creates a level playing field between legacy and digital broadcast undertakings, and would allow the CRTC to compel foreign streaming services such as Netflix and YouTube to make expenditures towards the production of Canadian content in the same way as conventional broadcasters, and be required to prepare reports to the CRTC on the discoverability of Canadian content on their platforms. Federal officials estimated that mandating participation in the Canada Media Fund by major streaming services could generate up to $830 million in new funding per-year by 2023. Supporters of the bill also argue that it is designed to encourage the production of certified Canadian content, and discourage the practice of "foreign location and service productions" (FLSP) that extensively use Canadian resources and personnel, but do not include Canadians in specific key creative positions. Critics of the proposed legislation have argued that it gives broad power to the CRTC, who are unelected regulators and receive very little guidance from Parliament or the government, to enforce regulations on digital media platforms. University of Ottawa professor Michael Geist criticized the bill for removing a number of long-standing policies from the Act that were intended to protect Canada's broadcasting system, including the requirement that all broadcasters be Canadian-owned and controlled, and the expectation that broadcasters make "maximum use, and in no case less than predominant use" of Canadian talent in programming. Applicability to social media The bill originally contained a clause, Section 4(1), which explicitly excluded programs that are uploaded by users of social media platforms, who are not an owner, operator, or affiliate of the platform, as well as any online undertakings that consist only of such content, from the scope of the Broadcasting Act. It was removed from the bill in April 2021, due to concerns that it could be used as a loophole by video sharing platforms to declare music content as being user-generated because it was uploaded to a musician's own channel, and thus not provide reports on such content to the CRTC. Concerns were raised by critics that removing the clause would place a burden on the operators of social media platforms to regulate user content for compliance with CRTC regulations. Former CRTC commissioner Peter Menzies stated that "granting a government agency authority over legal user generated content — particularly when backed up by the government’s musings about taking down websites — doesn’t just infringe on free expression, it constitutes a full-blown assault upon it and, through it, the foundations of democracy." Guilbeault stated that the bill was intended to cover "professional series, films, and music", and argued that the bill included "safeguards" to protect individual users. Liberal MP and Guilbeault's secretary Julie Dabrusin argued that "we do not want to regulate your cat videos." Conservative Party leader Erin O'Toole commented that Justin Trudeau's government was the most "anti-internet government in Canadian history". Conservative Party heritage critic Alain Rayes stated that "Conservatives support creating a level playing field between large, foreign streaming services and Canadian broadcasters, but not at the cost of Canadians’ fundamental rights and freedoms." Conservative MP Michael Barrett accused the bill of "silencing Canadians online", and argued that Trudeau was attempting to make "every aspect of Canadian life" conform to "his Liberal vision of Canadian society". In response, Trudeau argued that free speech is "not negotiable by our government", and commented that "the tinfoil hats on the other side of the aisle are really quite spectacular." On May 3, Guilbeault stated that the bill would be amended to reinstate a more explicit exclusion of user-generated content from the bill, stating that it "is not about what Canadians do online. It is about what the web giants do and don't do, which is to support Canadian stories and music." The amendment adds a statement establishing that the CRTC's powers over social media platforms would be limited to imposing conditions on "the discoverability of Canadian creators"; Geist criticized the amendment for merely confirming the CRTC's regulatory powers and "doubling down on [the government's] Internet regulation plans." On May 9 in an interview with CTV's political talk show Question Period, Guilbeault stated that the Broadcasting Act as amended by the bill "should apply to people who are broadcasters, or act like broadcasters", and suggested that social media users that have a large audience or derive a large amount of revenue (insofar that they have a "material impact on the Canadian economy") would also be classified as broadcasters. Concerns were raised over the comments, as they had contradicted Guilbeault's previous assurance that the Act would not apply to individual users of social networks, and it was unclear what the threshold would be under this criteria. Guilbeault later admitted that he had used "unclear language" during the Question Period interview, and argued that individual persons would not be considered broadcasters under the Act, and that social media platforms would be regulated when they themselves "produce content for Canadians to watch or listen to — for broadcast." Regarding social media platforms likely being required to improve the discoverability of Canadian content, he explained that "it does not mean the CRTC would dictate, limit or prohibit a feed or what you can post, watch or listen to on social media. As the Internet is infinite, discoverability won’t limit the content you see on a feed – it will just add more." On May 9, Kate Taylor of The Globe and Mail published an opinion piece in support of the bill, stating that concerns over the bill were being "overblown" by the Conservatives, that the Broadcasting Act has always required that it be applied by the CRTC "in a manner that is consistent with the freedom of expression and journalistic, creative and programming independence", and that all Canadian creators "deserve a broadcasting law that offers basic fairness". The Conservative Party and the NDP supported a motion to reassess the bill's compliance with the Charter of Rights and Freedoms ("charter statement"). On May 10, 2021, members of Parliament on the Heritage Committee voted in favour of a motion requesting a new charter statement, and that Guilbeault and Minister of Justice and Attorney General David Lametti appear before the committee and an expert panel to discuss the implications of the amendments to the bill. That night, Guilbeault shared a Medium post on Twitter which claimed that opposition to the bill was the product of "public opinion being manipulated at scale through a deliberate campaign of misinformation by commercial interests that would prefer to avoid the same regulatory oversight applied to broadcast media." On May 13, the Department of Justice issued the new charter statement, finding that the current draft was compatible with the Charter, citing that the CRTC would not be able to impose the regulations on individual users, and would have to interpret the Act "in a manner consistent with freedom of expression". Geist felt that the charter statement did not address the main concern of allowing the CRTC to regulate the presentation of Canadian content on internet platforms, stating that "suddenly now we're going to ask the CRTC to decide which cat video constitutes Canadian content, and which one doesn't." On May 19, the Heritage Committee voted in favour of an amendment by the Bloc Québécois that ensures that the CRTC would only be allowed to enforce conditions on the promotion of Canadian content by social media platforms that are consistent with the Charter right to freedom of expression. Upon its reintroduction as the Online Streaming Act, Section 4(1) was restored, but is now accompanied by an additional section stating that a program could still fall under the Act based on CRTC regulations, based on whether the content is being monetized, was broadcast on a CRTC-licensed undertaking, or is "assigned a unique identifier under an international standards system". Geist also noted that some of the "safeguards" that had been added to the bill as Bill C-10 were removed, and concluded that "there was an opportunity to use the re-introduction of the bill to fully exclude user generated content (no other country in the world regulates content this way), limit the scope of the bill to a manageable size, and create more certainty and guidance for the CRTC. Instead, the government has left the prospect of treating Internet content as programs subject to regulation in place, envisioned the entire globe as subject to Canadian broadcast jurisdiction, increased the power of the regulator, and done little to answer many of the previously unanswered questions." Canadian YouTuber J.J. McCullough argued that changes to recommendation algorithms to promote Canadian content as proposed under the bill could impact the discoverability of Canadian creators. Geist also felt that the bill had failed to account for foreign productions that extensively leverage Canadian talent and resources and can be mistaken for Canadian content, but fail to meet the requirements for certification due to factors such as foreign ownership of the production. Liberal MP Tim Louis claimed that criticism of the provisions was based on "misinformation". In August 2022, it was reported based on documents from an Access to Information Act request, that the removal of Section 4(1) from the original version of the bill was the result of lobbying by Friends of Canadian Broadcasting and the Coalition for the Diversity of Cultural Expressions (CDCE). Friends was opposed to the regulation of users, but did support the regulation of social media companies themselves. Various amendments have been introduced and approved as part of its Senate review. On December 6, 2022, amendments were agreed upon by the committee that would require online undertakings to "implement methods such as age verification" to prevent minors from accessing programs containing sexually explicit content. Another amendment replaces Section 4.2(2) in the definition of a program, attempting to scale back its scope by only covering programs that are or contain commercially-released music recordings, and programs broadcast by undertakings "required to be carried on under a license" or "required to be registered with the Commission but does not provide a social media service." On March 7, 2023, Minister of Heritage Rodriguez and his caucus rejected a key amendment by the Senate that protected against the regulation of user-generated content. See also Online News Act, Canadian legislation regarding online news distribution Notes References 43rd Canadian Parliament 44th Canadian Parliament Canadian federal legislation 2020 in Canadian law 2021 in Canadian law 2022 in Canadian law Freedom of expression in Canada Media legislation History of broadcasting in Canada Department of Canadian Heritage
The New Statesman is a British political and cultural magazine. New Statesman or New Statesmen may also refer to: The New Statesman (1984 TV series), a British television sitcom starring Windsor Davies The New Statesman (1987 TV series), a 1987–1994 British television series starring Rik Mayall New Statesmen, a comic strip written by John Smith and published in Crisis See also Statesman (disambiguation)
The Brandenburg Navy was the navy of the Margraviate of Brandenburg in Germany from the 16th century to 1701, when it became part of the Prussian Navy. The navy was originally assembled as the Hohenzollern rulers of Brandenburg began to increase in importance and to desire the prestige and security of having a suitable naval defence force. During the 17th century, the navy was of great use in numerous battles in the Baltic Sea, and it also served the interests of Brandenburg's colonies in Africa (specifically the Brandenburger Gold Coast) and the Caribbean. The navy also protected Brandenburg's involvement in the Atlantic slave trade, as the Brandenburger Gold Coast was used to transport between 17,000 and 30,000 enslaved Africans to the Americas between 1682 and 1721. By the year 1680, the Brandenburg Navy had almost thirty active warships. These ships were used primarily to secure control over hostile trade routes and maritime trading, as blockades and to provide naval defence, and to also provide reinforcement on various military operations, which would frequently involve engagements with unfriendly warships. In 1682, Frederick William, the prince-elector of Brandenburg, who was intensely involved in the navy's affairs, secured the navy a base at Greetsiel, but they shifted to Emden a year later. Frederick William died in 1688, and his descendants took no interest in the Brandenburg Navy. Frederick III and his grandson Frederick the Great recognized that they could never compete directly with the great maritime powers and concentrated instead on building the best army in Europe while maintaining good relations with naval powers such as Denmark and the Netherlands. The overseas colonies were eventually sold to the Dutch in 1721. In 1701, Frederick was crowned King in Prussia, marking a shift from Brandenburg to Prussia as the most important Hohenzollern realm. The Brandenburg Navy was consequently merged into the Prussian Navy that year. Ships in the Brandenburg Navy List of ships in the Brandenburg Navy: Friedrich Wilhelm zu Pferde (frigate) Berlin (frigate) Dorothea (frigate) Rother Löwe (frigate) Carolus Secundus (frigate) Kurprinz von Brandenburg (frigate) Chur Prinz (frigate) Morian (frigate) Wappen von Brandenburg (frigate) Bracke (yacht) Große Jacht (yacht) Wasserhund (warship) Fuchs (warship) Einhorn (warship) Printz Ludwig (warship) Falke (warship) Jean Baptista (warship) Marie (warship) Spandau (warship) Stern (warship) Princesse Maria See also Military history of Germany Notes and references Specific General www.deutsche-schutzgebiete.de kurbrandenburgische marine Literature Ulrich van der Heyden: Rote Adler an Afrikas Küste. Die brandenburgisch-preußische Kolonie Großfriedrichsburg in Westafrika. Berlin: Selignow-Verlag 2001, Werner Rahn: Deutsche Marinen im Wandel: Vom Symbol nationaler Einheit zum Instrument internationaler Sicherheit, R. Oldenbourg Verlag, München 2005, ''This article is based on a translation of the corresponding article in the German Wikipedia. Margraviate of Brandenburg Naval history of Germany Disbanded navies 16th-century establishments in the Holy Roman Empire
```php <?php declare(strict_types = 1); namespace LanguageServer; use LanguageServer\Message; use Sabre\Event\Promise; interface ProtocolWriter { /** * Sends a Message to the client * * @param Message $msg * @return Promise Resolved when the message has been fully written out to the output stream */ public function write(Message $msg): Promise; } ```
Rick Rubin is an American music producer who holds eight Grammy Awards, including Album of the Year which he won with The Chicks in 2007 and Adele in 2012. He has also won numerous Producer of the Year awards. This is a list compiling his production discography. 1980s 1981: The Pricks – The Pricks 1983: Hose – Hose 1984: T La Rock & Jazzy Jay – "It's Yours" 1984: LL Cool J – "I Need a Beat" 1985: Beastie Boys – "Rock Hard" 1985: Run-DMC – King of Rock (mixing) 1985: Jazzy Jay – "Def Jam/Cold Chillin' in the Spot" 1985: Jimmy Spicer – "This Is It / Beat the Clock" 1985: Hollis Crew – "It's the Beat" 1985: LL Cool J – Radio 1986: Run-DMC – Raising Hell 1986: Slayer  – Reign in Blood 1986: Beastie Boys – Licensed to Ill 1986: Original Concept – Can You Feel It? 1986: Junkyard Band  – "The Word" / "Sardines" 1987: Public Enemy – Yo! Bum Rush the Show (exec.) 1987: The Cult – Electric 1987: Run-DMC – "Christmas in Hollis" 1987: Various – Less than Zero (soundtrack) 1987: LL Cool J – "Jack the Ripper" 1988: Public Enemy – It Takes a Nation of Millions to Hold Us Back (exec.) 1988: Slayer  – South of Heaven 1988: Danzig – Danzig 1988: Run-DMC – Tougher Than Leather 1988: Original Concept – Straight from the Basement of Kooley High! (exec.) 1989: Masters of Reality – Masters of Reality 1989: LL Cool J – Walking With a Panther 1989: Wolfsbane – Live Fast, Die Fast 1989: Andrew Dice Clay – Dice 1990s 1990: Andrew Dice Clay – The Day the Laughter Died 1990: Danzig – Danzig II: Lucifuge 1990: Slayer – Seasons in the Abyss 1990: Geto Boys – The Geto Boys (supervisor) 1990: Trouble – Trouble 1990: Wolfsbane – All Hell's Breaking Loose Down at Little Kathy Wilson's Place 1991: Red Hot Chili Peppers – Blood Sugar Sex Magik 1991: Slayer – Decade of Aggression 1991: Andrew Dice Clay – Dice Rules 1991: The Four Horsemen – Nobody Said It Was Easy 1991: Dan Baird – Love Songs for the Hearing Impaired 1992: Sir Mix-a-Lot – Mack Daddy (exec.) 1992: Trouble – Manic Frustration 1992: Danzig – Danzig III: How the Gods Kill (exec.) 1992: The Red Devils – King King 1992: Andrew Dice Clay – 40 Too Long 1992: Red Hot Chili Peppers – What Hits!? 1993: Flipper – American Grafishy (exec.) 1993: Mick Jagger – Wandering Spirit 1993: Raging Slab – Dynamite Monster Boogie Concert (exec.) 1993: The Cult – The Witch (CD, Single) 1993: Danzig – Thrall-Demonsweatlive 1993: Joan Jett and the Blackhearts – Flashback 1993: Tom Petty and the Heartbreakers – Greatest Hits 1993: Messiah – 21st Century Jesus (exec.) 1993: Andrew Dice Clay – The Day the Laughter Died, Part II 1993: Digital Orgasm – Do It (exec.) 1993: Barkmarket – Gimmick (exec.) 1993: Various – Last Action Hero: Music From The Original Motion Picture 1994: Johnny Cash – American Recordings 1994: Sir Mix-a-Lot – Chief Boot Knocka (exec.) 1994: Slayer – Divine Intervention (exec.) 1994: Danzig – Danzig 4 1994: Tom Petty – Wildflowers 1994: Andrew Dice Clay – Dice Live at Madison Square Garden 1994: Deconstruction – Deconstruction (exec.) 1994: Milk – Never Dated (exec.) 1994: Lords of Acid – Voodoo-U (exec.) 1994: Red Hot Chili Peppers – Live Rare Remix Box 1994: Red Hot Chili Peppers – The Plasma Shaft 1995: God Lives Underwater – God Lives Underwater (exec.) 1995: Nine Inch Nails – Further Down the Spiral 1995: Red Hot Chili Peppers – One Hot Minute 1995: AC/DC – Ballbreaker 1995: God Lives Underwater – Empty (exec.) 1995: Jazz Lee Alston – Jazz Lee Alston (exec.) 1996: Slayer – Undisputed Attitude (exec.) 1996: Tom Petty and the Heartbreakers – She's the One 1996: Sir Mix-a-Lot – Return of the Bumpasaurus (exec.) 1996: Donovan – Sutras 1996: LL Cool J – All World: Greatest Hits 1996: Johnny Cash – Unchained 1996: Barkmarket – L. Ron (exec.) 1996: Raging Slab – Sing Monkey Sing (exec.) 1996: Kwest tha Madd Ladd – This Is My First Album (exec.) 1997: System of a Down - Demo Tape 3 1997: Various – Private Parts: The Album 1998: Slayer – Diabolus in Musica 1998: Johnny Cash & Willie Nelson – VH1 Storytellers 1998: System of a Down – System of a Down 1998: Lucinda Williams – Car Wheels on a Gravel Road (mixing) 1998: Various – Chef Aid: The South Park Album 1998: Sheryl Crow – The Globe Sessions 1999: Kula Shaker – Peasants, Pigs & Astronauts 1999: Tom Petty and the Heartbreakers – Echo 1999: Red Hot Chili Peppers – Californication 1999: Various – Loud Rocks 1999: Melanie C – Northern Star 1999: Mr. Hankey Poo – Mr. Hankey The Christmas Poo 1999: Various – Mr. Hankey's Christmas Classics (exec.) 2000s 2000: Johnny Cash – American III: Solitary Man 2000: Rage Against the Machine – Renegades 2000: Eagle-Eye Cherry – Living in the Present Future 2000: Paloalto – Paloalto 2001: Saul Williams – Amethyst Rock Star 2001: American Head Charge – The War of Art 2001: System of a Down – Toxicity 2001: Slayer – God Hates Us All (exec.) 2001: Macy Gray – The Id (exec.) 2001: Nusrat Fateh Ali Khan – The Final Studio Recordings 2001: Krishna Das – Breath of the Heart 2002: Aerosmith – O, Yeah! Ultimate Aerosmith Hits 2002: Red Hot Chili Peppers – By the Way 2002: Johnny Cash – American IV: The Man Comes Around 2002: Audioslave – Audioslave 2002: System of a Down – Steal This Album! 2002: Rahat Nusrat Fateh Ali Khan – Rahat 2003: The Jayhawks – Rainy Day Music (exec.) 2003: The Mars Volta – De-Loused in the Comatorium 2003: Limp Bizkit – Results May Vary 2003: To My Surprise – To My Surprise (exec.) 2003: Joe Strummer & The Mescaleros – Streetcore 2003: Jay-Z – "99 Problems" 2003: Rage Against the Machine – Live at the Grand Olympic Auditorium 2003: Johnny Cash – Unearthed 2003: Paloalto – Heroes and Villains 2003: Krishna Das – Door of Faith 2003: Manmade God – Manmade God (exec.) 2004: Johnny Cash – My Mother's Hymn Book 2004: Slipknot – Vol. 3: (The Subliminal Verses) 2004: The (International) Noise Conspiracy – Armed Love 2004: Lil Jon & the East Side Boyz – Crunk Juice 2004: T.H. White – More Than Before (keys) 2005: Weezer – Make Believe 2005: System of a Down – Mezmerize 2005: Audioslave – Out of Exile 2005: Shakira – Fijación Oral Vol. 1 (exec.) 2005: Limp Bizkit – Greatest Hitz 2005: Neil Diamond – 12 Songs 2005: Johnny Cash -The Legend of Johnny Cash 2005: System of a Down – Hypnotize 2005: Shakira – Oral Fixation Vol. 2 (exec.) 2006: Red Hot Chili Peppers – Stadium Arcadium 2006: Dixie Chicks – Taking the Long Way 2006: Johnny Cash – American V: A Hundred Highways 2006: Slayer – Christ Illusion (exec.) 2006: Justin Timberlake – FutureSex/LoveSounds 2006: God Dethroned – The Toxic Touch 2006: U2 – U218 Singles 2006: Johnny Cash The Legend of Johnny Cash Vol. II 2007: Linkin Park – Minutes to Midnight 2007: Poison – Poison'd! 2007: Luna Halo – Luna Halo (exec.) 2007: Gossip – Live in Liverpool (exec.) 2007: Dan Wilson – Free Life (exec.) 2007: Kanye West, Nas, KRS-One, Rakim – "Classic (Better Than I've Ever Been)" 2007: Vanessa Carlton - "Heroes & Thieves" 2007: Coheed and Cambria - "Good Apollo, I'm Burning Star IV, Volume Two: No World for Tomorrow" 2008: Ours – Dancing for the Death of an Imaginary Enemy 2008: Neil Diamond – Home Before Dark 2008: Weezer – Weezer (Red Album) 2008: Jakob Dylan – Seeing Things 2008: Metallica – Death Magnetic 2008: The (International) Noise Conspiracy – The Cross of My Calling 2009: Gossip – Music for Men 2009: Pete Yorn – Back & Fourth (exec.) 2009: The Avett Brothers – I and Love and You 2009: Brandi Carlile – Give Up the Ghost 2009: Slayer – World Painted Blood (exec.) 2009: Type O Negative – Bloody Kisses "Top Shelf" edition (2009 re-release) "Summer Breeze" (Rick Rubin Mix) 2010s 2010: Johnny Cash – American VI: Ain't No Grave 2010: Gogol Bordello – Trans-Continental Hustle 2010: Linkin Park – A Thousand Suns 2010: Josh Groban – Illuminations 2010: Kid Rock – Born Free 2011: Adele – 21 2011: Red Hot Chili Peppers – I'm with You 2011: Metallica – Beyond Magnetic 2011: Linkin Park – A Thousand Suns+ 2012: Linkin Park – Living Things 2012: Howlin' Rain  – The Russian Wilds (exec.) 2012: ZZ Top – La Futura 2012: The Avett Brothers – The Carpenter 2012: Lana Del Rey – Paradise 2012: Red Hot Chili Peppers – Rock & Roll Hall of Fame Covers EP 2013: Linkin Park – Living Things + 2013: Black Sabbath – 13 2013: Kanye West – Yeezus (exec.) 2013: Eminem – The Marshall Mathers LP 2 (exec.) 2013: Jake Bugg – Shangri La 2013: Linkin Park – Recharged 2013: Lady Gaga – Artpop 2013: The Avett Brothers – Magpie and the Dandelion 2013: Red Hot Chili Peppers – I'm Beside You 2014: Jennifer Nettles – That Girl 2014: Ed Sheeran – X 2014: Angus & Julia Stone – Angus & Julia Stone 2014: Damien Rice – My Favourite Faded Fantasy 2014: Linkin Park & Alec Puro - Mall 2014: Wu-Tang Clan – A Better Tomorrow 2014: Yusuf – Tell 'Em I'm Gone 2015: GoldLink – And After That, We Didn't Talk 2016: Kanye West – The Life of Pablo 2016: Various – Star Wars Headspace 2016: James Blake - The Colour in Anything 2016: The Avett Brothers – True Sadness 2017: Billy Corgan  – Ogilala 2017: Jovanotti  – Oh, vita! 2017: Eminem – Revival 2018: Ruen Brothers – 'All My Shades Of Blue' 2018: The Smashing Pumpkins  – Shiny and Oh So Bright, Vol. 1 / LP: No Past. No Future. No Sun. 2019: Santana – Africa Speaks 2019: Jovanotti – Jova Beach Party 2019: Jovanotti – Lorenzo sulla Luna 2019: Kae Tempest – The Book of Traps and Lessons 2019: The Avett Brothers – Closer Than Together 2020s 2020: The Strokes – The New Abnormal 2021: Imagine Dragons – Mercury – Act 1 2021: Santana - "Peace Power", "America for Sale", "Mother Yes" 2021: Kanye West - DONDA 2022: Jovanotti - Mediterraneo 2022: Red Hot Chili Peppers - Unlimited Love 2022: Imagine Dragons - Mercury - Act 2 2022: Red Hot Chili Peppers - Return of the Dream Canteen 2022: Neil Young and Crazy Horse - World Record 2023: Kesha - Gag Order 2023: Lil Uzi Vert - Pink Tape 2023: Travis Scott - UTOPIA References Production discographies Discographies of American artists Rock music discographies Pop music discographies Hip hop discographies Rick Rubin
Sir Alan Chambré (4 October 1739 – 20 September 1823) was an English judge. Life He was the eldest son of Walter Chambré, of Halhead Hall, Kendal, in Westmorland, a barrister, by his wife, Mary, daughter of Jacob Morland, of Capplethwaite Hall, in the same county. He was born at Kendal on 4 October 1739. After receiving an early education at Kendal Grammar School, he was sent to Sedbergh School, then under the care of Wynne Bateman. From Sedbergh he went to London, where first of all he entered the office of Forth Wintour, solicitor, in Pall Mall. He also became a member of the Society of Staple Inn; he moved to the Middle Temple in February 1758, and in November 1764 from the Middle Temple to Gray's Inn. In May 1767 he was called to the bar, and went the northern circuit, of which he soon became one of the leaders. He was elected to the bench of Gray's Inn June 1781, and in 1783 filled the annual office of treasurer. In 1796, he was appointed recorder of Lancaster. On the retirement of Richard Perryn from the judicial bench he was chosen as his successor. In order to qualify for the bench, it was necessary that Chambré should be made a serjeant-at-law. As Perryn had retired in the vacation just before the summer circuit, and serjeants could only be called in term, a special act of parliament (Courts of Exchequer Act 1799, 39 Geo. 3. c. 67) was passed authorising for the first time the appointment of a serjeant in the vacation. Under the provisions of this act Chambré received the degree of serjeant on 2 July 1799, and on the same day was appointed a baron of the exchequer. Lord Chief Justice James Eyre dying five days after the special act had received the royal assent, the same difficulty again occurred, and a general act (Appointment of Judges in Vacation Act 1799, 39 Geo. 3. c. 113) was then passed in the same session authorising the appointment of any barrister to the degree of serjeant during the vacation if done for the purpose of filling up a vacancy on the bench. Lord Eldon was the first judge appointed under the provisions of this act. On 13 June 1800, Chambré was transferred to the court of common pleas, as successor to Sir Francis Buller. In this court he remained until December 1815, when he resigned his seat, and having sat on the bench more than fifteen years became entitled to a pension of £2,000 a year by virtue of an act passed in the same year in which he had been appointed a judge (Judges' Pensions Act 1799, 39 Geo. 3. c. 110). Chambré died at the Crown Inn, Harrogate, on 20 September 1823, in his 84th year and was buried in the family vault in Kendal parish church, where a monument was erected to his memory. He was never married, and was succeeded in his estates by his nephew, Thomas Chambré. References Attribution 1739 births 1823 deaths English barristers 18th-century English judges Barons of the Exchequer 19th-century English judges
Amzor (or Anzor) Nikolayevich Ailarov (; born 29 January 1982) is a Russian professional football official and a former player. He is the general director of FC Alania Vladikavkaz. Club career He made his debut in the Russian Premier League in 2002 for FC Alania Vladikavkaz. References 1982 births Footballers from Vladikavkaz Living people Russian men's footballers Russia men's under-21 international footballers Men's association football midfielders FC Spartak Vladikavkaz players Russian Premier League players FC Salyut Belgorod players FC Volgar Astrakhan players FC SKA-Khabarovsk players FC Avtodor Vladikavkaz players
```python import fluxgui.settings as settings from fluxgui.controller import Controller from fluxgui.exceptions import XfluxError class RedshiftController(Controller): def __init__(self, color=settings.default_temperature, pause_color=settings.off_temperature, **kwargs): if 'longitude' not in kwargs or 'latitude' not in kwargs: raise XfluxError( "Required key not found (either longitude or latitude)") self._latitude = kwargs["latitude"] self._longitude = kwargs["longitude"] super().__init__(color, pause_color, **kwargs) def __repr__(self): return 'redshift' def _set_redshift_color(self, col): self._current_color = col self.state.set_setting(color=col) def _get_redshift_color(self): return self._current_color color = property(_get_redshift_color, _set_redshift_color) def _create_startup_arg_list(self, color='3400', **kwargs): # The '-o' means to apply the color change immediately, # instead of gradually. startup_args = ['redshift', '-o'] if "latitude" in kwargs: self._latitude = kwargs["latitude"] if "longitude" in kwargs: self._longitude = kwargs["longitude"] startup_args += ["-l", f"{self._latitude}:{self._longitude}"] startup_args += ["-t", f"6500:{color}"] return startup_args def _change_color_immediately(self, new_color): self._set_screen_color(new_color) def _set_screen_color(self, color): self._reset_color() self._start(self._create_startup_arg_list(color, **self.init_kwargs)) def _set_setting(self, **kwargs): self._reset_color() self._start(self._create_startup_arg_list(**kwargs)) def _reset_color(self): # start redshift with option "-x" to reset # the color back to normal self._start(startup_args=["redshift", "-x"]) def _stop(self): # if we use the super class _stop() redshift ends without changing the color # back to normal, so we need to reset the color self._reset_color() return True ```
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\Vision; class AnnotateImageRequest extends \Google\Collection { protected $collection_key = 'features'; protected $featuresType = Feature::class; protected $featuresDataType = 'array'; protected $imageType = Image::class; protected $imageDataType = ''; protected $imageContextType = ImageContext::class; protected $imageContextDataType = ''; /** * @param Feature[] */ public function setFeatures($features) { $this->features = $features; } /** * @return Feature[] */ public function getFeatures() { return $this->features; } /** * @param Image */ public function setImage(Image $image) { $this->image = $image; } /** * @return Image */ public function getImage() { return $this->image; } /** * @param ImageContext */ public function setImageContext(ImageContext $imageContext) { $this->imageContext = $imageContext; } /** * @return ImageContext */ public function getImageContext() { return $this->imageContext; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AnnotateImageRequest::class, 'Google_Service_Vision_AnnotateImageRequest'); ```
Christopher Keith Bullen (born 5 November 1962) is a former English cricketer. Bullen was a right-handed batsman who bowled right-arm off break. He was born in Clapham, London and educated at Rutlish School which he attended from 1976 to 1982. An all-rounder, Bullen played for Surrey County Cricket Club, Bedfordshire County Cricket Club and the Surrey Cricket Board in a career which spanned from 1982 to 2002. Surrey Bullen made his first-class debut for Surrey against Oxford University in 1982. He didn't play another first-class match for Surrey until 1985, when he appeared against Cambridge University. Bullen played two Youth Test matches in 1982 for England Under-19s against West Indies Under-19s, with both Tests coming in August 1982, after his June debut for Surrey. His List A debut for Surrey also came in 1985, against Sussex in the 1985 John Player Special League. During the course of his career with Surrey, Bullen was viewed by the county as predominantly a limited-overs player: he made 104 List A appearances, as opposed to just 30 first-class appearances. Playing for Surrey until the end of the 1991 season, Bullen scored 667 runs in limited-overs cricket, at a batting average of 23.00. He made a single half century, which was to be the highest score of his List A career, scoring an unbeaten 93 against Wiltshire in the 1990 NatWest Trophy. He took 92 wickets at a bowling average of 34.22, with best figures of 5/31; his only five wicket haul in limited-overs cricket, which came against Yorkshire in the 1989 Refuge Assurance League. Bullen had his best seasons with the ball in List A cricket in the 1987, 1988 and 1989 season's, taking 20 more wickets in each. Despite not being a regular in first-class cricket for Surrey, Bullen nonetheless had some success when he did play. A competent all-rounder, he scored 663 runs in his 30 first-class matches for the county, coming at an average of 23.67. He made 4 half centuries, with a high score of 65 against the touring Pakistanis in 1987. He took 38 wickets in first-class cricket, at an average of 28.36, which was a better average than his List A wickets came at. He took just one five wicket haul in first-class matches, which came against Middlesex, with figures of 6/119. However, 1989 saw Bullen play just two County Championship fixtures. In the following season he didn't make any first-class appearances, while in List A cricket he made 22 appearances, but struggled to make an impact. His 14 wickets that season came at an expensive average of 52.64. He made limited appearances in the 1991 English cricket season, with Surrey releasing him at the end of that season. Later career Bullen joined Bedfordshire for the 1992 season, making his debut for the county in the Minor Counties Championship against Lincolnshire. Bullen played Minor counties cricket for Bedfordshire from 1992 to 1997, making 51 Minor Counties Championship appearances and 14 MCCA Knockout Trophy appearances. He made his first appearance for Bedfordshire in List A cricket against Warwickshire in the 1994 NatWest Trophy. He made one further appearance for the county in limited-overs cricket, against Glamorgan in the 1997 NatWest Trophy. He took 3 wickets for Bedfordshire in these 2 games, although all 3 wickets came against Warwickshire, with Bullen claiming figures of 3/58 from 10 overs. While playing for Bedfordshire, he made one final first-class appearance for the Minor Counties cricket team against the touring South Africans. In this match, he bowled 4 wicket-less overs in the South Africans first-innings, while in their second innings he took the wickets of Daryll Cullinan and Gerhardus Liebenberg for the cost of 42 runs from 8.4 overs. With the bat, he didn't bat in the Minor Counties first-innings, while in their second-innings he was dismissed for 2 runs by Pat Symcox. Bullen left Bedfordshire at the end of the 1997 season. He played for the Surrey Cricket Board in the 1998 MCCA Knockout Trophy, while in the 1999 season he made his first appearance in List A cricket for the Board in the 1999 NatWest Trophy against Norfolk. Bullen appeared in a further 5 List A matches for the Board, the last coming against Lincolnshire in the 2nd round of the 2002 Cheltenham & Gloucester Trophy, which was played in 2001. He scored 103 runs for the Board in the 6 matches, coming at an average of 25.75, with a high score of 36. With the ball, he took 7 wickets at 31.57 a piece, with best figures of 2/16. Bullen was an able fielder during his career, taking a total of 65 catches in limited-overs cricket. Bullen currently works for Surrey County Cricket Club as a Cricket Development Manager. His cousin, David Roberts, played first-class and List A cricket. References External links 1962 births Living people Sportspeople from Clapham Cricketers from Greater London People educated at Rutlish School English cricketers Surrey cricketers Bedfordshire cricketers Minor Counties cricketers Surrey Cricket Board cricketers English cricket coaches
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var tape = require( 'tape' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var abs = require( '@stdlib/math/base/special/abs' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var EPS = require( '@stdlib/constants/float64/eps' ); var quantile = require( './../lib' ); // FIXTURES // var positiveMean = require( './fixtures/julia/positive_mean.json' ); var negativeMean = require( './fixtures/julia/negative_mean.json' ); var largeVariance = require( './fixtures/julia/large_variance.json' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof quantile, 'function', 'main export is a function' ); t.end(); }); tape( 'if provided `NaN` for any parameter, the function returns `NaN`', function test( t ) { var y = quantile( NaN, 0.0, 1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.0, NaN, 1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.0, 1.0, NaN ); t.equal( isnan( y ), true, 'returns NaN' ); t.end(); }); tape( 'if provided a number outside `[0,1]` for `p` and a finite `mu` and `beta`, the function returns `NaN`', function test( t ) { var y = quantile( 1.1, 0.0, 1.0 ); t.equal( isnan( y ), true, 'returns true' ); y = quantile( -0.1, 0.0, 1.0 ); t.equal( isnan( y ), true, 'returns true' ); t.end(); }); tape( 'if provided a nonpositive `beta`, the function returns `NaN`', function test( t ) { var y; y = quantile( 0.5, 2.0, -1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.2, 2.0, -1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.5, 2.0, 0.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.2, 2.0, 0.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.8, 1.0, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.7, PINF, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.7, NINF, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = quantile( 0.2, NaN, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); t.end(); }); tape( 'the function evaluates the quantile function at `p` given positive `mu`', function test( t ) { var expected; var delta; var beta; var tol; var mu; var p; var y; var i; expected = positiveMean.expected; p = positiveMean.p; mu = positiveMean.mu; beta = positiveMean.beta; for ( i = 0; i < p.length; i++ ) { y = quantile( p[i], mu[i], beta[i] ); if ( expected[i] !== null) { if ( y === expected[i] ) { t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] ); } else { delta = abs( y - expected[ i ] ); tol = 1.0 * EPS * abs( expected[ i ] ); t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. : '+delta+'. tol: '+tol+'.' ); } } } t.end(); }); tape( 'the function evaluates the quantile function at `p` given negative `mu`', function test( t ) { var expected; var delta; var beta; var tol; var mu; var p; var y; var i; expected = negativeMean.expected; p = negativeMean.p; mu = negativeMean.mu; beta = negativeMean.beta; for ( i = 0; i < p.length; i++ ) { y = quantile( p[i], mu[i], beta[i] ); if ( expected[i] !== null ) { if ( y === expected[i] ) { t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] ); } else { delta = abs( y - expected[ i ] ); tol = 1.0 * EPS * abs( expected[ i ] ); t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. : '+delta+'. tol: '+tol+'.' ); } } } t.end(); }); tape( 'the function evaluates the quantile function at `p` given large variance ( = large `beta` )', function test( t ) { var expected; var delta; var beta; var tol; var mu; var p; var y; var i; expected = largeVariance.expected; p = largeVariance.p; mu = largeVariance.mu; beta = largeVariance.beta; for ( i = 0; i < p.length; i++ ) { y = quantile( p[i], mu[i], beta[i] ); if ( expected[i] !== null ) { if ( y === expected[i] ) { t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] ); } else { delta = abs( y - expected[ i ] ); tol = 1.0 * EPS * abs( expected[ i ] ); t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. : '+delta+'. tol: '+tol+'.' ); } } } t.end(); }); ```
```kotlin package expo.modules.videothumbnails import android.content.Context import android.graphics.Bitmap import android.media.MediaMetadataRetriever import android.net.Uri import android.util.Log import android.webkit.URLUtil import expo.modules.core.errors.ModuleDestroyedException import expo.modules.core.utilities.FileUtilities import expo.modules.interfaces.filesystem.Permission import expo.modules.kotlin.Promise import expo.modules.kotlin.exception.CodedException import expo.modules.kotlin.exception.Exceptions import expo.modules.kotlin.modules.Module import expo.modules.kotlin.modules.ModuleDefinition import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.cancel import kotlinx.coroutines.launch import java.io.File import java.io.FileInputStream import java.io.FileOutputStream import java.io.IOException class VideoThumbnailsModule : Module() { private val context get() = appContext.reactContext ?: throw Exceptions.ReactContextLost() private val moduleCoroutineScope = CoroutineScope(Dispatchers.IO) override fun definition() = ModuleDefinition { Name("ExpoVideoThumbnails") AsyncFunction("getThumbnail") { sourceFilename: String, options: VideoThumbnailOptions, promise: Promise -> withModuleScope(promise) { try { if (!URLUtil.isValidUrl(sourceFilename)) throw InvalidSourceFilenameException() if (URLUtil.isFileUrl(sourceFilename) && !isAllowedToRead(Uri.decode(sourceFilename).replace("file://", ""))) { throw ThumbnailFileException() } val thumbnail = GetThumbnail(sourceFilename, options, context).execute() ?: throw GenerateThumbnailException() val path = FileUtilities.generateOutputPath(context.cacheDir, "VideoThumbnails", "jpg") FileOutputStream(path).use { outputStream -> thumbnail.compress(Bitmap.CompressFormat.JPEG, (options.quality * 100).toInt(), outputStream) } promise.resolve( VideoThumbnailResult( uri = Uri.fromFile(File(path)).toString(), width = thumbnail.width, height = thumbnail.height ) ) } catch (ex: IOException) { promise.reject(ERROR_TAG, ex.message, ex) } catch (ex: RuntimeException) { promise.reject(ERROR_TAG, ex.message, ex) } } } OnDestroy { try { moduleCoroutineScope.cancel(ModuleDestroyedException()) } catch (e: IllegalStateException) { Log.e(TAG, "The scope does not have a job in it") } } } private class GetThumbnail( private val sourceFilename: String, private val videoOptions: VideoThumbnailOptions, private val context: Context ) { fun execute(): Bitmap? = MediaMetadataRetriever() .use { retriever -> try { if (URLUtil.isFileUrl(sourceFilename)) { retriever.setDataSource(Uri.decode(sourceFilename).replace("file://", "")) } else if (URLUtil.isContentUrl(sourceFilename)) { val fileUri = Uri.parse(sourceFilename) context.contentResolver.openFileDescriptor(fileUri, "r")?.use { parcelFileDescriptor -> FileInputStream(parcelFileDescriptor.fileDescriptor).use { inputStream -> retriever.setDataSource(inputStream.fd) } } } else { retriever.setDataSource(sourceFilename, videoOptions.headers) } return retriever.getFrameAtTime( videoOptions.time.toLong() * 1000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC ) } catch (e: Exception) { Log.e(ERROR_TAG, "Unable to retrieve source file") return null } } } private fun isAllowedToRead(url: String): Boolean { val permissionModuleInterface = appContext.filePermission ?: throw FilePermissionsModuleNotFound() return permissionModuleInterface.getPathPermissions(context, url).contains(Permission.READ) } private inline fun withModuleScope(promise: Promise, crossinline block: () -> Unit) = moduleCoroutineScope.launch { try { block() } catch (e: CodedException) { promise.reject(e) } catch (e: ModuleDestroyedException) { promise.reject(TAG, "VideoThumbnails module destroyed", e) } } companion object { private const val TAG = "ExpoVideoThumbnails" private const val ERROR_TAG = "E_VIDEO_THUMBNAILS" } } ```
Miłosz Magin (6 July 19294 March 1999) was a Polish composer and pianist. Biography Born in Łódź, Poland, Miłosz Magin showed considerable musical abilities from early childhood. He was a student of piano with Margerita Trombini-Kazuro and composition with both Kazimierz Sikorski and Jan Maklakiewicz; the latter he considered his spiritual father. Magin also studied violin, cello and ballet. In 1957, he completed his piano, compositional and conducting studies, graduating the Warsaw Higher School of Music with distinction. Miłosz Magin won prizes in several top international competitions: the V International Chopin Piano Competition in Warsaw (honorable mention), the Marguerite Long-Jacques Thibaud Competition in Paris and the Vianna da Motta Competition in Lisbon. He left his native country together with his wife Idalia Magin and stayed in Portugal, Germany, and England until finally settling in Paris in 1960. Magin's career as an international soloist was suddenly interrupted in 1963 after his left wrist was broken in a car accident. However, he eventually regained his playing abilities, and in 1968 started recording the complete works of Chopin for Decca, which is now regarded as a reference recording (a complete reissue on CD was made by Universal in 2000). Other recordings: Chopin, Four Ballades, IPG (Societe francaise du son) 1973 Long Playing Record. During his years of recovery Magin went back to composition, which became one of his main priorities for the rest of his life. A prodigious piano virtuoso, he regularly gave concerts in different countries around the world, mainly performing works by Chopin, his favorite composer, but also works by Mozart and various Polish, French and Russian composers, as well as his own music. In parallel to his career as a pianist and composer, Miłosz Magin became a popular teacher with students who came to him from all over the world, including such famous performers as Jean-Marc Luisada. According to his students, Magin was an exceptional master, not only sharing his knowledge but having the gift to inspire and tactfully advise while demanding high standards of his students. He left a considerable body of music: piano works, including four sonatas and collections for young pianists, several concertos (four for piano, two for violin, one of each for cello and clarinet ), two symphonies, and a ballet, as well as vocal and orchestral works. Not attached to any particular musical style, Miłosz Magin's music is notable for its balance between melody, harmony and rhythmic play. He was often inspired by the rhythms of his native Poland. Appreciated by the public, his works are now recorded and published as well as featured in the repertory of great performers. With the help of his wife Idalia, also a pianist, in 1985 Magin founded the Miłosz Magin International Piano Competition in Paris. Devoted to the discovery of young international talents and to the promotion of Polish music, this competition takes place every two years with increasing popularity. Magin died on 4 March 1999 of a heart attack while touring with concerts in Tahiti. He was buried next to Chopin's tomb at the Père-Lachaise cemetery in Paris, France. Miłosz Magin is considered one of the greatest Polish composers of the 20th century. Sources Biography 1929 births 1999 deaths 20th-century composers 20th-century Polish pianists Polish composers Burials at Père Lachaise Cemetery Long-Thibaud-Crespin Competition prize-winners
```c /* * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and this permission notice appear in supporting documentation, and * that the name of the copyright holders not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. The copyright holders make no representations * about the suitability of this software for any purpose. It is provided "as * is" without express or implied warranty. * * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ #include <drm/drm_device.h> #include <drm/drm_drv.h> #include <drm/drm_gem.h> #include <drm/drm_mode.h> #include "drm_crtc_internal.h" #include "drm_internal.h" /** * DOC: overview * * The KMS API doesn't standardize backing storage object creation and leaves it * to driver-specific ioctls. Furthermore actually creating a buffer object even * for GEM-based drivers is done through a driver-specific ioctl - GEM only has * a common userspace interface for sharing and destroying objects. While not an * issue for full-fledged graphics stacks that include device-specific userspace * components (in libdrm for instance), this limit makes DRM-based early boot * graphics unnecessarily complex. * * Dumb objects partly alleviate the problem by providing a standard API to * create dumb buffers suitable for scanout, which can then be used to create * KMS frame buffers. * * To support dumb objects drivers must implement the &drm_driver.dumb_create * and &drm_driver.dumb_map_offset operations (the latter defaults to * drm_gem_dumb_map_offset() if not set). Drivers that don't use GEM handles * additionally need to implement the &drm_driver.dumb_destroy operation. See * the callbacks for further details. * * Note that dumb objects may not be used for gpu acceleration, as has been * attempted on some ARM embedded platforms. Such drivers really must have * a hardware-specific ioctl to allocate suitable buffer objects. */ int drm_mode_create_dumb(struct drm_device *dev, struct drm_mode_create_dumb *args, struct drm_file *file_priv) { u32 cpp, stride, size; if (!dev->driver->dumb_create) return -ENOSYS; if (!args->width || !args->height || !args->bpp) return -EINVAL; /* overflow checks for 32bit size calculations */ if (args->bpp > U32_MAX - 8) return -EINVAL; cpp = DIV_ROUND_UP(args->bpp, 8); if (cpp > U32_MAX / args->width) return -EINVAL; stride = cpp * args->width; if (args->height > U32_MAX / stride) return -EINVAL; /* test for wrap-around */ size = args->height * stride; if (PAGE_ALIGN(size) == 0) return -EINVAL; /* * handle, pitch and size are output parameters. Zero them out to * prevent drivers from accidentally using uninitialized data. Since * not all existing userspace is clearing these fields properly we * cannot reject IOCTL with garbage in them. */ args->handle = 0; args->pitch = 0; args->size = 0; return dev->driver->dumb_create(file_priv, dev, args); } int drm_mode_create_dumb_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) { return drm_mode_create_dumb(dev, data, file_priv); } /** * drm_mode_mmap_dumb_ioctl - create an mmap offset for a dumb backing storage buffer * @dev: DRM device * @data: ioctl data * @file_priv: DRM file info * * Allocate an offset in the drm device node's address space to be able to * memory map a dumb buffer. * * Called by the user via ioctl. * * Returns: * Zero on success, negative errno on failure. */ int drm_mode_mmap_dumb_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) { struct drm_mode_map_dumb *args = data; if (!dev->driver->dumb_create) return -ENOSYS; if (dev->driver->dumb_map_offset) return dev->driver->dumb_map_offset(file_priv, dev, args->handle, &args->offset); else return drm_gem_dumb_map_offset(file_priv, dev, args->handle, &args->offset); } int drm_mode_destroy_dumb(struct drm_device *dev, u32 handle, struct drm_file *file_priv) { if (!dev->driver->dumb_create) return -ENOSYS; return drm_gem_handle_delete(file_priv, handle); } int drm_mode_destroy_dumb_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) { struct drm_mode_destroy_dumb *args = data; return drm_mode_destroy_dumb(dev, args->handle, file_priv); } ```
The history of the Jews in Curaçao can be traced back to the mid-17th century, when the first Jewish immigrants began to arrive. The first Jews in Curaçao were Sephardi Jewish immigrants from the Netherlands, Portugal, and Spain. These immigrants founded Congregation Mikvé Israel-Emanuel, the oldest continuously used synagogue in the Americas. The first Jew to settle in Curaçao was a Dutch-Jewish interpreter named Samuel Cohen, who arrived on board a Dutch fleet in 1634. By the mid-1700s, the community was the most prosperous in the Americas and many of the Jewish communities in Latin America, primarily in Colombia and Venezuela, resulted from the influx of Curaçaoan Jews. In the 20th century Ashkenazi Jews from Eastern Europe immigrated to Curaçao, establishing their own traditions and a school. As of 2013, the Jewish population is around 350. History In 1492, the Jews of Spain, after years of persecution and forced conversion to Catholicism, were expelled en masse. Initially, they sought refuge in nearby Portugal but eventually spread throughout Europe into other places with larger Jewish populations, like Belgium, Greece, Italy, Turkey, and Holland. So many of the Sephardic Jews from Spain and Portugal had settled in Amsterdam, that by the year 1700, the city's community was the largest Jewish center in Western Europe. When the Dutch West India Company began efforts to exploit the resources of the Americas and was placed in charge of colonizing, the Sephardim became involved as translators and traders. The Dutch first moved into the previously Portuguese-led colonies in Brazil and then expanded to other Portuguese and Spanish colonies in the Caribbean. Early settlement In 1634, the Dutch overthrew the Spanish on the island of Curaçao and migration followed. The first Jew on the island, Samuel Cohen, was part of the conquering fleet and had served as an interpreter to Dutch commander Johannes van Walbeeck. The first Sephardim began arriving in the 1650s, when Joao d’Ylan led around a dozen Jewish families to establish the Plantation De Hoop (Plantation of Hope) in 1651. Granted a two-mile strip of land along the coast by the West India Company, these settlers established the community of Mikve Israel with the plan of farming. They were joined by a group of around seventy colonists arriving in 1659, under the patronage of Isaac da Costa, who brought with them a Torah scroll, as a gift from the Jewish congregation of Amsterdam. That same year, the first cemetery Beth Haim was consecrated, which is probably the oldest Jewish cemetery in the Americas. Within a generation, the settlers turned to shipping and trading, as soil conditions on the island were unfavorable to farming. Unable to grow their own food, colonists began trading with nearby Spanish colonies in Colombia and Venezuela. Their interests spread to banking and commerce, importing goods like cloth, tools, utensils and weapons from relatives in Europe and exchanging or selling them to obtain foodstuffs, hides, tobacco and wood from other colonies. The change in their employment, also brought about a relocation of the community into the walled city of Willemstad with its easy access to the harbor. Utilizing architectural styles with which they were familiar, these merchants built homes similar to those they had left in Amsterdam, which had living quarters on the upper floors and warehouses for their goods on the lower levels. Their success led to them lending support to other Sephardic communities in North and South America. By 1674, so much of the population had migrated to Willemstad that a house was converted to serve as a congregational meeting place. The same year marked the arrival of the community's first qualified rabbi; Josiau de David Pardo, a Dutch emigrant and son-in-law of the Torah scholar Saul Levi Morteira. Outgrowing the original establishment, in 1690, the Jewish community acquired a new house for worship, which was replaced by a proper synagogue in 1703. A portion of the Jewish population emigrated to Newport, Rhode Island in 1694; historian Max J. Kohler surmised that this was because the Curaçao settlement had proved "unsuccessful" for some families, despite its religious and civil freedoms. The community also established a significant export trade in textiles and plantation equipment, and set up the island's first trade routes to Venezuela for the purchase of cacao. Few Jewish merchants were directly involved in slave-trading, despite this being Curaçao's principal economic activity. An exception was Phelipe Henriquez (1660-1718), a Jewish trader who oversaw transshipment of more than three thousand slaves via Curaçao to Cartagena between 1680 and 1701. Despite these commercial endeavours, Jewish families remained somewhat poorer than their Dutch Protestant counterparts. Tax records from 1702 and 1707 group the entire Jewish population in the bottom half of incomes, with 60 percent of families in the lowest tax bracket compared with 50 percent of Protestants. Eighteenth century Growth in the city continued, and as space became scarce within the city walls, Otrobanda became populated with less affluent Jews, who could not afford the higher rents in Willemstad. In 1732, the second synagogue of the Mikve Israel community was built. The congregation had many unique customs and rituals such as a special black Tallit worn on Tisha B'Av by their rabbi, requiring someone reading from the Book of Lamentations to wear black shoes and use a black yad, and marking the platter at a wedding ceremony by throwing a wine glass at a platter. The building was a smaller version of the Portuguese Synagogue of Amsterdam and is the oldest synagogue in existence in the Americas. For the Jews of Otrobanda, a problem arose, in that crossing the harbor to attend services was a breach in the prohibition of working on the Sabbath; thus, in 1746 another synagogue, Neve Shalom, was built as a de facto satellite of Mikve Israel. By 1746, the community was the largest Jewish population in the Americas, containing 270 families. It peaked two years later at 280 families, or around 1500 people, with membership supporting Holy Land Jewish institutions and other communities liberally. Throughout the century Jewish families established a strong foothold in trade and ship-owning, and were the mainstay of insurance and brokerage. In 1734, 39 out of 44 insurers in Curaçao were Jewish; by the 1790s there were 17 Jews among the island's 25 trade brokers. In the early eighteenth century a Jewish merchant, Daniel Cohen Henriquez, also occupied a central position as the sorter of tobacco grades prior to its export to Amsterdam. By 1785 about forty percent, or 1200, of the island's white population was Jewish. When the French Revolution occurred, anti-monarchists in Holland, moved against William V, Prince of Orange, forcing him to abdicate. The French established an agent in Curaçao forcing many in the Jewish community who supported William V, to supply their ships and give preferential treatment to French commerce and goods. Introducing and antisemitism previously unknown on the island, the French sent a squadron from Guadeloupe to occupy Curaçao. The island inhabitants raised a National Guard, including Jewish officers Haim Abinun de Lima, Raphael Alvares Correa and Abraham Shalom Delvalle, which repelled the invasion. Under the pretext of helping the islanders, the British then invaded in 1800. Though the Jewish leadership resisted, the British maintained a foothold until 1816. While the British were unable to interfere with the religious life of the community, their occupation created economic upheaval in Curaçao. By the end of the century the more than half of the white population of Curaçao was Jewish. Originally, they had primarily spoken Portuguese, but with time, many spoke Papiamentu, adding Portuguese and Hebrew words to the native Kriol. Nineteenth century Simon Bolivar visited the island in 1812, when it was still under British rule. He took refuge within the Jewish community in Otrobanda and was able to cultivate support for his independence movement through the mutual disdain for Spanish rule, which he shared with the Curaçaoan Jews. Bolivar inspired such men as David Haim de Moshe Lopez Penha, who served as a colonel; Benjamin Henriques, who became a captain in the cavalry; and Juan de Sola, who commanded the cavalry at the Battle of Carabobo in 1821 to join his fight for independence of Latin America. By the time the Dutch regained possession of the island in 1816, the Jewish population had decreased by fifteen percent. In addition, the sex ratio was skewed because of the economic situation. As men were unable to attain employment, they left the island, relocating to Danish held St. Thomas or to Latin America where countries were beginning to gain their independence and overturn the Inquisition laws. As orthodox women were not allowed to travel without a male chaperone, few Jewish women left Curaçao during the same period men were migrating away. Growth in Latin American Jewish communities, primarily in Colombia and Venezuela, resulted from the influx of Curaçaoan Jews. The out-migration of young Jewish men created a lack of available husbands for the Jewish women of Curaçao. Unable to travel, or marry outside their faith, a new group of single dependent women emerged on the island. Migrating Jewish men, on the other hand, often married gentile women in their new place of residence and abandoned their faith. The Jews who remained in Curaçao married within their community, as did those who migrated to places where other Jewish communities existed, such as St. Thomas. However, because women far outnumbered men in the community by the middle of the century, only fifty-two percent of the Jewish women in Curaçao married. Though a brief pogrom in Coro, Venezuela and a hurricane in St. Thomas brought an influx of immigrants in the period of 1855 to 1867, most of those immigrants left Curaçao after normalcy was restored. In 1864, about one-third of the Curaçaoan Jewish population broke from the orthodox tradition and built a new synagogue, Temple Emanuel, which adhered to the principles of the Reform Jewish Movement. They also consecrated at cemetery at Berg Altena. By the 1870s, Jewish women's education was becoming increasingly important in Curaçao. Many Sephardic women attended Colegio Colonial, a school directed by José R. Henriquez and his wife, where they learned arithmetic, astronomy, etiquette, general religion, geography, languages, reading and writing, along with students from Colombia, the Dominican Republic and Venezuela. These educated women who had little job opportunities, turned their attentions toward charitable social projects. One such project was spearheaded by Rebecca Cohen Henriquez, who led the members of "Club Entre Nous" to build Queen Wilhelmina Park in 1899. Twentieth century In 1926 a group of Ashkenazi Jews, primarily from Romania, settled in Curaçao. These Eastern European Jews, from the historic area of Bessarabia, were not originally heading for the Caribbean. Quotas in the United States after World War I, diverted many populations of immigrants to Latin America; however, as ships stopped in Curaçao, some of the immigrants stayed, finding it peaceful. The initial migrants were men, who found brides either from their homelands, or from nearby communities in Colombia and Venezuela. Many were artisans or peddlers and in the beginning of their settlement, they purchased goods from Sephardic wholesalers, which they then peddled throughout rural areas of the island. On May 10, 1940, the Curaçaoan government authorities confiscated all German ships in response to the German invasion of the Netherlands. An internment camp was established in neighboring Bonaire for the crews, of nearly 500 men and others deemed to be enemies of the state, who were detained until the war ended. A monument was erected to honor Antilleans who died during World War II, listing 162 names. One of these, George Maduro, served as a reserve officer in the Dutch army, joined the resistance after the Dutch surrendered, and assisted downed Allied pilots in their escape, before being arrested and killed at Dachau. Madurodam, a park in The Hague was constructed to honor his life. "Curaçao visas" During World War II, Curaçao played an indirect role in the rescue of Jews from Nazi-occupied Lithuania. In July 1940, following the Soviet takeover of the Baltic States, Nathan Gutwirth, a Dutch citizen studying at the Telshe yeshiva, sought a way to leave Lithuania in the absence of diplomatic relations between the Soviet Union and Holland. Gutwirth asked the Dutch ambassador to Lithuania, L.P.J. de Dekker, for a visa to the Dutch colony of Curaçao, from where he hoped to continue on to the United States. de Dekker informed him that Curaçao did not require any entry visa for citizens or non-citizens, only a landing permit signed by the governor. Recognizing this as a way to help other Jews escape Lithuania, de Dekker instructed all Dutch consuls to stamp any passport or identity paper belonging to any refugee with the statement: leaving out the part about the landing permit. Rabbi Zerach Warhaftig, a Polish Zionist leader, heard about the scheme and arranged with the temporary Dutch consul in Kaunas, businessman Jan Zwartendijk, to issue "Curaçao visas" to anyone who requested them. Without receiving permission from the Dutch diplomatic mission in Riga, Zwartendijk issued 2,200 Curaçao visas between July 24 and August 2, 1940, the day before his office was closed by the Soviets. While the Soviets agreed to honor the Curaçao visas, they insisted that the visa holders also have a transit visa to a country outside Russia. At this point the Japanese consul in Kaunas came into the picture. Chiune Sugihara had been seeking a way to help Lithuanian Jews escape to Japan under the Fugu Plan. Sugihara worked in conjunction with Zwartendijk to issue 2,200 transit visas to Japan, with Curaçao as the final destination. With these visas, Jews were able to obtain exit visas from the Soviet government and take the Trans-Siberian Railway to Vladivostok, destination Kobe, Japan. None of the visa holders actually reached Curaçao. Postwar In 1964, Mikve Israel and Temple Emanuel's congregations merged agreeing to follow the rituals of the Reconstructionist Jewish Movement in an effort to preserve the traditions of both congregations. In the late 1960s, some of the Ashkenazi Jews left after they became targets of rioting. Others left in the 1980s, when economic recession and the devaluation of the Venezuelan currency made migration to the United States more attractive. Approximately 350 Jews remain in Curaçao. They maintain the Jewish Cultural Historical Museum, which is connected to the Mikve Israel-Emanuel synagogue. The museum contains religious artifacts including a 1729 mikvah and eighteen historic Torahs. The community also operates an combined school, the Community Hebrew School, which is operated by both congregations, Mikvé Israel-Emanuel and Sharei Tsedek. Since 2017, Shaarei Tsedek has been led by a Chabad rabbi, serving the local Jewish community and tourists. The synagogue is open for weekly services and hosts a variety of activities, such as Shabbat dinners, holiday services, and educational classes. References Notes Citations Further reading Israel, Jonathan I. "The Jews of Curaçao" in Diasporas Within a Diaspora: Jews, Crypto-Jews, and the World Maritime Empires (1540-1740). Leiden: Brill 2002, pp. 511–532. External links Jewish community in the Netherlands Antilles, World Jewish Congress The Jews of Curacao, The Museum of the Jewish People at Beit Hatfutsot The Sephardic Jews in Curaçao and Their Role in the Formation of Papiamentu The Origin of the Curaçao Sephardim and The Bond which Held the Diaspora Together Chabad of Curacao - Shaarei Tsedek Jews Sephardi Jews topics Sephardi Jewish culture in the Netherlands Curaçao
```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>node-garden</title> </head> <body> <canvas id="canvas" width="800" height="400" style="background:#45cb96;"></canvas> <script src="../js/utils.js"></script> <script src="../js/ball.js"></script> <script> window.onload = function(){ var canvas = document.getElementById('canvas'), context = canvas.getContext('2d'), particles = [], numParticles = 60, minDist = 80, springAmount = 0.001; var width = canvas.width; var height = canvas.height; for(var i=0; i<numParticles; i++){ //var color = Math.random()*(0xffffff); var size = Math.random()*5; var ball = new Ball(size, "#fff"); ball.x = Math.random()*width; ball.y = Math.random()*height; ball.vx = Math.random()*6 - 3; ball.vy = Math.random()*6 - 3; particles.push(ball); } function gravaite(ballA, ballB){ var dx = ballB.x - ballA.x; var dy = ballB.y - ballA.y; var dist = Math.sqrt(dx*dx + dy*dy); if (dist < minDist) { context.save(); context.strokeStyle = "rgba(255,255,255,.3)"; context.beginPath(); context.moveTo(ballA.x, ballA.y); context.lineTo(ballB.x, ballB.y); context.closePath(); context.stroke(); context.restore(); var ax = dx * springAmount, ay = dy * springAmount; ballA.vx += ax; ballA.vy += ay; ballB.vx -= ax; ballB.vy -= ay; } } function move(ballA, i){ ballA.x += ballA.vx; ballA.y += ballA.vy; if (ballA.x > canvas.width) { ballA.x = 0; } else if (ballA.x < 0) { ballA.x = canvas.width; } if (ballA.y > canvas.height) { ballA.y = 0; } else if (ballA.y < 0) { ballA.y = canvas.height; } for(var ballB, j=i+1; j<numParticles; j++){ ballB = particles[j]; gravaite(ballA, ballB); } } //console.log(particles); function draw(ball){ ball.draw(context); } (function drawFrmae(){ window.requestAnimationFrame(drawFrmae, canvas); context.clearRect(0, 0, width, height); particles.forEach(move); particles.forEach(draw); }()) } </script> </body> </html> ```
```javascript /** * Created by Hendrik Strobelt (hendrik.strobelt.com) on 1/25/17. */ class LSTMVis { constructor() { this.globalEventHandler = new SimpleEventHandler(d3.select('body').node()); this.controller = new LSTMController({eventHandler: this.globalEventHandler}); this.selectionView = new LSTMSelectionView({ controller: this.controller, globalEventHandler: this.globalEventHandler }); this.matchView = new LSTMMatchView({ controller: this.controller, globalEventHandler: this.globalEventHandler }); this.dialogHandler = new LSTMDialogHandler({ controller: this.controller, eventHandler: this.globalEventHandler }); this.bindGlobalEvents(); this.controller.initByUrlAndRun(); } bindGlobalEvents() { this.globalEventHandler.bind(LSTMController.events.windowResize, () => { const newWidth = this.controller.windowSize.width; this.selectionView.actionUpdateWidth(newWidth); this.matchView.actionUpdateWidth(newWidth); }); // -------------------------------- // -- Shrink/Expand Cell Width--- // -------------------------------- d3.select('#smaller_btn').on('click', () => { this.controller.cellWidth = Math.max(5, this.controller.cellWidth - 5); this.selectionView.actionUpdateCellWidth(); this.matchView.actionUpdateCellWidth(); }); d3.select('#larger_btn').on('click', () => { this.controller.cellWidth = this.controller.cellWidth + 5; this.selectionView.actionUpdateCellWidth(); this.matchView.actionUpdateCellWidth(); }); d3.select('#info_position').on('click', () => this.dialogHandler.openPositionDialog()); d3.select('#info_source').on('click', () => this.dialogHandler.openSourceDialog()); this.globalEventHandler.bind(LSTMController.events.newContextAvailable, () => this.actionUpdateGlobalInfos()) } actionUpdateGlobalInfos() { const pi = this.controller.projectInfo; d3.select('#info_position').text(this.controller.pos); d3.select('#info_projectName').text(pi.name); d3.select('#info_id').text(this.controller.projectID); d3.select('#info_source').text(this.controller.source); } } const lstmVis = new LSTMVis(); lstmVis; ```
```c++ #include "treewidget.h" #include <QMouseEvent> #include <QHeaderView> #include <QKeyEvent> #include <QDropEvent> #include <utils/widgetutils.h> #include "styleditemdelegate.h" using namespace vnotex; TreeWidget::TreeWidget(QWidget *p_parent) : QTreeWidget(p_parent) { } TreeWidget::TreeWidget(TreeWidget::Flags p_flags, QWidget *p_parent) : QTreeWidget(p_parent), m_flags(p_flags) { if (m_flags & Flag::EnhancedStyle) { auto interface = QSharedPointer<StyledItemDelegateTreeWidget>::create(this); auto delegate = new StyledItemDelegate(interface, StyledItemDelegate::Highlights, this); setItemDelegate(delegate); } } void TreeWidget::mousePressEvent(QMouseEvent *p_event) { QTreeWidget::mousePressEvent(p_event); if (m_flags & Flag::ClickSpaceToClearSelection) { auto idx = indexAt(p_event->pos()); if (!idx.isValid()) { clearSelection(); setCurrentItem(NULL); } } } void TreeWidget::setupSingleColumnHeaderlessTree(QTreeWidget *p_widget, bool p_contextMenu, bool p_extendedSelection) { p_widget->setColumnCount(1); p_widget->setHeaderHidden(true); if (p_contextMenu) { p_widget->setContextMenuPolicy(Qt::CustomContextMenu); } if (p_extendedSelection) { p_widget->setSelectionMode(QAbstractItemView::ExtendedSelection); } } void TreeWidget::showHorizontalScrollbar(QTreeWidget *p_tree) { p_tree->header()->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); p_tree->header()->setSectionResizeMode(QHeaderView::ResizeToContents); p_tree->header()->setStretchLastSection(false); } QTreeWidgetItem *TreeWidget::findItem(const QTreeWidget *p_widget, const QVariant &p_data, int p_column) { int nrTop = p_widget->topLevelItemCount(); for (int i = 0; i < nrTop; ++i) { auto item = findItemHelper(p_widget->topLevelItem(i), p_data, p_column); if (item) { return item; } } return nullptr; } QTreeWidgetItem *TreeWidget::findItemHelper(QTreeWidgetItem *p_item, const QVariant &p_data, int p_column) { if (!p_item) { return nullptr; } if (p_item->data(0, Qt::UserRole) == p_data) { return p_item; } int nrChild = p_item->childCount(); for (int i = 0; i < nrChild; ++i) { auto item = findItemHelper(p_item->child(i), p_data, p_column); if (item) { return item; } } return nullptr; } void TreeWidget::keyPressEvent(QKeyEvent *p_event) { if (WidgetUtils::processKeyEventLikeVi(this, p_event)) { return; } // On Mac OS X, it is `Command+O` to activate an item, instead of Return. #if defined(Q_OS_MACOS) || defined(Q_OS_MAC) if (p_event->key() == Qt::Key_Return || p_event->key() == Qt::Key_Enter) { if (auto item = currentItem()) { emit itemActivated(item, currentColumn()); } return; } #endif QTreeWidget::keyPressEvent(p_event); } QTreeWidgetItem *TreeWidget::nextItem(const QTreeWidget *p_tree, QTreeWidgetItem *p_item, bool p_forward) { QTreeWidgetItem *nItem = NULL; if (p_forward) { if (p_item->isExpanded() && p_item->childCount() > 0) { nItem = p_item->child(0); } else { while (!nItem && p_item) { nItem = nextSibling(p_tree, p_item, true); p_item = p_item->parent(); } } } else { nItem = nextSibling(p_tree, p_item, false); if (!nItem) { nItem = p_item->parent(); } else { nItem = lastItemOfTree(nItem); } } return nItem; } QTreeWidgetItem *TreeWidget::lastItemOfTree(QTreeWidgetItem *p_item) { if (p_item->isExpanded() && p_item->childCount() > 0) { return p_item->child(p_item->childCount() - 1); } else { return p_item; } } QTreeWidgetItem *TreeWidget::nextSibling(const QTreeWidget *p_tree, QTreeWidgetItem *p_item, bool p_forward) { if (!p_item) { return NULL; } QTreeWidgetItem *pa = p_item->parent(); if (pa) { int idx = pa->indexOfChild(p_item); if (p_forward) { ++idx; if (idx >= pa->childCount()) { return NULL; } } else { --idx; if (idx < 0) { return NULL; } } return pa->child(idx); } else { // Top level item. int idx = p_tree->indexOfTopLevelItem(p_item); if (p_forward) { ++idx; if (idx >= p_tree->topLevelItemCount()) { return NULL; } } else { --idx; if (idx < 0) { return NULL; } } return p_tree->topLevelItem(idx); } } QVector<QTreeWidgetItem *> TreeWidget::getVisibleItems(const QTreeWidget *p_widget) { QVector<QTreeWidgetItem *> items; auto firstItem = p_widget->itemAt(0, 0); if (!firstItem) { return items; } auto lastItem = p_widget->itemAt(p_widget->viewport()->rect().bottomLeft()); auto item = firstItem; while (item) { items.append(item); if (item == lastItem) { break; } item = nextItem(p_widget, item, true); } return items; } void TreeWidget::dropEvent(QDropEvent *p_event) { auto dragItems = selectedItems(); QTreeWidget::dropEvent(p_event); if (dragItems.size() == 1) { emit itemMoved(dragItems[0]); } } void TreeWidget::forEachItem(const QTreeWidget *p_widget, const std::function<bool(QTreeWidgetItem *p_item)> &p_func) { const int cnt = p_widget->topLevelItemCount(); for (int i = 0; i < cnt; ++i) { if (!forEachItem(p_widget->topLevelItem(i), p_func)) { break; } } } bool TreeWidget::forEachItem(QTreeWidgetItem *p_item, const std::function<bool(QTreeWidgetItem *p_item)> &p_func) { if (!p_item) { return true; } if (!p_func(p_item)) { return false; } const int cnt = p_item->childCount(); for (int i = 0; i < cnt; ++i) { if (!forEachItem(p_item->child(i), p_func)) { return false; } } return true; } void TreeWidget::mark(QTreeWidgetItem *p_item, int p_column) { p_item->setData(p_column, Qt::ForegroundRole, StyledItemDelegate::s_highlightForeground); p_item->setData(p_column, Qt::BackgroundRole, StyledItemDelegate::s_highlightBackground); } void TreeWidget::unmark(QTreeWidgetItem *p_item, int p_column) { p_item->setData(p_column, Qt::ForegroundRole, QVariant()); p_item->setData(p_column, Qt::BackgroundRole, QVariant()); } void TreeWidget::expandRecursively(QTreeWidgetItem *p_item) { if (!p_item) { return; } p_item->setExpanded(true); const int cnt = p_item->childCount(); if (cnt == 0) { return; } for (int i = 0; i < cnt; ++i) { expandRecursively(p_item->child(i)); } } void TreeWidget::selectParentItem(QTreeWidget *p_widget) { auto item = p_widget->currentItem(); if (item) { auto pitem = item->parent(); if (pitem) { p_widget->setCurrentItem(pitem, 0, QItemSelectionModel::ClearAndSelect); } } } static bool isItemTreeExpanded(const QTreeWidgetItem *p_item) { if (!p_item) { return true; } if (p_item->isHidden() || !p_item->isExpanded()) { return false; } int cnt = p_item->childCount(); for (int i = 0; i < cnt; ++i) { if (!isItemTreeExpanded(p_item->child(i))) { return false; } } return true; } bool TreeWidget::isExpanded(const QTreeWidget *p_widget) { int cnt = p_widget->topLevelItemCount(); for (int i = 0; i < cnt; ++i) { if (!isItemTreeExpanded(p_widget->topLevelItem(i))) { return false; } } return true; } ```
Alwyn Ann Ruddock (13 April 1916 – 21 December 2005) was a noted British historian of the Age of Discovery, best known for her research on the English voyages of the 15th-century explorer John Cabot. Cabot and other navigators of the time were trying to find lands to the West, such as the mythical "Isle of Brasil" or the North American lands reached by Icelanders in previous centuries. Early Work Ruddock's first published research was a two-volume work (with David Beers Quinn), The Port Books or Local Customs Accounts of Southampton (Vol. I in 1937, and Vol. II in 1938). During World War II, she taught in the history department of what was to become Southampton University. She also published in many of the top academic journals, including English Historical Review, Economic History Review, and History. In 1946, Ruddock moved to Birkbeck College, University of London, where she published Italian Merchants and Shipping in Southampton, 1270-1500 in 1951. She was appointed to the position of reader in history in 1952, and subsequently elected as a fellow both of the Society of Antiquaries of London and of the Royal Historical Society. Later Work In the 1950s and early 1960s, Ruddock's concerns shifted from the activities of Italian merchants in Southampton to a broader investigation of Italian mercantile networks and businesses in medieval Europe. She intended to produce a "big" book to be titled Italian Merchants and Shipping. Around 1965, she claimed to have made a discovery in the archives of a Venetian banking family: documents relating to John Cabot's early activities, including a loan that the family advanced to him . For at least 25 years, she was promising to produce her Cabot book "soon". In 1992, she undertook a formal book contract with the University of Exeter Press. She felt unable or unwilling to publish it; upon her death, she left instructions for her research papers to be destroyed. Her only published research in this field are a number of short articles that she wrote in the late 1960s to early 1970s. Current investigations After her death, the Bristol University historian Evan T. Jones began to investigate Ruddock's unpublished research claims about the voyages of John Cabot, producing an article about them in the journal Historical Research in April 2007 (print edition, 2008). He wrote a second article about two documents found by the historian, Margaret Condon, who had not published them in the 1980s, in part due to the understanding that Ruddock had a book in progress on the topic. Jones subsequently set up the Cabot Project along with a number of other historians in Britain, Italy, Canada, and Australia to carry out further investigations into the early voyages, and to search for the evidence for Ruddock's claims. References Academics of Birkbeck, University of London People associated with Birkbeck, University of London 1916 births 2005 deaths 20th-century British historians Fellows of the Society of Antiquaries of London Fellows of the Royal Historical Society
Kéniéba Airport (French: Aéroport de Kéniéba) is an airport serving Kéniéba, a city in the Kéniéba, a city and commune of the Kéniéba Cercle in the Kayes Region of Mali. The airport is at an elevation of above mean sea level. It has one runway that is long. References Airports in Mali
The M1 and MM1 trainsets, and the cars of the same type, constituted the first rolling stock on the Paris Métro. They began service in 1900 and were constructed of wood. Original Trainsets The original trains consisted of short cars ( long) with two axles equipped with a Thomson or a Westinghouse traction motor that did not permit them to work in multiple units. As a result, a trainset had four cars and each train stopped at only about half of the stations. Trainsets with two sets of controls Trainsets with two sets of controls existed on lines 2 and 6, put in service near the end of 1900. Upon arriving at a terminus, the reversible trainsets would change direction as was common among trams of the time. The Thomson-Double In 1901 and 1902, the new 100 and 200 series were equipped with the Thomson-Double system which permitted two trainsets to work in multiple units (thus creating eight-car trains). This proved to be inconvenient as the system functioned entirely on high voltage (600 V DC) and the power of the motors were still barely sufficient. In case of a malfunction, the replacement of a damaged train was also problematic. These defects came to light during the Paris Métro train fire on August 10, 1903, which resulted in the death of 84 people who were asphyxiated by smoke. Twelve cars were destroyed. This incident directly led to the withdrawal of M1 and MM1 trains on lines 2, 5 and 6 after 1914, with their eventual retirement on all lines after 1931. Preserved units Trailer car B161 and two M1 motor cars (MM1 and A1) are preserved at the Musée des transports urbains. See also motorcar Paris Métro rolling stock
```java /* * * This program and the accompanying materials are made * which is available at path_to_url * */ package org.eclipse.milo.opcua.sdk.server.nodes; import org.eclipse.milo.opcua.sdk.core.Reference; import org.eclipse.milo.opcua.stack.core.Identifiers; import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; import org.eclipse.milo.opcua.stack.core.types.builtin.NodeId; import org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName; /** * @deprecated create a {@link org.eclipse.milo.opcua.sdk.server.model.nodes.variables.PropertyTypeNode} instead. */ @Deprecated public class UaPropertyNode extends UaVariableNode { public UaPropertyNode( UaNodeContext context, NodeId nodeId, QualifiedName browseName, LocalizedText displayName) { super(context, nodeId, browseName, displayName); addReference(new Reference( nodeId, Identifiers.HasTypeDefinition, Identifiers.PropertyType.expanded(), true )); } } ```
```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 --nostress-opt // Flags: --nouse-osr function foo(obj) { var counter = 1; for (var i = 0; i < obj.length; i++) %OptimizeOsr(); counter += obj; return counter; } function bar() { var a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; for (var i = 0; i < 100; i++ ) { foo(a); } } try { bar(); } catch (e) { } ```
```objective-c #pragma once #include "memory_allocator.h" #include "file_area_freelist.h" #include <vespa/vespalib/io/fileutil.h> #include <vespa/vespalib/stllike/hash_map.h> #include <vespa/vespalib/util/size_literals.h> #include <map> #include <string> namespace vespalib::alloc { /* * Class handling memory allocations backed by one or more files. * Not reentrant or thread safe. Should not be destructed before all allocations * have been freed. * * Memory allocations smaller than _small_limit use portions of * premmapped areas to reduce the total number of memory mappings. */ class MmapFileAllocator : public MemoryAllocator { struct SizeAndOffset { size_t size; uint64_t offset; SizeAndOffset() noexcept : SizeAndOffset(0u, 0u) { } SizeAndOffset(size_t size_in, uint64_t offset_in) noexcept : size(size_in), offset(offset_in) { } }; using Allocations = hash_map<void *, SizeAndOffset>; const std::string _dir_name; const uint32_t _small_limit; const uint32_t _premmap_size; mutable File _file; mutable uint64_t _end_offset; mutable Allocations _allocations; mutable FileAreaFreeList _freelist; mutable Allocations _small_allocations; mutable FileAreaFreeList _small_freelist; mutable std::map<uint64_t, void*> _premmapped_areas; uint64_t alloc_area(size_t sz) const; PtrAndSize alloc_large(size_t size) const; PtrAndSize alloc_small(size_t size) const; void free_large(PtrAndSize alloc) const noexcept; void free_small(PtrAndSize alloc) const noexcept; void* map_premapped_offset_to_ptr(uint64_t offset, size_t size) const; uint64_t remove_allocation(PtrAndSize alloc, Allocations& allocations) const noexcept; public: static constexpr uint32_t default_small_limit = 128_Ki; static constexpr uint32_t default_premmap_size = 1_Mi; explicit MmapFileAllocator(std::string dir_name); MmapFileAllocator(std::string dir_name, uint32_t small_limit, uint32_t premmap_size); ~MmapFileAllocator() override; PtrAndSize alloc(size_t sz) const override; void free(PtrAndSize alloc) const noexcept override; size_t resize_inplace(PtrAndSize, size_t) const override; // For unit test size_t get_end_offset() const noexcept { return _end_offset; } }; } ```