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,639,006 | 1 | null | null | -1 | 10 | I have an `Expo` project, which I am able to debug using `react-native-debugger`. I have enabled `Network Inspect` which is logging the API calls which I am making to Backend server.
But the call to S3 images are not getting logged. I want to log these S3 calls to confirm if the app is downloading the images every time... | How to log the network calls for Image url in react-native-debugger | CC BY-SA 4.0 | null | 2023-03-04T22:15:19.157 | 2023-03-04T22:15:19.157 | null | null | 7,006,978 | [
"android",
"ios",
"react-native",
"caching",
"expo"
] |
75,639,005 | 1 | null | null | 0 | 4 | Good Afternoon everyone.
I would like to know if there is a way to print information from my Access database through another program.
Here is my situation.
I have almost finished my database and we are down to the tweaking part, but it is already online and being used. BUT, I need to print 4" x 6" labels to go on our p... | Is there a way to automate the printing from an Access database to another program? | CC BY-SA 4.0 | null | 2023-03-04T22:15:11.903 | 2023-03-04T22:15:11.903 | null | null | 16,077,505 | [
"database",
"bartender"
] |
75,639,009 | 1 | null | null | -8 | 53 | ```
//Chapter 5 Number 12 on page 299 – Celsius to Fahrenheit Table-
// Program will display a table of celsius to fahrenheit temps 0-20
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// variables
int cel;
float far;
// Output to user
cout << "Celsius to Fahrenheit T... | How do I output different numbers under same variable? | CC BY-SA 4.0 | null | 2023-03-04T22:16:24.813 | 2023-03-05T00:40:19.303 | 2023-03-05T00:40:19.303 | 21,333,568 | 21,333,568 | [
"c++"
] |
75,639,008 | 1 | null | null | 0 | 13 | I am writing some code in typescript with the following `tsconfig.json`:
```
{
"compilerOptions": {
"baseUrl": "./src",
"target": "esnext",
"esModuleInterop": true,
"downlevelIteration": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"paths": {
"@utils": [
"util... | tsconfig.json compilerOptions paths don't resolve | CC BY-SA 4.0 | null | 2023-03-04T22:16:06.113 | 2023-03-05T01:14:20.487 | null | null | 14,591,737 | [
"typescript",
"alias",
"tsconfig"
] |
75,639,014 | 1 | null | null | -1 | 8 | i read so many blogs and solution of this problem but it does not help me. i was just trying to run cowsays programme. to do that i run the command in my terminal(powershell)** npm i -g cowsay** theb i type **cowsays hello ** and i expecting that anyone tell me step by step guide to solve this problem without changing ... | having error regarding running script and it telling that cannot be loaded because running scripts is disabled on this system | CC BY-SA 4.0 | null | 2023-03-04T22:17:24.520 | 2023-03-04T22:17:24.520 | null | null | 19,161,535 | [
"javascript",
"scripting"
] |
75,639,012 | 2 | null | 75,638,825 | 1 | null | Probably a few ways you can approach this, none particularly pretty as dealing with delimited strings just isn't nice.
You need to split the string into ordered rows that can join to your existing table.
If you were using SQL Server 2022 (16) then string_split would be fine, however for SQL Server 2019 it is not always... | null | CC BY-SA 4.0 | null | 2023-03-04T22:17:09.850 | 2023-03-04T22:17:09.850 | null | null | 15,332,650 | null |
75,639,004 | 1 | 75,639,173 | null | 0 | 24 | I am trying to send a post request to a python backend running on a fast API server. The current method I am using below throws error `test() takes 0 positional arguments but 1 was given` but I haven't passed any arguments to the function `test`. Why is this happening and how can I fix it? Thanks in advance.
```
import... | positional argument error when trying to send a post request | CC BY-SA 4.0 | null | 2023-03-04T22:14:47.290 | 2023-03-04T23:09:00.637 | 2023-03-04T22:37:54.080 | 16,009,435 | 16,009,435 | [
"python",
"fastapi"
] |
75,639,017 | 1 | null | null | -2 | 15 | How to run this query on ERP :
```
select
(SELECT column_name
FROM ALL_TAB_COLUMNS
WHERE table_name=UPPER('ra_rules')
order by column_name)
from ra_customer_trx_all;
```
Basically I am trying to achieve column ordering.
Inner query will give the column order based on that outer query should ru... | ERP Column ordering Query | CC BY-SA 4.0 | null | 2023-03-04T22:17:31.870 | 2023-03-04T22:22:58.267 | 2023-03-04T22:22:58.267 | 5,193,536 | 13,934,778 | [
"sql",
"sql-server"
] |
75,639,015 | 1 | 75,639,354 | null | 0 | 30 | I am working on a project and have encountered a roadblock. I'm not sure to make objects of different classes reference each other and delete the reference if one of them drops it.
For example, I have a network switch and the switch has ports. Those ports may/may not be connecting to other switches on the network using... | How can I make two objects from different classes to reference each other? | CC BY-SA 4.0 | null | 2023-03-04T22:17:27.893 | 2023-03-04T23:39:36.643 | 2023-03-04T22:21:49.797 | 14,311,263 | 9,231,398 | [
"python",
"reference"
] |
75,639,022 | 2 | null | 75,638,979 | 0 | null | Val and value are different.
Value=thread.value
| null | CC BY-SA 4.0 | null | 2023-03-04T22:18:29.913 | 2023-03-04T22:18:29.913 | null | null | 16,807,441 | null |
75,639,021 | 2 | null | 75,639,009 | 2 | null | You should do conversion for each celsius value.
```
// while loop to display temps 0-20
int x=0;
while (x <= 20) // change < to <= to include the value 20
{
cel = x; // set value
far = (cel * 1.8) + 32; // do conversion
if (cel <= 20)
{
cout << cel <<" = "<< far << endl;
}
x++;
}
```... | null | CC BY-SA 4.0 | null | 2023-03-04T22:18:06.913 | 2023-03-04T22:22:54.197 | 2023-03-04T22:22:54.197 | 65,863 | 4,062,354 | null |
75,639,020 | 1 | 75,639,148 | null | 1 | 15 | I wanted to replace the word contains special character with below format, need to replace with a another string. below are the sql's am trying to achieve, but somehow struck. Can you help to assist.
Format -> `_$deleted$73$0`
Expected Output -> `I01`
```
SQL> select REGEXP_REPLACE('_$deleted$73$0 RRR SSS','_\$deleted\... | << Oracle regexp_replace special character string >> | CC BY-SA 4.0 | null | 2023-03-04T22:18:01.923 | 2023-03-04T22:46:52.677 | null | null | 9,599,919 | [
"sql",
"oracle",
"plsql"
] |
75,639,019 | 2 | null | 17,943,411 | 0 | null | To point out some nuances related to C strings.
The char array sizeof will be 5, but the string will normally be "seen" as 3 chars + 1 null terminator. The extra null terminator won't be seen.
This is because strings are walked until the . This is why strlen will be 3 and not 4. The 3 letters are counted, and when it h... | null | CC BY-SA 4.0 | null | 2023-03-04T22:17:49.057 | 2023-03-04T22:38:17.447 | 2023-03-04T22:38:17.447 | 1,160,036 | 1,160,036 | null |
75,639,026 | 2 | null | 65,551,658 | 0 | null | I had the same problem and was caused by the machine OS. This is what I found, you need to use the following endpoints:
Mac OSX: `endpoint_url="http://docker.for.mac.localhost:8000/"`
Windows: `endpoint_url="http://docker.for.windows.localhost:8000/"`
Linux: `endpoint_url="http://localhost:8000/"`
With that my project ... | null | CC BY-SA 4.0 | null | 2023-03-04T22:19:44.297 | 2023-03-04T22:19:44.297 | null | null | 15,287,262 | null |
75,639,011 | 1 | null | null | 0 | 31 | Hi there can anyone help me to add text before the input just when the input is filled with javascript
the problem is i can add the text but lets say for options from select i dont need everytime to have that text cause the options are changing
```
<form action="main.php" method="get" id="create-account-form" onclick=... | How to add text to input | CC BY-SA 4.0 | null | 2023-03-04T22:17:05.470 | 2023-03-04T22:17:05.470 | null | null | 20,333,471 | [
"javascript",
"php",
"html"
] |
75,639,018 | 2 | null | 75,638,977 | 0 | null | As far as I know, no: CMake does not have macro or function overloading features like you have shown in your imaginary example. Defining a macro or function multiple times will just lead to the last definition being used regardless of what directory scope that last definition was made at, since function and macro defin... | null | CC BY-SA 4.0 | null | 2023-03-04T22:17:33.910 | 2023-03-04T23:40:32.067 | 2023-03-04T23:40:32.067 | 11,107,541 | 11,107,541 | null |
75,639,028 | 2 | null | 75,638,987 | 1 | null | For example:
```
SELECT p.*
FROM `posts` p
LEFT JOIN `votes` v ON p.post_id = v.post_id
WHERE v.user_id = 3
```
and `WHERE v.user_id <> 3`
for teh other case.
If I understood correctly.
| null | CC BY-SA 4.0 | null | 2023-03-04T22:20:02.880 | 2023-03-04T22:35:10.903 | 2023-03-04T22:35:10.903 | 19,136,486 | 19,136,486 | null |
75,639,016 | 1 | null | null | 0 | 13 | This is sloppy and needs to be refined but it works, you probably just have to change the versions on nginx stable updates or scrape the requirements. I wrote this because I got a cheap KVM with limited resources, so building from source would be much suitable to implement every hook i can to create elegance. I want to... | wrote a python sloppy ineligant script to download nginx and install from source, any chance I could have people tell me how sloppy it is? for Fedora | CC BY-SA 4.0 | null | 2023-03-04T22:17:29.900 | 2023-03-04T22:17:29.900 | null | null | 7,512,445 | [
"python",
"nginx",
"automation"
] |
75,639,027 | 1 | null | null | -1 | 32 | I am to solve this problem, it loops through every node and finds the value, but crashes on returning, don't know why.
Obs.: In the problem it's said that an equal number goes to the right.
My code:
```
int conta(pNodo *arvore, int valor) {
if (arvore == NULL) {
return 0;
} else {
if (arvore->in... | How to count how many times a value appears in a tree | CC BY-SA 4.0 | null | 2023-03-04T22:19:50.693 | 2023-03-05T01:19:16.360 | 2023-03-05T01:19:16.360 | 4,593,267 | 18,082,893 | [
"c",
"tree",
"binary",
"binary-search-tree"
] |
75,639,030 | 1 | 75,639,747 | null | 1 | 23 | What is it called when a function has a late-bound Generic type (which is determined only when the function is called, not when it is defined).
It is shown as `LateT` in the code example below, and contrasted with the `EarlyT` early-bound case where the type of the function reference itself already has the typed constr... | What is it called when a function has a late-binding generic type? | CC BY-SA 4.0 | null | 2023-03-04T22:20:12.137 | 2023-03-05T01:39:41.757 | null | null | 2,257,198 | [
"typescript",
"function",
"typescript-generics",
"terminology",
"late-binding"
] |
75,638,999 | 1 | null | null | 0 | 14 | Here is the logout.feature file and most of the steps are already defined in checkout.feature except (bold lines in the follwoing file) and methods has been implemented in CheckOutStepDefinition class
```
Feature: Swag Labs Logout feature
Scenario: Logout from website
Given user is on Login Page
When title of page is ... | Error: java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null | CC BY-SA 4.0 | null | 2023-03-04T22:14:11.843 | 2023-03-04T22:14:11.843 | null | null | 19,250,288 | [
"java",
"selenium-webdriver",
"cucumber",
"bdd"
] |
75,639,034 | 1 | null | null | 0 | 19 | I need to make a service using .NET. I implement ServiceBase, override OnStart and OnStop methods, and everything works correctly except that if I put this code into OnStop:
```
protected override void OnStop()
{
Environment.Exit(0);
}
```
then when I'm stopping the service I'm getting Erro... | How to properly exit from service process written in .NET 7? | CC BY-SA 4.0 | null | 2023-03-04T22:21:21.493 | 2023-03-05T00:03:03.703 | null | null | 7,423,092 | [
"c#",
".net",
"service"
] |
75,639,036 | 2 | null | 75,639,027 | 3 | null | You should the findings in the leafs.
```
int conta(pNodo* arvore, int valor) {
if(arvore == NULL) {
return 0;
}
else {
if(arvore->info == valor) {
return(conta(arvore->dir, valor) + 1);
}
if(valor < arvore->info)
return conta(arvore->esq, valor); /* add "... | null | CC BY-SA 4.0 | null | 2023-03-04T22:22:01.160 | 2023-03-04T22:22:01.160 | null | null | 4,062,354 | null |
75,639,031 | 1 | null | null | 0 | 4 | I am creating a image processing tool, where you can draw to various lighting related textures.
And It would be very helpful to combine all the edited "channels" (like specular, emissive, depth, color) in one single file, so that the user won't need to load and save each of them separately.
Now I am using LWJGL and the... | Multiple .png files into one single compressed file using LWJGL - (STB library) | CC BY-SA 4.0 | null | 2023-03-04T22:20:15.337 | 2023-03-04T22:20:15.337 | null | null | 13,727,252 | [
"java",
"lwjgl"
] |
75,639,029 | 1 | null | null | 0 | 62 | I am able to add items to the list. But, I am only able to remove 1 item from the list. After removing 1 item, the code breaks, and I don't know what happened, but this does not work as planned:
- -
After the removal of 1 item: I am able to add as many items to the list as I wish, but the delete button stops working.
... | Why can’t I delete Items from todo list in JavaScript using this code? | CC BY-SA 4.0 | null | 2023-03-04T22:20:11.653 | 2023-03-04T23:19:33.437 | 2023-03-04T22:44:40.797 | 9,430,133 | 16,852,838 | [
"javascript"
] |
75,639,035 | 2 | null | 75,638,990 | 0 | null | You can rewrite the code like this to get rid of the type errors:
```
pub fn add_to_tail(&self, value: i32) {
let node = self.make_node(value);
let curr = self.head.as_ref();
while curr.is_some() && curr.unwrap().next.is_some() {
curr = curr.as_ref().unwrap().next.map(|x| x.as_ref())... | null | CC BY-SA 4.0 | null | 2023-03-04T22:21:39.863 | 2023-03-04T22:21:39.863 | null | null | 21,313,424 | null |
75,639,032 | 1 | null | null | 0 | 9 | I am using `psestimate` (user written) to choose covariates to estimate the propensity score. It first selects covariates (which works fine). It selects 31 variables plus 8 dummies from a factor vairable. In the second step it chooses interactions and quadratic terms (among the 39 variables selected). It starts the pro... | stata storing estimates exceeds limit | CC BY-SA 4.0 | null | 2023-03-04T22:20:23.620 | 2023-03-04T23:14:42.470 | 2023-03-04T23:14:42.470 | 21,181,409 | 21,181,409 | [
"storage",
"stata",
"propensity-score-matching"
] |
75,639,041 | 2 | null | 75,637,161 | 0 | null | Some commentators below suggested to re-connect my segue through View Controller and explained why. It was the reason
| null | CC BY-SA 4.0 | null | 2023-03-04T22:23:17.710 | 2023-03-04T22:23:17.710 | null | null | 20,110,493 | null |
75,639,037 | 1 | null | null | 0 | 13 | I know they already have one , but I want one that works in a grid.
- - -
How would I go about making one?
If you don't know what lua is you could just explain a algorythm with words
I would like to make a grid pathfinding system different than the base pathfinding system which is more complicated and not in a grid.
I... | How do I make an pathfinding algorythm in lua / Roblox | CC BY-SA 4.0 | null | 2023-03-04T22:22:23.037 | 2023-03-04T22:44:10.493 | 2023-03-04T22:44:10.493 | 2,860,267 | 21,333,689 | [
"algorithm",
"lua",
"roblox",
"path-finding",
"a-star"
] |
75,639,039 | 1 | null | null | 0 | 13 | I have written a graphql query to try and retrieve a simple hero image but I am getting an error:
```
"10:01:57 PM: error There was a problem parsing "/opt/build/repo/src/components/HeroImage.js"; any GraphQL
10:01:57 PM: fragments or queries in this file were not processed.
10:01:57 PM: This may indicate a syntax erro... | Error when trying to retrieve an image from contentful for my Gatsby website | CC BY-SA 4.0 | null | 2023-03-04T22:22:53.287 | 2023-03-05T01:55:41.033 | 2023-03-05T01:55:41.033 | 3,842,598 | 19,566,173 | [
"reactjs",
"graphql",
"gatsby",
"netlify",
"contentful"
] |
75,639,045 | 1 | null | null | -2 | 23 | I know you can open an external program using python's `subprocess`.
```
import subprocess
subprocess.Popen([path_to_program])
```
but how can I paste the content of a variable (or if this is not possible, the clipboard) in it?
| How to open an external program using Python and paste the text of a variable it? | CC BY-SA 4.0 | null | 2023-03-04T22:23:59.427 | 2023-03-04T22:29:02.020 | null | null | 662,967 | [
"python",
"python-3.x",
"subprocess"
] |
75,639,050 | 2 | null | 75,639,004 | 1 | null | > but I haven't passed any arguments to the function test
You aren't calling `test()` directly; the FastAPI framework calls it for you, automatically, when a matching web request is received.
And when it does, it passes one argument. So the error is that you've defined `test()` to accept no arguments.
Change your defi... | null | CC BY-SA 4.0 | null | 2023-03-04T22:25:20.357 | 2023-03-04T22:25:20.357 | null | null | 494,134 | null |
75,639,047 | 1 | null | null | -1 | 11 | I am trying to build a project using the following maven command:
```
mvn -U -s settings.xml --fail-at-end -DskipTests -pl !:skip-module clean verify
```
While building project, I am getting errors like this:
```
COMPILATION ERROR :
package org.eclipse.core.resources does not exist
cannot access org.eclipse.core.reso... | Compilation errors while building project using maven despite the fact that JARS are already present in .m2 directory | CC BY-SA 4.0 | null | 2023-03-04T22:24:51.250 | 2023-03-04T22:24:51.250 | null | null | 11,907,420 | [
"java",
"maven"
] |
75,639,052 | 2 | null | 75,637,846 | 0 | null | By default certificate verification will not look at certificate stores such as `My` for trusted roots. You can add other stores to the `ExtraStore` property if you want.
You also need to set `X509VerificationFlags.AllowUnknownCertificateAuthority` otherwise it will still be rejected. Note that , depending on your use ... | null | CC BY-SA 4.0 | null | 2023-03-04T22:26:00.310 | 2023-03-04T22:26:00.310 | null | null | 14,868,997 | null |
75,639,040 | 1 | null | null | 0 | 16 | I am trying to rename a folder in Windows using R. This folder is not empty.
The Windows command to rename a folder is `rename "D:\Test\Old Name" NewName`. I tried renaming the folder using command prompt and it worked. I am unable to execute it through R though. Follwoing is my code. This gives me a 127 output.
```
ma... | Renaming a folder in Windows using R | CC BY-SA 4.0 | null | 2023-03-04T22:23:15.603 | 2023-03-04T22:56:21.467 | 2023-03-04T22:56:21.467 | 776,168 | 776,168 | [
"r",
"windows",
"cmd",
"directory"
] |
75,639,038 | 2 | null | 75,638,825 | 1 | null | I like using a function for this kind of thing when I can't fix the data (which is the right thing to do). Assuming SQL Server 2016 or better (always good to tell us via a tag on the question, like [sql-server-2019](/questions/tagged/sql-server-2019)):
```
CREATE OR ALTER FUNCTION dbo.SplitOrdered_JSON
(
@List v... | null | CC BY-SA 4.0 | null | 2023-03-04T22:22:24.250 | 2023-03-05T00:37:32.627 | 2023-03-05T00:37:32.627 | 61,305 | 61,305 | null |
75,639,053 | 1 | null | null | -2 | 33 | Your function word_list will take in a list of words. All words that have all the same vowels as the first word in the list should be returned in a list. The number of vowels does not matter, just merely that the words that you choose to include in that return list must contain the same vowels of the initial word. All ... | Iterating through a list of string in python to return words with the same vowels | CC BY-SA 4.0 | null | 2023-03-04T22:26:24.360 | 2023-03-05T04:37:08.863 | 2023-03-04T22:35:48.863 | 16,462,878 | 21,333,709 | [
"python",
"string",
"list",
"iteration"
] |
75,639,044 | 1 | null | null | -4 | 29 | My take home challenge is to write a program that calculates U.S. Income Tax.
The assignment must be completed in steps and with each completed step I recieve points.
Identify deduction amount based on status: (1) Single=$12,000 or (2) Married=$24,000. Set status to 1 if not input as 1 or 2. Calculate taxable income (... | Java Tax Calculator | CC BY-SA 4.0 | null | 2023-03-04T22:23:49.517 | 2023-03-04T23:58:55.610 | 2023-03-04T22:26:44.243 | 3,890,632 | 21,333,657 | [
"java"
] |
75,639,056 | 2 | null | 75,633,180 | 1 | null | This is an ideal use case for [Optional](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Optional.html):
```
public String viewURL() {
return Optional.ofNullable(status)
.map(s -> s.getUrl) // only executes if previous step returns non-null
.orElse(null); // executes if null ... | null | CC BY-SA 4.0 | null | 2023-03-04T22:27:13.660 | 2023-03-04T23:03:13.967 | 2023-03-04T23:03:13.967 | 256,196 | 256,196 | null |
75,639,025 | 2 | null | 75,635,742 | 0 | null | You were close enough. To print the links you have to induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for [visibility_of_all_elements_located()](https://stackoverflow.com/a/64770041/7429447) and using [List Comprehension](https://stackoverflow.com/a/69947765/7429447) you can use either of the follo... | null | CC BY-SA 4.0 | null | 2023-03-04T22:19:18.763 | 2023-03-04T22:19:18.763 | null | null | 7,429,447 | null |
75,639,048 | 1 | null | null | 0 | 31 | I have a multiline `$string` variable that contains UTF-8 csv. I open this string as a file for processing and print its contents.
```
open(my $fh, "<", \$string);
$/=undef;
say <$fh>;
```
With hexdump I see the text is UTF-8 (`É` is `c3 89`).
Now I read the string through Text::CSV.
```
my $csv = Text::CSV->new({ bin... | Perl character encoding confusion | CC BY-SA 4.0 | null | 2023-03-04T22:25:00.163 | 2023-03-05T04:07:01.653 | 2023-03-05T04:07:01.653 | 393,262 | 393,262 | [
"perl",
"character-encoding"
] |
75,639,057 | 1 | null | null | 0 | 8 | I have a procedure:
```
CREATE OR REPLACE PROCEDURE import(IN tablename varchar, IN path text, IN separator char) AS $$
BEGIN
EXECUTE format('COPY %s FROM ''%s'' DELIMITER ''%s'' CSV HEADER;', tablename, path, separator);
END;
$$ LANGUAGE plpgsql;
```
I call like this:
`CALL import('transactions', ... | How to import data from tsv file in postgreSQL procedure? | CC BY-SA 4.0 | null | 2023-03-04T22:27:16.127 | 2023-03-04T22:27:16.127 | null | null | 21,105,295 | [
"sql",
"postgresql",
"procedure",
"error-messaging"
] |
75,639,055 | 1 | null | null | 0 | 9 | I am creating an Restful API that a mobile app will be using.
I am trying to figure out the general model/concept of using JWT with other users logging in, maybe spring security handles this out of the box, not sure.
What I am doing is I have the API authentication obtain a jwt token so that is can make other calls to ... | How to properly do a Restful login - Spring Security - Jwt (general concept?) | CC BY-SA 4.0 | null | 2023-03-04T22:26:46.333 | 2023-03-04T22:26:46.333 | null | null | 14,251,813 | [
"spring-boot",
"rest",
"spring-security",
"jwt",
"spring-restcontroller"
] |
75,639,059 | 2 | null | 75,635,253 | 1 | null | An error in the filter in caused all the controls I created to mess up when clicked. Thank you to dr.null for giving me a point out.
```
[DllImport("user32.dll")]
private static extern IntPtr WindowFromPoint(Point pnt);
private bool hitButton(Control control, Point point)
{
if (control.Bounds.Contains(point))
... | null | CC BY-SA 4.0 | null | 2023-03-04T22:27:22.470 | 2023-03-04T22:27:22.470 | null | null | 7,247,051 | null |
75,639,054 | 2 | null | 75,638,778 | 2 | null | Let's re-order the questions a little:
> How is it possible to prevent the callback passed to `useCallback` from being created?
It is not possible. The function `ProductPage` is called every time the component is instantiated, which creates a new instance of the `(orderDetails) => { ... }` callback.
But – when we use `... | null | CC BY-SA 4.0 | null | 2023-03-04T22:26:29.167 | 2023-03-04T22:26:29.167 | null | null | 21,146,235 | null |
75,639,063 | 1 | null | null | 0 | 13 | I am attempting to run a simple FastAPI application on CentOS 7 but getting some errors. I will include some more details for context:
Python Version - 3.6.8
pip version - 9.0.3
I am running the application with this command: `python3 -m uvicorn main:app`
I keep getting this error:
```
Traceback (most recent call last)... | Attempting to run a FastAPI application on CentOS 7 but getting a module 'asyncio' error | CC BY-SA 4.0 | null | 2023-03-04T22:27:40.907 | 2023-03-04T22:46:48.803 | null | null | 10,139,535 | [
"python",
"linux",
"pip",
"fastapi",
"centos7"
] |
75,639,062 | 2 | null | 75,638,987 | 1 | null | The main problem of you have tried: The current user filter is part of left outer join.
To get the result you want, you can use NOT [IN](https://www.w3schools.com/sql/sql_in.asp) operator and post_id from votes to buid your [query](http://sqlfiddle.com/#!9/4e3369/2):
```
SELECT *
FROM posts
WHERE post_id NOT IN (
... | null | CC BY-SA 4.0 | null | 2023-03-04T22:27:33.467 | 2023-03-04T22:42:37.797 | 2023-03-04T22:42:37.797 | 21,309,701 | 21,309,701 | null |
75,639,064 | 2 | null | 75,635,701 | 0 | null | You should define all function in the setup and then return them.
Here is the playground
```
const { createApp, ref, onMounted } = Vue
const MyComp = {
setup() {
const message = ref({
text: ''
});
const checkStatus = () => {
console.log('checkStatus()');
message.value.text... | null | CC BY-SA 4.0 | null | 2023-03-04T22:27:44.300 | 2023-03-04T22:27:44.300 | null | null | 2,487,565 | null |
75,639,051 | 1 | 75,639,093 | null | 0 | 27 | I have a program which has several files as follows: `main.c`, `functions.c`, `functions.h`, `matrix.c`, `matrix.h`.
`main.c` is the main file. Inside `functions.c` there is a function which uses the struct matrix which is defined in `matrix.h`.
If I compile the code I get the following error message:
```
gcc -c main.... | Using a struct defined in a header file in different source (.c) files | CC BY-SA 4.0 | null | 2023-03-04T22:25:34.000 | 2023-03-05T03:01:39.323 | null | null | 9,381,746 | [
"c",
"file",
"struct",
"build",
"typedef"
] |
75,639,069 | 2 | null | 44,481,490 | 0 | null | You can find here: -> :
[](https://i.stack.imgur.com/wibBV.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T22:28:34.607 | 2023-03-04T22:28:34.607 | null | null | 10,832,700 | null |
75,639,067 | 1 | 75,639,228 | null | 0 | 28 | I am trying to learn the initializer in SwiftUI. Everything goes fine when I try to run the following code, as you see on the uploaded picture :[](https://i.stack.imgur.com/f21AN.png).
When I try to start to build the initializer modifying the code, as you see by declaring a color variable
```
import SwiftUI
struct Co... | I cannot run the code when I declare a color variable in SwiftUI | CC BY-SA 4.0 | null | 2023-03-04T22:28:08.647 | 2023-03-04T23:09:37.277 | 2023-03-04T22:32:01.430 | 20,287,183 | 16,314,991 | [
"swift",
"swiftui",
"initialization"
] |
75,639,070 | 1 | null | null | 0 | 8 | How I close the BinanceSocketManager using python, I have tried break and bsm.close and none of these are working, I want to close the BinanceSocketManager when a buy or sell takes place, I have indicated below in comment
```
from binance import AsyncClient, BinanceSocketManager
import asyncio
async def main():
a... | How do I close a BinanceSocketManager in Python? | CC BY-SA 4.0 | null | 2023-03-04T22:28:52.597 | 2023-03-04T22:28:52.597 | null | null | 9,672,775 | [
"python",
"websocket"
] |
75,639,066 | 1 | null | null | 0 | 27 | I am trying to programe a Remember me checkbox with spring security, i have this configuration:
```
@Override
protected void configure(final HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/profile","/logout").authenticated()
.anyRequest().permitA... | Why could be my Spring Boot Remember Me not working? | CC BY-SA 4.0 | null | 2023-03-04T22:27:56.740 | 2023-03-05T00:46:59.513 | 2023-03-05T00:46:59.513 | 8,370,915 | 21,333,703 | [
"java",
"spring-boot",
"spring-security"
] |
75,639,071 | 2 | null | 75,637,477 | 0 | null | The scripts look fine. The fixed angle thing is because, at least from the scripts provided, you're not doing anything about rotation. CameraFollow is only updating the camera's position, but is not telling the camera what to look at. An idea would be to change offset to followOffset and add a new lookOffset and your C... | null | CC BY-SA 4.0 | null | 2023-03-04T22:28:56.660 | 2023-03-04T22:28:56.660 | null | null | 4,195,783 | null |
75,639,061 | 1 | null | null | 0 | 11 | I am very knew to java, and android development in general, and want to make a pill alarm app. I have made everything work, except the alarm won't sound in the backround! This is my code:
```
private EditText mEditTextInput;
private TextView mTextViewCountDown;
private Button mButtonSet;
private Button mButtonAnotherPi... | I don't know how to make a foreground function for my app | CC BY-SA 4.0 | null | 2023-03-04T22:27:29.080 | 2023-03-04T22:27:29.080 | null | null | 21,333,711 | [
"java",
"android"
] |
75,639,058 | 1 | null | null | 0 | 3 | I have some investment accounts which I am tracking with Quicken for . However, I am using the Quicken feature to auto-download the status of the account. However, the company does not support downloading the individual transactions, which I would like to also track inside of Quicken. But, I do not want enter these tra... | Creating an OFX file which an be opened by Quicken (v6.12.3) for macOS | CC BY-SA 4.0 | null | 2023-03-04T22:27:22.227 | 2023-03-04T22:27:22.227 | null | null | 198,301 | [
"python",
"ofx",
"quicken"
] |
75,639,079 | 1 | null | null | -1 | 6 | While developing, I often get the error displayed in the attached image and when I close and try reopening the application, it completely opens a blank app.
[error from app](https://i.stack.imgur.com/x6ySK.png)
I closed the application and reopened, but it clears previously saved works
| Unity Application continuously crashes during development | CC BY-SA 4.0 | null | 2023-03-04T22:30:45.927 | 2023-03-04T22:30:45.927 | null | null | 21,333,721 | [
"unity3d"
] |
75,639,077 | 1 | null | null | 0 | 13 | i want add and remove class with event scroll but im always find jquery
can use pure JS without Jquery Library ?
| how do if scroll event down can add class and if up can remove class (NO JQuery) | CC BY-SA 4.0 | null | 2023-03-04T22:30:24.737 | 2023-03-04T23:43:01.290 | null | null | 16,945,930 | [
"javascript"
] |
75,639,080 | 2 | null | 50,394,808 | 0 | null | NelmioApiDoc respects the Ignore attribute, so you can hide the method/field like this:
```
use Symfony\Component\Serializer\Annotation\Ignore;
/**
* @Ignore
*/
public function getUsername()
// or
#[Ignore]
public function getUsername()
```
| null | CC BY-SA 4.0 | null | 2023-03-04T22:31:20.587 | 2023-03-04T22:31:20.587 | null | null | 21,333,278 | null |
75,639,083 | 1 | null | null | 0 | 13 | I have the following MenuBarExtra using the .window style. Curious if there a way to re-position the window, for example, to have it fixed positioned as an overlay to the bottom left corner of the screen?
```
MenuBarExtra("Utility App", image: "icon-gear") {
MyMenuBarExtra()
}
.menuBarExtraStyle(.window)
```
| Change MacOS MenuBarExtra .window position | CC BY-SA 4.0 | null | 2023-03-04T22:32:28.903 | 2023-03-04T22:32:51.970 | 2023-03-04T22:32:51.970 | 20,287,183 | 1,373,218 | [
"swift",
"macos",
"swiftui"
] |
75,639,076 | 1 | null | null | 0 | 17 | I am really struggling to understand why I can't get this working, as it must surely be very simple. I'd really appreciate some insight.
I am using R 4.2.2 on an M1 Macbook Air.
I am a physician and have trained a Gaussian Naive Bayes model that (imperfectly) predicts the likelihood of a patient dying given their respo... | How do I calculate the Area Under the ROC Curve in practice (using the yardstick package in R)? | CC BY-SA 4.0 | null | 2023-03-04T22:30:03.147 | 2023-03-04T22:30:03.147 | null | null | 1,361,737 | [
"r",
"machine-learning",
"statistics",
"roc",
"tidymodels"
] |
75,639,081 | 1 | null | null | 0 | 14 | iOS app is not able to receive BLE data sent by iOS. Transmission of the data works well from iOS to ESP32 but the reception of data is not happening. I am attaching the code. Please help.
```
Text(isConnected ? "\(batAngle)°" : "Not Connected")
.bold()
.font(.system(size: 42))
... | ESP32 is not sending data to iOS | CC BY-SA 4.0 | null | 2023-03-04T22:32:07.830 | 2023-03-04T22:32:07.830 | null | null | 20,534,548 | [
"ios",
"swiftui"
] |
75,639,085 | 2 | null | 75,638,564 | 0 | null | `@Inject` (or `@Autowired`) works only for SpringBean classes. You must decorate regular class by some annotation for transforming a regular class to Bean class. In your case use `@Component` above your filter class declaration. Like this:
```
@Component
class MyFilter: Filter{
```
More info about Spring Beans and... | null | CC BY-SA 4.0 | null | 2023-03-04T22:32:51.227 | 2023-03-04T22:32:51.227 | null | null | 11,158,542 | null |
75,639,084 | 1 | null | null | 0 | 11 | Testing on Windows-
I have a React frontend running on default localhost:3000 and I need to also run the admin on localhost:5000 but when I npm start admin, I get:
react-admin@0.1.0 start
> PORT=5000 react-scripts start
'PORT' is not recognized as an internal or external command,
operable program or batch file.
I have... | PORT=5000 react-scripts start 'PORT' is not recognized as an internal or external command, operable program or batch file | CC BY-SA 4.0 | null | 2023-03-04T22:32:40.620 | 2023-03-05T02:03:26.727 | null | null | 2,112,849 | [
"reactjs",
"localhost",
"port"
] |
75,639,075 | 1 | null | null | 0 | 10 | i have created checkbox list which when its true it should upload my document on firestore and i have no problem with that... but when i try to uncheckbox it won't delete what i have uploaded... here is why:
i have 2 lists...first one is `PlanExerciseslist[index]` which displays all the data in the list by its index wh... | flutter cloud firestore delete doc | CC BY-SA 4.0 | null | 2023-03-04T22:30:02.150 | 2023-03-04T23:00:39.223 | 2023-03-04T23:00:39.223 | 20,685,633 | 20,685,633 | [
"flutter",
"google-cloud-firestore"
] |
75,639,086 | 2 | null | 75,636,750 | 0 | null | The error message you are receiving indicates that the builder you are using is returning more than for your application routes, which exceeds the limit set by .
To resolve this issue, you can try the following steps:
1. Check your builder configuration: The builder you are using might have the option to configure th... | null | CC BY-SA 4.0 | null | 2023-03-04T22:33:06.510 | 2023-03-04T22:33:06.510 | null | null | 17,808,861 | null |
75,639,078 | 2 | null | 75,637,910 | 0 | null | Good night friend, I performed the process you tried. First, let's break it down:
Step 1:
[enter image description here](https://i.stack.imgur.com/U0xVU.png)
Your data set has incorrect values, you have to correct the date to a string before placing it in pd.DataFrame.
[enter image description here](https://i.stack.img... | null | CC BY-SA 4.0 | null | 2023-03-04T22:30:25.983 | 2023-03-04T22:34:30.083 | 2023-03-04T22:34:30.083 | 20,513,864 | 20,513,864 | null |
75,639,089 | 2 | null | 75,639,067 | -2 | null | You can try it like this format, with background modifier you need to use Color with it:
.background(Color.backgroundColor)
| null | CC BY-SA 4.0 | null | 2023-03-04T22:33:50.223 | 2023-03-04T22:33:50.223 | null | null | 17,263,816 | null |
75,639,091 | 1 | null | null | -2 | 12 | From what I can tell, this may not be officially supported until .NET 8, but in the meanwhile I see some how to sample based on the .NET MAUI Blazor App. Is there any walk thrus on setting up deep linking for the regular .NET Maui App?
| Is there a .NET Maui Deep Linking alternative? | CC BY-SA 4.0 | null | 2023-03-04T22:34:02.400 | 2023-03-04T22:34:02.400 | null | null | 2,125,182 | [
"deep-linking",
"maui"
] |
75,639,087 | 1 | null | null | 1 | 22 | Every answer on this question is incomplete, and I get a lot of errors when trying to use the code.
Example: [read file from assets](https://stackoverflow.com/questions/9544737/read-file-from-assets)
```
AssetManager am = MainActivity.getAssets();
InputStream is = am.open("book.txt");
```
I get errors:
1. Non-static ... | How to get Context and Read from Assets folder in Android | CC BY-SA 4.0 | null | 2023-03-04T22:33:16.727 | 2023-03-05T01:24:24.190 | 2023-03-05T01:24:24.190 | 506,796 | 2,056,201 | [
"java",
"android",
"android-studio"
] |
75,639,095 | 2 | null | 75,631,759 | 0 | null | based on your description I believe you might be using the service account credentials directly to make this call, since this is calendar info, could you try using the admin credentials to log in instead? Admins should have access to all other domain user's calendars.
| null | CC BY-SA 4.0 | null | 2023-03-04T22:35:00.543 | 2023-03-04T22:35:00.543 | null | null | 17,987,690 | null |
75,639,074 | 1 | null | null | 0 | 20 | I'm relatively new to React JS and have encountered my first blocker.
I have a component that renders 3 pieces of information and each piece requires a different image that goes with it. See this image: [](https://i.stack.imgur.com/QWq9g.png)
This is obviously each image, rendered 3 times instead of once.
It should loo... | Render 1 image in 3 repeated components | CC BY-SA 4.0 | null | 2023-03-04T22:29:36.700 | 2023-03-04T23:16:44.347 | 2023-03-04T23:16:44.347 | 20,291,753 | 20,291,753 | [
"javascript",
"reactjs",
"image",
"components"
] |
75,639,093 | 2 | null | 75,639,051 | 4 | null | Use `#include` in the header files to get required declarations.
Add to avoid multiple declaration errors.
```
//matrix.h
#ifndef MATRIX_H /* include guard */
#define MATRIX_H
typedef struct {
size_t nrows, ncols;
int *array;
} Matrix ;
void print_matrix(Matrix * matrix);
#endif
```
```
//functions.h
#ifndef F... | null | CC BY-SA 4.0 | null | 2023-03-04T22:34:06.897 | 2023-03-05T03:01:39.323 | 2023-03-05T03:01:39.323 | 15,168 | 4,062,354 | null |
75,639,094 | 1 | null | null | 0 | 15 | My system is a Windows 10
I'm using java jdk 19 with no build tools
I'm trying to run a .jar file generated from my code using vscode "export jar" option, but double clicking the resulting file doesn't do anything.
Trying to run the file from the terminal returns this error
> Error: LinkageError occurred while loading ... | Java LinkageError when trying to run .jar file, asks to run with --enable preview | CC BY-SA 4.0 | null | 2023-03-04T22:34:15.937 | 2023-03-04T22:34:15.937 | null | null | 21,333,679 | [
"java",
"executable-jar"
] |
75,639,092 | 2 | null | 75,638,923 | 4 | null | Argument-dependent lookup (ADL) doesn't consider namespaces associated with aliases. (That wouldn't make sense either. Should the compiler remember all namespaces having an alias to `std::variant<bool, int>` and then suddenly consider all functions declared there as belonging to `std::variant<bool, int>`?)
Make `Var` a... | null | CC BY-SA 4.0 | null | 2023-03-04T22:34:06.487 | 2023-03-04T22:39:17.270 | 2023-03-04T22:39:17.270 | 17,732,522 | 17,732,522 | null |
75,639,088 | 2 | null | 75,624,797 | 0 | null | As I understand, you are trying to read the same indexed value from several datasets in several H5 files in 1 call. If so, this should solve your problem.
Note: Before I wrote the Class generator for multiple files, I rewrote (and simplified) the one you posted for a single file. My rewrite works on 2 assumptions: 1) a... | null | CC BY-SA 4.0 | null | 2023-03-04T22:33:50.103 | 2023-03-04T22:33:50.103 | null | null | 10,462,884 | null |
75,639,097 | 1 | null | null | -1 | 5 | I am trying to preprocess some PPG data. Each data segment of 2.1 seconds contains 2100 data points. I read in articles that Chebyshev 2 filter works best for preprocessing PPG signal. How can I set the parameters, then, for scipy.signal.cheby2? (How do I understand these parameters? I am an amateur to signal processin... | How to decide parameters for Chebyshev 2 filter? | CC BY-SA 4.0 | null | 2023-03-04T22:35:21.470 | 2023-03-04T22:35:21.470 | null | null | 21,333,720 | [
"python",
"scipy",
"signal-processing"
] |
75,639,101 | 2 | null | 75,639,053 | 1 | null | Since the task only cares about the presence of the vowels rather than their frequency, a `set` is appropriate here. You could write a helper function to extract the vowels from a word as a set, and then compare the results for each word. Something like:
```
def vowels(word):
return set(word).intersection("aeiou")
d... | null | CC BY-SA 4.0 | null | 2023-03-04T22:36:10.053 | 2023-03-04T22:36:10.053 | null | null | 21,146,235 | null |
75,639,099 | 1 | null | null | -1 | 29 | I have a data frame that looks like this
```
Date Profit/Losses
0 Jan-10 1088983
1 Feb-10 -354534
2 Mar-10 276622
3 Apr-10 -728133
4 May-10 852993
```
And I need to find the average change of Profit/Losses every month.
I have tried two different for loops a... | Find the average change in a data frame using a for loop | CC BY-SA 4.0 | null | 2023-03-04T22:35:35.117 | 2023-03-05T01:51:39.473 | 2023-03-05T01:51:39.473 | 4,518,341 | 20,827,041 | [
"python",
"pandas",
"dataframe"
] |
75,639,096 | 1 | null | null | -1 | 11 | I am fairly new to python and have gotten a bit stuck. Basically what I am trying to do is use my barcode sequences to search and match to different gene sequences. I need each to create a fastq file named after each barcode sequence and output only the genes that match that barcode into the corresponding file.
My scri... | Python search genes for barcode sequences and output matches into their corresponding files | CC BY-SA 4.0 | null | 2023-03-04T22:35:07.553 | 2023-03-04T22:35:07.553 | null | null | 21,333,706 | [
"python",
"python-3.x",
"bioinformatics"
] |
75,639,103 | 2 | null | 75,638,735 | 0 | null | to achieve the shadow you can use
- -
if you need further assistance i will be happy to help more!
| null | CC BY-SA 4.0 | null | 2023-03-04T22:36:13.903 | 2023-03-04T22:38:38.330 | 2023-03-04T22:38:38.330 | 11,210,586 | 11,210,586 | null |
75,639,100 | 2 | null | 75,638,997 | 0 | null | Using [df.groupby().transform()](https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.transform.html)
```
df = pd.DataFrame(q)
total_price = df.groupby('order_id')['price'].transform('sum')
df['new_column'] = (df['order_delivery_cost'] * df['price'] / total_price).round(2)
print(df)
```
Y... | null | CC BY-SA 4.0 | null | 2023-03-04T22:35:52.503 | 2023-03-04T22:57:50.433 | 2023-03-04T22:57:50.433 | 19,290,081 | 19,290,081 | null |
75,639,102 | 2 | null | 75,638,776 | 2 | null | Set the `yticklabels` vertical and horizontal alignments and it should look as expected.
```
ax.set_yticklabels(ax.get_yticklabels(), ha="right", va="bottom")
ax.tick_params(axis='y', colors='grey', direction='in', pad=-5)
```
Note that the `tick_params(pad)` value has been reduced since the text is already right alig... | null | CC BY-SA 4.0 | null | 2023-03-04T22:36:11.980 | 2023-03-04T22:36:11.980 | null | null | 11,080,037 | null |
75,639,090 | 1 | null | null | 0 | 20 | I am trying to read a containing the following lines into a Pandas DataFrame:
```
103028,"Kinokompaniya \"Ego Production\"",[ru],,K5251,K5251,ef6ba1a20ed58265766c35d9e2823f17
60985,"Studio \"Orlenok\", Central Television USSR",[ru],,S3645,S3645,909356683cb8bb5f9872a7f34242b81f
159429,TBWA\CHIAT\DAY,[us],,T123,T1232,e5... | Reading a CSV file with quotation and backslashes not working correctly | CC BY-SA 4.0 | null | 2023-03-04T22:33:58.050 | 2023-03-04T23:34:42.300 | 2023-03-04T23:11:52.020 | 3,316,136 | 3,316,136 | [
"python",
"pandas"
] |
75,639,106 | 2 | null | 75,639,007 | 0 | null | Here's a grouper function that will yield pairs (or triplets etc.) from a list until it reaches the end, where any excess values are appended to the last yielded group:
```
def grouper(list, n):
llen = len(list)
for i in range(0, llen // n * n, n):
if i + n * 2 > llen:
yield list[i:]
... | null | CC BY-SA 4.0 | null | 2023-03-04T22:37:30.057 | 2023-03-05T02:51:30.557 | 2023-03-05T02:51:30.557 | 9,473,764 | 9,473,764 | null |
75,639,110 | 2 | null | 47,701,801 | 0 | null | Just go to settings and make sure debug.javascript is disabled if not make it disabled
| null | CC BY-SA 4.0 | null | 2023-03-04T22:38:20.240 | 2023-03-04T22:38:20.240 | null | null | 7,015,389 | null |
75,639,105 | 2 | null | 75,639,048 | 1 | null | Try to add this line after the shebang:
```
# Tell Perl your code is encoded using UTF-8.
use utf8;
# Tell Perl input and output is encoded using UTF-8.
use open ':std', ':encoding(UTF-8)';
```
See
[https://stackoverflow.com/a/15147306/465183](https://stackoverflow.com/a/15147306/465183)
[https://perldoc.perl.org/fea... | null | CC BY-SA 4.0 | null | 2023-03-04T22:36:53.917 | 2023-03-04T22:47:34.230 | 2023-03-04T22:47:34.230 | 465,183 | 465,183 | null |
75,639,108 | 1 | null | null | 0 | 14 | Windows has three title bar theme modes, dark, light, custom color. I was wondering if I could change the title bar in my pyqt5 app to use the dark theme.
I know of the qt.conf file method where you put:
```
[Platforms]
WindowsArguments = darkmode=1
```
to do dark theme if windows dark mode is on. But is this availabl... | Is there a way to change the title bar theme to dark in PyQT5? | CC BY-SA 4.0 | null | 2023-03-04T22:38:09.103 | 2023-03-04T22:38:09.103 | null | null | 19,063,809 | [
"python",
"python-3.x",
"pyqt5",
"darkmode"
] |
75,639,114 | 1 | null | null | -2 | 13 | I am looking for the alternatives of `animation-duration`
So far I only saw `-webkit-animation-duration`
```
.animate{
animation-duration: 1s;
-webkit-animation-duration: 1s;
}
```
| What are the cross browser compatibility alternatives of animation-duration? | CC BY-SA 4.0 | null | 2023-03-04T22:38:55.410 | 2023-03-04T22:38:55.410 | null | null | 7,333,766 | [
"css"
] |
75,639,111 | 1 | null | null | 0 | 7 | I'm building a Spring Boot application that has two sets of routes: one for CMS-related functionality that should use Amazon Cognito for authentication, and another for app-related functionality that should use Firebase Authentication.
I've already set up the basic Spring Security configuration for OAuth2 authenticatio... | How can I configure different OAuth2 providers for different routes in Spring Boot? | CC BY-SA 4.0 | null | 2023-03-04T22:38:27.007 | 2023-03-04T22:38:27.007 | null | null | 12,043,263 | [
"spring",
"spring-boot",
"spring-security",
"spring-security-oauth2",
"spring-oauth2"
] |
75,639,113 | 2 | null | 75,639,044 | 0 | null | It looks like you missed this step?
Set status to 1 if not input as 1 or 2.
Try this instead?
```
if (AGI > 120000)
{
System.out.printf("AGI: $%,2d\n", AGI);
System.out.println("Error: Income too high to use this form");
}
else if (status == 2)
{
taxableIncome = 0;
... | null | CC BY-SA 4.0 | null | 2023-03-04T22:38:52.487 | 2023-03-04T22:38:52.487 | null | null | 21,328,046 | null |
75,639,107 | 1 | null | null | 0 | 6 | I have unity game with google mobile ads installed. Everything seems to work okay when I open the game but after watching 2-3 ads , i get this error in logcat:
```
2023.03.05 02:31:44.513 30119 32236 Error MediaCodecVideoRenderer Video codec error
2023.03.05 02:31:44.513 30119 32236 Error MediaCodecVideoRenderer qi: ... | How to fix ExoPlay error due to Admob ads? | CC BY-SA 4.0 | null | 2023-03-04T22:37:46.553 | 2023-03-04T22:59:15.470 | 2023-03-04T22:59:15.470 | 12,572,405 | 21,057,359 | [
"unity3d"
] |
75,639,115 | 2 | null | 75,614,329 | 0 | null | I manage to fix this issue by doing the following
I had to rename every file exactly the same as the exported class inside the file.
For example:
```
export class User extends model{}
```
Also I had alter:true on the sequelize.sync, which tries to perform changes to match the table on your VsCode with the one in the ... | null | CC BY-SA 4.0 | null | 2023-03-04T22:39:05.457 | 2023-03-04T22:39:05.457 | null | null | 17,510,768 | null |
75,639,116 | 2 | null | 48,809,595 | 0 | null | Your code will cause deadlocks in Windows OS.
check MS best practices: [https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices](https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices)
| null | CC BY-SA 4.0 | null | 2023-03-04T22:39:34.033 | 2023-03-04T22:39:34.033 | null | null | 21,333,753 | null |
75,639,120 | 1 | null | null | 0 | 28 | I've tried to add one month to the previous month, but I get the 1004 error
My VBA code (this is a simple example but I going to use the for loop)
```
Sub add_month()
Dim d1, d2 As Date
Dim dif, i As Integer
d1 = InputBox("Put the begin date")
d2 = InputBox("Put the end date")
dif = datediff("m", d1, d2)
Worksheets("... | Adding one month to the previous date | CC BY-SA 4.0 | null | 2023-03-04T22:40:11.583 | 2023-03-04T23:37:44.713 | 2023-03-04T23:19:21.283 | 21,333,749 | 21,333,749 | [
"excel",
"vba",
"date"
] |
75,639,121 | 1 | null | null | -2 | 6 | I want to create a bot in Python to buy/sell etc items on a marketplace without an api.
ChatGPT suggests to analyze the website endpoints, then use webscraping and automation to set it up.
1. Does this make sense?
2. Are there other/better/easier ways to do this?
| Bot for a marketplace site without an API to interact with | CC BY-SA 4.0 | null | 2023-03-04T22:41:04.907 | 2023-03-04T22:41:58.083 | 2023-03-04T22:41:58.083 | 4,621,513 | 21,333,732 | [
"python",
"bots"
] |
75,639,119 | 1 | null | null | 1 | 10 |
# TL;DR
1. Are there significant differences in those 2 types of unit test projects?
2. Do I have to always use matching UT project type to application (.Core WPF -> MSTest .Core or .Framework), or it doesn't matter (.Framework -> MSTest .Core and in opposite way)
# Full version
I'm starting research for my ne... | MSTest differences between .NET Core and .Net Framework projects | CC BY-SA 4.0 | null | 2023-03-04T22:40:08.357 | 2023-03-04T22:53:01.307 | 2023-03-04T22:53:01.307 | 14,345,698 | 14,345,698 | [
"c#",
".net",
"unit-testing",
"mstest",
"data-driven-tests"
] |
75,639,112 | 1 | null | null | 0 | 4 | I'm having trouble with celery and redis in my docker compose and django configuration. The main issue and what I see in the celery console output is that it's using rabbitMQ configuration, but I haven't set rabbitMQ anywhere, only redis.
This is the celery console output:
```
-------------- celery@3b795343b899 v5.2.0 ... | Using celery with redis instead of rabbitMQ in conjunction with Django | CC BY-SA 4.0 | null | 2023-03-04T22:38:32.183 | 2023-03-04T22:38:32.183 | null | null | 9,780,918 | [
"docker",
"redis",
"rabbitmq",
"celery"
] |
75,639,122 | 1 | null | null | 0 | 7 | I came across the following [snippets](https://www.javatpoint.com/nginx-content-caching) about handling cache in Ngnix. I understand that the tokens such as `$cookie_nocache` and `$http_pragma` are Nginx variables and are likely predefined. From the name `$http_pragma`, I can guess it's related to the [Pragma HTTP head... | Finding Pre-defined variables in Nginx | CC BY-SA 4.0 | null | 2023-03-04T22:41:46.010 | 2023-03-04T22:48:01.273 | 2023-03-04T22:48:01.273 | 3,697,757 | 3,697,757 | [
"nginx"
] |
75,639,123 | 2 | null | 75,639,077 | 0 | null | ```
const elementYouWantAddClass = document.getElementById('mvArea');
window.addEventListener('scroll', ()=>{
if ( window.scrollY > 0) {
elementYouWantAddClass.classList.add("resize");
} else {
elementYouWantAddClass.classList.remove("resize");
}
});
```
okay im find that [https://develope... | null | CC BY-SA 4.0 | null | 2023-03-04T22:41:56.407 | 2023-03-04T22:41:56.407 | null | null | 16,945,930 | null |