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,621,744 | 1 | null | null | 0 | 12 | If you see this image:

This is wall mount android audio player. This is multi channel player. in picture you will see 2 vertical channels. Each channel can be routed on either Bluetooth, AUX in or Main Device. It can switch easily. How they have achieved?
Below code Do... | Android 5.1 (API level 22) Audio Device and routing | CC BY-SA 4.0 | null | 2023-03-02T23:18:30.010 | 2023-03-03T03:01:52.013 | 2023-03-03T03:01:52.013 | 16,647,496 | 5,626,130 | [
"android",
"audio",
"android-audiomanager"
] |
75,621,745 | 2 | null | 75,620,831 | 0 | null | By default each clause applies boost = 1. As you want to have boost 2 and not 4 you would have to set boost 0 in pricing.cost_min and pricing.cost_max.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:19:02.257 | 2023-03-02T23:19:02.257 | null | null | 18,778,181 | null |
75,621,734 | 2 | null | 75,621,639 | 2 | null | You can add a prop that specifies whether or not you want the date to be chosen. Then you can conditionally render based on that prop.
The general form is just
```
if (/* some condition based on the props*/) {
return (
<> something </>
);
} else {
return (
<> something else </>
);
}
```
... | null | CC BY-SA 4.0 | null | 2023-03-02T23:17:03.207 | 2023-03-02T23:17:03.207 | null | null | 4,476,484 | null |
75,621,746 | 2 | null | 75,620,687 | 0 | null | ```
for (Pronunciation p : PDict.values()) {
for (int i = 0; i < newSet.size(); i++) {
if (p.getPhonemes().equals(newSet.get(i))) {
System.out.println(p.getWord());
break;
}
}
System.out.println();
}
```
Triple-check your bracket place... | null | CC BY-SA 4.0 | null | 2023-03-02T23:19:07.823 | 2023-03-02T23:19:07.823 | null | null | 8,409,679 | null |
75,621,739 | 1 | null | null | -1 | 26 | I'm trying to import a 500mb csv file using pandas.
when I do this:
```
import pandas as pd
df = pd.read_csv ('filename.csv')
df.head()
```
the result was:
```
Traceback (most recent call last):
File "/Users/Filename.py", line 3, in <module>
df = pd.read_csv ('/Users/Filename.csv')
File "/Users/venv/lib/pytho... | CSV import fail with pandas | CC BY-SA 4.0 | null | 2023-03-02T23:17:48.173 | 2023-03-02T23:35:26.777 | 2023-03-02T23:19:40.660 | 4,518,341 | 21,321,933 | [
"python",
"pandas",
"csv"
] |
75,621,743 | 1 | 75,621,962 | null | -1 | 43 | Apple stores Address Book Data in a local `sqlite3` databse. I want to export the name and number in a clean and consistent format for all contacts
The database is located in: `/Users/kellygold/Library/Application\ Support/AddressBook/Sources/<RANDOMSTRING>/AddressBook-v22.abcddb` where RANDOMSTRING is a generated file... | Export Contacts from Apple Address Book Database | CC BY-SA 4.0 | null | 2023-03-02T23:18:23.883 | 2023-03-04T12:55:22.057 | 2023-03-03T01:34:33.810 | 5,569,925 | 5,569,925 | [
"macos",
"sqlite",
"contacts"
] |
75,621,716 | 1 | null | null | -2 | 53 | I use a USB stick to hold all my code for a concept website I'm creating. I have an issue where all my buttons are anchored to go to a G: drive on Windows. But when I use a chromebook I have, it doesn't classify the usb as a G: drive it gets classified as a removeable media stick. So none of the buttons work proplerly.... | How do I get my code to work from a USB on all devices? | CC BY-SA 4.0 | null | 2023-03-02T23:13:35.090 | 2023-03-03T13:13:22.980 | 2023-03-03T13:13:22.980 | 21,307,806 | 21,307,806 | [
"javascript",
"html",
"windows",
"chromebook"
] |
75,621,747 | 2 | null | 72,796,681 | 0 | null | You seem to be trying to use payload-based message filtering in SNS, as opposed to attribute-based filtering. For that to work, you have to set a subscription attribute named `FilterPolicyScope` to `MessageBody`. Otherwise, this subscriptions attribute defaults to `MessageAttributes`. More info: [https://aws.amazon.com... | null | CC BY-SA 4.0 | null | 2023-03-02T23:19:08.363 | 2023-03-02T23:19:08.363 | null | null | 5,329,091 | null |
75,621,748 | 2 | null | 59,369,658 | 0 | null | It's been a while since this question was asked.
Since then a Result Cache feature has been added to Amazon Neptune that makes doing pagination with Gremlin queries a lot easier. The cache has various features including a Time To Live (TTL) option and ways to paginate over a result set. This helps both with single quer... | null | CC BY-SA 4.0 | null | 2023-03-02T23:19:19.400 | 2023-03-02T23:19:19.400 | null | null | 5,442,034 | null |
75,621,749 | 2 | null | 75,621,537 | 0 | null | This might be a different approach, but you can get all the data in json from the page fetch request. I found it in the developer tools' network tab.
[https://www.jimin.jp/news/data/2022_all.json?v=1677797490298](https://www.jimin.jp/news/data/2022_all.json?v=1677797490298)
I hope this is what you needed.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:19:27.603 | 2023-03-02T23:19:27.603 | null | null | 12,904,140 | null |
75,621,737 | 1 | null | null | 1 | 22 | I would like to save CSV strings in a Postgres table, then turn them into temporary tables for use in Grafana and everywhere else SQL is used when needed.
We are starting to extricate ourselves from both Pandas and our semi-proprietary storage system, where our Pandas dataframes are stored. There is no richness (no me... | Is there a good way to instantiate temporary tables with Postgres? | CC BY-SA 4.0 | null | 2023-03-02T23:17:41.580 | 2023-03-02T23:17:41.580 | null | null | 13,020,333 | [
"pandas",
"postgresql",
"grafana"
] |
75,621,750 | 1 | null | null | 0 | 15 | I get this message in the console when I'm trying to load data into an MUI Autocomplete.
I'm using react-hook-form and yup to validate my form
[Image with the warning](https://i.stack.imgur.com/4Held.png)
I created this [CodeSandbox](https://codesandbox.io/s/mui-autocomplete-load-data-phcped) with my example.
When I cl... | MUI: (Autocomplete) The value provided to Autocomplete is invalid | CC BY-SA 4.0 | null | 2023-03-02T23:19:39.163 | 2023-03-03T00:38:07.600 | 2023-03-02T23:29:18.087 | 12,100,493 | 12,100,493 | [
"reactjs",
"material-ui",
"autocomplete",
"react-hook-form",
"yup"
] |
75,621,754 | 2 | null | 70,844,542 | 0 | null | The date fields don't have a subfield keyword. Can you try creating the index with the date fields as it's shown in the documentation?
[https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html)
```
PUT my-index-000001
{
"mappi... | null | CC BY-SA 4.0 | null | 2023-03-02T23:20:02.947 | 2023-03-02T23:20:02.947 | null | null | 12,547,837 | null |
75,621,738 | 1 | 75,624,274 | null | 1 | 24 | I have a dataset with precomputed means and standard deviations. The values depend on three different categorical values. I would like to create two barplots to split the first categorical variable across them. The other two categorical values should be separated on the x-axis and by using different colors.
In `seaborn... | Adding custom errorbars to seaborn FacetGrid acknowledging hue and categorical x order | CC BY-SA 4.0 | null | 2023-03-02T23:17:45.720 | 2023-03-03T07:30:32.383 | 2023-03-03T00:15:31.557 | 12,046,409 | 10,106,730 | [
"python",
"matplotlib",
"seaborn",
"bar-chart"
] |
75,621,751 | 1 | 75,621,916 | null | 0 | 20 | I want to scale one column in my dataframe. However, I have different groups within my dataframe. I want to scale within a group. How would I do this? Currently, my code scaled the column in relation to all rows but again, I want this done within a group.
```
group | price
A | 10
A | 0.1
B | 1203
B | 9... | How to apply scaler module with groupby in pandas dataframe? | CC BY-SA 4.0 | null | 2023-03-02T23:19:40.773 | 2023-03-02T23:45:03.877 | 2023-03-02T23:40:54.690 | 16,262,532 | 16,262,532 | [
"python",
"pandas",
"scikit-learn"
] |
75,621,755 | 1 | null | null | 0 | 14 | How to encounter Time complexity of such kind of loops?
```
public static void main(String[] args)
{
int n = 39;
for(int i = 0; i<n; i++)
{
for(int j = 1; i<i*i; i++)
{
for(int k = 3; k<j; k = k*2)
{
}
}
}
}
```
I am thin... | For Loop Time Complexity Analysis | CC BY-SA 4.0 | null | 2023-03-02T23:20:04.187 | 2023-03-03T21:05:55.013 | 2023-03-03T21:05:55.013 | 20,172,954 | 16,819,223 | [
"java",
"time",
"dsa"
] |
75,621,753 | 2 | null | 43,853,548 | 0 | null | About soc's answer, for coders like me who want anyway to distinguish dataDir and dataLocalDir, I would refer to the following MSDN-blog link : [https://web.archive.org/web/20130810020857/http://blogs.msdn.com/b/oldnewthing/archive/2005/07/01/434647.aspx](https://web.archive.org/web/20130810020857/http://blogs.msdn.com... | null | CC BY-SA 4.0 | null | 2023-03-02T23:19:59.453 | 2023-03-02T23:19:59.453 | null | null | 20,226,120 | null |
75,621,752 | 2 | null | 19,729,376 | 0 | null | I'm unfamiliar with `nose.tools` but it seems like it's at least working enough to start the trace and breakpoint for you, although I think the way you would typically do this in Python (in 2023 at least) would be to import like this
```
import pdb; pdb.set_trace()
```
directly in your code wherever you feel like init... | null | CC BY-SA 4.0 | null | 2023-03-02T23:19:53.467 | 2023-03-03T12:38:02.423 | 2023-03-03T12:38:02.423 | 5,843,596 | 5,843,596 | null |
75,621,761 | 2 | null | 72,723,424 | 0 | null | Yes this behavior is very anoying. The issue is not with the selection or the subsequent cut/copy, but with the paste action, which deliverers the "/n" new line formatting to the code editor. An option in VScode to remove the "/n" of pasted content that was selected via tripple-click (whole line selection) would be v... | null | CC BY-SA 4.0 | null | 2023-03-02T23:20:50.687 | 2023-03-02T23:23:01.813 | 2023-03-02T23:23:01.813 | 15,441,968 | 15,441,968 | null |
75,621,762 | 1 | null | null | 0 | 12 | So I downloaded Unreal's Code from github. I have already read a lot of path tracers (example: Blender's Cycles).
I'm really interested in finding out what makes Lumen real time. (I know the basic differences between a Path Tracer and a Ray Tracer - What I want is Lumen's folder path
example: C://User/Epic/Unreal/Lumen... | Unreal's Lumen File Path (Source Code Path) | CC BY-SA 4.0 | null | 2023-03-02T23:21:13.333 | 2023-03-03T18:18:35.473 | 2023-03-03T18:18:35.473 | 7,655,232 | 20,638,643 | [
"directory",
"path",
"lumen",
"unreal-engine4"
] |
75,621,760 | 2 | null | 75,616,605 | 0 | null | Sorry to jump so fast. Figured out, we have to use the following endpoint to delete
```
curl -v -X PUT "http://localhost:1080/mockserver/clear?type=expectations" -d '{
"path": "/view2/id"
}'
```
| null | CC BY-SA 4.0 | null | 2023-03-02T23:20:38.963 | 2023-03-02T23:20:38.963 | null | null | 1,196,170 | null |
75,621,763 | 2 | null | 75,615,579 | 0 | null | A basic AppsScript loop
```
function writeFormulas() {
var ss = SpreadsheetApp.getActive();
var sheet = ss.getSheets()[0];
var lastCol = sheet.getLastColumn();
var numEmployees = sheet.getLastRow() - 2;
for(var i = 4; i<= lastCol; i+=4){
sheet.getRange(3,i,numEmployees).setFormulaR1C1('=R[0]C[-1]-R[0]C[-2... | null | CC BY-SA 4.0 | null | 2023-03-02T23:21:52.243 | 2023-03-02T23:21:52.243 | null | null | 18,824,727 | null |
75,621,757 | 2 | null | 75,621,733 | 3 | null | Using `dplyr` and `starts_with` to select the variables with `across`, then convert the boolean output to binary numbers by multiplying `*`.
```
library(dplyr)
df %>%
mutate(across(starts_with("Disease"), ~ .x >= 1) * 1)
Person_id City Disease_Heart_Failure Disease_Covid
1 123 New York ... | null | CC BY-SA 4.0 | null | 2023-03-02T23:20:25.657 | 2023-03-02T23:34:29.963 | 2023-03-02T23:34:29.963 | 9,462,095 | 9,462,095 | null |
75,621,764 | 1 | null | null | -1 | 10 | [NFA diagram](https://i.stack.imgur.com/7tBh5.png)
the strings accepted are aaaaa which is pretty clear. The L = (111 + 1111)* is what I am getting but I need it in regular expression or grammar
| By writing a regular expression or a grammar, describe the language accepted by the NFA | CC BY-SA 4.0 | null | 2023-03-02T23:21:57.030 | 2023-03-02T23:21:57.030 | null | null | 15,302,155 | [
"dfa",
"nfa"
] |
75,621,736 | 1 | null | null | 0 | 15 | First off, please forgive the lengthy post. It's only because I'm really at a loss on this one that I wanted to include as much as possible.
It's a simple PUT request to update the user's post. I'm getting a success message, but when I check the collection in MongoDB, nothing has changed. Let me start with the user ide... | React Native backend PUT request for UPDATE post: Granting success message, but not changing in MongoDB collection | CC BY-SA 4.0 | null | 2023-03-02T23:17:19.643 | 2023-03-02T23:17:19.643 | null | null | 9,680,212 | [
"mongodb",
"react-native",
"mongoose",
"crud",
"put"
] |
75,621,758 | 1 | null | null | 0 | 40 | My game involves collecting `Augments` and use it to modify the stats of `Snails` to create different species of `Snails`. Currently, my code structure is to have `Snail` hold a list of `Augments`. On `Start()`, it will combine all properties of `Augments` in that list in a final `Augment`. Then, any classes that uses ... | Is there a better, simpler way to implement this feature? | CC BY-SA 4.0 | null | 2023-03-02T23:20:28.523 | 2023-03-03T15:58:59.787 | 2023-03-03T15:58:59.787 | 6,584,878 | 14,774,819 | [
"unity3d",
"structure"
] |
75,621,766 | 2 | null | 68,743,905 | 0 | null | In case you don't want to use attribute-based message filtering, and switch to payload-based message filtering, you can too. You simply have to set a subscription attribute named `FilterPolicyScope` to `MessageBody`, whereas the default is `MessageAttributes`. More info: [https://aws.amazon.com/blogs/compute/introducin... | null | CC BY-SA 4.0 | null | 2023-03-02T23:22:06.460 | 2023-03-02T23:22:06.460 | null | null | 5,329,091 | null |
75,621,770 | 2 | null | 75,620,679 | -1 | null | You can directly parse "Infinity, -Infinity, Nan" to double using the following overload of parse:
```
Double.Parse(reader.GetString(), System.Globalization.CultureInfo.InvariantCulture);
```
| null | CC BY-SA 4.0 | null | 2023-03-02T23:23:23.693 | 2023-03-02T23:23:23.693 | null | null | 634,805 | null |
75,621,771 | 2 | null | 71,523,791 | 0 | null | Here's what it says in the docs - this is a relatively new section all about tuning with wait events:
[https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Reference.Waitevents.html](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Reference.Waitevents.html)
"synch/cond/sql/M... | null | CC BY-SA 4.0 | null | 2023-03-02T23:23:35.770 | 2023-03-02T23:23:35.770 | null | null | 1,325,443 | null |
75,621,767 | 2 | null | 75,621,651 | 3 | null | You could use `do.call` here, ensuring to wrap your `.x` variable in `ensym`:
```
plot_list <- map(.x = x_variables,
~ do.call(make_chart,
list(data = mtcars, x = rlang::ensym(.x), y = quote(mpg))))
```
So, for example, to plot all the generated images at once, we can do:
```
libr... | null | CC BY-SA 4.0 | null | 2023-03-02T23:22:17.067 | 2023-03-02T23:22:17.067 | null | null | 12,500,315 | null |
75,621,769 | 2 | null | 75,621,663 | 1 | null | Rebasing is a way to apply a series of commits from one branch to another by rewinding the target branch to a common ancestor with the source branch, applying the changes in the source branch one by one, and then replaying any changes that were made to the target branch since the common ancestor.
When resolving conflic... | null | CC BY-SA 4.0 | null | 2023-03-02T23:23:07.163 | 2023-03-02T23:23:07.163 | null | null | 15,424,264 | null |
75,621,768 | 2 | null | 29,719,631 | 0 | null | I ran into issues with most implementations.
While `jest.setSystemTime(new Date(date));` is attractive, in practice, it was not overriding the date in many circumstances.
Just overriding `Date.now` is OK, but I also use `new Date` throughout the codebase, as does `moment`.
Finally, I felt that a package was simply over... | null | CC BY-SA 4.0 | null | 2023-03-02T23:22:48.270 | 2023-03-02T23:34:08.617 | 2023-03-02T23:34:08.617 | 1,198,813 | 1,198,813 | null |
75,621,774 | 1 | null | null | -2 | 12 | I want to connect two computers using serial cable. how should i do that?
I tried to connect them using a serial cable i got and tried to send data from the one computer to the another using serial port monitor tool. but no data received by the another computer. After I read some articles I understand that two DTE(Data... | How can I know if my RS232 cable is straight or crossover(null modem)? | CC BY-SA 4.0 | null | 2023-03-02T23:23:43.590 | 2023-03-02T23:23:43.590 | null | null | 11,598,403 | [
"serial-port"
] |
75,621,773 | 2 | null | 75,621,399 | 3 | null | To work correctly, you have to be sure the service account that is admin of the `BigQuery` table, is also correctly assigned to the `Cloud Function`.
The `Cloud Function` should have the right to execute the needed action on your resources.
You can check that in the `Cloud Function` details tab :
[](https://i.stack.img... | null | CC BY-SA 4.0 | null | 2023-03-02T23:23:43.177 | 2023-03-02T23:32:02.970 | 2023-03-02T23:32:02.970 | 9,261,558 | 9,261,558 | null |
75,621,772 | 1 | null | null | 0 | 12 | I am just starting out with AWS. I have a root user and an IAM user. I'm trying to create an access key for my IAM user, but I can't find the security credentials tab as listed [here](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html).
[](https://i.stack.imgur.com/5Lkou.png)
[](https... | Security credentials tab not present for the user | CC BY-SA 4.0 | null | 2023-03-02T23:23:41.523 | 2023-03-03T13:51:11.660 | null | null | 5,832,689 | [
"amazon-web-services",
"amazon-s3",
"amazon-iam"
] |
75,621,778 | 2 | null | 75,611,961 | 0 | null | This is impossible. There is no link from a to which variable stored it. `magicalFunc` cannot be implemented in a sensible way.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:24:44.853 | 2023-03-02T23:24:44.853 | null | null | 3,689,450 | null |
75,621,775 | 2 | null | 66,580,168 | 0 | null | As of November 2022, you can switch to payload-based message filtering in SNS. You simply need to set a subscription attribute named `FilterPolicyScope` to `MessageBody`, whereas its default is `MessageAttributes`. More info: [https://aws.amazon.com/blogs/compute/introducing-payload-based-message-filtering-for-amazon-s... | null | CC BY-SA 4.0 | null | 2023-03-02T23:24:09.753 | 2023-03-02T23:24:09.753 | null | null | 5,329,091 | null |
75,621,779 | 2 | null | 75,611,135 | 0 | null | I found the solution! My mistake was that I had the transformation matrix and sampleCount constant buffers bound to the same register and so the sample count was probably getting set very high accidentally. I just changed the register of the sampleCount and it works now
| null | CC BY-SA 4.0 | null | 2023-03-02T23:25:08.383 | 2023-03-02T23:25:08.383 | null | null | 17,979,209 | null |
75,621,765 | 1 | null | null | 0 | 5 | I'm not asking for help on debugging this particular error, but more for a general answer for Is it possible to use nbextension in custom images for SageMaker Studio Notebooks, and how?
I fail on [step 2](https://github.com/ipython-contrib/jupyter_contrib_nbextensions#2-install-javascript-and-css-files) of the Install... | Is it possible to use nbextension in custom images for SageMaker Studio Notebooks, and how? | CC BY-SA 4.0 | null | 2023-03-02T23:22:03.463 | 2023-03-02T23:22:03.463 | null | null | 9,754,418 | [
"python",
"jupyter",
"conda",
"amazon-sagemaker-studio"
] |
75,621,780 | 2 | null | 67,963,371 | 0 | null | The solution I found for loading a local `.env` file and getting variables:
```
$env = parse_ini_file('.env');
$header = $env["HEADER"];
```
It works for my `.env` file that looks like this:
```
HEADER="Location: /profile"
```
| null | CC BY-SA 4.0 | null | 2023-03-02T23:25:17.893 | 2023-03-02T23:25:17.893 | null | null | 15,268,676 | null |
75,621,782 | 2 | null | 75,621,693 | 2 | null | Try:
```
df = pd.concat(
[
df,
df.pop("features").apply(
lambda x: pd.Series({k: v for d in x for k, v in d.items()})
),
],
axis=1,
)
print(df)
```
Prints:
```
id city destination latitude longitude
0 100 Rio 2 NaN NaN
1 110 Sao Paulo... | null | CC BY-SA 4.0 | null | 2023-03-02T23:25:32.183 | 2023-03-02T23:25:32.183 | null | null | 10,035,985 | null |
75,621,777 | 1 | null | null | 0 | 18 | Why in the following function, when I pass more initial data set the loss increases? I was expecting the loss function to reach zero faster when more data is present to train with.
```
import { sequential, layers, losses, train, tensor1d, metrics, Tensor } from "@tensorflow/tfjs-node-gpu";
async function getPrediction... | Why Tensorflow's loss is increased in the presence of more training data | CC BY-SA 4.0 | null | 2023-03-02T23:24:40.000 | 2023-03-02T23:24:40.000 | null | null | 142,191 | [
"node.js",
"tensorflow",
"tensorflow.js"
] |
75,621,776 | 1 | null | null | 0 | 8 | I'm refactoring a large project to use AutoRoute that has many pages with the same name (just in different directories). Do you have any suggestions on circumventing this without renaming all the classes? Maybe there's a way to separate the router into multiple files (like PageGroup1Router, PageGroup2Router, etc.)
I ... | AutoRoute (Flutter) -- namespacing widgets w/ same name | CC BY-SA 4.0 | null | 2023-03-02T23:24:31.197 | 2023-03-02T23:24:31.197 | null | null | 7,214,332 | [
"flutter",
"dart"
] |
75,621,787 | 1 | null | null | 0 | 28 | i have a big spreadsheet with hundreds of cells and every cell contains a formula. I would like these formulas to be returned as string. For example, if a cell contains this formula
countif(A1:50,A1) and this returns a value of 5. What i want is instead of getting the result of the formula is to get the formula as a st... | convert a formula into string in excel | CC BY-SA 4.0 | null | 2023-03-02T23:25:45.203 | 2023-03-02T23:25:45.203 | null | null | 15,055,481 | [
"excel",
"excel-formula"
] |
75,621,784 | 1 | 75,622,487 | null | 1 | 37 | I have a bunch of systems, each system has two servers: database1 server(db1), and database2 server(db2). I created two text files db1_list and db2_list as below:
db1_list:
```
db1-env1: 10.8
db1-env2: 10.7
db1-env3: 10.7
db1-env4: 10.8
...
db1-envX: 10.6.2
```
db2_list:
```
db2-env1: 10.8
db2-env3: 10.7
db2-env2: 10.... | How to merge two files in Ansible | CC BY-SA 4.0 | null | 2023-03-02T23:25:37.793 | 2023-03-03T04:29:00.950 | null | null | 9,742,558 | [
"ansible"
] |
75,621,785 | 2 | null | 75,620,141 | 0 | null | for columns I would prefer to use css-grid and use grid-template-columns
example :
```
<div id="container">
<div id="col-1" class="col">1</div>
<div id="col-2" class="col">2</div>
<div id="col-3" class="col">3</div>
<div id="col-4" class="col">4</div>
</div>
```
```
#container {
border: 1px solid red;
... | null | CC BY-SA 4.0 | null | 2023-03-02T23:25:39.960 | 2023-03-02T23:25:39.960 | null | null | 14,581,090 | null |
75,621,790 | 2 | null | 75,621,352 | 0 | null | One basic merge sort logic looks like this.
```
sort first half
sort second half
copy first half to temporary space.
merge (temporary space, second half) back into where first half was
```
The reason why you need to copy data somewhere else is that the merged data would otherwise be overwriting the first half before y... | null | CC BY-SA 4.0 | null | 2023-03-02T23:26:16.907 | 2023-03-02T23:26:16.907 | null | null | 585,411 | null |
75,621,788 | 2 | null | 75,618,726 | 1 | null | The [$sample](https://www.mongodb.com/docs/manual/reference/operator/aggregation/sample/) size of 3 at the start of the [pipeline](https://www.mongodb.com/docs/manual/core/aggregation-pipeline/#aggregation-pipeline) will take a random sample of 3 of the 12 users. This could be any combination of course. E.g. , , , . Si... | null | CC BY-SA 4.0 | null | 2023-03-02T23:25:59.460 | 2023-03-03T03:54:11.303 | 2023-03-03T03:54:11.303 | 17,557,598 | 17,557,598 | null |
75,621,793 | 2 | null | 75,610,825 | 0 | null | Solved: I had to install all of the dependencies directly in my workspace. After opening a terminal in the root folder of my project (Where I run npm start) and npm installing everything it worked fine.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:27:10.987 | 2023-03-02T23:27:10.987 | null | null | 21,315,725 | null |
75,621,795 | 1 | null | null | 0 | 8 | Does the API for flutter support gradient polylines/polygons?
I've looked around the documents and forums but they're mainly related to the javascript API
| Gradiant Polys in Here-API Flutter? | CC BY-SA 4.0 | null | 2023-03-02T23:27:11.287 | 2023-03-02T23:27:11.287 | null | null | 21,090,879 | [
"flutter",
"here-api"
] |
75,621,781 | 2 | null | 75,597,205 | 0 | null | Actually it is not clear what `Secret secret = Internal_API_For_Secrets();` does.
But you could register your own properties on application startup in `ConfigurableEnvironment`
# First option
You can achieve it the following way:
Implement your own `EnvironmentPostProcessor`:
```
public class MongoPropertiesEnvironm... | null | CC BY-SA 4.0 | null | 2023-03-02T23:25:24.110 | 2023-03-03T14:13:33.700 | 2023-03-03T14:13:33.700 | 14,183,092 | 14,183,092 | null |
75,621,796 | 1 | null | null | 0 | 18 | I'd like to use Autohotkey to determine if the clipboard contains a file.
I can view text contents of the clipboard with`msgbox %clipboard%`, and if I have a file copied in the clipboard then `%clipboard%` returns the file-path, but it's not possible only from this to tell the difference between a text string that look... | Autohotkey - how can I detect if the clipboard contains a file? | CC BY-SA 4.0 | null | 2023-03-02T23:27:18.437 | 2023-03-03T10:08:55.410 | null | null | 211,764 | [
"autohotkey"
] |
75,621,794 | 1 | null | null | -3 | 18 | I'm trying to access the statics from the websites such as [The World Bank](https://datahelpdesk.worldbank.org/knowledgebase/articles/889392-about-the-indicators-api-documentation) and [arXiv](https://info.arxiv.org/help/api/index.html) with python3. The website provided the documentation of APIs, but they were basical... | What's the difference between urllib and API? | CC BY-SA 4.0 | null | 2023-03-02T23:27:11.020 | 2023-03-02T23:27:11.020 | null | null | 11,141,816 | [
"python",
"api",
"web",
"urllib"
] |
75,621,799 | 2 | null | 75,621,653 | 0 | null | If you just want to separate the SQL context from the in-memory context, you can use `AsEnumerable()` to convert the `IQueryable` query to an `IEnumerable` query:
```
entities.Books.AsEnumerable().Where(b => IsGoodBook(b.title)).Count()
```
It will have to load every book into memory, but might do it more efficiently... | null | CC BY-SA 4.0 | null | 2023-03-02T23:27:29.460 | 2023-03-02T23:27:29.460 | null | null | 1,081,897 | null |
75,621,792 | 1 | null | null | -1 | 29 | I created a Windows c# script that generates html files, then builds a webpage with links to those html files (reportName contains the path and name of the final webpage). The script is executed from a webpage. After the reportName webpage is created, I want to open the new reportName webpage from the script. At the en... | Opening webpage from inside a script | CC BY-SA 4.0 | null | 2023-03-02T23:26:58.487 | 2023-03-03T14:52:10.600 | null | null | 14,650,248 | [
"c#",
"html"
] |
75,621,801 | 2 | null | 75,621,772 | 1 | null | There used to be a service called . This has recently been renamed as .
This is to . ([Link](https://us-east-1.console.aws.amazon.com/iamv2/home))
Therefore, you are .
It's not your fault... it's due to AWS giving different services the same name.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:27:38.470 | 2023-03-02T23:27:38.470 | null | null | 174,777 | null |
75,621,797 | 1 | null | null | 0 | 8 | I am using flink sql to read data from kafka. One field in kafka message is array, example
```
{
"description": "som description",
"owner": {
"type": "some",
"id": "5ff4eb4fed9b4b1288d7993944a8ca23"
},
"someArray": [
{
"type": "foo",
"id": "c31a2d10134146e29726fb87246b68d0"
},
{
... | Flink sql : how to find the size of json array | CC BY-SA 4.0 | null | 2023-03-02T23:27:21.360 | 2023-03-03T09:34:47.363 | null | null | 3,822,232 | [
"apache-flink",
"flink-sql"
] |
75,621,786 | 2 | null | 75,621,630 | 1 | null | There's a few problems here. I will go over them one at a time.
---
The first problem you're running into is that the closure you assign to `get_general_command` mutably borrows `command_str`. To make this work, the compiler will generate a closure value and store the mutable borrow in it. This means that `comman... | null | CC BY-SA 4.0 | null | 2023-03-02T23:25:43.463 | 2023-03-02T23:43:56.550 | 2023-03-02T23:43:56.550 | 501,250 | 501,250 | null |
75,621,800 | 1 | 75,621,832 | null | 0 | 12 | I'm reviewing some code that exports a function from a Node.js module. The code looks like this
```
const { getClient } = require('...');
let authClient;
function getAuthClient() {
if (!authClient) {
authClient = getClient();
}
return client;
}
module.exports = getAuthClient;
```
From what I understan... | Module scope and variable garbage collection in Node.js? | CC BY-SA 4.0 | null | 2023-03-02T23:27:31.703 | 2023-03-02T23:32:21.657 | null | null | 18,457,296 | [
"javascript",
"node.js",
"scope"
] |
75,621,798 | 1 | null | null | 0 | 10 | I have a cluster with a client developed in go that needs to write records to an Elastic search index.
It will access the Elastic search server (only one server) through a service. I'm not using any operator.
The client is running in a pod and ElasticSearch in a different pod that is part of a different service, called... | Elasticsearch go client, in Kubernetes (EKS), cannot resolve service name | CC BY-SA 4.0 | null | 2023-03-02T23:27:26.547 | 2023-03-03T00:44:57.697 | 2023-03-03T00:44:57.697 | 2,906,820 | 2,906,820 | [
"elasticsearch",
"kubernetes",
"dns",
"amazon-eks"
] |
75,621,807 | 1 | null | null | 1 | 20 | I like to obtain authorization from the user logged by oauth.
For example if a write a code that describe all instances, the awsuser A could describe only instance A (accoirding to policy in aws for awsuser A). And maybe, the awsuser B could describe more (according his policy in AWS, he has more permissions).
I don't ... | How to obtain a credential from user logged from oauth to, for example, describe instance? | CC BY-SA 4.0 | null | 2023-03-02T23:28:19.237 | 2023-03-03T19:16:32.127 | 2023-03-03T08:43:15.773 | 13,860 | 8,478,654 | [
"amazon-web-services",
"authentication",
"go",
"oauth",
"authorization"
] |
75,621,804 | 2 | null | 75,621,706 | 0 | null | The steps should be as follows:
1. Clone the PostgreSQL GitHub repo
2. Checkout to the desired branch (if needed)
3. Use ./configure --prefix=/usr/local/pgsql with optional flags to generate the make files
4. Run make to compile the files
5. Make a directory using sudo mkdir /usr/local/pgsql at the same location speci... | null | CC BY-SA 4.0 | null | 2023-03-02T23:28:15.553 | 2023-03-02T23:28:15.553 | null | null | 19,164,563 | null |
75,621,802 | 1 | null | null | 0 | 10 | I play around with AJAX-calls on my local server to try different things.
One is, as you can guess, modifying the url without page refresh.
So far I have following.
```
$('.links').click(function (e) {
var targetUrl = $(this).attr('href');
e.preventDefault();
//window.history.pushState("","",targ... | Modify url via ajax, problem with window.history.pushState() | CC BY-SA 4.0 | null | 2023-03-02T23:27:46.413 | 2023-03-02T23:27:46.413 | null | null | 17,108,013 | [
"jquery",
"ajax",
"page-refresh"
] |
75,621,810 | 2 | null | 73,772,547 | 0 | null | It seems like the root problem is our system's lack of memory and all solutions just refresh the procedure of rendering the layout. You just have to run it on a system with more RAM.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:28:57.927 | 2023-03-02T23:28:57.927 | null | null | 9,938,652 | null |
75,621,806 | 1 | null | null | 0 | 30 | I have the following controller `POST` method that creates a new meeting.
```
@PostMapping("/meetings")
ResponseEntity<Object> createMeeting(@RequestBody MeetingDTO meetingDTO) {
meetingService.createMeeting(meetingDTO);
return ResponseEntity.ok("created");
}
```
This is the service logic where I update my `M... | Spring MVC - returning DTO in response body for POST Request? | CC BY-SA 4.0 | null | 2023-03-02T23:28:16.917 | 2023-03-03T04:45:38.983 | null | null | 12,268,910 | [
"java",
"spring",
"rest",
"http",
"dto"
] |
75,621,812 | 1 | 75,622,362 | null | 0 | 63 | ```
-- create a table
CREATE TABLE Jobs
(
JobNo int,
Entered DATE,
Linked int,
Status varchar(255)
);
-- insert some values
INSERT INTO Jobs
VALUES
(12345,'20211229',11135,'New'),
(12345,'20211230',11135,'Cancelled'),
(12346,'20221230',NULL,'New'),
(12346,'20230101',NULL,'Cancelled'),
(123... | Case Expression in Group Clause - ELSE "Don't Group" | CC BY-SA 4.0 | null | 2023-03-02T23:29:22.623 | 2023-03-03T05:03:12.463 | 2023-03-03T05:03:12.463 | 13,302 | 21,322,346 | [
"sql",
"sql-server"
] |
75,621,813 | 1 | null | null | 0 | 25 | I have noticed that some people use `*` to turn something into a list. I initially only knew of putting `list(x)` around the object, but doing `*x` also seems to work. Are they equivalent?
For example, both `*Counter(list).values()` and `list(Counter(list).values())` work fine
| Whats the difference between * and list() in Python? | CC BY-SA 4.0 | null | 2023-03-02T23:29:38.867 | 2023-03-02T23:42:01.110 | 2023-03-02T23:34:36.147 | 364,696 | 20,454,562 | [
"python",
"python-3.x",
"list",
"function",
"pep448"
] |
75,621,808 | 1 | null | null | 0 | 12 | Given these EF 6 classes:
```
Public Class ClientSurvey
Public Property ClientSurveyID As Integer
Public Property SurveyTemplateID As Integer
Public Overridable Property SurveyTemplate As SurveyTemplate
End Class
Public Class SurveyTemplate
Public Property SurveyTemplateID As Integer
Public Pr... | How to set up one-to-zero-or-one relationship | CC BY-SA 4.0 | null | 2023-03-02T23:28:37.477 | 2023-03-04T06:10:17.887 | null | null | 4,509,091 | [
"entity-framework",
"entity-framework-6"
] |
75,621,791 | 2 | null | 75,621,637 | 0 | null | You can include a listener to the videoController.
I am using `StatefulWidget` with nullable bool to control the icon/state.
```
class BasicOverlayWidget extends StatefulWidget {
final VideoPlayerController? controller;
const BasicOverlayWidget({
Key? key,
required this.controller,
}) : super(key: key);
... | null | CC BY-SA 4.0 | null | 2023-03-02T23:26:53.490 | 2023-03-03T17:35:02.603 | 2023-03-03T17:35:02.603 | 10,157,127 | 10,157,127 | null |
75,621,816 | 2 | null | 72,953,239 | 1 | null | I encountered a similar bug in my program.
Use `extern "C" {int A;}` to solve it.
BTW you declared `A` as an int which is a double word (32 bits).
And later you declared `EXTERN A:QWORD` which is 64 bits.
At the end, you used `MOV EAX, DWORD PTR A`.
A more straightforward approach is to declare `A` as a `DWORD` and rem... | null | CC BY-SA 4.0 | null | 2023-03-02T23:30:01.023 | 2023-03-02T23:43:23.650 | 2023-03-02T23:43:23.650 | 5,454,878 | 5,454,878 | null |
75,621,818 | 1 | null | null | 0 | 29 | Recently the host provider updated php to 8.0 and in my post the next fatal error appears:
> Uncaught TypeError: count(): Argument #1 ($value) must be of type
Countable|array, bool given in line 78,
This is the line 78 code:
```
if(count(get_field('news_detail_related_posts', $post->ID)) > 0): ?
```
Any options to sol... | Error Php 8.0 Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given | CC BY-SA 4.0 | null | 2023-03-02T23:30:19.077 | 2023-03-02T23:32:07.587 | 2023-03-02T23:32:07.587 | 5,947,043 | 19,677,106 | [
"php",
"advanced-custom-fields"
] |
75,621,820 | 1 | null | null | 0 | 8 | I am using a lot of data to train an LSTM network, how can I make it use the GPU to speed up the training process?
| How can I use a GPU with Brain.js in Node.js? | CC BY-SA 4.0 | null | 2023-03-02T23:30:56.247 | 2023-03-02T23:30:56.247 | null | null | 20,224,489 | [
"node.js",
"gpu",
"lstm",
"brain.js"
] |
75,621,809 | 1 | 75,621,827 | null | 0 | 38 | Im writing a simple array. And how i think, do it correct in terms of leaks. But valgrind doesnt think so. Why? That phantom leak just because i do more malloc then free?
Code:
```
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CAPACITY_INCREACE(arr) ((int)(arr->capacity * 1.5f))
#define CAPACITY_D... | Phantom leaks with valgrind in C | CC BY-SA 4.0 | null | 2023-03-02T23:28:49.970 | 2023-03-02T23:31:42.097 | null | null | 16,448,087 | [
"c",
"malloc",
"valgrind"
] |
75,621,823 | 2 | null | 62,220,078 | 0 | null | It's not really a regex solution, but if you are using python, you can do:
```
def is_dictionary(string) -> bool:
if type(eval(string)) is dict:
return True
else:
return False
```
| null | CC BY-SA 4.0 | null | 2023-03-02T23:31:13.663 | 2023-03-02T23:31:13.663 | null | null | 13,787,979 | null |
75,621,815 | 1 | null | null | 0 | 33 | I am trying to communicate between my react and spring boot app. I looked at a tone of tutorials to communicate and followed em to the letter. I tried to add cross-origin on the controller, added the proxy to `package.json` and tried both fetch and Axios. I always get the same error
Error
> Access to fetch at 'http://l... | Cores policy stops me from communicating react with springboot | CC BY-SA 4.0 | null | 2023-03-02T23:30:00.317 | 2023-03-02T23:40:23.103 | 2023-03-02T23:40:23.103 | 125,981 | 19,875,619 | [
"reactjs",
"spring-boot",
"debugging"
] |
75,621,824 | 1 | null | null | 0 | 6 | QGIS extraction from Vector Tiles?
I am new to QGIS, so sorry if this is a stupid question.
I am using vector tiles to load a Basemap of a country, with all streets, buildings, waters,...
I am able to use the "Identify Features" Tool to select a building in the map. In the "Identify Results" pane I am able to select "c... | QGIS extract from Vector Tiles | CC BY-SA 4.0 | null | 2023-03-02T23:31:21.397 | 2023-03-02T23:31:21.397 | null | null | 2,000,379 | [
"qgis"
] |
75,621,805 | 1 | 75,621,991 | null | 0 | 20 | When I click on the checkbox, the task should move to the completed section and be saved there even if the page is reloaded. But is not working.
```
import { useState,useEffect } from "react";
import Completed from "../completed/Completed";
import TodoList from "../todoList/TodoList";
import "./additems.css";
const Ad... | When I click on the checkbox, the task should move to the completed section and be saved there even if the page is reloaded. But is not working | CC BY-SA 4.0 | null | 2023-03-02T23:28:16.307 | 2023-03-02T23:59:57.860 | null | null | 18,764,028 | [
"javascript",
"reactjs",
"react-hooks",
"local-storage",
"todo"
] |
75,621,817 | 1 | null | null | 0 | 19 | I have updated my gemfile for rails 6 but everytime I bundle install I get the following error
```
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
default_value_for was resolved to 3.1.0, which depends on
activerecord (>= 3.2.0, < 6.0)
rails (~> 6.0, >= 6.0.4) was resolve... | unable to update rails 5.2.3 to 6 | CC BY-SA 4.0 | null | 2023-03-02T23:30:16.457 | 2023-03-03T06:35:21.450 | null | null | 2,656,747 | [
"ruby-on-rails",
"ruby"
] |
75,621,819 | 1 | null | null | 1 | 39 | Before I describe my particular problem, please check my understanding of how Python works with DLLs in general.
I have an existing PySide6 application. When I call `QCoreApplication::exec()`, a Qt event loop starts running. Eventually, a signal gets emitted, and the event loop executes a slot that I define in Python.
... | How to manage python callbacks executed from a C library in a Qt/PySide6 application? | CC BY-SA 4.0 | null | 2023-03-02T23:30:50.670 | 2023-03-03T09:00:38.923 | null | null | 3,684,433 | [
"python-3.x",
"qt",
"thread-safety",
"pyside6"
] |
75,621,828 | 1 | null | null | 0 | 3 | I have a spreadsheet where job numbers are stored in the first column. The job numbers always take the format of a number followed by a letter followed by 7 numbers.
I already have validation routines to check the first digit is a number, the second digit one of the allowed letters, the remaining 7 digits are all numbe... | How to set a custom numberformat for an alphanumeric cell value? | CC BY-SA 4.0 | null | 2023-03-02T23:32:04.667 | 2023-03-02T23:32:04.667 | null | null | 21,305,223 | [
"number-formatting"
] |
75,621,822 | 1 | 75,621,899 | null | 0 | 15 | Hello I call a JSON file with the next code:
```
with open('C:/ftpfiles/itemdatasku.json') as json_file:
data = json.load(json_file)
```
What I want to do is create an exception if “list_no” doesn’t exist, or has other information then the script must close. If exists continue in the code working.
```
try:
x =... | Script to load JSON file and create a condition to end or continue with the code | CC BY-SA 4.0 | null | 2023-03-02T23:31:07.930 | 2023-03-03T00:16:42.490 | 2023-03-02T23:43:15.670 | 21,307,902 | 21,307,902 | [
"python",
"python-3.x",
"pyhook"
] |
75,621,827 | 2 | null | 75,621,809 | 2 | null | The function
```
void realloc_array(array* arr, int size)
{
int* new_arr = (int*)malloc(size * sizeof(int));
memcpy((void*)new_arr, arr->arr, arr->size * sizeof(int));
arr->arr = new_arr;
}
```
is throwing away the original buffer `arr->arr` without freeing.
Add call to `free()` to avoid memory leak.
```
v... | null | CC BY-SA 4.0 | null | 2023-03-02T23:31:42.097 | 2023-03-02T23:31:42.097 | null | null | 4,062,354 | null |
75,621,825 | 2 | null | 75,620,679 | 2 | null | There is no need for a converter. You may deserialize that JSON by setting [NumberHandling](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializeroptions.numberhandling?view=net-6.0) to `JsonNumberHandling.AllowNamedFloatingPointLiterals` and `JsonNumberHandling.AllowReadingFromString`:
```
var op... | null | CC BY-SA 4.0 | null | 2023-03-02T23:31:39.063 | 2023-03-02T23:31:39.063 | null | null | 3,744,182 | null |
75,621,832 | 2 | null | 75,621,800 | 0 | null | `getAuthClient` is exported and it still holds a reference to the `authClient` variable because it uses it so it is not garbage collected.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:32:21.657 | 2023-03-02T23:32:21.657 | null | null | 7,655,232 | null |
75,621,829 | 1 | null | null | -3 | 28 | First things first, I am not a Go engineer, however, I am willing to become one.
I have received this take home assignment, where I have to design a http client for `accounts` service.
That service is stood up as a docker container along with the databases, vault, etc.
I came up with a few go files that represent such ... | How to structure a go project that is representing a library | CC BY-SA 4.0 | null | 2023-03-02T23:32:05.460 | 2023-03-02T23:32:05.460 | null | null | 1,048,185 | [
"docker",
"go",
"docker-compose"
] |
75,621,826 | 2 | null | 75,621,653 | 0 | null | > and that materialization changes what is valid code, without changing the compile-time programming contract
`AsEnumerable` without any materialization:
```
entities.Books.AsEnumerable().Where(b => IsGoodBook(b.title)).Count()
```
Works too while materialization still will happen when `Count` is called. It seems tha... | null | CC BY-SA 4.0 | null | 2023-03-02T23:31:40.973 | 2023-03-02T23:43:10.893 | 2023-03-02T23:43:10.893 | 2,501,279 | 2,501,279 | null |
75,621,834 | 2 | null | 75,621,689 | 0 | null | The tree has a method named `identify` which can be used to identify an item and column by the x/y coordinate of the event. The treeview method `set` can be used to extract data based on the item id and the column id (if you don't pass a new value to `set`, it returns the current value).
Instead of binding to `<<Treevi... | null | CC BY-SA 4.0 | null | 2023-03-02T23:32:42.600 | 2023-03-02T23:32:42.600 | null | null | 7,432 | null |
75,621,836 | 1 | null | null | 0 | 5 | I'm using Jupyter Notebook nbextension Table of Contents (2).
Part of the contents are hidden behind the top panel.
How do I config it to make it display properly?
[](https://i.stack.imgur.com/1wiU1.png)
I tried
```
from IPython.core.display import display, HTML
display(HTML("<style>.maintoolbar { margin-top: 100px; }<... | Jupyter Notebook nbextension Table of Contents (2) hidden behind top panel | CC BY-SA 4.0 | null | 2023-03-02T23:32:58.517 | 2023-03-02T23:32:58.517 | null | null | 11,227,674 | [
"jupyter-notebook",
"jupyter-contrib-nbextensions"
] |
75,621,833 | 1 | 75,622,229 | null | 0 | 13 | I'm trying to create a unittest using Selenium Webdriver on Python. This test aims to search for a given item, search the first result, add it to the cart and check that there is one product. However, I cannot get this done. Below is my code:
```
import unittest
from selenium import webdriver
from selenium.webdriver.co... | Error on selecting the first item in unittest Python | CC BY-SA 4.0 | null | 2023-03-02T23:32:27.817 | 2023-03-03T00:47:20.893 | null | null | 14,456,487 | [
"python",
"unit-testing",
"selenium-webdriver"
] |
75,621,835 | 2 | null | 75,621,535 | 0 | null | Set the following property before sending the message out.
```
<property name="messageType" value="text/xml" scope="axis2"/>
```
Try forcing soap1.1 message with `format="soap11"` flag in your endpoint configuration. This will work with both HTTP and Address Endpoints.
```
<call>
<endpoint>
<http method="... | null | CC BY-SA 4.0 | null | 2023-03-02T23:32:56.100 | 2023-03-03T01:27:18.567 | 2023-03-03T01:27:18.567 | 2,627,018 | 2,627,018 | null |
75,621,839 | 2 | null | 75,621,838 | 0 | null | The explanation for the discrepancies is based on the adjustment for the number of parameters in the regression model ().
```
# Adjusted for k
## From model results that adjust for k
### results.mse_resid
a = np.sqrt(results.mse_resid)
### results.rsquared_adj
d = np.sqrt(1 - results.rsquared_adj)*y.std()
## From mode... | null | CC BY-SA 4.0 | null | 2023-03-02T23:33:32.240 | 2023-03-02T23:33:32.240 | null | null | 19,454,613 | null |
75,621,831 | 1 | null | null | 1 | 30 | this is my exampleHomeTemplate.vue
```
<template>
<div id="app" class="main-layout">
<router-view />
<Footer />
</div>
</template>
```
How would it be the most elegant way to make the Footer component to render in all the routes, except for the home ("/") ?
EDIT: according to the answers that I have seen..... | Conditional component rendering outside <router-view> in VueJS | CC BY-SA 4.0 | null | 2023-03-02T23:32:19.883 | 2023-03-05T06:01:36.813 | 2023-03-05T06:01:36.813 | 2,743,774 | 2,743,774 | [
"vue.js",
"vue-router"
] |
75,621,838 | 1 | null | null | 0 | 14 | I'm experiencing some discrepancies when comparing different calculations of root mean square error (RMSE). What explains these discrepancies? My guesses are (1) rounding or (2) statistic methodology (e.g., sample vs. population).
```
import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.... | Root Mean Squared Error - Calculation Discrepancies in Python | CC BY-SA 4.0 | null | 2023-03-02T23:33:32.240 | 2023-03-02T23:33:32.240 | null | null | 19,454,613 | [
"python",
"scikit-learn",
"statsmodels",
"least-squares",
"mean-square-error"
] |
75,621,811 | 1 | null | null | 0 | 5 |
We have 3 relevant test servers:
`name OS version .NET CLR`
`TS1 Win7 Pro SP1 6.1.7601.65536 4.5.51209 4.0.30319.34209`
`TS2 Wsrv2008r2 SP1 6.1.7601.65536 4.8.03761 4.0.30319.42000`
`TS3 W11 Pro (22H2) 10.0.22621.0 4.8.09032 4.0.30319.42000`
Our app-suite consists of Win-services and interactive apps. The latter are ... | Latest build of a ClickOnce WPF app refuses to activate during a local install on one particular machine | CC BY-SA 4.0 | null | 2023-03-02T23:29:01.590 | 2023-03-03T22:14:41.017 | null | null | 803,920 | [
".net",
"deployment",
"clickonce",
"windows-11"
] |
75,621,840 | 1 | null | null | 0 | 36 | So guys, after placing an order I have to make a patch of this order itself, where in the json of this patch type call I go to put things inherent to the order and the entries in it (so { order code "100", entries : [ {"price" 3.00, effQuantity 20} ] )
The effQuantity has the value that I choose before placing an order... | How set value in lambda | CC BY-SA 4.0 | null | 2023-03-02T23:33:53.163 | 2023-03-03T10:45:38.777 | 2023-03-03T10:45:38.777 | 21,218,783 | 21,218,783 | [
"java",
"lambda",
"foreach",
"stream",
"java-stream"
] |
75,621,847 | 2 | null | 47,375,393 | 0 | null | Sorted out myself. Just need to flush the stream after writing to get it working (as it was not written), and also had to cast bytes to int to see their values as they were interpreted as ASCII before.
(This was initially an edit to the original question.)
| null | CC BY-SA 4.0 | null | 2023-03-02T23:34:46.533 | 2023-03-02T23:34:46.533 | null | null | 16,907,659 | null |
75,621,845 | 2 | null | 75,620,925 | 0 | null | Similar to your other recent question, your code is inspecting the attribute found within the block , as opposed to the attribute held by a block .
You need to iterate over the objects held within the layout block (and block definitions if nested block references are desired), and test for the existence of a block o... | null | CC BY-SA 4.0 | null | 2023-03-02T23:34:22.333 | 2023-03-02T23:34:22.333 | null | null | 7,531,598 | null |
75,621,842 | 1 | 75,621,956 | null | 1 | 13 | I am trying to list open source serverless collections with the aws cli. I am on version 2.7 of the cli. The amazon docs seem to show that [opensearchserverless](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/opensearchserverless/index.html) is a valid cli command. But if I run
`aws opensearchserver... | aws: error: argument command for opensearchserverless | CC BY-SA 4.0 | null | 2023-03-02T23:33:57.613 | 2023-03-03T00:03:24.623 | null | null | 2,860,652 | [
"amazon-web-services"
] |
75,621,844 | 2 | null | 75,621,696 | 0 | null | Break the problem into smaller parts.
First, write a function to check the distance between 2 points.
```
const distance = (a, b) => {
return Math.hypot(a.x - b.x, a.y - b.y);
};
```
Then write a function to find the position of the smallest distance in a list of points, given a target point.
```
const findClosest... | null | CC BY-SA 4.0 | null | 2023-03-02T23:34:17.870 | 2023-03-02T23:45:40.350 | 2023-03-02T23:45:40.350 | 4,476,484 | 4,476,484 | null |
75,621,756 | 1 | null | null | -1 | 15 | So this is a project for my school work and now that classes are over I'm trying to fix it up to look decent and at least function as I expect it to for a portfolio piece.
Here's the HTML
```
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<link rel=... | Toggle for light/dark mode, and 'discount' generator is not working | CC BY-SA 4.0 | null | 2023-03-02T23:20:14.257 | 2023-03-02T23:20:14.257 | null | null | 21,322,358 | [
"javascript",
"function",
"debugging"
] |