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,615,957
2
null
11,296,262
0
null
You can get the linkedin url using the below format if you have the user id. > [https://www.linkedin.com/in/userID/](https://www.linkedin.com/in/userID/) Replace the userID with linkedin user id. Thank you!
null
CC BY-SA 4.0
null
2023-03-02T13:17:25.533
2023-03-02T13:42:24.483
2023-03-02T13:42:24.483
21,319,224
21,319,224
null
75,615,931
1
null
null
0
19
I am creating a react native application for Android. I want to do language translation using . I get the following error when I deploy my app ``` LOG i18next::translator: missingKey en translation hello hello LOG i18next::translator: missingKey en translation this line is translated this line is translated LOG i1...
How to fix i18next::translator: missingKey en error in React native?
CC BY-SA 4.0
null
2023-03-02T13:14:39.707
2023-03-03T05:50:46.350
2023-03-03T05:50:46.350
9,218,131
9,218,131
[ "android", "typescript", "react-native", "react-hooks", "multilingual" ]
75,615,961
2
null
75,614,636
0
null
To get rid of the unwanted animation for `edits` you can change logic behind this action. Instead of doing `deleteRows` + `insertRows` you can modify data source for these rows (corresponding item in `models` array). Then `tableView.reloadData()` should do all the work by itself (and without animation, as these cells ...
null
CC BY-SA 4.0
null
2023-03-02T13:17:29.667
2023-03-02T13:17:29.667
null
null
8,651,098
null
75,615,959
2
null
75,606,650
1
null
You can use Google Cloud REST API: [https://cloud.google.com/storage/docs/uploading-objects?hl=en#rest-upload-objects](https://cloud.google.com/storage/docs/uploading-objects?hl=en#rest-upload-objects) ``` const token = 'OAUTH TOKEN' const bucket = 'BUCKET_NAME' const file = await Deno.readFile('./sample.txt'); const...
null
CC BY-SA 4.0
null
2023-03-02T13:17:25.960
2023-03-02T13:26:18.103
2023-03-02T13:26:18.103
1,119,863
1,119,863
null
75,615,958
2
null
75,615,690
0
null
You can't use a Numpy array directly as a data format. If you're looking to ingest a 2D numpy array, you'll - `POST`- so the server side ends up looking like ``` from typing import List import numpy as np from fastapi import FastAPI app = FastAPI() @app.post("/sabr") def sabr(x1: List[float], x2: List[List[float]]...
null
CC BY-SA 4.0
null
2023-03-02T13:17:25.743
2023-03-02T13:17:25.743
null
null
51,685
null
75,615,965
2
null
75,602,909
0
null
Refresh tokens have been used in web and mobile apps for many years. They provide a mechanism for keeping API message credentials short lived. It is not usual to involve end users in technical prompts about refresh tokens though. Typically, if a refresh token lifetime is 4 hours, and an access token 15 minutes, you onl...
null
CC BY-SA 4.0
null
2023-03-02T13:17:54.417
2023-03-02T13:17:54.417
null
null
9,019,885
null
75,615,938
2
null
75,592,622
1
null
## Your Problem > I want to publish my flutter app to the google play store, but i was thinking is my api key safe, can other people don't acces my api key and use it on my cost? Not it's not safe at all, anyone can access it. It's as easy as using static analysis,a MitM attack and/or instrumentation at runtime. Let...
null
CC BY-SA 4.0
null
2023-03-02T13:15:46.773
2023-03-02T15:04:58.470
2023-03-02T15:04:58.470
6,454,622
6,454,622
null
75,615,966
2
null
75,609,589
2
null
says > Never use `<secure/_string.h>` ; include `<string.h>` instead. So it means that includes
null
CC BY-SA 4.0
null
2023-03-02T13:17:55.523
2023-03-04T08:33:06.467
2023-03-04T08:33:06.467
995,714
13,641,671
null
75,615,956
1
75,616,488
null
0
39
Scenario: Create a query that will output the LegID and the CarriCode where in the MCode should matched on the 3rd table. I am using string_split to individually check if the MCode is existing in the 3rd table Sample table and data can be found here: [http://sqlfiddle.com/#!18/f8bd9f](http://sqlfiddle.com/#!18/f8bd9f) ...
Create a query that uses string_split
CC BY-SA 4.0
null
2023-03-02T13:17:11.233
2023-03-02T14:01:15.793
2023-03-02T13:56:01.823
17,280,732
17,280,732
[ "sql-server", "tsql" ]
75,615,971
2
null
28,167,987
0
null
try: sudo apt-get install requirements.txt. Its work for me but make sure you're in the Osintgram directory first.
null
CC BY-SA 4.0
null
2023-03-02T13:18:25.353
2023-03-02T13:18:56.963
2023-03-02T13:18:56.963
21,319,250
21,319,250
null
75,615,968
1
null
null
0
5
Im studying myself about Computer Organization, I did read all common Cache Replacement Policies but I dont know exactly when they must be used. Specifically, I dont know when the Optimal Cache Replacement must be used but not LRU or something like that and is Optimal Replacement the best Cache Replacement because of t...
When should we use Optimal Cache Replacement?
CC BY-SA 4.0
null
2023-03-02T13:18:19.493
2023-03-02T13:18:19.493
null
null
20,652,785
[ "caching" ]
75,615,955
2
null
75,615,093
1
null
Why would you want to do that through notepad++ ? To create a new csv file that will contain only lines with value '22102' in the 'Location' column, it's as easy as: ``` $file = "C:\Files\Timings.csv" $outFile = $file -replace '\.csv$', '-modified.csv' Import-Csv -Path $file -Encoding UTF8 | Where-Object { $_.Locat...
null
CC BY-SA 4.0
null
2023-03-02T13:17:08.037
2023-03-03T10:37:11.590
2023-03-03T10:37:11.590
9,898,643
9,898,643
null
75,615,970
2
null
73,909,204
0
null
I installed postgres using ``` scoop install postgresql ``` Then, I have started postgresql using following command ``` pg_ctl start ``` Login is successful with following command in another cmd/powershell window: ``` psql --username=postgres ``` or ``` psql -U postgres ``` According to help, psql --help, you need ...
null
CC BY-SA 4.0
null
2023-03-02T13:18:24.677
2023-03-02T13:18:24.677
null
null
41,782
null
75,615,974
2
null
75,615,836
1
null
``` if set(first_array) & set(second_array): print("There are some shared elements") ``` Since this takes time to construct two sets, it will be slower than the naive array implementation on short arrays, but much more performant on large ones.
null
CC BY-SA 4.0
null
2023-03-02T13:18:43.697
2023-03-02T13:18:43.697
null
null
240,443
null
75,615,969
2
null
75,615,207
1
null
You can simply achieve this requirement with the help of [Array#reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) method. Live Demo ``` const orderbook = [ { "ClientID": "31135d2c-a5f0-11ed-b07a-10e7c6f7c62e", "Side": "BID", "Pair": "BTC/USDT", "Qu...
null
CC BY-SA 4.0
null
2023-03-02T13:18:22.647
2023-03-02T13:18:22.647
null
null
4,116,300
null
75,615,975
2
null
50,968,152
0
null
Added core with its options worked well(express V.4.18.2) ``` const cors = require('cors') const corsOptions = { // origin:'https://abc.onrender.com', AccessControlAllowOrigin: '*', origin: '*', methods: 'GET,HEAD,PUT,PATCH,POST,DELETE' } app.use(cors(corsOptions)) ``` if you are sending authentication...
null
CC BY-SA 4.0
null
2023-03-02T13:18:45.693
2023-03-02T13:18:45.693
null
null
8,202,974
null
75,615,973
2
null
72,649,251
0
null
According to the official documentation, when using BeautifulSoup to parse, the document (or the string) is first converted to Unicode, and HTML entities are converted to Unicode characters for BS4 (the argument `convertEntities` which works in BeautifulSoup 3 doesn't work anymore.). Therefore, after making the soup w...
null
CC BY-SA 4.0
null
2023-03-02T13:18:42.687
2023-03-02T13:18:42.687
null
null
14,485,623
null
75,615,964
2
null
75,610,926
0
null
As per the logs issue may be with `kubelet` server or `CRI`. ``` kubeadm reset -f sudo systemctl stop kubelet sudo systemctl stop docker ``` Flush the iptables & turn swapoff ( Add IP route(s) so Kubernetes cluster addresses go via the appropriate network adapters, using the below commands : ``` sudo iptables -F &...
null
CC BY-SA 4.0
null
2023-03-02T13:17:43.010
2023-03-05T03:36:34.863
2023-03-05T03:36:34.863
19,818,461
19,818,461
null
75,615,963
1
null
null
0
38
I am working on a private project, I have managed to create a combo listboxes that can add items from listboxA to go listboxB and from b to a, but I want the items in both list box to be ordered alphabetically whenever I add or remove. I want to also add a text field that I can type a profession and add to listbox b, a...
How can I sort the items in dynamic created selection / option box in jquery or javascript
CC BY-SA 4.0
null
2023-03-02T13:17:38.100
2023-03-02T14:53:30.840
2023-03-02T14:53:30.840
82,548
12,832,260
[ "javascript", "jquery", "dynamic", "html-select" ]
75,615,980
2
null
75,321,085
0
null
This isn't something you should worry about. I would recommend sticking to Kotlin 1.8.0 for the time being as an upgrade may cause some compatibility issues with some other dependencies. Mainly material. Also, core-ktx is specified 3 times in your dependencies so I think that's something you need to look into
null
CC BY-SA 4.0
null
2023-03-02T13:19:09.337
2023-03-02T13:19:09.337
null
null
13,295,989
null
75,615,976
2
null
75,615,787
0
null
In bash, a regex is not enclosed in slashes. Spaces outside of parentheses need to be backslashed or quoted. To use the `=~` operator, you can't use the `[` builtin, you need the `[[` shell keyword. To turn on case-insensitive matching, set the `nocasematch` shell option. Testing in bash: ``` $ shopt -s nocasematch $ i...
null
CC BY-SA 4.0
null
2023-03-02T13:18:45.943
2023-03-02T13:27:01.227
2023-03-02T13:27:01.227
1,030,675
1,030,675
null
75,615,979
2
null
64,954,532
0
null
To debug chrome extensions force installed via registry or GPO, you should set the correct value for the `DeveloperToolsAvailability` key. By default, it is `0`. You need `1`. [DeveloperToolsAvailability | Chrome Enterprise Policy List & Management | Documentation](https://chromeenterprise.google/policies/#DeveloperToo...
null
CC BY-SA 4.0
null
2023-03-02T13:19:05.947
2023-03-02T13:19:05.947
null
null
513,723
null
75,615,984
2
null
75,615,819
0
null
I don't know if I understood what you meant but to "json stringify" an object you can just create the object in question, import the json library and use the dump method of the json module
null
CC BY-SA 4.0
null
2023-03-02T13:19:16.663
2023-03-02T13:19:16.663
null
null
15,598,399
null
75,615,977
1
null
null
0
10
If you have the possibility to help me because I am stuck on an error that I have never seen and I have no idea how to solve it. I've been at it for over two days. I don't know if it's from Symfony, node or another file. ``` [webpack-cli] Failed to load 'C:\xampp\htdocs\eclats_dautrefois_projet\webpack.config.js' confi...
How can I solve this unknown error from symfony or webpack : [webpack-cli]
CC BY-SA 4.0
null
2023-03-02T13:18:57.350
2023-03-02T13:18:57.350
null
null
21,319,154
[ "node.js", "symfony", "webpack" ]
75,615,978
2
null
75,516,236
1
null
First I fixed the syntax errors in your patch files: - `---``+++`- ``- `@@``2``3``more context` p1 is now: ``` --- old +++ new @@ -1,1 +1,2 @@ + add this first line this line is just context ``` p2 is now: ``` --- old +++ new @@ -1,2 +1,2 @@ - add this first line + change the first line this line is just context @@ ...
null
CC BY-SA 4.0
null
2023-03-02T13:19:03.720
2023-03-02T13:19:03.720
null
null
18,607,584
null
75,615,982
1
null
null
0
10
I've been searching information about using OAuth 2.0 with SwiftUI and I've found this useful example from kodeko.com (the old raywenderlich.com): [https://www.kodeco.com/19364429-implementing-oauth-with-aswebauthenticationsession](https://www.kodeco.com/19364429-implementing-oauth-with-aswebauthenticationsession) Divi...
SwiftUI Oauth custom URL type needed?
CC BY-SA 4.0
null
2023-03-02T13:19:15.600
2023-03-02T13:19:15.600
null
null
1,294,807
[ "swift", "swiftui", "oauth" ]
75,615,986
2
null
75,615,083
0
null
Why would you want to generate two different factory methods? You can think of the factory methods in Injectable as a constructor that is called with the class. You cannot do more than one.
null
CC BY-SA 4.0
null
2023-03-02T13:19:24.010
2023-03-02T13:19:24.010
null
null
18,061,142
null
75,615,981
1
null
null
0
17
I want to convert the text from the screenshot to a string that can later be send in the body of the email. I'm pretty new to programming and I have no idea if it's possible. Thanks in advance to anyone that has any suggestions. ``` pic = pyscreenshot.grab(bbox=(1588, 502, 2317, 1727)) pic.save("text.png") time.sleep ...
Converting output from print into string that can be later in the same script
CC BY-SA 4.0
null
2023-03-02T13:19:12.407
2023-03-02T13:19:12.407
null
null
20,973,081
[ "python", "python-tesseract", "smtplib" ]
75,615,985
2
null
75,615,514
1
null
Use `$setWindowFields` to compute the total with `"partitionBy": null`. Then use `$divide` and `$multiply` to compute the percentage. ``` db.collection.aggregate([ { "$setWindowFields": { "output": { "total": { "$sum": "$points" } } } }, { $set: { percentage...
null
CC BY-SA 4.0
null
2023-03-02T13:19:19.210
2023-03-02T14:05:11.110
2023-03-02T14:05:11.110
14,732,669
14,732,669
null
75,615,983
2
null
75,539,433
0
null
I tried to reproduce the issue by cloning your code to my environment and I was getting the same error: ![enter image description here](https://i.imgur.com/lvlZR1g.png) I have degraded the version of `Microsoft.Extensions.Http` from to and it worked fine for me. ![enter image description here](https://i.imgur.com/w4...
null
CC BY-SA 4.0
null
2023-03-02T13:19:16.627
2023-03-02T13:19:16.627
null
null
19,991,670
null
75,615,988
2
null
75,615,605
0
null
There's no reason to be passing the theme prop through to any components. Use the useTheme() hook for accessing the theme. It's better to use the hook in the places you need to rather than drilling the prop through down to every component you need it on. If however you feel like using props (I would discourage that), t...
null
CC BY-SA 4.0
null
2023-03-02T13:19:50.550
2023-03-02T13:20:48.343
2023-03-02T13:20:48.343
13,794,859
13,794,859
null
75,615,987
1
null
null
0
18
I'm developing a white-label app solution and I need to create a Firebase project for each project. When creating a new Firebase project, it automatically creates OAuth 2.0-Client-IDs for Android and iOS. As all apps have the same backend and also the same authentication flow I want to use the same OAuth2Client in my N...
How to use Google OAuth2Client for multiple apps
CC BY-SA 4.0
null
2023-03-02T13:19:40.120
2023-03-02T13:19:40.120
null
null
11,482,533
[ "firebase", "google-cloud-platform", "google-oauth" ]
75,615,992
1
null
null
0
5
I have tried using this command in WSL gcloud auth login Getting this error please anyone help!! Error:There was a problem with web authentication Error:(gcloud.auth.login) Could not reach the login server. A potential cause of this could be because you are behind a proxy. Please set the environment variables HTTP_PROX...
Error: there was problem with web authentication
CC BY-SA 4.0
null
2023-03-02T13:20:13.360
2023-03-02T13:20:13.360
null
null
20,666,191
[ "ubuntu", "cluster-computing", "gcloud", "windows-subsystem-for-linux" ]
75,615,990
2
null
64,820,312
0
null
I am getting the same thing. When I put the protocol down and follow the example as is, I get a “Any Hubconnection cannot be a HubConnection” error. This is on the ChatHubConnection and no amount of strict casting or unwrapping fixes it. So I don’t put in the protocol and just instantiate it the same and it runs but ge...
null
CC BY-SA 4.0
null
2023-03-02T13:20:05.730
2023-03-02T13:20:05.730
null
null
7,838,431
null
75,615,991
1
75,622,061
null
0
54
I have part of a script that i can't figure out. I want the script to check if the app is running. I set parameter to check for the app using a function. SO in my test i would like to see if the app is running it would return with a 0 and complete my IF statement, and if if the app is not running it would return with ...
Conditions must be true going continuing
CC BY-SA 4.0
null
2023-03-02T13:20:13.073
2023-03-03T00:40:36.653
2023-03-03T00:40:36.653
18,239,272
18,239,272
[ "bash", "sh" ]
75,615,989
1
null
null
0
33
How to change string value extracted from UI into number? I have to perform `Math.round()` function on. Since `Math.round()` function only works on integers. `let GE_UI = await this.iGetAtrribute(MyproSelectors.ID_Overridepage, "value"); var GE = Math.round(GE_UI) var aks = parseInt(GE_UI); console.log("ui1 " + GE_UI);...
How to convert string value to number in playwright automation?
CC BY-SA 4.0
null
2023-03-02T13:19:53.827
2023-03-02T17:13:17.877
null
null
21,305,095
[ "selenium-webdriver", "decimal", "playwright" ]
75,615,996
2
null
73,668,472
0
null
I had the same problem! ``` $ node run build node:internal/modules/cjs/loader:1024 throw err; ^ Error: Cannot find module '/home/ec2-user/environment/cdk-eb-infra/run' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15) at Function.Module._load (node:internal/modules/cjs/loader:8...
null
CC BY-SA 4.0
null
2023-03-02T13:20:34.307
2023-03-02T13:20:34.307
null
null
21,316,611
null
75,615,998
2
null
75,615,886
2
null
With `janitor::adorn_totals`: ``` library(dplyr) library(janitor) data %>% group_by(Group) %>% group_modify(~ .x %>% adorn_totals()) Group Gender Y N <chr> <chr> <dbl> <dbl> 1 Group1 Male 7 45 2 Group1 Female 5 8 3 Group1 Total 12 53 4 Group2 Male 6 2 5 Group2 Fem...
null
CC BY-SA 4.0
null
2023-03-02T13:20:36.597
2023-03-02T13:20:36.597
null
null
13,460,602
null
75,615,999
2
null
75,611,689
0
null
``` Try This code : public static void main(String[] args) { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container cp = frame.getContentPane(); JEditorPane editorPane = new JEditorPane(); editorPane.setText(Constant.text); // Add your ...
null
CC BY-SA 4.0
null
2023-03-02T13:20:40.880
2023-03-02T13:43:22.917
2023-03-02T13:43:22.917
21,093,121
21,093,121
null
75,615,994
1
null
null
0
39
I am experiencing the error below error when running a code with #include <gtk/gtk.h> ``` PS C:\Users\UserName\C_Code Projects\Test> gcc hello.c -o hello hello.c:1:21: fatal error: gtk/gtk.h: No such file or directory #include <gtk/gtk.h> ^ compilation terminated. ``` I have installed msys2, gcc ...
Gtk file not found, [fatal error: gtk/gtk.h: No such file or directory #include <gtk/gtk.h>] on VS Code, Windows 10
CC BY-SA 4.0
null
2023-03-02T13:20:24.440
2023-03-02T13:20:24.440
null
null
16,861,509
[ "c", "visual-studio-code", "gtk", "gtk3" ]
75,616,003
2
null
75,613,257
0
null
Add new ContentType("text/calendar; method=REQUEST") to calendar item
null
CC BY-SA 4.0
null
2023-03-02T13:21:08.493
2023-03-02T13:21:08.493
null
null
21,317,580
null
75,615,995
2
null
75,615,849
0
null
The following code illustrates how to write a service that can store and retrieve arbitrary objects. You can register this with your builder, inject it in the usual way into your pages, and it will be always available. ``` public interface IStorageService { /// <summary> /// Adds the specified object to Stora...
null
CC BY-SA 4.0
null
2023-03-02T13:20:26.410
2023-03-02T13:20:26.410
null
null
102,937
null
75,616,002
1
null
null
0
18
I know that we can have Github Actions set to trigger after a pull request is merged. However, I am interested in seeing what are the actions triggered due to this particular PR and ideally I want to see it in the same page after I merge the pull request. Is this possible right now? I also have some ADO pipelines which...
Can we see Actions triggered after a pull request is merged in the PR page in Github?
CC BY-SA 4.0
null
2023-03-02T13:21:01.330
2023-03-03T07:14:55.113
2023-03-03T07:14:55.113
21,319,238
21,319,238
[ "github", "azure-devops", "github-actions", "pull-request" ]
75,615,997
1
null
null
-2
32
``` import tkinter as Tk from tkinter import Canvas # from tkinter import FigureCanvasTkAgg from ibapi.client import EClient from ibapi.wrapper import EWrapper from ibapi.contract import Contract import matplotlib.pyplot as plt import pandas as pd import threading import time #Create the tkinter window root = Tk() ro...
Hello, I am putting a historical line chart in a tkinter window but get the following error
CC BY-SA 4.0
null
2023-03-02T13:20:35.177
2023-03-02T13:23:50.680
2023-03-02T13:23:50.680
4,727,702
16,636,581
[ "python", "tkinter", "interactive-brokers", "ib-api" ]
75,616,004
2
null
75,614,803
0
null
Couple of points. 1. With Windows 2012 R2 domain controllers, you cannot raise the functional level straight away. You need to introduce new domain controllers which are either 2016 or 2019, remove the 2012 R2 ones completely before the functional levels can be raised. This is something you need to plan for as all sup...
null
CC BY-SA 4.0
null
2023-03-02T13:21:10.793
2023-03-02T13:21:10.793
null
null
20,438,197
null
75,615,972
1
null
null
0
20
I have two sibling divs within the same container, the second wrap contains cards of a fixed size, with a fixed gap and has flex-wrap set. I want the first div to match the width of the content of the second. I can get it to match the total width of the second, but when the width of their parent is not a multiple of ...
CSS: How can I make the width of a div match a sibling that has flex-wrap set to wrap
CC BY-SA 4.0
null
2023-03-02T13:18:38.170
2023-03-02T22:19:56.310
2023-03-02T22:19:56.310
2,422,778
6,466,674
[ "html", "css", "flexbox" ]
75,616,000
1
null
null
0
41
I have an app written in Xamarin Forms that I want to migrate to .NET MAUI. This app references a library project I have written that uses . Therefore, this project imports the NuGet Xamarin.Essentials. On the other hand, I have followed one of the .NET MAUI tutorials to get a .NET MAUI app working: [https://learn.micr...
How to migrate from Xamarin Forms to .NET MAUI a library that uses Xamarin Essentials SecureStorage
CC BY-SA 4.0
null
2023-03-02T13:20:49.583
2023-03-03T13:45:48.163
2023-03-02T14:49:57.407
3,568,782
3,568,782
[ "xamarin.forms", "maui" ]
75,616,001
1
null
null
0
33
Tried to upgrade to Spring Boot 3.0.3 from 2.7.8 and when i press "Load Gradle Changes" got this error : A problem occurred configuring project ':nc-application:nc-application-web-plugin:nc-application-runtime'. > Task with name 'bootRunMainClassName' not found in project ':nc-application:nc-application-web-plugin:nc-a...
Problem occurred when upgrading Spring Boot to 3.0.3 from 2.7.8
CC BY-SA 4.0
null
2023-03-02T13:20:59.823
2023-03-02T13:32:41.007
null
null
21,319,040
[ "java", "spring-boot", "gradle" ]
75,616,008
2
null
66,238,214
0
null
## Behavior of ASP.NET Core request parameters You can't apply validation attributes `[property: ... ]` to your request parameters that undergoes binding & validation, see [this question](https://stackoverflow.com/questions/65934513/net-5-0-web-api-wont-work-with-record-featuring-required-properties). You will recei...
null
CC BY-SA 4.0
null
2023-03-02T13:21:50.417
2023-03-02T13:21:50.417
null
null
4,553,982
null
75,616,011
1
null
null
-2
14
I am trying to setup an autoscale group in AWS which will run Wordpress and will be connected to MySQL. I have trouble running the PHP service - when I try to access through "publicIP/wp-admin/install.php" it says that PHP is not running: > Error: PHP is not running WordPress requires that your web server is running PH...
Terraform, Apache, PHP and Wordpress
CC BY-SA 4.0
null
2023-03-02T13:22:11.243
2023-03-02T13:22:11.243
null
null
19,948,542
[ "amazon-web-services", "terraform", "hcl" ]
75,616,014
2
null
75,588,613
0
null
These are not directly related to your issue, but 1. Please try to avoid having parameters like this: Object requestBody, prefer two generic parameters instead ``` Task<(TResponse, HttpStatusCode)> SendPostAsync<TRequest, TResponse>( LoggingContext loggingContext, string path, CancellationToken ct, ...
null
CC BY-SA 4.0
null
2023-03-02T13:22:28.663
2023-03-02T13:22:28.663
null
null
13,268,855
null
75,616,016
2
null
75,615,886
1
null
A simple 'dplyr' only solution: I usually use one trick using `count()` or any other aggregation: recode the group of interest into `"Total"` and then `bind_rows()` with the original data. Below shown with the `iris` data set, since we only have your aggregated data. ``` library(dplyr) iris %>% mutate(Species = "T...
null
CC BY-SA 4.0
null
2023-03-02T13:22:40.287
2023-03-02T13:27:54.613
2023-03-02T13:27:54.613
9,349,302
9,349,302
null
75,616,019
2
null
75,615,160
0
null
It don't work because there is no code running on the container. It will exit automatically after the code is ended.
null
CC BY-SA 4.0
null
2023-03-02T13:22:50.837
2023-03-02T13:22:50.837
null
null
8,320,204
null
75,616,018
1
75,616,247
null
0
24
``` table_a billno desc qty amount 10324 orange -1 -1.00 10324 apple 1 3.00 10324 papaya 1 2.00 10431 water melon 1 2.00 10431 kiwi 1 3.00 10233 banana -1 -2.50 10233 mango 1 4.00 .. .. total 378 rec...
How to use select statement to query only negative value in oracle sql
CC BY-SA 4.0
null
2023-03-02T13:22:46.237
2023-03-02T13:42:05.380
null
null
14,328,183
[ "oracle", "sqlplus" ]
75,616,020
1
null
null
-2
31
I want to duplex stream with .NET 6 grpc services. The client should work like a server and the server should work like a client. Actually, I want to make a callback service where I can run methods with duplex channel. Bidirectional streaming is not suitable for my project. Please I ask for your support.
How can I do duplex streaming with .NET 6 GRPC services?
CC BY-SA 4.0
null
2023-03-02T13:23:01.890
2023-03-02T13:43:36.087
2023-03-02T13:43:36.087
13,302
8,759,560
[ "c#", "microservices", "grpc" ]
75,616,021
1
null
null
1
27
I am calling pexpect with a sudo command thus: `lssubproc = pexpect.spawn('sudo ls /dev/')` The pexpect process expects a password thus: `lssubproc.expect('\[sudo\] password for .*\: ')` Is there any way to redirect the password I get from my tkinter dialog box (below) to the pexpect.expect function? `passwd = tk.simpl...
pexpect password entry from tkinter dialog
CC BY-SA 4.0
null
2023-03-02T13:23:07.033
2023-03-02T15:38:29.647
2023-03-02T15:06:26.860
4,582,157
4,582,157
[ "python", "tkinter", "pexpect" ]
75,616,026
2
null
75,604,782
0
null
Thanks for all the answers. I used the code listed below to fix it. Thanks for the help. Edit: I pasted the wrong thing. This is the actual code I used. I also upped the div sizes a bit. Thanks for all the help! ``` display: inline-block; display: -moz-inline-box; *display: inline; /* For IE7 */ zoom: 1; /* Trigger has...
null
CC BY-SA 4.0
null
2023-03-02T13:23:42.383
2023-03-02T23:00:52.437
2023-03-02T23:00:52.437
21,307,806
21,307,806
null
75,616,023
2
null
50,338,959
0
null
The problem is because of the pipes. However, the following worked for me even with pipes: ``` proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) try: return proc.communicate(timeout=1.0) except TimeoutExpired: proc.kill() return proc.communicate() ``` Source: [https://github.com/python/cpython/issues/81605](h...
null
CC BY-SA 4.0
null
2023-03-02T13:23:26.307
2023-03-02T13:23:26.307
null
null
6,760,875
null
75,616,015
1
null
null
0
30
I have built a test project that has a simple api where the front end interacts with the backend and receives a string back. I built this project to test how I would host this on aws ec2 instances. What I have done so far is, built images for the frontend and the backend and then pulled them in the respective ec2 insta...
CORS issue between frontend and backend instance
CC BY-SA 4.0
null
2023-03-02T13:22:29.500
2023-03-03T05:11:44.357
2023-03-02T13:31:32.993
11,477,360
11,477,360
[ "reactjs", "amazon-web-services", "spring-boot", "docker", "amazon-ec2" ]
75,616,024
1
null
null
-1
31
I am using OpenCV library in python to create a binary image and show it directly to the user. Here is the function: ``` def binarize_image(filename, seconds): img = cv2.imread(filename) greyscale_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) _, binary_img = cv2.threshold(greyscale_img, 127, 255, cv2.THRESH_B...
How to get rid of this error in opencv-python? qt.qpa.xcb: could not connect to display. Available platform plugins are: xcb
CC BY-SA 4.0
null
2023-03-02T13:23:29.490
2023-03-02T13:23:29.490
null
null
18,713,405
[ "python", "docker", "qt", "opencv" ]
75,616,022
1
null
null
0
14
I want to make a bluetooth connection. I can scan but cannot pair devices. I get an error like this "read failed, socket might closed or timeout". It is written in other titles to use "createRfcommSocketToServiceRecord" instead of "createInsecureRfcommSocketToServiceRecord". However, this was not the solution. ``` @Ove...
Bluetooth Connection Exception On Java
CC BY-SA 4.0
null
2023-03-02T13:23:23.610
2023-03-03T15:28:49.043
2023-03-03T07:55:18.067
20,607,170
20,607,170
[ "java", "android", "bluetooth" ]
75,616,030
2
null
75,615,932
0
null
Your naming fits exactly what EF likes. In UserAccountAuthenticationHistory you add ``` public int UserAccountId {get;set;} ``` and in UserAccount you add ``` public virtual ICollection<UserAccountAuthenticationHistory> UserAccountAuthenticationHistories { get; set; } ``` And EF figures it all out.
null
CC BY-SA 4.0
null
2023-03-02T13:24:03.757
2023-03-02T13:24:03.757
null
null
2,854,001
null
75,616,034
2
null
75,615,790
0
null
You can achieve a deepcopy via first creating a dict and calling deepcopy on the dict (don't know y deepcopy on df does not work properly): ``` new_df = pd.DataFrame(copy.deepcopy(df.to_dict())) ``` Edit: If you read the reference for the pandas copy method: It says that for python objects no deep copy is performed. N...
null
CC BY-SA 4.0
null
2023-03-02T13:24:33.390
2023-03-02T13:33:09.960
2023-03-02T13:33:09.960
10,353,865
10,353,865
null
75,616,006
1
null
null
0
45
I've just started learning react. I am doing a sample program about react routing. Here is my codes: ``` import React from "react"; import { createRoot } from "react-dom/client"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import SignUp from "./components/SignUp.jsx"; import Login from "./componen...
How to handle a path's subdirectory if a subpath is not found?
CC BY-SA 4.0
null
2023-03-02T13:21:45.747
2023-03-03T07:04:02.757
2023-03-03T07:04:02.757
10,410,243
10,410,243
[ "javascript", "reactjs", "react-router" ]
75,616,027
1
null
null
1
53
I have these types and an interface: ``` export type Plan = 'arcade' | 'advanced' | 'pro' export type PlanDuration = 'monthly' | 'yearly' export type AddOn = 'onlineService' | 'largerStorage' | 'customizableProfile' export type AddOns = Record<AddOn, boolean> export interface FormItems { name: string email: st...
Why I have to pick types in child component?
CC BY-SA 4.0
null
2023-03-02T13:23:49.803
2023-03-04T11:39:40.210
2023-03-04T11:39:40.210
14,111,743
14,111,743
[ "reactjs", "typescript", "types", "parent-child", "children" ]
75,616,037
2
null
75,615,826
0
null
(1) You wanted to find longest consecutive 1's this condition `if n&1 == 0` should be `if n&1 == 1`. (2) Your second if always satisfied every time when `count>=temp` (i.e when `count>=0`) and it is always true and you are setting to `count=0`everytime. ``` n = int(input('enter your no: ')) #7 count = 0 temp = 0 whil...
null
CC BY-SA 4.0
null
2023-03-02T13:24:42.043
2023-03-02T13:24:42.043
null
null
20,172,954
null
75,616,028
2
null
75,613,573
0
null
Considering you principally want to group the objects by the existence or non-existence of `SubID` attribute in it you can use the following spec ``` [ { "operation": "modify-default-beta", "spec": { "*": { "*": { "~SubID": "NoSubID" // if SubID doesn't exist, then assign a default v...
null
CC BY-SA 4.0
null
2023-03-02T13:23:57.367
2023-03-02T13:23:57.367
null
null
5,841,306
null
75,616,035
1
null
null
0
18
I can't figure out how to write the code in Assembler to get the desired result: sequentially light the LEDs clockwise with an interval of 0.5 seconds Assembler is not my strong point, I have a rough idea how to write this cide in C, but Assembler is a bit complicated for me. Maybe someone has some ideas what I should ...
sequentially light the LEDs clockwise with an interval of 0.5 seconds assembler
CC BY-SA 4.0
null
2023-03-02T13:24:38.767
2023-03-02T13:24:38.767
null
null
20,308,104
[ "assembly", "led", "assembler-warnings" ]
75,616,013
1
null
null
0
19
On a particular client when trying to call a WCF Service endpoint I get the following error: ``` The security check for the received data was not successful. An unsecured error was received on a secure channel. A required security header with local name "Security" and namespace "http://docs.oasis-open.org/wss/2004/01/o...
WCF Service Error - The security check for the received data was not successful
CC BY-SA 4.0
null
2023-03-02T13:22:20.103
2023-03-02T13:22:20.103
null
null
20,319,708
[ "c++", "wcf", "mfc", "wcf-security", "wcfserviceclient" ]
75,616,038
2
null
62,209,555
0
null
-> Go to your opencart database and find "oc_seo_url" table open it. -> search that records which are have keyword field null/empty -> delete that records [](https://i.stack.imgur.com/M08rZ.png)
null
CC BY-SA 4.0
null
2023-03-02T13:24:43.293
2023-03-02T13:24:43.293
null
null
11,831,973
null
75,616,040
2
null
75,615,384
3
null
Fixed by removing the SUM - ``` =LET(duration, SEQUENCE(1,StudioProjectedOperatingMonths, COLUMN(I:I)),RevenueAndCosts,INDEX($1:$11,{8;10;11},duration), LET(x, RevenueAndCosts,IF(INDEX(x,1)=0,0,((INDEX(x,1)-INDEX(x,2)- INDEX(x,3))/INDEX(x,1)*100)))) ```
null
CC BY-SA 4.0
null
2023-03-02T13:24:55.317
2023-03-02T13:24:55.317
null
null
19,839,348
null
75,616,044
1
null
null
0
14
Locally works fine, but when I try the build on a managed EXPO project on android it fails on Gradle as in the picture bellow: [](https://i.stack.imgur.com/kZZSj.png) On SDK46 it builds fine.
EAS BUILD fails on EXPO sdk47 and sdk48
CC BY-SA 4.0
null
2023-03-02T13:25:04.697
2023-03-02T13:25:04.697
null
null
8,304,014
[ "react-native", "expo" ]
75,616,031
1
null
null
-2
46
i'm developing an api with express.js and for authentication system i used from jwt library and refresh and access token. everything work when i test my code with jest and supertest and test it with postman. in front end i use react, and i save refresh token in cookie (httpOnly) and save user data such as access token,...
react useEffect call twice
CC BY-SA 4.0
null
2023-03-02T13:24:10.813
2023-03-02T14:03:36.413
null
null
9,965,793
[ "javascript", "reactjs", "typescript", "express" ]
75,616,039
1
null
null
0
10
In my SpringBoot project I have ``` application-prod.properties application-test.properties ``` With the corresponding settings I build the image using ``` ./gradlew bootBuildImage ``` In the image I have both properties, so I can for example use ``` docker run -e "SPRING_PROFILES_ACTIVE=test" -p 8080:8080 my_image_n...
Spring Boot gradle build bootBuildImage. How to exclude test properties from image
CC BY-SA 4.0
null
2023-03-02T13:24:48.467
2023-03-02T13:30:59.460
2023-03-02T13:30:59.460
1,159,184
1,159,184
[ "spring-boot", "gradle", "gradle-plugin", "gradlew" ]
75,616,043
2
null
75,615,899
4
null
> I want to use less memory in my program when passing arguments to the function. Saving 2 bytes (`sizeof(my_ThreadStruct)`) when passing arguments should be the of your problems. Your goal should be to write the most clear, testable, maintainable and debuggable code you could. The 2 bytes that you will save with bit ...
null
CC BY-SA 4.0
null
2023-03-02T13:25:03.027
2023-03-02T13:32:26.363
2023-03-02T13:32:26.363
50,617
50,617
null
75,616,047
1
75,619,010
null
0
17
Thank you for clicking in here and take a look at my problem. So I was trying to upload a csv file (1.31 MB) to JupyterLite. [(what it looks like on my comupter)](https://i.stack.imgur.com/Cf58D.png) When I open it locally with Excel, it shows that there are 2000 rows of data. I dragged and dropped the file into Jupyte...
Some data seem to be missing when I upload the csv file to Jupyter Notebook
CC BY-SA 4.0
null
2023-03-02T13:25:28.560
2023-03-02T17:40:01.317
null
null
21,319,113
[ "jupyter-notebook", "jupyter-lab" ]
75,616,046
1
null
null
-1
24
This is a binary classification (minor or adult) This is how I separated the data: ``` (trainX, testX, trainY, testY) = train_test_split(data, labels, test_size=0.2, random_state=42) ``` Model definition ``` # définition du modèle def build(width, height, depth, classe...
how i can improve my binary classification model with CNN
CC BY-SA 4.0
null
2023-03-02T13:25:15.760
2023-03-02T13:25:15.760
null
null
21,288,240
[ "deep-learning", "neural-network", "conv-neural-network", "training-data" ]
75,616,051
1
null
null
-1
135
``` app.get("/posts/:postId", function(req, res){ const requestedPostId = req.params.postId; Post.findOne({_id: requestedPostId}, function(err, post){ res.render("post", { title: post.title, content: post.content }); }); }); ``` This is what used to work for me, using express and mongoose...
MongooseError: Model.findOne() no longer accepts a callback
CC BY-SA 4.0
null
2023-03-02T13:25:44.493
2023-03-03T07:32:12.360
null
null
21,221,589
[ "javascript", "node.js", "mongodb", "express", "mongoose" ]
75,616,049
1
null
null
0
13
I was trying to write regular expression for string variable in swagger3(OAS). The string can have multiple comma separated string. Each string's length can be between 5 and 15 and each character in a string can be either a-z or A-Z or 0-9. I tried this one . This one does not work as expected For example Valid String ...
Regular Expression for Swagger3 in java. Allowed string with comma separated value
CC BY-SA 4.0
null
2023-03-02T13:25:39.707
2023-03-02T18:55:23.913
null
null
11,921,751
[ "java", "regex", "spring-boot", "swagger-editor", "swagger-3.0" ]
75,616,036
1
75,616,391
null
-1
20
I'm working on an existing project made with react where before you can run the website, you have to execute `npm install`. For what i understood, inside package.json there is everything your website needs to be right to go. Any dependencies, library used inside the website. I want to add chakra ui to the project, and ...
How can I add new dependencies to a project for the next developer?
CC BY-SA 4.0
null
2023-03-02T13:24:41.770
2023-03-02T14:03:06.367
2023-03-02T14:03:06.367
1,264,804
9,181,802
[ "npm", "npm-install", "package.json" ]
75,616,054
1
null
null
0
19
And if you didn't have C or another human language, how would you tell a system to generate text on a screen after working out the specifics of the language you want to create without the help of another? If someone wanted to write a compiler for a system for which no languages other than assembly exist, how would they...
How does text for HLLs appear on the screen? What translates the letters into pixels? Which hardware knows how to use the patterns for them?
CC BY-SA 4.0
null
2023-03-02T13:25:59.073
2023-03-02T13:25:59.073
null
null
21,319,193
[ "ascii", "interpreter", "code-transformation", "text-generation" ]
75,616,052
1
75,616,095
null
3
30
I am trying to sort a list based on dictionary values. The only problem is that if a list contains something that doesn't exist in the dictionary it wont sort it. here is what I have ``` d = { "hello0" : 0, "hello1" : 1, "hello2" : 2, "hello3" : 3 } l1 = ["hello1","hello3","hello0","hello2"...
sort list based on dictionary values even with missing keys
CC BY-SA 4.0
null
2023-03-02T13:25:47.997
2023-03-02T13:29:56.523
null
null
21,319,089
[ "python", "list", "dictionary", "sorting" ]
75,616,057
2
null
75,613,393
1
null
There is no restrictions on existence of multiple relations between entities. There are times that there exists multiple self referencing relations for an entity. But in your specific domain, do staff and client share a same concept? Are they conceptually at some level of abstraction share same concept? Maybe you could...
null
CC BY-SA 4.0
null
2023-03-02T13:26:14.440
2023-03-02T13:26:14.440
null
null
1,889,102
null
75,616,029
1
null
null
-1
15
I have a billing information page, when I enter it, the function asyinc fetch is called that calls getBillingInformations() function, it loads the data and displays in the table. While that data for the table is being loaded I have a TsContentLoader component that is only displayed when the data is being loaded when I ...
I want to show the Loading data component on the first load and not to show it on next loads after the first one
CC BY-SA 4.0
null
2023-03-02T13:23:57.337
2023-03-03T07:28:43.077
2023-03-03T07:28:43.077
19,239,263
19,239,263
[ "typescript", "vuejs2", "loading" ]
75,616,059
2
null
75,615,946
0
null
`any(mask)` returns `True` as long as `mask` has at least one entry that is `True`, i.e. value. What you want to check is if of the entries of `mask` is `True`, in which case the password is invalid. Therefore, you should indeed change your `any` to `not any`.
null
CC BY-SA 4.0
null
2023-03-02T13:26:28.963
2023-03-02T13:26:28.963
null
null
11,186,183
null
75,616,058
1
null
null
0
16
I'm trying to send notifications via firebase with react-native. It's fine when sending locally, but getting this error when starting to receive tokens. My RN version: 0.69 ``` .... import PushNotificationIOS from "@react-native-community/push-notification-ios"; import PushNotification from "react-native-push-notificat...
How to fix react-native token getting issue?
CC BY-SA 4.0
null
2023-03-02T13:26:19.063
2023-03-02T14:55:14.823
2023-03-02T14:55:14.823
209,103
16,118,195
[ "javascript", "firebase", "react-native", "firebase-cloud-messaging", "token" ]
75,616,007
1
null
null
0
7
Before reaching the controller layer, threads are going in blocked state at com.fasterxml.jackson.core.util.InternCache.intern(InternCache.java:54) under high throughput conditions. Attaching the threaddump below. What should be done here? ``` http-nio-8888-exec-176 Stack Trace is: java.lang.Thread.State: BLOCKED (on o...
at com.fasterxml.jackson.core.util.InternCache.intern(InternCache.java:54) in blocked state
CC BY-SA 4.0
null
2023-03-02T13:21:49.257
2023-03-02T13:21:49.257
null
null
12,584,128
[ "spring", "spring-boot", "jackson", "jsonparser" ]
75,616,050
1
null
null
0
26
I'm trying to connect the API to the UI in a flutter. I created Json class and product controls. When I try to create the product list view, I get the below errors. Error lines: ``` 1. itemCount: productController.productList.length, 2. productController.productList[index].imageLink, 3. productController.productList[in...
Flutter - Get Product details API integration using GetX
CC BY-SA 4.0
null
2023-03-02T13:25:40.953
2023-03-03T02:45:52.017
null
null
21,181,705
[ "flutter", "dart", "flutter-getx" ]
75,616,048
1
null
null
0
339
I have an android application where I'm currently using chat gpt 3.0 for completions and it works fine. Now after they released chat gpt 3.5 turbo, I made few changes based on their request example but throwing 400 errors, I appreciate any help Thank you - ``` public static void getResponse(Context context, String URL...
OpenAI ChatGPT (gpt-3.5-turbo) API error 400: "Unexpected response code 400 for https://api.openai.com/v1/completions"
CC BY-SA 4.0
null
2023-03-02T13:25:32.340
2023-03-02T19:14:51.250
2023-03-02T14:51:38.793
10,347,145
9,773,423
[ "java", "android", "openai-api", "chatgpt-api" ]
75,616,061
2
null
75,615,799
1
null
I don't have your tables so I created `t_sub` (`t` as "table", `sub` as "subquery) which represents what your subquery (inline view) returned: ``` SQL> select * from t_sub; ACC_NO ID STATUS TYP ---------- -- ------ --- 313 ef Active SMT 313 ad Active SMT 313 hf Active SMT 152 hf Active ...
null
CC BY-SA 4.0
null
2023-03-02T13:26:35.307
2023-03-02T13:26:35.307
null
null
9,097,906
null
75,616,066
2
null
75,615,863
0
null
Is this a school project ? I see "generic" in the title, but it doesn't seem you use generics in your code ... ``` public class Database<T> where T : Animal { public List<T> animals = new List<T>(); public void Add(T pAnimal) { this.animals.Add(pAnimal); } } ```
null
CC BY-SA 4.0
null
2023-03-02T13:27:15.040
2023-03-02T13:27:15.040
null
null
10,753,712
null
75,616,060
2
null
75,613,756
1
null
As mentioned by others, you have many serious issues. - - `varbinary(32)``SqlDbType.VarBinary, 32`- - `using`- `SqlDataReader`- `SELECT 1`- `async``await` ``` bool loginCheck(string userLogin, string hashedPassword) { const string loginCheck = @" SELECT 1 from logins l WHERE l.userName = @userLogin AND l.userPass...
null
CC BY-SA 4.0
null
2023-03-02T13:26:33.430
2023-03-02T13:26:33.430
null
null
14,868,997
null
75,616,067
2
null
75,615,822
1
null
You can try to make the context a type member ``` // library trait Animal: type Context def make_sound()(using ctx: Context): Unit def do_something(animal: Animal)(using animal.Context): Unit = animal.make_sound() // user code trait CatMakeSoundContext: def get_claw_length(): Int class Cat extends Animal: ...
null
CC BY-SA 4.0
null
2023-03-02T13:27:17.763
2023-03-02T13:48:45.760
2023-03-02T13:48:45.760
5,249,621
5,249,621
null
75,616,056
1
null
null
0
29
I used to use the REST API, but since v2 I find myself using it more. Is there a proper way to return data "neatly" other than manipulating the database response before returning? I used to use the model feature with REST (v1). What's the recommended way to do the same here? Here's an example of what I'm trying to do. ...
What is the proper way to return data using HTTP-API(v2) + Lambda + DynamoDB as a JSON response?
CC BY-SA 4.0
null
2023-03-02T13:26:11.800
2023-03-02T13:44:18.607
2023-03-02T13:28:45.043
3,001,761
3,802,177
[ "python", "aws-lambda", "amazon-dynamodb", "aws-http-api", "aws-api-gateway-v2" ]
75,616,062
1
null
null
1
10
I am trying to create a spring cloud config server to connect to git repository(bitbucket) using an SSH URI. I am following Spring Cloud Config. I generated key pair using the command ``` ssh-keygen -m PEM -t rsa -b 4096 -C "sweta" ``` I tried to run below command for known_hosts file ``` ssh webprod-cvs2.test.com ```...
Spring cloud config server connection to Bitbucket using SSH keys gives No more authentication methods available error
CC BY-SA 4.0
null
2023-03-02T13:26:45.113
2023-03-02T13:26:45.113
null
null
6,313,539
[ "java", "spring", "spring-boot", "ssh", "spring-cloud-config" ]
75,616,065
2
null
75,612,959
1
null
There are multiple ways to implement this, at different levels of the platform or application. - You can do mTLS in your application or application framework. This however requires that you manage certificates yourself and you also configure your applications to only talk over TLS-enabled channels. This needs to be don...
null
CC BY-SA 4.0
null
2023-03-02T13:27:03.767
2023-03-02T13:27:03.767
null
null
280,473
null
75,616,070
2
null
75,616,015
0
null
Hassan, CORS is a backend configuration. I cannot give a direct answer since I am not familiar with your backend. I can see that you are using the fetch API in the frotend. With an express.js backend I would simply use the CORS plugin and I am fine. Could you give a screenshot of your CORS error in dev console? Also if...
null
CC BY-SA 4.0
null
2023-03-02T13:27:45.203
2023-03-02T13:27:45.203
null
null
5,898,167
null
75,616,064
2
null
75,614,669
1
null
Use `max-width: 100vw;` on the image and remove all the percentage values ``` .wrap { } .item { top: 50%; left: 50%; transform: translate(-50%, -50%); position: absolute; } .item img { max-width: 100vw; display: block; margin: auto; } ``` ``` <div class="wrap"> <div class="item"> <img src="https...
null
CC BY-SA 4.0
null
2023-03-02T13:26:52.940
2023-03-02T13:26:52.940
null
null
8,620,333
null
75,616,069
2
null
75,604,782
1
null
I would use a with justify set to centre or space-evenly the following link describes their use nicely [https://css-tricks.com/snippets/css/a-guide-to-flexbox/](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) rough example: ``` #nav { width: 100%; padding-top: 5px; padding-bottom: 5px; background-col...
null
CC BY-SA 4.0
null
2023-03-02T13:27:41.067
2023-03-03T12:52:29.143
2023-03-03T12:52:29.143
3,433,538
1,644,047
null
75,616,073
2
null
7,888,238
0
null
This piece of code will return the following output ``` const str = 'ThisIsTheStringToSplit'; str.split(/(?=[A-Z])/); // It will print this output ['This', 'Is', 'The', 'String', 'To', 'Split'] ```
null
CC BY-SA 4.0
null
2023-03-02T13:28:02.597
2023-03-02T13:28:02.597
null
null
3,131,402
null