Recently Active Questions
24,234,689 questions
0
votes
0
answers
3
views
Is static_cast<bool> guaranteed to send a value to 0 or 1?
I am trying to investigate an issue where a database driver expect a certain uint8_t member in a struct to contain 0 or 1.
In the code, this value is assigned via static_cast<bool>(...). I ...
2
votes
2
answers
49
views
Excel dynamic linest
I have a table (Table1) with 5 columns. Columns A, B, and C can be considered a series (three variables used to create combinations of tests); column D is the x value (pressure); column E is the y ...
0
votes
1
answer
44
views
How can I use VLOOKUP across multiple sheets in Google Sheets?
I'm trying to pull price data from a 'Pricing' tab into my 'Inventory' tab using VLOOKUP.
I want to match product IDs and return their prices, but I’m not sure how to structure the formula when the ...
0
votes
1
answer
10
views
Android Studio -- Need to read a CSV outside the /src/ folder
So, I'm doing a project for a class, and I need to open a CSV file for reading only. The rubric specifies as follows:
"Your application will read in data from text files placed in the assets ...
0
votes
0
answers
7
views
How to open component's dialog from another component in react?
I have a main component, App(). I have another component, Event(). Event has a dialog, defined in a separate file, that opens and populates the dialog from a click on a table row. In that case, the ...
591
votes
8
answers
296k
views
Is Task.Result the same as .GetAwaiter.GetResult()?
I was recently reading some code that uses a lot of async methods, but then sometimes needs to execute them synchronously. The code does:
Foo foo = GetFooAsync(...).GetAwaiter().GetResult();
Is this ...
5
votes
1
answer
274
views
Recover Pruned Worktree
I have multiple worktrees located on a network drive. Here's the general file system structure:
repos
main repo
worktree 1 (network drive)
worktree 2 (network drive)
worktree X (network drive) <-- ...
-1
votes
1
answer
42
views
How to calculate `dsr_day_number_reporting` based on workdays, excluding weekends and holidays, in SQL?
I am working on a SQL query where I need to calculate the dsr_day_number_reporting, which is a sequential day number for each workday (i.e., excluding weekends and holidays). The goal is to make sure ...
0
votes
2
answers
495
views
JWT Authentication - The Token's Kid is missing
I am trying to use my JWT token to authorise a user when accessing certain endpoints.
I am using a HS256 JWT Token,so there is no kid in the header.
Version of Nuget Packages:
System.IdentityModel....
0
votes
1
answer
22
views
AWS Java SDK v2.0: How to handle providing indexNames at runtime rather than using annotation
I have a project using DynamoDB which I'm upgrading to Java SDK v2.0
Using the new enhanced client and type mapping.
I have an index name which I need to pass to @DynamoDbSecondaryPartitionKey,
...
-1
votes
0
answers
13
views
How to fix "No active connection found!" error in VS Code for SQL?
I have been facing problems of the IDEs not getting the connections constantly for a few days. I fixed it for SQL Workbench. But somehow the error is still coming on VS Code.
Is there a way to fix it?
...
0
votes
0
answers
4
views
Pairwise T-test for Welch's F ANOVA
I need help with pairwise comparison following Welch's F test.
For your convenience, my minimal example is drawn from the example given in the R documentation.
df <- ToothGrowth
df$dose <- as....
0
votes
0
answers
6
views
Why can't I use azure/login@v2 since I am using GitHub environments?
I'm struggling with this issue.
In my GitHub workflow, I connected to Azure using a service principal. My Azure credentials are stored in my GitHub secrets at the repository level. Initially, ...
0
votes
1
answer
506
views
OneSignal push notification doesn't wake up android
I'm making a push notification service using OneSignal API, the problem I stuck at is following : Notification is being received perfectly, but it doesn't wake up my android phone. As i searched in ...
0
votes
0
answers
13
views
@Scheduled annotation unable to read values for placeholder
I recently upgraded from java 11 to 17 and Springboot 2.5.2 to 3.3.11
After upgrade, my code stopped replacing the placeholder values in all the @Scheduled annotations.
below is my code
@Configuration
...