Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,622,072 | 2 | null | 75,622,002 | 0 | null | You don't need web workers for that; the standard solution is to use asynchronous I/O. For instance if you do:
```
this.httpClient.get<Person[]>(personsUrl).subscribe(personList => {
this.personList = personList;
});
this.httpClient.get<Company[]>(companiesUrl).subscribe(companyList => {
this.co... | null | CC BY-SA 4.0 | null | 2023-03-03T00:18:24.127 | 2023-03-03T00:18:24.127 | null | null | 183,406 | null |
75,622,076 | 2 | null | 30,823,237 | 0 | null | It has been a while since you asked and in the meantime someone solved this in a package:
[https://github.com/atheriel/sigterm](https://github.com/atheriel/sigterm)
From the README:
> is an extremely simple package that provides a way to implement just these kinds of operations in response to SIGTERM: when the package... | null | CC BY-SA 4.0 | null | 2023-03-03T00:18:45.830 | 2023-03-03T00:18:45.830 | null | null | 1,329,484 | null |
75,622,071 | 1 | null | null | 0 | 28 | I am trying to read a bz2 file that resides in a GCS bucket. Locally, I was using the following code to read the compressed file:
```
with bz2.open("file_path") as f:
# Decompress and split
lines = f.read().decode('utf-8').split("\n")
```
The problem is that right now I have to use a different (blob.open) to read ... | Read a bz2 file in Cloud Storage through a Cloud function | CC BY-SA 4.0 | null | 2023-03-03T00:18:06.043 | 2023-03-03T00:18:06.043 | null | null | 17,439,313 | [
"python",
"google-cloud-platform",
"google-cloud-functions",
"google-cloud-run"
] |
75,622,023 | 1 | 75,622,094 | null | 0 | 27 | I’m trying to convert `escaping closure` code to `async-await` code in a certain file. More specifically, I’m trying to not use the `completionHandler` way of using the `URLSession.shared.dataTask` line of code in this file (which is specifically the line of code “`URLSession.shared.dataTask(with: request) {`” in the f... | Getting “Cannot find 'data' in scope” error message in URLSession-related code Swift | CC BY-SA 4.0 | null | 2023-03-03T00:09:24.103 | 2023-03-03T19:51:22.670 | 2023-03-03T17:04:29.523 | 20,502,977 | 20,502,977 | [
"ios",
"swift",
"urlsession",
"json-serialization"
] |
75,622,074 | 1 | 75,622,092 | null | 0 | 33 | I created a linked list but it's only printing the first value "1" and not the rest. I have an insert function to insert new nodes and then a show function to print out the node values but it's only printing the first value.
```
struct Node {
int n;
Node *next;
};
class LinkedList {
private:
Node ... | Why is my linked list only printing one value? | CC BY-SA 4.0 | null | 2023-03-03T00:18:29.887 | 2023-03-03T00:21:27.570 | null | null | 19,340,692 | [
"c++",
"data-structures",
"singly-linked-list"
] |
75,622,078 | 2 | null | 75,622,026 | 0 | null | You can do it like this using bootstrap classes:
```
<span class="oi oi-arrow-thick-right @(forward.SendToBoth ? "text-primary" : "text-muted")" aria-hidden="true"></span>
```
or you can create your own css styles to apply.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:19:18.340 | 2023-03-03T00:19:18.340 | null | null | 10,839,134 | null |
75,622,079 | 2 | null | 75,610,201 | 1 | null | Made changes to return value of the handle_output to return -1. and that seems to fix the issue on Linux. We tried return 1 or 2 in handle_output but that did not work.
Any idea what other differences between windows and links if documented in the book?
| null | CC BY-SA 4.0 | null | 2023-03-03T00:19:24.253 | 2023-03-03T20:39:57.923 | 2023-03-03T20:39:57.923 | 21,315,270 | 21,315,270 | null |
75,622,063 | 2 | null | 75,621,868 | 1 | null | Congratulations! You just discovered a bug in `typing_extensions`. Compare the definition of `typing._GenericAlias.__getitem__` in `3.9` ([here](https://github.com/python/cpython/blob/c25b484e82cace132a5f3c89b69888eaf7b1d40e/Lib/typing.py#L760)) and the same definition in `3.10` ([here](https://github.com/python/cpytho... | null | CC BY-SA 4.0 | null | 2023-03-03T00:16:45.163 | 2023-03-04T00:35:43.850 | 2023-03-04T00:35:43.850 | 14,401,160 | 14,401,160 | null |
75,622,082 | 2 | null | 15,378,216 | 0 | null | You can use:
```
select * from TABLE_NAME where TABLE_NAME like '%a%';
```
%a% > the results going to show you all the data that contains an a in any position of the value.
also, you can use:
```
%a > values where ending an a
a% > values starting with a
_a% > values with a in the second position
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:19:56.960 | 2023-03-03T00:19:56.960 | null | null | 16,393,646 | null |
75,622,084 | 2 | null | 75,622,026 | 0 | null | Create a function that returns a string containing the css color.
```
<span class="oi oi-arrow-thick-right"
style="color: @GetCssColour(forward.SendToBoth);" ... />
...
@code {
private string GetCssColour(bool sendToBoth)
=> sendToBoth ? "blue" : "gray";
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:20:16.167 | 2023-03-03T00:25:22.763 | 2023-03-03T00:25:22.763 | 1,492,496 | 1,492,496 | null |
75,622,083 | 1 | null | null | 0 | 22 | I am currently trying to use Azure's remote rendering tools. And my model is about 580MB (it's an FBX file). I attempted to convert it into arrAsset but it say: "the conversion process exceeded system resources. It's possible the asset is too large.", even though I tried to change the performance from standard to premi... | What is the size limit of a 3d model for converting it into arrAsset? | CC BY-SA 4.0 | null | 2023-03-03T00:19:58.973 | 2023-03-03T09:41:59.550 | null | null | 20,868,503 | [
"unity3d",
"fbx",
"azure-remote-rendering"
] |
75,622,049 | 1 | null | null | 0 | 20 | I have an EditText (`@+id/quantityNumber`) and a Button (`@+id/addToCartButton`) view next to each other in my layout. The EditText is a quantity field and the Button takes the value entered in the quantity field and executes a method within it's onClickListener. I'm trying to pass the value of the EditText view's "tex... | Android: How to pass EditText's text property to DataBinding expression of another view | CC BY-SA 4.0 | null | 2023-03-03T00:13:47.530 | 2023-03-04T16:09:17.137 | 2023-03-03T22:23:14.120 | 6,334,632 | 6,334,632 | [
"android",
"data-binding",
"android-databinding"
] |
75,622,085 | 2 | null | 75,622,043 | 1 | null | `a` is a class variable currently; there is only one instance of it. (It should be accessed as `A.a`.)
This does not make much sense; it should be an instance variable instead (so each instance of the class has a separate `dict`). You can set it in the `__init__` method.
```
class A:
def __init__(self):
sel... | null | CC BY-SA 4.0 | null | 2023-03-03T00:20:24.233 | 2023-03-03T00:20:24.233 | null | null | 9,513,184 | null |
75,622,077 | 1 | null | null | 0 | 28 | I have a list of URLs that opens pdf file reports online. I could already download these pdfs and save them in my dropbox. However, instead of a general name, I would like to save them considering variables such as Year and the first 2 letters of the Filer Name. My database has more than 1000 observations.
I saved the ... | How to scrape and download pdfs from a list of URLs and name them based on other categorical variables? | CC BY-SA 4.0 | null | 2023-03-03T00:18:52.593 | 2023-03-03T03:21:03.317 | 2023-03-03T00:28:58.030 | 14,112,659 | 14,112,659 | [
"r",
"web-scraping",
"rvest"
] |
75,622,088 | 2 | null | 75,622,043 | 4 | null | you defined `A.a` as a class attribute, which is explicitly shared between the class, all subclasses and their instances. You can check `a.__dict__` and found no such key as `'a'`. To correctly create a attribute, you should set it in `__init__` function.
```
class A:
def __init__(self):
self.a = {'a': 1}
`... | null | CC BY-SA 4.0 | null | 2023-03-03T00:20:41.017 | 2023-03-03T00:20:41.017 | null | null | 6,202,760 | null |
75,622,086 | 2 | null | 75,621,112 | 0 | null | I assuming the problem to your code, your image source is not specify clearly, here's
the example code below :
How to insert images from another folder or from another web site :
```
<img src="/images/stickman.gif" alt="Stickman" width="24" height="39">
<img src="https://www.w3schools.com/images/lamp.jpg" alt="Lamp" wi... | null | CC BY-SA 4.0 | null | 2023-03-03T00:20:27.610 | 2023-03-03T00:20:27.610 | null | null | 19,371,700 | null |
75,622,087 | 2 | null | 75,621,958 | 0 | null | I recommend using the `LET()` to produce the `SUMIFS()` and a `IF()` to test if the installment is complete and when it is not use `MOD()`. I will use "tp" to represent "Total Paid".
documentation on [LET()](https://support.microsoft.com/en-us/office/let-function-34842dd8-b92b-4d3f-b325-b8b8f9908999). The formula becom... | null | CC BY-SA 4.0 | null | 2023-03-03T00:20:35.373 | 2023-03-03T19:08:57.057 | 2023-03-03T19:08:57.057 | 5,091,720 | 5,091,720 | null |
75,622,092 | 2 | null | 75,622,074 | 5 | null | The lines
```
tail = new_node;
tail->next = new_node;
```
means
```
new_node->next = new_node;
tail = new_node;
```
Therefore, no link from `head` to `new_node` is created.
The lines should be:
```
tail->next = new_node;
tail = new_node;
```
to first create link to the... | null | CC BY-SA 4.0 | null | 2023-03-03T00:21:27.570 | 2023-03-03T00:21:27.570 | null | null | 4,062,354 | null |
75,622,093 | 1 | 75,622,209 | null | 1 | 39 | I can't understand the following behavior of my program. As far as I know, template argument deduction allows only 1) array- or function-to-pointer conversions or 2) const conversions. The program below should result in a compilation error. However, if I pass two c-style strings of equal length, it compiles. What is ca... | Passing c-style string to a template function | CC BY-SA 4.0 | null | 2023-03-03T00:22:12.747 | 2023-03-03T00:44:13.000 | null | null | 19,532,971 | [
"c++",
"arrays",
"string",
"templates",
"template-argument-deduction"
] |
75,622,094 | 2 | null | 75,622,023 | 0 | null | The conversion from the old style `dataTask` goes from:
```
URLSession.shared.dataTask(with: request) { (data, response, error) in
if let data {
// do stuff with the non-optional data
else if let error {
}
}.resume()
```
to:
```
let (data, response) = try await URLSession.shared.data(for: request)
... | null | CC BY-SA 4.0 | null | 2023-03-03T00:22:25.863 | 2023-03-03T19:51:22.670 | 2023-03-03T19:51:22.670 | 20,287,183 | 20,287,183 | null |
75,622,095 | 1 | null | null | -1 | 11 | Uploading content to wordpress would fail, claiming it does not have write permissions for the folder 'uploads'
I set perms to 777 for the uploads folder.
It successfully uploads the file.
Checking with ls -al shows the file is owned by apache with group apache.
This is incorrect and it should be owned by nginx with gr... | Wordpress saves files as apache user instead of nginx | CC BY-SA 4.0 | null | 2023-03-03T00:22:57.233 | 2023-03-03T00:22:57.233 | null | null | 5,045,844 | [
"wordpress",
"nginx",
"centos"
] |
75,622,080 | 1 | null | null | -1 | 24 | I have two files, trades and depth. Trades is an OHLCV in one second increments, and depth is a file showing the number of orders at each price level. Depth is in milliseconds, and is an enormous file.
What I want to do is add two columns to each row of the trades file, L{X}ask and L{X}bid, where X is the number of lev... | Python searching through a dataframe or list is too slow - what can I do to speed it up? Any other languages that would perform better? | CC BY-SA 4.0 | null | 2023-03-03T00:19:26.477 | 2023-03-03T00:19:26.477 | null | null | 19,171,062 | [
"python",
"pandas"
] |
75,622,090 | 1 | null | null | 0 | 39 | I'm using Matplotlib in a Jupyter notebook to create some plot data for semiconductor devices I'm measuring. However, when I run inline commands, the generated plot doesn't have any markers with values on the Y axis (i.e. there are no values for Ig on the y axis, as shown in the plot).
This is my current plot:
[](https... | Matplotlib not depicting values on y-axis | CC BY-SA 4.0 | null | 2023-03-03T00:20:56.510 | 2023-03-03T18:24:07.817 | 2023-03-03T18:24:07.817 | 20,078,696 | 21,322,561 | [
"python",
"matplotlib",
"jupyter"
] |
75,622,091 | 2 | null | 75,622,043 | 0 | null | ```
>>> import copy
>>> class A:
... a = {'a': 1}
...
```
This causes `A` to contain an attribute `a` which is that dictionary.
```
>>> a = A()
>>> a.a
{'a': 1}
```
an attribute in an instance can find the corresponding attribute of the class, if the instance doesn't directly store one with the same name, but it... | null | CC BY-SA 4.0 | null | 2023-03-03T00:21:18.907 | 2023-03-03T00:21:18.907 | null | null | 523,612 | null |
75,622,100 | 2 | null | 75,622,001 | 0 | null | I found the solution, I was pretty close I just realized that I made a typo in one of my arguments.
Anyway, here's the working code:
```
final message = utf8.encode(timestamp + method + path);
final key = utf8.encode('secret');
final hmac = Hmac(sha256, key);
final signature = hmac.convert(message).toString();
``... | null | CC BY-SA 4.0 | null | 2023-03-03T00:23:53.567 | 2023-03-03T00:23:53.567 | null | null | 8,721,205 | null |
75,622,075 | 1 | null | null | -2 | 28 | i have trouble where i need to use where like orwhere like function in collection but it didn't work
here's my query
```
$data = Unit::with([
// mendapatkan relasi skpd
'program.kegiatan.subKegiatan.rekening' => fn ($query) => $query->where('level', 9),
'penyedia',
'swake... | how to use like function in collection | CC BY-SA 4.0 | null | 2023-03-03T00:18:38.783 | 2023-03-03T01:38:57.237 | null | null | 14,093,472 | [
"laravel",
"controller",
"sql-like"
] |
75,622,103 | 2 | null | 68,489,616 | 0 | null | I have tried to use 'pt-br' like this:
```
import 'moment/locale/pt-br'
import moment from 'moment'
```
and it was not working in a React project with Typescript.
I got to fix it this way:
```
import 'moment/dist/locale/pt-br'
```
Just add the folder 'dist' while you're importing the language.
I hope everything works... | null | CC BY-SA 4.0 | null | 2023-03-03T00:24:43.497 | 2023-03-03T00:24:43.497 | null | null | 21,322,603 | null |
75,622,101 | 2 | null | 75,602,909 | 0 | null | I came up with the following approach (see sequence diagram below) for using refresh tokens in web app .
This approach should work for both SPAs and server side rendered web apps using 'authorization code grant' and 'authorization code grant with PKCE' respectively.
The refresh token in the Cookie is encrypted using th... | null | CC BY-SA 4.0 | null | 2023-03-03T00:24:27.993 | 2023-03-03T00:24:27.993 | null | null | 824,434 | null |
75,622,104 | 2 | null | 75,606,218 | 1 | null | Alrighty, so I found the EXACT answer I was looking for (though I'm sure there are some variations like the one above by Mr. Polywhirl).
```
package module4labs;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;
public clas... | null | CC BY-SA 4.0 | null | 2023-03-03T00:24:45.777 | 2023-03-03T00:24:45.777 | null | null | 21,313,034 | null |
75,622,105 | 2 | null | 58,508,350 | 0 | null | Move the code for `retrievePeripheral` to the `centralManagerDidUpdateState(_ central: CBCentralManager)` callback to ensure that the BLE stack is on before attempting to retrieve peripherals.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:24:47.653 | 2023-03-03T00:24:47.653 | null | null | 342,646 | null |
75,622,097 | 1 | null | null | 0 | 39 | I have added an x-correlation-id in request header inside the restTemplate function shown below. I want to write a unit test to verify if x-correlation-id is attached to the request header. I am not a Java developer and this is a one off task. Please help me unit test the part where "x-correlation-id" - X_CORRELATION_I... | Unit Test a function inside @Configuration - SpringBoot | CC BY-SA 4.0 | null | 2023-03-03T00:23:21.527 | 2023-03-04T04:27:49.307 | 2023-03-04T04:27:49.307 | 10,544,101 | 10,544,101 | [
"java",
"spring-boot",
"unit-testing",
"junit"
] |
75,622,106 | 2 | null | 75,584,422 | 0 | null | For this you will have to use [Expo AV documentation for MixWithOthers api](https://docs.expo.dev/versions/latest/sdk/audio/#mixwithothers).
For example you can add the following configuration before the video component.
```
import { Video, InterruptionModeAndroid, InterruptionModeIOS, Audio } from 'expo-av';
Audio.se... | null | CC BY-SA 4.0 | null | 2023-03-03T00:25:01.373 | 2023-03-03T00:25:01.373 | null | null | 8,892,202 | null |
75,622,102 | 2 | null | 75,614,583 | 0 | null | > how to change to date type
[ALTER](https://www.postgresql.org/docs/current/sql-altertable.html) your "string type" column to the appropriate type `date` first:
```
ALTER TABLE tbl ALTER COLUMN birthday TYPE date USING to_date(birthday, 'DD.MM.YYYY');
```
> and how to find the age at the time of the request, without ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:24:36.363 | 2023-03-03T00:24:36.363 | null | null | 939,860 | null |
75,622,096 | 1 | null | null | 0 | 19 | My project is setup in the image like so:
[https://i.stack.imgur.com/0aXBX.png](https://i.stack.imgur.com/0aXBX.png)
I'm primarily concerned with files found in "buyback" and "login"
For login, I have a login.component.html file. The code allows the user to input a nickname into a box. I wish to take the data that is i... | How to take data that is user inputted into html file and send it to a different component.ts file? | CC BY-SA 4.0 | null | 2023-03-03T00:23:05.487 | 2023-03-03T00:24:12.163 | 2023-03-03T00:24:12.163 | 19,216,846 | 19,216,846 | [
"javascript",
"html",
"typescript",
"routes",
"components"
] |
75,622,108 | 1 | null | null | 0 | 7 | I'm using WooCommerce. When I try to apply a coupon on the "view cart" page, is works just fine, but if I try to apply the same coupon on the checkout page, it does not apply the discount. The ajax refresh seems to happen, but the price does not change. I need to get coupons working on the checkout page like they do on... | Woocommerce. My coupon's work in the Cart page, but will not apply on checkout page | CC BY-SA 4.0 | null | 2023-03-03T00:25:10.730 | 2023-03-03T00:25:10.730 | null | null | 21,096,132 | [
"woocommerce",
"checkout"
] |
75,622,089 | 2 | null | 75,412,199 | 0 | null | My take on the problem:
The website the string is taken from is displaying the Hebrew text as LTR text, the text uses glyphs from the Alphabetic Presentation block that has been reassigned to the Saurashtra block. So we have an overall LTR orientation with a sequence and a mixed script word where Hebrew characters are ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:20:47.460 | 2023-03-03T03:24:36.813 | 2023-03-03T03:24:36.813 | 4,872,676 | 4,872,676 | null |
75,622,110 | 2 | null | 73,616,754 | 0 | null | Yes, it only makes sense to connect to the custom endpoint to do read-only sorts of things. For the writer instance, the idea is that you don't know ahead of time if an instance will be a writer or a reader. (Because an automatic or manual failover could happen at any time.) So the writer instance can't really be prohi... | null | CC BY-SA 4.0 | null | 2023-03-03T00:25:26.307 | 2023-03-03T00:25:26.307 | null | null | 1,325,443 | null |
75,622,115 | 2 | null | 46,342,763 | 0 | null | 5 years later and I'm having the same issue with Firefox 110.0.1 (64-bit) for macOS, w/ only the `@react-devtools` extension.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:26:45.923 | 2023-03-03T00:26:45.923 | null | null | 1,159,167 | null |
75,622,114 | 2 | null | 75,622,023 | 0 | null | In the working version URLSession passes the data object into your closure when it calls it:
```
URLSession.shared.dataTask(with: request) { (data, response, error) in
```
which is why you can access it. This is evident in the method signature
```
func dataTask(
with url: URL,
completionHandler: @escaping @Se... | null | CC BY-SA 4.0 | null | 2023-03-03T00:26:24.140 | 2023-03-03T00:26:24.140 | null | null | 3,218,273 | null |
75,622,112 | 1 | null | null | 0 | 40 | I have below query where when count of rows on everyday <10 the job errors out because of divide by zero
```
CREATE TEMP TABLE aa AS
(
SELECT 1 / (CASE WHEN ( SELECT Count( 1 ) FROM validation ) > (10000000)::INT4 or ( SELECT Count( 1 ) FROM validation ) < (10)::INT4 THEN 1 ELSE 0 END )) ;
```
I want in the same if w... | SQL Query with case issue | CC BY-SA 4.0 | null | 2023-03-03T00:26:00.040 | 2023-03-03T00:57:26.940 | 2023-03-03T00:57:26.940 | 174,777 | 19,971,961 | [
"sql",
"amazon-web-services",
"amazon-redshift"
] |
75,622,117 | 2 | null | 67,681,416 | 0 | null | You can try Modifier.requiredHeight properties. Here is the example.
```
Box(
modifier = Modifier
.clip(RoundedCornerShape(20.dp))
.height(40.dp)
.background(Color.LightGray)
) {
TextField(value = inputMsg, modifier = Modifier.requiredHeigh... | null | CC BY-SA 4.0 | null | 2023-03-03T00:27:10.923 | 2023-03-03T00:27:10.923 | null | null | 11,473,490 | null |
75,622,113 | 1 | null | null | 0 | 19 | I'm trying to scrape some image off a website, and most of them save correctly. However I've got one image that is being saved without a file extension and the file properties say it's size is 0 bytes and size on disk is 288kb. It loads a blank image if I manually add the .jpg extension and try to open it.
I also am tr... | Python Beautiful Soup Sometimes saves images without file extension and a file size of 0 bytes | CC BY-SA 4.0 | null | 2023-03-03T00:26:03.310 | 2023-03-03T01:25:44.813 | null | null | 7,596,135 | [
"python",
"image",
"save"
] |
75,622,121 | 2 | null | 75,616,758 | 0 | null | If the above method doesn't work try to use:
```
cy.visit(Cypress.config().baseUrl)
```
OR
```
cy.visit(Cypress.config('baseUrl'))
```
To eliminate the "integrity" SHA edit the config below:
```
{
"experimentalSourceRewriting": true
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:27:50.893 | 2023-03-03T14:55:37.983 | 2023-03-03T14:55:37.983 | 14,603,518 | 14,603,518 | null |
75,622,099 | 1 | null | null | -1 | 8 | I have a react frontend I have to deploy for a project I am building. I am having an issue where it does not deploy at all and it gives me an exit code of 9. I looked into exit code 9 and I know what it said, but I am not sure how to fix the issue. I am not sure if it is because I am trying to call a monorepo or if the... | Deployment issue with npm start (React frontend) | CC BY-SA 4.0 | null | 2023-03-03T00:23:49.950 | 2023-03-03T00:23:49.950 | null | null | 19,124,184 | [
"node.js",
"reactjs",
"npm",
"package.json"
] |
75,622,118 | 1 | null | null | 0 | 7 | I am building an embedded app in Shopify using the shopify-app-react template.
In there is an authenticatedFetch hook that looks like below (logging added by me)
```
export function useAuthenticatedFetch() {
const app = useAppBridge();
const fetchFunction = authenticatedFetch(app);
return async (uri, options) =>... | shopify-app-bridge AuthenticatedFetch not returning response headers for reauthorization | CC BY-SA 4.0 | null | 2023-03-03T00:27:41.200 | 2023-03-03T01:17:38.847 | null | null | 1,422,679 | [
"node.js",
"shopify-app",
"shopify-app-bridge"
] |
75,622,107 | 1 | null | null | 1 | 37 | I have a .csv file with all values in double quotes, all values separated by a comma and space, and column headers are in the first row:
```
"Exam date", "Last name", "First name", "DOB", "MRN"
"01/15/2019", "JOHN", "DOE", "01/15/2000", "0000000000"
"01/15/2020", "JANE", "ROE", "01/15/2010", "1111111111"
"01/15/2021", ... | CSV with double quotes and separated by comma and space | CC BY-SA 4.0 | null | 2023-03-03T00:25:09.950 | 2023-03-04T18:09:36.363 | 2023-03-03T03:26:33.693 | 14,005,384 | 14,005,384 | [
"python",
"pandas",
"dataframe",
"csv"
] |
75,622,123 | 1 | null | null | 0 | 13 | I am trying to run parallel processes where at the start of each process, it would print start, and then print done when that process finishes. For example
```
def process(i):
print('starting process number %s' %i)
... do something ...
print('finished process number %s' %i)
return
```
As you may e... | How to delete specific print statments in Jupyter Interactive Terminal | CC BY-SA 4.0 | null | 2023-03-03T00:28:40.113 | 2023-03-03T00:28:40.113 | null | null | 13,067,104 | [
"python",
"python-3.x",
"parallel-processing",
"jupyter"
] |
75,622,127 | 2 | null | 74,368,975 | 0 | null | ```
public async drawTheSignature() {
module2Page = new Module2Page();
const rect = await module2Page.signatureField.boundingBox();
await module2Page.signatureField.scrollIntoViewIfNeeded();
await page.mouse.move(rect.x + 10, rect.y + 10);
await page.mouse.down();
await page.mouse.move(rect.x + 100, rect.y + 100);
awai... | null | CC BY-SA 4.0 | null | 2023-03-03T00:29:13.790 | 2023-03-03T00:29:13.790 | null | null | 21,322,596 | null |
75,622,120 | 2 | null | 75,621,583 | 1 | null | Here's a way to do it:
```
def get_color_order(color):
color_order = {
"['W']": 1,
"['U']": 2,
"['B']": 3,
"['R']": 4,
"['G']": 5,
"[]": 7,
}
return color_order.get(color, 6)
def get_type_order(card_type):
if card_type == "Land":
return 1
else... | null | CC BY-SA 4.0 | null | 2023-03-03T00:27:45.717 | 2023-03-03T00:27:45.717 | null | null | 18,135,454 | null |
75,622,128 | 1 | null | null | -1 | 11 | I have a task where I have a txt file containing this:
```
4-1
9-3
```
I need to open that txt file, calculate the result and write the answer in another file and it should look like this.
```
4-1=3
9-3=6
```
This was my code but it keeps saying `x(1) str not callable`
Calculator:
```
def sum (a,b):
return a+b
d... | How do I calculate ints from 1 file and print them in another? | CC BY-SA 4.0 | null | 2023-03-03T00:29:23.653 | 2023-03-03T00:31:48.253 | 2023-03-03T00:31:48.253 | 523,612 | 21,322,611 | [
"python",
"python-3.x"
] |
75,622,129 | 2 | null | 75,619,473 | 0 | null | This happens when you have enabled `Do not allow concurrent builds`, unless Jenkins sees the run as an unique run it will not queue additional Jobs. In order to trick Jenkins you need to change a parameter each time you trigger the Job, If you use the same parameters it will think it's the same Job. So introduce a new ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:29:26.520 | 2023-03-03T00:29:26.520 | null | null | 2,627,018 | null |
75,622,119 | 1 | null | null | 0 | 19 | I am making an application with rails.
and I am writing tests with rspec.I got an error.
I'll show you the error first.
```
Failure/Error: expect(response).to redirect_to user_path(user)
Expected response to be a redirect to <http://www.example.com/users/1> but was a redirect to <http://www.example.com/log... | Processing before user authentication in RSpec | CC BY-SA 4.0 | null | 2023-03-03T00:27:42.640 | 2023-03-03T00:27:42.640 | null | null | 21,227,015 | [
"ruby-on-rails",
"ruby",
"model-view-controller",
"rspec"
] |
75,622,133 | 1 | 75,622,337 | null | 0 | 21 | This should be simple, but I can't seem to find an answer. Finally got it routing right, but now I can't get the row data from the table as an array. How do I do that?
Route:
```
Route::get('/view/{ability}', [AbilityController::class, 'show'])->name('view');
```
Ability controller has this:
```
public function sho... | Laravel 8: In Controller - how to get values array from model object | CC BY-SA 4.0 | null | 2023-03-03T00:30:17.747 | 2023-03-03T01:11:07.487 | null | null | 1,228,463 | [
"laravel",
"eloquent",
"laravel-8"
] |
75,622,125 | 2 | null | 75,620,908 | 1 | null | You're not going to find a ready-to-go solution for something so specific, and you have a few different questions in here. You probably want to think about as a data structure, and then build a UI that works with that structure and displays the appropriate stuff.
For example, you could do something like this:
```
data... | null | CC BY-SA 4.0 | null | 2023-03-03T00:28:46.523 | 2023-03-03T00:28:46.523 | null | null | 13,598,222 | null |
75,622,130 | 1 | null | null | 0 | 12 | I have a task widget that I want to convert to a Event widget to place on a TableCalender. However when I try to create a toEvent function I am unable due to the package not importing the Event class. Why is Event not imported?
```
import 'package:flutter/material.dart';
import 'package:table_calendar/table_calendar.da... | Flutter: Why is the import for table_calendar not importing the event class? | CC BY-SA 4.0 | null | 2023-03-03T00:29:48.463 | 2023-03-03T00:29:48.463 | null | null | 15,762,866 | [
"android",
"flutter",
"mobile",
"table-calendar"
] |
75,622,134 | 1 | null | null | 0 | 11 | Im new at react and firebase, I set a const triggerResetEmail for the reset button. After my verification, the trigger is indeed awakened, but the command updateEmail(auth.currentUser, "user@example.com") has no effect at all. auth.currentUser also exists, because I used sendPasswordResetEmail(auth, email) in another f... | reset email adress by using updateEmail(auth.currentUser, "user@example.com"); reactJS/firebase | CC BY-SA 4.0 | null | 2023-03-03T00:30:33.480 | 2023-03-03T00:34:23.670 | 2023-03-03T00:34:23.670 | 20,475,045 | 20,475,045 | [
"reactjs",
"firebase"
] |
75,622,137 | 2 | null | 9,034,952 | 0 | null | In my case, I was getting the following error:
```
LOG: could not open directory "pg_tblspc/ui6h1i/PG_13_202007201/pgsql_tmp": Not a directory
LOG: could not open directory "pg_tblspc/ui6h1i/PG_13_202007201": Not a directory
```
It turned out that `/var/lib/postgresql/data/pg_tblspc/ui6h1i` was actually an executabl... | null | CC BY-SA 4.0 | null | 2023-03-03T00:30:55.863 | 2023-03-03T00:30:55.863 | null | null | 2,543,424 | null |
75,622,136 | 2 | null | 75,576,189 | 0 | null | Attached my code on snack.
[https://snack.expo.dev/@jonasbeck.dev/retrieving-value-from-usestate-hook](https://snack.expo.dev/@jonasbeck.dev/retrieving-value-from-usestate-hook)
I guess the reason of issue would be Card component refer state value as constant with initial value.
Let me try to explain with a similar cas... | null | CC BY-SA 4.0 | null | 2023-03-03T00:30:52.370 | 2023-03-03T17:40:21.477 | 2023-03-03T17:40:21.477 | 21,194,253 | 21,194,253 | null |
75,622,131 | 2 | null | 75,619,724 | 0 | null | Each new "row" consists of 3 original rows, and each original row now split by `\f (form feed \x0C \014)` instead of by `\n`, which you can restore back as `\n` once you're done processing.
It works just as well with `gawk` in `UTF-8` mode, since it absolutely doesn't matter that
> ```
ORS = "\371\37\1\301"
```
is not... | null | CC BY-SA 4.0 | null | 2023-03-03T00:30:02.083 | 2023-03-03T00:40:49.137 | 2023-03-03T00:40:49.137 | 14,672,114 | 14,672,114 | null |
75,622,124 | 1 | null | null | -4 | 23 | The program I have made it having difficulties on last part of my work from zybooks I just someone to look at more issue and help me fix it. here is a my code.
```
def print_menu(inputStr):
print('MENU\nc - Number of non-whitespace characters\nw - Number of words\nf - Fix capitalization\nr - Replace punctuation\ns... | Need to make a authoring assistant program | CC BY-SA 4.0 | null | 2023-03-03T00:28:45.050 | 2023-03-03T00:28:45.050 | null | null | 21,316,337 | [
"python"
] |
75,622,140 | 2 | null | 75,621,716 | -3 | null | Get the OS with JavaScript and change the file path.
```
<html>
<body>
<img id="img">
<script>
let fileName;
const ua = window.navigator.userAgent;
console.log(ua);
if (ua.indexOf("Windows NT") != -1) {
console.log("Windows");
fileName = "file:///D:/neko.png"
}
else if (ua.ind... | null | CC BY-SA 4.0 | null | 2023-03-03T00:31:06.357 | 2023-03-03T00:31:06.357 | null | null | 20,074,043 | null |
75,622,145 | 2 | null | 75,619,348 | -1 | null | Apparently, my debugger was enabled to "Pause on exceptions" which was causing it to throw the error. All I had to do was turn that off.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:32:17.983 | 2023-03-03T00:32:17.983 | null | null | 18,900,470 | null |
75,622,138 | 1 | null | null | 1 | 30 | I would like to access BigQuery datasets and tables from Jupyter notebooks on google cloud in order to search the tables with a specified column name.
I am using the code at [BigQuery select __TABLES__ from all tables within project?](https://stackoverflow.com/questions/43457651/bigquery-select-tables-from-all-tables-w... | error of accessing bigQuery tables from jupyter notebook on google cloud | CC BY-SA 4.0 | null | 2023-03-03T00:30:59.333 | 2023-03-03T00:39:15.080 | 2023-03-03T00:39:15.080 | 3,448,011 | 3,448,011 | [
"google-cloud-platform",
"google-bigquery"
] |
75,622,144 | 2 | null | 29,901,131 | 0 | null | Using [https://drf-spectacular.readthedocs.io/en/latest/](https://drf-spectacular.readthedocs.io/en/latest/) would be the right choice for this use case now. this is well maintained and support OpenAPI 3.0+. also it is now suggested by django-rest-framework itself.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:32:17.600 | 2023-03-03T00:32:17.600 | null | null | 3,544,931 | null |
75,622,141 | 1 | 75,622,191 | null | -1 | 27 | I know this question has been posted here before and I've gone through them but none of those solutions seem to resolve my problem.
TestID has been defined at the top and is strictly a numeric value, it's basically the primary key IMO. I've tried different ways to reference it in the Power Query but nothing seems to wo... | Issues with Power Query in Excel, "we cannot apply operator & to types Text and Number" | CC BY-SA 4.0 | null | 2023-03-03T00:31:11.313 | 2023-03-03T00:45:15.710 | 2023-03-03T00:43:37.010 | 21,322,626 | 21,322,626 | [
"powerquery"
] |
75,622,146 | 1 | null | null | 0 | 8 | I have a Windows app that uses FTD2XX from FTDI. Some while ago I had to rebuild the laptop SSD; I got the app to build on the new laptop but when it is run it exits right away. I ran "Dependencies" and it shows that FTD2XX.DLL cannot be found. After downloading and installing the CDM drivers from FTDI the problem pers... | Why is my Windows app not finding FTD2XX.DLL | CC BY-SA 4.0 | null | 2023-03-03T00:33:29.220 | 2023-03-03T00:33:29.220 | null | null | 2,178,154 | [
"windows",
"installation",
"dll",
"ftdi"
] |
75,622,149 | 2 | null | 75,620,955 | 0 | null | For android, you can try to add
```
android:windowSoftInputMode="adjustPan"
```
to the `activity` node of your `AndroidManifest.xml`
| null | CC BY-SA 4.0 | null | 2023-03-03T00:34:56.897 | 2023-03-03T01:17:01.290 | 2023-03-03T01:17:01.290 | 749,657 | 749,657 | null |
75,622,122 | 1 | null | null | 0 | 6 | While submitting the flink job on the data proc cluster getting java.util.ServiceConfigurationError: io.grpc.NameResolverProvider: Provider io.grpc.netty.shaded.io.grpc.netty.UdsNameResolverProvider not a subtype exception. We are trying to read the data from pubsub. Please find the code which we written.
```
import ja... | java.util.ServiceConfigurationError: io.grpc.NameResolverProvider: Provider io.grpc.netty.shaded.io.grpc.netty.UdsNameResolverProvider not a subtype | CC BY-SA 4.0 | null | 2023-03-03T00:28:21.243 | 2023-03-03T00:28:21.243 | null | null | 20,458,006 | [
"java",
"apache-flink",
"flink-streaming",
"flink-cep",
"flink-batch"
] |
75,622,151 | 1 | null | null | 0 | 25 | > Hi, i am beginner in laravel i got a project where users can do bitcoin trading, When i am hitting mydomain/admin it's working fine but when user is registering his account and getting redirected to user dashboard 500 internal server error is throwing. after alot of research i found a route which is passing to dashbo... | How can i find route link in laravel | CC BY-SA 4.0 | null | 2023-03-03T00:35:22.247 | 2023-03-03T01:06:11.087 | null | null | 21,322,637 | [
"php",
"laravel",
"routes"
] |
75,622,143 | 2 | null | 75,621,701 | 2 | null | [The example you provided](https://www.c-sharpcorner.com/article/embed-google-maps-in-net-desktop-application/) uses `WinFormsBrowserView` which only existed in earlier versions (1.x) of DotNetBrowser.
For current versions use the example provided in their documentation. You need to create an IEngine instance, use that... | null | CC BY-SA 4.0 | null | 2023-03-03T00:31:30.670 | 2023-03-03T00:39:44.947 | 2023-03-03T00:39:44.947 | 20,997,501 | 20,997,501 | null |
75,622,139 | 1 | null | null | 1 | 10 | Given the following js where I set the url...
```
function fn() {
var root = 'https://google.com';
karate.log('root value is: ', root);
additionalconfig = {
root: root
}
return additionalconfig;
}
```
and the following feature file...
```
Feature:
Background:
* callonce read('seturl.j... | url is resetting during scenario outline run | CC BY-SA 4.0 | null | 2023-03-03T00:31:01.947 | 2023-03-03T00:31:01.947 | null | null | 2,048,207 | [
"karate"
] |
75,622,150 | 2 | null | 75,621,083 | 0 | null | I suggest you check out [Serverlessland](https://serverlessland.com/) and specifically the [Workflows Collection](https://serverlessland.com/workflows). Lots of awesome examples! You can filter by service to show [examples that involve API Gateway](https://serverlessland.com/workflows?services=apigw). Here's [a specifi... | null | CC BY-SA 4.0 | null | 2023-03-03T00:35:13.823 | 2023-03-03T00:35:13.823 | null | null | 20,586,135 | null |
75,622,147 | 2 | null | 72,086,118 | 0 | null | The `.csv` files that you get from Amazon Textract are a post-processed version of the raw API output. You can use the API output to select what you need based on some criteria that you define.
Let's take the first page of your samples as an example. We use the `amazon-textract-textractor` [package](https://github.com/... | null | CC BY-SA 4.0 | null | 2023-03-03T00:34:34.330 | 2023-03-03T00:34:34.330 | null | null | 7,018,582 | null |
75,622,153 | 2 | null | 75,619,720 | 0 | null | Your code adds items but never adds sublists. You can use your index tracking to get subscripts of the original list instead of adding individual items.
```
numbers = [-2, -2, -2, -5, -5, 6, 6, -2, -2, 5, 5, -2, -2, 4, 4, -2, -2]
start = 0
ranges = []
for i,n in enumerate(numbers):
if i > start and n == numbers[... | null | CC BY-SA 4.0 | null | 2023-03-03T00:35:44.267 | 2023-03-03T00:35:44.267 | null | null | 5,237,560 | null |
75,622,156 | 1 | null | null | -1 | 16 | In Blazor WASM I want to display list of items in just two row, lets say the list contain 15 item, I want each row show 5 items and with next/previous button you can access to the other 5 items
[](https://i.stack.imgur.com/RFWOc.jpg)
| Display list of items in just two row | CC BY-SA 4.0 | null | 2023-03-03T00:35:56.967 | 2023-03-03T07:27:32.997 | null | null | 1,890,313 | [
"blazor",
"bootstrap-5",
"blazor-webassembly",
"mudblazor"
] |
75,622,148 | 1 | null | null | 0 | 10 | I've just started learning React with Next JS 13. When I tried to run `npm run dev` on clean Next app created by using `npx create-next-app@latest --experimental-app` I get an error:
```
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this r... | Next JS 13: Missing script: "dev" on fresh Next JS 13 App | CC BY-SA 4.0 | null | 2023-03-03T00:34:42.620 | 2023-03-03T00:34:42.620 | null | null | 19,019,306 | [
"node.js",
"typescript",
"npm",
"next.js"
] |
75,622,157 | 1 | null | null | 1 | 8 | ```
class SHM():
"Class for simple harmonic motion"
# special method to initialise attributes
def __init__(self, k, m):
self.k = k
self.m = m
# special method to display it
def __repr__(self):
return "{} + {}i".format(self.m,self.k)
# method for ang... | Problems with my definition and syntax error | CC BY-SA 4.0 | null | 2023-03-03T00:36:09.497 | 2023-03-03T00:39:16.117 | 2023-03-03T00:39:16.117 | 523,612 | 20,618,730 | [
"python",
"syntax-error"
] |
75,622,152 | 1 | null | null | 0 | 6 | I am having trouble referencing the logo asset in my Next.js website using the theme-ui library. The logo component is defined as follows:
```
import { jsx, Image } from 'theme-ui';
import { Link } from '@/components/link';
export default function Logo({ src, ...rest }) {
return (
<Link
path="/"
sx={... | Issue with logo asset not being referenced in website using Next.js and theme-ui | CC BY-SA 4.0 | null | 2023-03-03T00:35:33.710 | 2023-03-03T00:35:33.710 | null | null | 6,669,342 | [
"reactjs",
"typescript",
"next.js"
] |
75,622,155 | 1 | null | null | -1 | 40 | I have an application that writes the data in a pdf file. The pdf file exists in wwwRoot directory inside the application. This is how I am accessing the pdf file:
```
string blankPDF = Path.Combine(_environment.WebRootPath, "BlankPDFFiles");
string filledPDF = Path.Combine(_environment.WebRootPath, "FilledPDFFiles... | UnauthorizedAccessException: Access to the path 'D:\inetpub\wwwroot\ denied | CC BY-SA 4.0 | null | 2023-03-03T00:35:50.917 | 2023-03-03T05:29:25.727 | null | null | 5,775,000 | [
"c#",
"asp.net-mvc",
"asp.net-core"
] |
75,622,160 | 2 | null | 75,620,507 | 0 | null | After trying what Micky said, i moved the images folder inside the public folder. and after changing the path like this:
```
export const dataJson = [
{
id: 1,
name: "forest_walk_dabiediedu_winter.jpg",
src: "../images/forest_walk_dabiediedu_winter.jpg",
explanation: "dabie is one of the craziest creatu... | null | CC BY-SA 4.0 | null | 2023-03-03T00:36:31.233 | 2023-03-03T00:36:31.233 | null | null | 17,252,215 | null |
75,622,158 | 1 | null | null | 0 | 13 | i have a firebase function that is set up like this:
```
exports.funcName = functions.https.onCall(async (data, context) => {
//some logic here
return {'test':'blah'}
})
```
i call this function from as api in some cases. and here is how i call it from python :
```
url = 'https://us-central1-oceanfriends-71bae.cloudfu... | firebase function call fails sometimes with jsondecode error | CC BY-SA 4.0 | null | 2023-03-03T00:36:15.600 | 2023-03-03T00:36:15.600 | null | null | 6,776,441 | [
"python",
"firebase",
"google-cloud-functions"
] |
75,622,165 | 2 | null | 71,606,331 | 0 | null | Try this code:
```
fld1 ; Push 1 onto the FPU stack.
fld x ; Push x onto the FPU stack.
fyl2x ; Compute log base 2 of x and store the result on top of the FPU stack.
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:37:42.813 | 2023-03-03T00:37:42.813 | null | null | 5,454,878 | null |
75,622,161 | 2 | null | 41,158,070 | 1 | null | Author of the roles system here. I'm aware of no ideas that will move us forward in this direction. The problem is that we'd need to check a delicate property in order to ensure that the coercion is safe. Specifically, we want to be able to coerce e.g. `HList [Age, Int, String]` to `HList [Int, Age, String]` but not to... | null | CC BY-SA 4.0 | null | 2023-03-03T00:36:41.260 | 2023-03-03T00:36:41.260 | null | null | 1,062,395 | null |
75,622,164 | 2 | null | 75,606,313 | 0 | null | Is the "chart" control (what is it exactly?) a child of the CView window as well? Then try setting the `WS_CLIPSIBLINGS` style for the chart control but NOT for the check-box. If the style does not appear in the Properties Editor you can add it in the resource script, using Visual Studio's Text Editor (will ask you to ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:37:20.013 | 2023-03-03T00:37:20.013 | null | null | 1,372,577 | null |
75,622,154 | 2 | null | 55,523,479 | 0 | null | Check out the solution in the following fiddle, just make sure to resize the window bigger so that the scroll bar can appear.
[Solution at this fiddle, Click Here](http://jsfiddle.net/mankhanr/39uopbLa/19/)
The header would still fit its size even if its size grown bigger, no need to specify its size, the content div w... | null | CC BY-SA 4.0 | null | 2023-03-03T00:35:49.347 | 2023-03-03T00:42:49.627 | 2023-03-03T00:42:49.627 | 7,683,436 | 7,683,436 | null |
75,622,159 | 2 | null | 75,602,866 | 0 | null | The issue may have been a version compatibility issue of `google-api-python-client` library with other libraries like
- - -
You just need to make sure that the version of your `google-api-python-client` supports the versions you have installed to its dependency libraries.
You can view the full change log of `google-ap... | null | CC BY-SA 4.0 | null | 2023-03-03T00:36:19.840 | 2023-03-03T00:36:19.840 | null | null | 20,345,563 | null |
75,622,163 | 1 | null | null | -1 | 32 | ```
#This program plays rock, paper, scissors between 2 players
print("Let's play Rock, Paper, Scissors.")
print(" ")
player1 = input("Player 1, Enter your choice: ")
player2 = input("Player 2, Enter your choice: ")
# use if/else statements with nested structures to play
# rock < paper and rock > scissors
# paper ... | I am trying to implement a while loop into a game of rock, paper scissors, but the while loop is not working | CC BY-SA 4.0 | null | 2023-03-03T00:37:06.513 | 2023-03-03T02:28:05.380 | null | null | 19,997,958 | [
"python"
] |
75,622,167 | 1 | 75,622,243 | null | 0 | 19 | I am converting PRESTO sql to databricks sql. Would you please help me converting the following Subquery.
```
PSF_PIVOT
AS (SELECT A.PATIENT_ID, A.REPORT_ID, A.VISIT_DATE, A.DISEASE_GROUP,
MAP_AGG(A.NAME, A.VALUE) AS KV
FROM PSF_BEST A
GROUP BY A.PATIENT_ID, A.REPORT_ID, A.VISIT_DATE, A.DISEASE_GRO... | PRESTO SQL conversion into Databricks SQL | CC BY-SA 4.0 | null | 2023-03-03T00:37:54.940 | 2023-03-03T00:57:12.847 | null | null | 9,983,584 | [
"sql",
"pivot-table",
"databricks",
"aggregate-functions",
"presto"
] |
75,622,166 | 1 | null | null | 0 | 30 | I'm getting an error for the indexedDB I'm trying to make. "Uncaught DOMException: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found." It says it's not found but I believe I correctly created the index a couple lines before.
p.s. - I'm learning as a I go so bare with me I'm not as knowled... | Error found in console for indexedDB. Assistance needed | CC BY-SA 4.0 | null | 2023-03-03T00:37:51.310 | 2023-03-03T23:11:40.790 | null | null | 21,322,618 | [
"javascript",
"html",
"database",
"indexing",
"indexeddb"
] |
75,622,171 | 2 | null | 75,621,750 | 0 | null | It is because your `isOptionEqualToValue` is saying value will always be one of the options.
You can add `freeSolo` prop, which says the value can be `string` or one of your options. It will fix the warning. You can find more about `freeSolo` over [here](https://mui.com/material-ui/react-autocomplete/#free-solo)
| null | CC BY-SA 4.0 | null | 2023-03-03T00:38:07.600 | 2023-03-03T00:38:07.600 | null | null | 8,730,140 | null |
75,622,169 | 1 | null | null | 0 | 10 | My application has a kafka topic with a single partition (kafka 2.4.0). There is a single group id with multiple subscribers (multiple AWS EC2 instances) that read from it. There was a recent effort that imported about three million records into our system, resulting in millions of messages being sent to the topic and ... | Kafka group id offset wasn't maintain after rebalancing | CC BY-SA 4.0 | null | 2023-03-03T00:38:00.563 | 2023-03-03T00:38:00.563 | null | null | 19,385,090 | [
"apache-kafka",
"offset"
] |
75,622,172 | 1 | null | null | 0 | 39 | I have a column that has a number saved as string.
How can I convert this into int64 or any other number format? I have tried CAST but it gives me an error "Bad int64 value: 1.99" Its because of decimal point I am getting an error. How can I get around this.
[](https://i.stack.imgur.com/6Wbkv.png)
| CAST STRING as INT64 | CC BY-SA 4.0 | null | 2023-03-03T00:38:21.583 | 2023-03-03T07:46:40.813 | 2023-03-03T07:46:40.813 | 20,345,563 | 17,131,915 | [
"sql",
"google-bigquery"
] |
75,622,170 | 1 | null | null | 1 | 40 | Recently I am facing issue on my portfolio URL such that on the first reload (maybe after webservices are idle) all my fetch data calls are unsucessful.
It starts working when I hit refresh after the error has occured. I assume backend is not responding quite fast but this is causing issue on the website since there is... | React JS on first render fails to fetch data and does not returns response ok (200-299) | CC BY-SA 4.0 | null | 2023-03-03T00:38:02.903 | 2023-03-04T06:23:53.137 | null | null | 10,338,785 | [
"javascript",
"reactjs"
] |
75,622,135 | 1 | null | null | 0 | 9 | I have a table with column named "coordinates" of type Geometry, I am trying to get only the data from that column using @Query. But I am getting the following error
I guess the Geomtry data type is not mapped by hibernate.
How do I get the data from the column?
```
org.springframework.orm.jpa.JpaSystemException: No Di... | Error fetching PostGIS Geometry data from table using @Query in spring boot | CC BY-SA 4.0 | null | 2023-03-03T00:30:40.180 | 2023-03-03T00:30:40.180 | null | null | 5,359,893 | [
"postgresql",
"hibernate",
"spring-data-jpa",
"geometry",
"postgis"
] |
75,622,176 | 1 | null | null | -2 | 15 | I have just decided to migrate my websites from cloud to VPS. I backed up my files and uploaded them to the VPS account which was successful.
Then I backed up my database and uploaded that through to Manage>Operating System>Controlpanellink>Cyberpanel>databases>PHPMYADMIN>click import>select file? Upload.
The file was ... | I am looking for advise on why my database is showing errors when uploaded to PhPmyadmin | CC BY-SA 4.0 | null | 2023-03-03T00:39:39.183 | 2023-03-03T00:49:16.630 | 2023-03-03T00:49:16.630 | 740,553 | 21,322,587 | [
"python",
"mysql",
"windows",
"vps"
] |
75,622,174 | 1 | 75,622,236 | null | 1 | 31 | I have a dataframe with columns: `'Id', 'Category', 'Shop', ....., 'Brandtxsu1', 'Brandxyw2', ...`
I want to select columns: `ID`, `Category`, and start with `Brand`. I can select the columns that start with `Brand` using the following code, but how do I select `ID` and `Category`?
```
df[df.columns[pd.Series(df.column... | Select dataframe columns that starts with certain string and additional columns | CC BY-SA 4.0 | null | 2023-03-03T00:39:18.157 | 2023-03-03T02:59:42.327 | null | null | 18,086,775 | [
"python",
"pandas",
"dataframe"
] |
75,622,179 | 1 | null | null | 0 | 17 | I'm trying to gain more visibility into k8s network traffic to eventually optimize the traffic in a Multi-AZ Kubernetes cluster (AWS).
We could use [topology-aware-hints](https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/) in K8s v1.23, which tries to route the traffic from a pod to another p... | Pod-level Visibility into Inter-AZ (Cross Availability Zone) Traffic | CC BY-SA 4.0 | null | 2023-03-03T00:39:57.963 | 2023-03-03T00:48:17.280 | 2023-03-03T00:48:17.280 | 3,609,252 | 3,609,252 | [
"kubernetes",
"optimization",
"prometheus"
] |
75,622,168 | 2 | null | 75,621,859 | 1 | null | The issue is that the ruleset shown below moves the link (and it's children) above the overlay which only has a `z-index` of 99. And, as you noticed, if you don't have the anchor on top, it doesn't register the hover because the mouse event is captured by the overlay on top.
```
#imageTextGrid a.image__link {
positi... | null | CC BY-SA 4.0 | null | 2023-03-03T00:38:00.467 | 2023-03-03T11:55:11.317 | 2023-03-03T11:55:11.317 | 3,577,849 | 3,577,849 | null |
75,622,178 | 2 | null | 8,257,833 | 0 | null | As [Mohamed Hakki](https://stackoverflow.com/users/5582257/mohamed-hakki) noted, the other answer is now .
---
You can now set the target path for Bundler using:
```
bundle config set --local path vendor/bundle
```
Here we specify the path `vendor/bundle` (which in my experience seems to be the most common and “sta... | null | CC BY-SA 4.0 | null | 2023-03-03T00:39:54.530 | 2023-03-03T00:39:54.530 | null | null | 20,259,889 | null |
75,622,182 | 1 | null | null | 0 | 14 | I am running a CucumberJs test and is trying to pass a file in liquid template as input, and is trying to figure out how to get a date either in past or future from the current system date (when the test runs).
This is how I have defined in to get the current system date
```
"{{ "now" | date: "%Y%m%d" }}","{{ "now" | ... | How to get a date in past or future in reference to current date using the date function in Liquid Template? | CC BY-SA 4.0 | null | 2023-03-03T00:40:10.513 | 2023-03-03T01:09:43.253 | 2023-03-03T01:09:43.253 | 8,985,460 | 8,985,460 | [
"date",
"twilio",
"liquid-template"
] |