id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
stackoverflow-77/extraction_5.txt | ### How Django discovers language preference ¶ Once you’ve prepared your translations – or, if you want to use the translations that come with Django – you’ll need to activate translation for your app. Behind the scenes, Django has a very flexible model of deciding which language should be used – installation-wide, for... | |
stackoverflow-77/extraction_6.txt | # Internationalization > Supporting internationalization is not optional. It must be a core feature. > > — Jannis Leidel, speaking at Django Under the Hood, 2015. REST framework ships with translatable error messages. You can make these appear in your language enabling Django's standard translation mechanisms. Doing so... | |
stackoverflow-78/extraction_0.txt | The **μ-law algorithm** (sometimes written **mu**-law, often abbreviated as **u-law**) is a companding algorithm, primarily used in 8-bit PCM digital telecommunications systems in North America and Japan. It is one of the two companding algorithms in the G.711 standard from ITU-T, the other being the similar A-law. A-l... | |
stackoverflow-78/extraction_1.txt | # Lloyd-Max scalar quantizer Problem : For a signal $x$ with given PDF $f \_ { X } \\left( x \\right)$ find a quantizer with M representative levels such that $$ d = M S E = E \\biggl \[ \\Bigl ( X - \\hat { X } \\Bigr ) ^ { 2 } \\biggr \] \\operatorname\* { m i n } . $$ Solution : Lloyd-Max quantizer \[Lloyd,1957\] \[... | |
stackoverflow-78/extraction_2.txt | ### 9.6Nonuniform Quantization As we can see from Figure 9.10, the input is more likely to fall in the inner levels of the quantizer if the input distribution has more mass near the origin. Recall that in lossless compression, in order to minimize the _average_ number of bits per input symbol, we assigned shorter codew... | |
Openai_Text_Generation/Openai_Text_Generation_0_1.txt | mimic the effect seen in ChatGPT where the text is returned iteratively, set the stream parameter to true.
Chat Completions response format
An example Chat Completions API response looks as follows:
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "The 2020 ... | |
stackoverflow-79/extraction_0.txt | ## Schema definition The central concept is that the output structure of model responses needs to be represented in some way. While types of objects you can use depend on the model you're working with, there are common types of objects that are typically allowed or recommended for structured output in TypeScript. The... | |
stackoverflow-79/extraction_2.txt | # Structured model outputs Ensure text responses from the model adhere to a JSON schema you define. Copy page JSON is one of the most widely used formats in the world for applications to exchange data. Structured Outputs is a feature that ensures the model will always generate responses that adhere to your supplied JSO... | |
Python_pandas_functions/Series_286_6.txt | w label with that value is
returned.
Parameters :
**axis** {0 or âindexâ}
Unused. Parameter needed for compatibility with DataFrame.
**skipna** bool, default True
Exclude NA/null values. If the entire Series is NA, the result will be NA.
***args, **kwargs**
Additional arguments and k... | |
Python_pandas_functions/Series_286_5.txt | der_categories ](pandas.Series.cat.reorder_categories.html)
* [ pandas.Series.cat.add_categories ](pandas.Series.cat.add_categories.html)
* [ pandas.Series.cat.remove_categories ](pandas.Series.cat.remove_categories.html)
* [ pandas.Series.cat.remove_unused_categories ](pandas.Series.cat.remove_unused_categ... | |
stackoverflow-7/extraction_0.txt | # pandas.DataFrame.sort\_values \# DataFrame.sort\_values( _by_, _\*_, _axis=0_, _ascending=True_, _inplace=False_, _kind='quicksort'_, _na\_position='last'_, _ignore\_index=False_, _key=None_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/frame.py#L7004-L7239) # Sort by the values along eit... | |
stackoverflow-7/extraction_1.txt | **Examples** ``` >>> df = pd.DataFrame([[1, 2], [4, 5], [7, 8]], ... index=['cobra', 'viper', 'sidewinder'], ... columns=['max_speed', 'shield']) >>> df max_speed shield cobra 1 2 viper 4 5 sidewinder 7 8 ``` Copy to clipboard Single label. Note this returns the row as a Series. ``` >>> df.loc['viper'] max_speed 4 shie... | |
WP_Scripts/WP_Scripts_14_0.txt | [ WordPress.org ](https://wordpress.org/)
* [ News ](https://wordpress.org/news/)
* [ Showcase ](https://wordpress.org/showcase/)
* [ Hosting ](https://wordpress.org/hosting/)
* Extend
* [ Themes ](https://wordpress.org/themes/)
* [ Plugins ](https://wordpress.org/plugins/)
* [ Patterns ](h... | |
stackoverflow-80/extraction_0.txt | A new “Script Modules” interface has been introduced to support native JavaScript modules in WordPress. JavaScript modules use `import` and `export` and are often referred to as ECMAScript Modules or “ESM”. This post will refer to “scripts” and “modules” for Scripts and Script Modules concepts, respectively. JavaScript... | |
stackoverflow-80/extraction_1.txt | wp\_enqueue\_script\_module() HomeReferenceFunctionswp\_enqueue\_script\_module() Search # wp\_enqueue\_script\_module( string$id, string$src = '', array$deps = array(), string\|false\|null$version = false ) ## In this article Table of Contents - Description - Parameters - Source - Related - Changelog - User Contribute... | |
stackoverflow-80/extraction_2.txt | Filters the HTML script tag of an enqueued script. ## Parameters `$tag` string The `<script>` tag for the enqueued script. `$handle` string The script’s registered handle. `$src` string The script’s source URL. ## Source `wp-includes/class-wp-scripts.php` Copy ```php $tag = apply_filters( 'script_loader_tag', $tag, $ha... | |
stackoverflow-80/extraction_3.txt | I want to use `countUp.js` on my custom theme in Wordpress. When I add the file with `wp_enqueue_script()`, I get an error: ```hljs javascript Uncaught SyntaxError: Unexpected token 'export' ``` I've read that it can be fixed by setting `type="module"` on the `<script>` tag, but I don't know how to do that as that opti... | |
stackoverflow-80/extraction_4.txt | ## Including CountUp Permalink: Including CountUp CountUp is distributed as an ES6 module because it is the most standardized and most widely compatible module for browsers, though a UMD module is also included, along with a separate requestAnimationFrame polyfill (see below). For the examples below, first install Coun... | |
stackoverflow-80/extraction_5.txt | # ES6 Module throwing unexpected token error Ask Question Asked6 years, 5 months ago Modified 6 years, 5 months ago Viewed 3k times This question shows research effort; it is useful and clear 0 Save this question. Timeline Show activity on this post. I'm absolutely blown away that I'm having this issue, but here we go.... | |
stackoverflow-81/extraction_0.txt | ## Requirements Files ¶ “Requirements files” are files containing a list of items to be installed using pip install like so: Unix/macOS ``` python -m pip install -r requirements.txt ``` Copy to clipboard Windows ``` py -m pip install -r requirements.txt ``` Copy to clipboard Details on the format of the files are here:... | |
stackoverflow-81/extraction_1.txt | ## Dealing with dependency conflicts ¶ This section provides practical suggestions to pip users who encounter a `ResolutionImpossible` error, where pip cannot install their specified packages due to conflicting dependencies. ### Understanding your error message ¶ When you get a `ResolutionImpossible` error, you might s... | |
stackoverflow-81/extraction_3.txt | ``` Usage: pip-compile [OPTIONS] [SRC_FILES]... Compile requirements.txt from source files. Valid sources are requirements.in, pyproject.toml, setup.cfg, or setup.py specs. Options: --version Show the version and exit. --color / --no-color Force output to be colorized or not, instead of auto-detecting color support -v,... | |
stackoverflow-81/extraction_4.txt | # Installation from PyPI ¶ This page describes installations using the `apache-airflow` package published in\ PyPI. ## Installation tools ¶ Only `pip` installation is currently officially supported. While there are some successes with using other tools like poetry or pip-tools, they do not share the same workflow as `p... | |
stackoverflow-82/extraction_0.txt | # Managed and unmanaged threading in Windows - 03/11/2022 Management of all threads is done through the Thread class, including threads created by the common language runtime and those created outside the runtime that enter the managed environment to execute code. The runtime monitors all the threads in its process tha... | |
stackoverflow-82/extraction_1.txt | # Fibers - 07/14/2025 A _fiber_ is a unit of execution that must be manually scheduled by the application. Fibers run in the context of the threads that schedule them. Each thread can schedule multiple fibers. In general, fibers do not provide advantages over a well-designed multithreaded application. However, using fi... | |
stackoverflow-82/extraction_2.txt | **Fibers and the CLR** The CLR tried to add support for fibers in Whidbey. This was done in response to SQL Server Yukon hosting the runtime in process, aka SQLCLR. Eventually, mostly due to schedule pressure and a long stress bug tail related to fiber-mode, we threw up our hands and declared it unsupported. Given the ... | |
Java_Class_Objects_Observable/Java_Class_Objects_1_0.txt | * #### equals
public static boolean equals([Object](../../java/lang/Object.html "class in java.lang") a,
[Object](../../java/lang/Object.html "class in java.lang") b)
Returns ` true ` if the arguments are equal to each other and ` false `
otherwise.... | |
stackoverflow-83/extraction_0.txt | ## 15.21. Equality Operators The operators `==` (equal to) and `!=` (not equal to) are called the _equality_ _operators_. EqualityExpression: RelationalExpression EqualityExpression `==` RelationalExpression EqualityExpression `!=` RelationalExpression The equality operators are syntactically left-associative (they gro... | |
stackoverflow-83/extraction_1.txt | - #### equals ``` public boolean equals(Object anObject) ``` Compares this string to the specified object. The result is `true` if and only if the argument is not `null` and is a `String` object that represents the same sequence of characters as this object. Overrides:`equals` in class `Object`Parameters:`anObject` \- ... | |
stackoverflow-83/extraction_2.txt | - #### equals ``` public boolean equals(Object anObject) ``` Compares this string to the specified object. The result is `true` if and only if the argument is not `null` and is a `String` object that represents the same sequence of characters as this object. Overrides:`equals` in class `Object`Parameters:`anObject` \- ... | |
stackoverflow-83/extraction_3.txt | ``` public final class Objects extends Object ``` This class consists of `static` utility methods for operating on objects. These utilities include `null`-safe or `null`-tolerant methods for computing the hash code of an object, returning a string for an object, and comparing two objects. Since:1.7 - ### Method Summary... | |
stackoverflow-83/extraction_4.txt | ## 15.21. Equality Operators The operators `==` (equal to) and `!=` (not equal to) are called the _equality_ _operators_. EqualityExpression: RelationalExpression EqualityExpression `==` RelationalExpression EqualityExpression `!=` RelationalExpression The equality operators are syntactically left-associative (they gro... | |
jQuery_api/jQuery_api_0_1.txt | in [ ` event.data ` ](/event.data/) when an
event occurs.
The ` .on() ` method attaches event handlers to the currently selected set of
elements in the jQuery object. As of jQuery 1.7, the ` .on() ` method provides
all functionality required for attaching event handlers. For help in
converting from older jQuery event ... | |
jQuery_api/jQuery_api_0_0.txt | * [ jQuery ](https://jquery.com/ "jQuery")
* [ jQuery UI ](https://jqueryui.com/ "jQuery UI")
* [ jQuery Mobile ](https://jquerymobile.com/ "jQuery Mobile")
* [ Sizzle ](https://sizzlejs.com/ "Sizzle")
* [ QUnit ](https://qunitjs.com/ "QUnit")
* [ Plugins ](https://plugins.jquery.com/)
* [ Contribute ](h... | |
jQuery_api/jQuery_api_0_5.txt | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>on demo</title> <style> p { color: red; } span { color: blue; } </style> <script src="https://code.jquery.com/jquery-3.7.0.js"></script></head... | |
jQuery_api/jQuery_api_0_4.txt | ver() ` ](/hover/)
method, which accepts _one or two_ functions.
jQuery's event system requires that a DOM element allow attaching data via a
property on the element, so that events can be tracked and delivered. The `
object ` , ` embed ` , and ` applet ` elements cannot attach data, and
therefore cannot have jQuery e... | |
jQuery_api/jQuery_api_0_2.txt | the
container element of a view in a Model-View-Controller design, for example, or
` document ` if the event handler wants to monitor all bubbling events in the
document. The ` document ` element is available in the ` head ` of the
document before loading any other HTML, so it is safe to attach events there
without wai... | |
stackoverflow-84/extraction_0.txt | ## .hover( handlerIn, handlerOut )Returns: jQueryversion deprecated: 3.3 **Description:** Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. - #### version added: 1.0 .hover( handlerIn, handlerOut ) - **handlerIn** Type: Function( Event eventObject ) A funct... | |
stackoverflow-84/extraction_1.txt | ## link jQuery Migrate Plugin We realize that existing sites and plugins may be affected by these changes, and are providing the jQuery Migrate plugin for a transitional upgrade path. Individual descriptions below indicate if the behavior changed in 1.9 can be restored by using the jQuery Migrate plugin. Note that all ... | |
stackoverflow-84/extraction_2.txt | ## .live( events, handler )Returns: jQueryversion deprecated: 1.7, removed: 1.9 **Description:** Attach an event handler for all elements which match the current selector, now and in the future. - #### version added: 1.3 .live( events, handler ) - **events** Type: String A string containing a JavaScript event type, suc... | |
stackoverflow-84/extraction_3.txt | ## Event performance In most cases, an event such as `click` occurs infrequently and performance is not a significant concern. However, high frequency events such as `mousemove` or `scroll` can fire dozens of times per second, and in those cases it becomes more important to use events judiciously. Performance can be in... | |
stackoverflow-84/extraction_4.txt | #### version added: 1.7 [.on( "mouseleave" \[, eventData \], handler )](https://api.jquery.com/mouseleave/?utm_source=chatgpt.com#on-%22mouseleave%22-eventData-handler) - **"mouseleave"** Type: string The string `"mouseleave"`. - **eventData** Type: Anything An object containing data that will be passed to the event ha... | |
Expressions_operators/Expressions_operators_35_11.txt | ON.stringify() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) are both
called with ` this ` set to the object that the property being
parsed/serialized belongs to.
#### Arrow functions
In [ arrow functions ](/en-
US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) , ` this ` retains... | |
Expressions_operators/Expressions_operators_35_9.txt | _obsolete_features)
## In this article
* Try it
* Syntax
* Description
* Examples
* Specifications
* Browser compatibility
* See also
# this
The **` this ` ** keyword refers to the context where a piece of code, such as
a function's body, is supposed to run. Most typically, it is used in obje... | |
Expressions_operators/Expressions_operators_35_10.txt | is;
console.log(obj5.getThis()); // { name: 'obj5', getThis: [Function: getThis] }
If the value that the method is accessed on is a primitive, ` this ` will be a
primitive value as well â but only if the function is in strict mode.
js
function getThisStrict() {
"use strict"; // Enter s... | |
Expressions_operators/Expressions_operators_35_13.txt | irect eval ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/eval#direct_and_indirect_eval)
, or ` globalThis ` (as if it's run in a separate global script) for indirect
eval.
js
function test() {
// Direct eval
console.log(eval("this") === this);
// Indirect eval, non-strict
... | |
Expressions_operators/Expressions_operators_35_14.txt | ate closures over the ` this ` value of the enclosing
execution context. In the following example, we create ` obj ` with a method `
getThisGetter ` that returns a function that returns the value of ` this ` .
The returned function is created as an arrow function, so its ` this ` is
permanently bound to the ` this ` of... | |
stackoverflow-85/extraction_0.txt | ``` The "this" problem When you pass a method to `setTimeout()`, it will be invoked with a `this` value that may differ from your expectation. The general issue is explained in detail in the JavaScript reference. Code executed by `setTimeout()` is called from an execution context separate from the function from which `... | |
stackoverflow-85/extraction_1.txt | # Events\# ``` Stability: 2 - Stable ``` Many objects in Node.js emit events: a `net.Server` emits an event each time a peer connects to it, a `fs.ReadStream` emits an event when the file is opened. All objects which emit events are instances of `events.EventEmitter`. You can access this module by doing: `require("even... | |
stackoverflow-85/extraction_2.txt | #### Arrow functions In arrow functions, `this` retains the value of the enclosing lexical context's `this`. In other words, when evaluating an arrow function's body, the language does not create a new `this` binding. For example, in global code, `this` is always `globalThis` regardless of strictness, because of the gl... | |
stackoverflow-85/extraction_3.txt | # Function.prototype.bind() BaselineWidely available This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015. - Learn more - See full compatibility - Report feedback The **`bind()`** method of `Function` instances creates a new function ... | |
CoreWebView2/CoreWebView2_1_1.txt |
Package:
Microsoft.Web.WebView2 v1.0.2365.46
Package:
Microsoft.Web.WebView2 v1.0.2415-prerelease
Package:
Microsoft.Web.WebView2 v1.0.2420.47
Package:
Microsoft.Web.WebView2 v1.0.2470-prerelease
Important
Some information relates to prerelease product that may be substantially
modif... | |
stackoverflow-86/extraction_0.txt | # CoreWebView2 Class - 07/01/2025 The owner of the CoreWebView2 object that provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition. The CoreWebView2Controller owns the CoreWebView2, and if all references to the CoreWebView2Controller go away, the WebVie... | |
stackoverflow-86/extraction_1.txt | In my UWP application, I use a **webview2** (from **Microsoft.UI.Xaml.Controls**). And the web content shown inside of it can be drag-and-drop. I want to disable this **drag-and-drop** feature, and I tried a lot of ways, but all failed. E.g., `AllowDrop="False" CanDrag="False"` How can I do it? XAML code: ```hljs cshar... | |
stackoverflow-86/extraction_3.txt | Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here. Adds the provided JavaScript to a list of scripts that should be run after the global object has been create... | |
stackoverflow-86/extraction_4.txt | ## Drag effects When dragging, there are several operations that may be performed. The `copy` operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The `move` operation is used to indicate that the data being dragged will be moved, and the `link` operat... | |
stackoverflow-87/extraction_0.txt | An early step to diagnose an `OutOfMemoryError` exception is to determine the cause of the exception. Was it thrown because the Java heap is full, or because the native heap is full? To help you find the cause, the text of the exception includes a detail message at the end, as shown in the following exceptions. Excepti... | |
stackoverflow-87/extraction_2.txt | Tuning the memory use of your application requires understanding both how Java uses memory and how you can gain visibility into your application’s memory use. ## JVM memory usage The JVM uses memory in a number of different ways. The primary, but not singular, use of memory is in the **heap**. Outside of the heap, memo... | |
stackoverflow-87/extraction_4.txt | ### Java HotSpot VM Command-Line Options Command-line options that are prefixed with `-XX` are specific to the Java HotSpot Virtual Machine. Many of these options are important for performance tuning and diagnostic purposes, and are therefore described in this appendix. To know more about all possible `-XX` options, se... | |
stackoverflow-87/extraction_5.txt | # 3.2 Understand the OutOfMemoryError Exception One common indication of a memory leak is the `java.lang.OutOfMemoryError` exception. Usually, this error is thrown when there is insufficient space to allocate an object in the Java heap. In this case, The garbage collector cannot make space available to accommodate a ne... | |
stackoverflow-87/extraction_7.txt | ### Java HotSpot VM Command-Line Options Command-line options that are prefixed with `-XX` are specific to the Java HotSpot Virtual Machine. Many of these options are important for performance tuning and diagnostic purposes, and are therefore described in this appendix. To know more about all possible `-XX` options, se... | |
stackoverflow-87/extraction_8.txt | Basic Tutorial Memory Analyzer > Getting Started # Basic Tutorial If you are using Memory Analyzer installed into Eclipse rather than a stand-alone Memory Analyzer, first open the 'Memory Analysis' perspective using: Window \> Perspective \> Open Perspective \> Other ... \> Memory Analysis This tutorial provides a "jum... | |
stackoverflow-87/extraction_9.txt | # 3.1 Debug a Memory Leak Using Java Flight Recorder The Java Flight Recorder (JFR) is a commercial feature. You can use it for free on developer desktops or laptops, and for evaluation purposes in test, development, and production environments. However, to enable JFR **on a production server, you must have a commercia... | |
stackoverflow-88/extraction_0.txt | # Getting Error during build: RollupError: expression expected after migrating from vue-cli to vite Ask Question Asked1 year, 4 months ago Modified 1 year, 3 months ago Viewed 742 times This question shows research effort; it is useful and clear 2 Save this question. Timeline Show activity on this post. I just migrated... | |
stackoverflow-88/extraction_1.txt | ### Describe the bug Build fails when adding the `src` folder using a symbolic link. In v4.3.9, it succeeds and the v4.4.x fails. * * * vite v4.4.3 building for production... ✓ 7 modules transformed. ✓ built in 102ms Unexpected character '@' (Note that you need plugins to import files that are not JavaScript) file: D:/... | |
stackoverflow-88/extraction_2.txt | ## resolve.alias - **Type:** `Record<string, string> | Array<{ find: string | RegExp, replacement: string, customResolver?: ResolverFunction | ResolverObject }>` Will be passed to `@rollup/plugin-alias` as its entries option. Can either be an object, or an array of `{ find, replacement, customResolver }` pairs. When ... | |
stackoverflow-88/extraction_3.txt | ## 4 Answers 4 Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) This answer is useful 11 Save this answer. Timeline Show activity on this post. In my case, I created the project using Vite and by default it uses the .jsx exte... | |
stackoverflow-88/extraction_4.txt | # RollupError when I try to build \#10749 Answered by Yordan-Ramchev gtalk-renato asked this question in Help/Questions RollupError when I try to build#10749 !@gtalk-renato\\ gtalk-renato Apr 20, 2024· 3 comments · 5 replies Answeredby Yordan-RamchevReturn to top Discussion options ## \ gtalk-renato Apr 20, 2024 | | | ... | |
lubridate/lubridate_4_0.txt | Skip to content
[ lubridate ](../index.html) 1.9.2
* [ Get started ](../articles/lubridate.html)
* [ Reference ](../reference/index.html)
* News
###### Releases
[ Version 1.7.0 ](https://www.tidyverse.org/blog/2017/11/lubridate-1.7.0/) [
Version 1.6.0 ](https://www.rstudio.com/blog/lubridate-1-6-0/) [ Versi... | |
stackoverflow-89/extraction_0.txt | When I convert a factor to a numeric or integer, I get the underlying level codes, not the values as numbers. ```hljs r f <- factor(sample(runif(5), 20, replace = TRUE)) ## [1] 0.0248644019011408 0.0248644019011408 0.179684827337041 ## [4] 0.0284090070053935 0.363644931698218 0.363644931698218 ## [7] 0.179684827337041 ... | |
stackoverflow-89/extraction_1.txt | # User friendly date-time parsing functions Source: `R/parse.r` `parse_date_time.Rd` `parse_date_time()` parses an input vector into POSIXct date-time object. It differs from `base::strptime()` in two respects. First, it allows specification of the order in which the formats occur without the need to include separators... | |
stackoverflow-89/extraction_2.txt | ``` zoo (version 1.8-14) ## Description `"yearmon"` is a class for representing monthly data. ## Usage ``` yearmon(x) ``` ## Value Returns its argument converted to class `yearmon`. ## Arguments x numeric (interpreted as being “in years”). ## Details The `"yearmon"` class is used to represent monthly data. Internally i... | |
stackoverflow-89/extraction_4.txt | ``` # Formatting yearmon function of package zoo in r Ask Question Asked9 years, 8 months ago Modified 1 year, 4 months ago Viewed 7k times Part of R Language Collective This question shows research effort; it is useful and clear 1 Save this question. Timeline Show activity on this post. I'm using the yearmon function ... | |
Mmdn_HTTP/HTTP_headers_38_12.txt | se above, if the response with ` Cache-Control: max-age=3600 ` was
stored in caches 51 minutes ago, the cache couldn't reuse that response.
Clients can use this header when the user requires the response to not only be
[ fresh ](/en-US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age) , but
also requires that it won... | |
Mmdn_HTTP/HTTP_headers_38_13.txt | b/HTTP/Caching#fresh_and_stale_based_on_age) response every time â
or if the client already has a new one, just respond ` 304 Not Modified ` .
http
Cache-Control: no-cache
Most HTTP/1.0 caches don't support ` no-cache ` directives, so historically `
max-age=0 ` was used as a workaround. But only... | |
Mmdn_HTTP/HTTP_headers_38_10.txt | browser sends
requests with the ` Authorization ` header. This means that the response is
access-controlled for restricted users (who have accounts), and it's
fundamentally not shared-cacheable, even if it has ` max-age ` .
You can use the ` public ` directive to unlock that restriction.
http
Cache-Con... | |
Mmdn_HTTP/HTTP_headers_38_11.txt | rror `
The ` stale-if-error ` response directive indicates that the cache can reuse a
[ stale response ](/en-US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age)
when an upstream server generates an error, or when the error is generated
locally. Here, an error is considered any response with a status code of 500,
50... | |
Mmdn_HTTP/HTTP_headers_38_9.txt | uent
requests while it's [ fresh ](/en-
US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age) .
Note that ` max-age ` is not the elapsed time since the response was received;
it is the elapsed time since the response was generated on the origin server.
So if the other cache(s) â on the network route taken by the re... | |
Mmdn_HTTP/HTTP_headers_38_8.txt | n header name ](/en-US/docs/Glossary/Forbidden_header_name) | no
[ CORS-safelisted response header ](/en-US/docs/Glossary/CORS-safelisted_response_header) | yes
## Syntax
Cache directives follow these rules:
* Caching directives are case-insensitive. However, lowercase is recommended because some implem... | |
stackoverflow-8/extraction_0.txt | # 304 Not Modified The HTTP **`304 Not Modified`** redirection response status code indicates that there is no need to retransmit the requested resources. This response code is sent when the request is a conditional `GET` or `HEAD` request with an `If-None-Match` or an `If-Modified-Since` header and the condition evalu... | |
stackoverflow-8/extraction_1.txt | ## How the HTTP Cache works All HTTP requests that the browser makes are first routed to the browser cache to check whether there is a valid cached response that can be used to fulfill the request. If there's a match, the response is read from the cache, which eliminates both the network latency and the data costs that... | |
stackoverflow-8/extraction_2.txt | # Heavy throttling of chained JS timers beginning in Chrome 88 bookmark\_border Stay organized with collections Save and categorize content based on your preferences. Chrome 88 (January 2021) will heavily throttle chained JavaScript timers for hidden pages in particular conditions. This will reduce CPU usage, which wil... | |
stackoverflow-8/extraction_3.txt | ## Directives This section lists directives that affect caching — both response directives and request directives. ### Response Directives #### `max-age` The `max-age=N` response directive indicates that the response remains fresh until _N_ seconds after the response is generated. Indicates that caches can store this r... | |
stackoverflow-8/extraction_4.txt | The **`cache`** read-only property of the `Request` interface contains the cache mode of the request. It controls how the request will interact with the browser's HTTP cache. ## Value A `RequestCache` value. The available values are: - `default` — The browser looks for a matching request in its HTTP cache. - If there i... | |
stackoverflow-8/extraction_5.txt | # The WebSocket API (WebSockets) **Note:** This feature is available in Web Workers. The **WebSocket API** makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive responses without having to poll the serv... | |
stackoverflow-8/extraction_6.txt | ## Network This section lists options that customize the **Network** panel. Most of the options are the same as in the panel's settings. #### !Checkbox.**Preserve log** is the same as **Preserve log** in the **Network** panel. Saves requests across page loads. This video first shows the requests log refreshed on page r... | |
stackoverflow-90/extraction_0.txt | ## Description Compute a weighted mean. ## Usage ``` weighted.mean(x, w, …)# S3 method for default weighted.mean(x, w, …, na.rm = FALSE) ``` ## Arguments x an object containing the values whose weighted mean is to be computed. w a numerical vector of weights the same length as `x` giving the weights to use for elements... | |
stackoverflow-90/extraction_1.txt | stats (version 3.6.2) ## Description Splits the data into subsets, computes summary statistics for each, and returns the result in a convenient form. ## Usage ``` aggregate(x, …)# S3 method for default aggregate(x, …)# S3 method for data.frame aggregate(x, by, FUN, …, simplify = TRUE, drop = TRUE)# S3 method for formul... | |
astropy_Time/astropy_Time_43_0.txt | to_value ( _ format _ , _ subfmt = '*' _ ) #
Get time values expressed in specified output format.
This method allows representing the ` Time ` object in the desired output `
format ` and optional sub-format ` subfmt ` . Available built-in formats
include ` jd ` , ` mjd ` , ` iso ` , and so forth. ... | |
stackoverflow-91/extraction_0.txt | # TimeISO \# _class_ astropy.time.TimeISO( _val1_, _val2_, _scale_, _precision_, _in\_subfmt_, _out\_subfmt_, _from\_jd=False_) [\[source\]](https://docs.astropy.org/en/latest/_modules/astropy/time/formats.html#TimeISO) # Bases: `TimeString` ISO 8601 compliant date-time format “YYYY-MM-DD HH:MM:SS.sss…”. For example, 2... | |
stackoverflow-91/extraction_2.txt | ## Date conversion # If `x` and/or `y` are a list of `datetime`") or an array of `numpy.datetime64`"), Matplotlib has a built-in converter that will convert the datetime to a float, and add tick locators and formatters to the axis that are appropriate for dates. See `matplotlib.dates`. In the following example, the x-a... | |
stackoverflow-91/extraction_3.txt | _class_ astropy.time.TimeDatetime( _val1_, _val2_, _scale_, _precision_, _in\_subfmt_, _out\_subfmt_, _from\_jd=False_) [\[source\]](https://docs.astropy.org/en/stable/_modules/astropy/time/formats.html#TimeDatetime) # Bases: `TimeUnique` Represent date as Python standard library `datetime`") object. Example: ``` >>> f... | |
stackoverflow-91/extraction_4.txt | [](https://community.openastronomy.org/u/mathewjowens) mathewjowens Mar 2023 As Astropy.time.Time supports leap seconds and datetime does not, attempting to convert (Time.datetime) throws a value error: ValueError: Time (array(2016, dtype=int32), array(12, dtype=int32), array(31, dtype=int32), array(23), array(59), arr... | |
R_base_all/R_base_all_295_0.txt | [ RDocumentation ](/)
Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R
](https://www.datacamp.com/learn/r)
Search all packages and functions
[ base (version 3.6.2 ) ](/packages/base/versions/3.6.2)
# strsplit: Split the Elements of a Character Vector
## Description
Split the elements of a ... | |
stackoverflow-92/extraction_0.txt | ### 20.4.3 Scalars and recycling rules anchor As well as implicitly coercing the types of vectors to be compatible, R will also implicitly coerce the length of vectors. This is called vector **recycling**, because the shorter vector is repeated, or recycled, to the same length as the longer vector. This is generally mo... | |
stackoverflow-92/extraction_1.txt | ## Vectorize a Scalar Function ### Description `Vectorize` creates a function wrapper that vectorizes the action of its argument `FUN`. ### Usage ```R Vectorize(FUN, vectorize.args = arg.names, SIMPLIFY = TRUE, USE.NAMES = TRUE) ``` ### Arguments | | | | --- | --- | | `FUN` | function to apply, found via `match.fun`. |... | |
stackoverflow-93/extraction_0.txt | ## Mobile subscriptions Mobile subscriptions represent iOS, Android, Huawei, or Amazon devices and support: - Push notifications - In-app messages - Live Activities They’re automatically created when a user installs and opens your app with the OneSignal SDK. Each mobile subscription is tied to the device & push token... | |
stackoverflow-93/extraction_1.txt | 1 year ago, I got pushToken successfully in my react-native app. But right now official website sample code was changed, so I couldn't find any code how to get pushToken. > This is the code I used last year. (Class component) ``` constructor(props) { super(props); ... OneSignal.addEventListener('ids', this.onIds); } co... | |
stackoverflow-93/extraction_2.txt | **Audience > Subscriptions** shows a list of every subscription in your OneSignal App, and Data Collected by the OneSignal SDK. More details in our Users guide.There are 3 types of subscriptions. Check the _Channel_ and _Device_ columns for each: ## Push Subscription Can be sent push notifications. ## Email Subscriptio... | |
stackoverflow-93/extraction_3.txt | ### 2\. Initialize SDK In your `App.tsx`, `App.js`, or `index.js` file initialize OneSignal with the provided methods.Replace `YOUR_APP_ID` with your OneSignal App ID found in your OneSignal dashboard **Settings > Keys & IDs**. If you don’t have access to the OneSignal app, ask your Team Members to invite you. App.ts... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.