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,632,034 | 2 | null | 75,628,815 | 1 | null | > The first thing the websocket server receives is a request from the client. But the request itself is encrypted! How should the websocket server read the encrypted request??
The exact same way that an HTTPS server reads encrypted HTTP messages. A TLS session is established between client and server any application d... | null | CC BY-SA 4.0 | null | 2023-03-03T21:29:38.550 | 2023-03-04T21:31:24.417 | 2023-03-04T21:31:24.417 | 65,863 | 65,863 | null |
75,632,043 | 1 | null | null | 0 | 8 | I am working on a simple chat gpt app that takes messy meeting notes and organizes them via chat gpt api. I am new to Next.js and Vercel and am doing this mostly to learn.
Project: [project github](https://github.com/majikthise911/summary_sage)
This code works just fine on my localhost including the api call, however, ... | Vercel Env Variables Not Working For Next JS API | CC BY-SA 4.0 | null | 2023-03-03T21:30:46.093 | 2023-03-03T21:30:46.093 | null | null | 17,956,396 | [
"css",
"api",
"next.js",
"vercel",
"http-status-code-504"
] |
75,632,037 | 2 | null | 75,631,478 | 3 | null | > Is this code legal? Since the if in the destructor is not constexpr, it seems like it should be illegal.
> If it is legal, then why?
Yes, it is. Using `std::is_constant_evaluated` without `constexpr` in an `if` is the only correct way to use it.
It is supposed to tell you whether the evaluation of `std::is_constant_e... | null | CC BY-SA 4.0 | null | 2023-03-03T21:29:54.817 | 2023-03-03T21:37:15.183 | 2023-03-03T21:37:15.183 | 17,732,522 | 17,732,522 | null |
75,632,039 | 2 | null | 75,631,614 | 2 | null | If you are handling a request in a web server, the web server crate that you are using will certainly have its own way to do this.
If you just need to parse query parameters from a URL, you can do that using [url](https://docs.rs/url/latest/url/):
```
use url::Url; // v2.3.1
fn main() {
let url = Url::try_from("ht... | null | CC BY-SA 4.0 | null | 2023-03-03T21:30:04.500 | 2023-03-03T21:48:41.303 | 2023-03-03T21:48:41.303 | 493,729 | 493,729 | null |
75,632,052 | 1 | null | null | -2 | 14 | How can I configure a Django Project on IIS without wfastcgi.py? I don't found any wfastcgi.py in python's 3.10.10 folder.
Anyone could help me?
I tried at least 5 tutorials on youtube, but everyone requires wfastcgi.py. I've expected anyone could help me to solve this issue.
| wfastcgi-enable.exe is not recognize on python 3.10.10 | CC BY-SA 4.0 | null | 2023-03-03T21:31:37.440 | 2023-03-03T21:31:37.440 | null | null | 8,339,610 | [
"python",
"django"
] |
75,632,047 | 1 | 75,632,212 | null | 0 | 13 | I have a database for cars. Each car has one to many assignments. Each assignment has a status. The status needs to be renewed every fiscal year, so a status can be the same through many fiscal years.
I'd like to compile all the statuses with the years they were active for each car. Like this:
```
ID | Status and Years... | How to Group Dates based on another variable? | CC BY-SA 4.0 | null | 2023-03-03T21:30:59.260 | 2023-03-03T21:57:54.203 | 2023-03-03T21:31:42.780 | 1,152,809 | 1,152,809 | [
"oracle"
] |
75,632,046 | 1 | null | null | 0 | 24 | I have a program that takes a year and a temperature and returns an amount of days a given year under given temperature. For example `getDaysUnderTemp(2021, -10) -> 13.92`
means that in 2021 there were almost 14 days when the temperature was -10 or below.
Now I'm writing a terminal program that can request information ... | Command-line program calling another program | CC BY-SA 4.0 | null | 2023-03-03T21:30:57.543 | 2023-03-03T21:30:57.543 | null | null | 20,421,646 | [
"php",
"terminal",
"command-line"
] |
75,632,050 | 1 | null | null | -1 | 24 | I'm having an issue getting rows returned in my result set. I verified the connection and sql statements are correct. I'm just not sure if my result query is correct.
```
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM Tickets WHERE Resolut... | Is my result variable correct in php for my sql? | CC BY-SA 4.0 | null | 2023-03-03T21:31:26.050 | 2023-03-03T21:35:17.917 | 2023-03-03T21:35:17.917 | 1,491,895 | 21,328,656 | [
"php",
"mysql",
"select",
"mariadb"
] |
75,632,044 | 1 | null | null | -2 | 19 | I develop a react native app whose core is cartography. I used [react-native-maps](https://github.com/react-native-maps/react-native-maps) before, but we were quickly limited by performance. I must be able to manage thousands of points on the map, currently I do not exceed 3000 points with trajectories which is a probl... | How to use openlayers in react native | CC BY-SA 4.0 | null | 2023-03-03T21:30:46.600 | 2023-03-03T21:53:33.730 | 2023-03-03T21:53:33.730 | 14,304,843 | 14,304,843 | [
"react-native",
"webview",
"mapbox",
"openlayers"
] |
75,632,048 | 1 | 75,632,782 | null | 0 | 31 | iOS 16.4 deprecates [unarchiveTopLevelObjectWithData(_:)](https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2919664-unarchivetoplevelobjectwithdata) and should be replaced with [unarchivedObject(ofClass:from:)](https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2983380-unarchive... | How to replace NSKeyedUnarchiver.unarchiveTopLevelObjectWithData with unarchivedObject when data is a Dictionary | CC BY-SA 4.0 | null | 2023-03-03T21:31:02.167 | 2023-03-03T23:53:12.103 | 2023-03-03T21:39:09.423 | 1,795,356 | 1,795,356 | [
"ios",
"swift",
"nskeyedunarchiver"
] |
75,632,055 | 2 | null | 75,632,011 | 1 | null | Change
```
value: /^[a-z0-9]+$/i,
```
to
```
value: /^[a-z0-9\s"?!,\-.@&]+$/i,
```
`\s` is whitespace, and `-` needs to be escaped so it's not treated as the range separator. The rest is just the other characters you said you want to allow.
| null | CC BY-SA 4.0 | null | 2023-03-03T21:32:07.537 | 2023-03-03T21:32:31.247 | 2023-03-03T21:32:31.247 | 1,491,895 | 1,491,895 | null |
75,632,049 | 1 | 75,632,586 | null | 0 | 45 | My question is how do I grab stored data from the ProtectedLocalStorage. When I attempted to do so I keep getting blank values for the retrieved value (no crashes or error messages) and am able to concatenate the blank string with another string and display it (using login.razor as my test page). How do I grab the valu... | In Blazor Server (.net7) how do you grab data from ProtectedLocalStorage? | CC BY-SA 4.0 | null | 2023-03-03T21:31:08.723 | 2023-03-04T09:56:49.173 | 2023-03-04T09:56:49.173 | 20,305,839 | 20,305,839 | [
"c#",
"blazor",
"blazor-server-side"
] |
75,632,059 | 2 | null | 75,630,736 | 0 | null | `ObjectId` is a reserved keyword. Avoid using it. Use instead `objectId` or `oId`:
```
const objectId = change.after.id;
```
| null | CC BY-SA 4.0 | null | 2023-03-03T21:33:03.133 | 2023-03-03T21:33:03.133 | null | null | 20,576,394 | null |
75,632,053 | 2 | null | 75,629,413 | 0 | null |
## Resize 'Slave' Tables
```
Option Explicit
Sub ResizeSlaveTables()
' Define constants.
Const MASTER_NAME As String = "TableQuery"
Const SLAVE_NAMES As String = "Table2,Table3"
' Reference the worksheet (by code name). Great!
Dim ws As Worksheet: Set ws = Sheet1
' Split the slave... | null | CC BY-SA 4.0 | null | 2023-03-03T21:31:51.583 | 2023-03-03T21:40:49.137 | 2023-03-03T21:40:49.137 | 9,814,069 | 9,814,069 | null |
75,632,061 | 2 | null | 71,440,649 | 0 | null | You can use keycloak.conf file, for db url. For example:
add to keycloak.conf
```
spi-events-listener-express-host=test.ru
```
and in your spi `config_scope.get("host");`
I be inspired [this code by example](https://github.com/svenstaro/keycloak-http-webhook-provider/tree/main/src/main/java/org/archlinux/keycloakhttpw... | null | CC BY-SA 4.0 | null | 2023-03-03T21:33:11.773 | 2023-03-03T21:33:11.773 | null | null | 14,082,346 | null |
75,632,062 | 1 | null | null | -3 | 13 | On Power BI, I am tracking sales deals. For deals that close, there is a "progression" of realized value.
In the month the deal closes (CloseDate), we realize 20% of the deal value. In the second month after the deal closes, we realize 40% of the value. This continues until by Month 5 and all months after, we realize 1... | Power BI | Rolling 5 month Variable Value Progression | CC BY-SA 4.0 | null | 2023-03-03T21:33:16.160 | 2023-03-03T21:33:16.160 | null | null | 21,328,651 | [
"powerbi",
"powerbi-embedded"
] |
75,632,064 | 2 | null | 50,421,913 | 0 | null | I fought with this for quite a bit, but was able to make it work with res.send with an axios call in node:
```
await axios.request(options).then((object) => {
var photo = Buffer.from(object.data, 'binary').toString('base64');
res.send('<img src="data:image/png;base64,' + photo + '"/>');
//.catch logic here, etc... | null | CC BY-SA 4.0 | null | 2023-03-03T21:33:17.203 | 2023-03-03T21:33:17.203 | null | null | 2,614,816 | null |
75,632,056 | 1 | null | null | 0 | 26 | Prompt was to write a program using mips loop concepts and syntax that converts and displays Km to Mi conversion table for every whole number from 0-20 Km inclusively and their Mi equivalents in the console.
I wrote this in MARS(required)
the code below prints the would be conversion table for the 20 whole KMs, however... | Conversion table returning 0 values within loop | CC BY-SA 4.0 | null | 2023-03-03T21:32:12.423 | 2023-03-03T23:13:35.153 | 2023-03-03T23:13:35.153 | 6,243,352 | 21,328,585 | [
"assembly",
"mips",
"mars-simulator"
] |
75,632,066 | 1 | null | null | 0 | 26 | In the context of AWS databases, how do the following disaster recovery strategies differ from one another:
- - - -
When should we choose one over the others?
Why do we need so many different options when one will suffice?
Should we try to use all of them?
| What are the differences among the different disaster recovery options for databases? | CC BY-SA 4.0 | null | 2023-03-03T21:33:31.773 | 2023-03-04T00:34:48.647 | 2023-03-03T22:07:48.127 | 2,435,020 | 2,435,020 | [
"database",
"amazon-web-services",
"snapshot",
"database-backups",
"point-in-time-recovery"
] |
75,632,067 | 2 | null | 75,631,579 | 0 | null | First of all, your execution time could be much faster if the inner loop was `for num2 in range(i+1, len(a)):` instead of an if check.
I would personally use this method:
```
import numpy as np
a = np.random.random(100)
c = []
for i in range(1, len(a)):
c.extend(a[i:] * a[:-i])
print(c)
```
The way this met... | null | CC BY-SA 4.0 | null | 2023-03-03T21:33:41.150 | 2023-03-03T21:37:46.993 | 2023-03-03T21:37:46.993 | 17,200,348 | 17,200,348 | null |
75,632,057 | 1 | 75,632,116 | null | 2 | 34 | I have a dataframe of this kind:
| ID | Jan | Feb | Mar |
| -- | --- | --- | --- |
| 20WAST | 2 | 2 | 5 |
| 20S22 | 0 | 0 | 1 |
| 20W1ST | 2 | 2 | 5 |
| 200122 | 0 | 0 | 1 |
And I want to drop all the rows where the third letter in the first column is a 'W' to give an output:
| ID | Jan | Feb | Mar |
| -- | ... | How to drop a row in Pandas if a third letter in a column is W? | CC BY-SA 4.0 | null | 2023-03-03T21:32:27.377 | 2023-03-04T00:50:12.203 | 2023-03-03T21:40:52.843 | 289,011 | 11,466,531 | [
"python",
"pandas",
"dataframe",
"numpy"
] |
75,632,069 | 2 | null | 75,630,728 | 1 | null | OP's key mistake is about using a "mis-match specifier and type", although that is an error among others.
The : not using a good compiler was all warnings enabled.
```
warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double *' [-Wformat=]
if (fscanf(fReader, "%f", (input + i)) != 1) {
... | null | CC BY-SA 4.0 | null | 2023-03-03T21:33:52.537 | 2023-03-03T21:38:51.743 | 2023-03-03T21:38:51.743 | 2,410,359 | 2,410,359 | null |
75,632,071 | 1 | null | null | -2 | 35 | Okay, so I am making a bot for this website to automate account creation. I am using rotating ipv4 proxies and some other anti detection stuff but still being detected every time. Any ideas?
Here's how I'm initializing the driver and what options im using.
```
proxy = random.choice(proxys)
ua = UserAgent()
userAgent = ... | How to make python selenium less detectable? | CC BY-SA 4.0 | null | 2023-03-03T21:34:01.920 | 2023-03-03T22:40:28.227 | 2023-03-03T21:35:10.193 | 21,328,673 | 21,328,673 | [
"python",
"selenium-webdriver",
"selenium-chromedriver",
"browser-automation"
] |
75,632,072 | 2 | null | 75,598,089 | 0 | null | If you're a "free" (unlicensed) user, then it's expected that you're unable to create an API token, as only licensed users can create API tokens. See here for related Q&A: [https://community.smartsheet.com/discussion/44901/api-access-tokens-for-non-licensed-users](https://community.smartsheet.com/discussion/44901/api-a... | null | CC BY-SA 4.0 | null | 2023-03-03T21:34:05.410 | 2023-03-04T03:51:56.293 | 2023-03-04T03:51:56.293 | 2,781,454 | 2,781,454 | null |
75,632,065 | 1 | null | null | -3 | 27 | I am a new to Java and i have a problem that i don't know how to solve.
I had my movement code and it was working perfectly, but after i added the buttons stopped working
this is my code
```
package idk;
import javax.swing.*;
import java.awt.event.*;
import java.util.Random;
class joc extends JFrame implements Actio... | Why can't i move my player after i add a JButton? | CC BY-SA 4.0 | null | 2023-03-03T21:33:21.403 | 2023-03-03T22:19:05.370 | null | null | 21,252,985 | [
"java",
"swing",
"awt"
] |
75,632,075 | 2 | null | 75,631,946 | 0 | null | One simple solution is to check for null in those methods. This leaves the verification to the caller, but since all the methods are private that should be acceptable. Now the object is still being verified, but only in one place. It's up to you to be sure not to call those helper methods without first validating the ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:34:06.237 | 2023-03-03T21:39:04.473 | 2023-03-03T21:39:04.473 | 2,052,655 | 2,052,655 | null |
75,632,060 | 1 | null | null | 0 | 14 | So I am trying to switch from using Jupyter notebook in the browser to using IPython shell in terminal as I prefer it. I am on Ubuntu 22.0.4 OS and when I activate IPython, I can write code and a script but cannot open one or save one.
When I try to run a script that I have created using a Jupyter notebook by using lin... | How do I open, edit, save and create files using IPython shell in terminal? | CC BY-SA 4.0 | null | 2023-03-03T21:33:08.903 | 2023-03-03T21:33:08.903 | null | null | 21,293,225 | [
"python",
"ubuntu",
"jupyter-notebook",
"terminal",
"ipython"
] |
75,632,077 | 2 | null | 74,292,802 | 0 | null | I couldn't get it to work either, so I had to work around it. Rather than use their convenience method for catching exceptions, I used a block and caught the exception myself. This code is working for me:
```
static Exception exception;
Because of = async () =>
{
try
{
throw new NotFoundException("test"... | null | CC BY-SA 4.0 | null | 2023-03-03T21:34:20.760 | 2023-03-03T21:34:20.760 | null | null | 8,508,548 | null |
75,632,068 | 1 | null | null | 0 | 6 | We have a webservice that works and has been working fine. We call it from our EAR project and it works fine in localhost in RAD as well as from the server. However, now I'm trying to call it from a junit project and it's failing with an AssertionError with no message to help me debug it.
Code:
```
public ReportService... | AssertionError calling a webservice from junit in IBM RAD | CC BY-SA 4.0 | null | 2023-03-03T21:33:43.393 | 2023-03-03T21:33:43.393 | null | null | 1,187,719 | [
"java",
"web-services",
"wsdl",
"ibm-rad",
"junit-jupiter"
] |
75,632,074 | 1 | null | null | 0 | 50 | I'm trying to create a ggplot 2 choropleth when the user inputs specific data in my RShiny app. I merged my spatial dataframe with my data as shown below, and I think that worked properly:
```
# inputting data in RShiny app:
output$contents <- renderTable({
file <- input$uploaded_data
ext <- tools::file_ext(fil... | Plotting with ggplot2 gives error: "Caused by error in lat * pi" | CC BY-SA 4.0 | null | 2023-03-03T21:34:06.133 | 2023-03-03T21:34:06.133 | null | null | 19,972,046 | [
"r",
"ggplot2",
"shiny"
] |
75,632,078 | 2 | null | 75,631,759 | 0 | null | Google calendar only supports service accounts when you configure d[omain wide delegation](https://developers.google.com/cloud-search/docs/guides/delegation) to a google workspace domain.
You cant use it with a standard gmail user google calendar account.
```
var serviceAccountCredentialInitializer = new ServiceAccount... | null | CC BY-SA 4.0 | null | 2023-03-03T21:34:26.273 | 2023-03-03T21:35:50.170 | 2023-03-03T21:35:50.170 | 1,841,839 | 1,841,839 | null |
75,632,082 | 1 | null | null | 0 | 12 | I have a laptop with docker desktop. When I try to run "docker-compose pull" I get the following error:
error getting credentials - err: exit status 1, out: `error getting credentials - err: exit status 1, out:`A specified logon session does not exist. It may already have been terminated.``
If I run the same command on... | Docker-compose pull not working over ssh? | CC BY-SA 4.0 | null | 2023-03-03T21:35:03.087 | 2023-03-04T06:02:21.667 | null | null | 16,480,485 | [
"docker",
"ssh",
"docker-compose"
] |
75,632,080 | 1 | null | null | 0 | 19 | Not great at creating a VBA code but trying to open a website via Edge based on the url in cell I1 of the worksheet, sendkeys tab 19 times (as I cant figure out how to select the website's button otherwise), hit enter, tab again 34 times, and finally hit enter. Here is the code and when I try to debug, but its showing ... | Trying to Open a Website based on I1's cell value and hit tab X number of times then hit enter | CC BY-SA 4.0 | null | 2023-03-03T21:34:50.410 | 2023-03-04T10:18:29.227 | null | null | 21,328,627 | [
"excel",
"vba",
"microsoft-edge"
] |
75,632,085 | 1 | null | null | 0 | 13 | I made a TextMate grammar for my programming language, which I want to publish as VS Code extension. Now, I want to add a command to open a preview on the right, but as soon as I add `"main": "./out/extension.js"`, the grammar stops working; there's no syntax highlighting, no error message, and the language is nowhere ... | How to add command to VS Code language extension | CC BY-SA 4.0 | null | 2023-03-03T21:35:36.653 | 2023-03-04T19:35:01.587 | null | null | 3,393,058 | [
"visual-studio-code",
"vscode-extensions"
] |
75,632,070 | 2 | null | 75,627,079 | 0 | null | It is `true` that Spring Boot will auto-configure caching (e.g. a `CacheManager` bean) for you if 1) you explicitly declare the `@EnableCaching` annotation in your application `@Configuration` and 2) you only include a single caching provider (e.g. ) on your application classpath.
If you have more than 1 caching provid... | null | CC BY-SA 4.0 | null | 2023-03-03T21:33:57.203 | 2023-03-03T21:33:57.203 | null | null | 3,390,417 | null |
75,632,079 | 1 | null | null | 0 | 16 | My controller method returns InputStreamResource in response body. I'am getting InputStream from the CloseableHttpResponse in the TRY block and I close CloseableHttpResponse in FINALLY block.
.
What could be a possible solution in this case? Can I somehow close CloseableHttpResponse after returning InputStreamResource?... | Close CloseableHttpResponse after returning InputStream Spring MVC | CC BY-SA 4.0 | null | 2023-03-03T21:34:45.933 | 2023-03-03T21:39:41.027 | null | null | 15,138,087 | [
"java",
"spring-mvc",
"httpclient",
"inputstream",
"closeablehttpresponse"
] |
75,632,087 | 1 | null | null | 0 | 12 | I’m trying to run Gatsby on windows, but with yarn development command I get this error message. I’m quite new in this so any ideas how should I fix this.
```
yarn run v1.22.19
$ gatsby develop
success compile gatsby files - 4.431s
success load gatsby config - 0.566s
ERROR #11331 PLUGIN
Invalid plugin options for ... | Yarn develop command failing | CC BY-SA 4.0 | null | 2023-03-03T21:36:14.697 | 2023-03-03T21:43:21.523 | 2023-03-03T21:43:21.523 | 3,001,761 | 21,328,667 | [
"javascript",
"typescript",
"gatsby",
"yarnpkg",
"gatsby-plugin"
] |
75,632,092 | 2 | null | 75,631,976 | 0 | null | Actually, I found the error in php section I have added. Margin bottom of 150px that's what was causing the problem.
| null | CC BY-SA 4.0 | null | 2023-03-03T21:36:51.957 | 2023-03-03T21:36:51.957 | null | null | 21,075,579 | null |
75,632,091 | 2 | null | 4,434 | 0 | null | If ReShaper is in use.
In my case i used ReShaper and I can change this with "CTR + Shift + Alt + R
You can set there or delete and more the Start Settings. But bevore this time I have only set the Start Projekt via VS and ReShaper was installed too!
| null | CC BY-SA 4.0 | null | 2023-03-03T21:36:48.690 | 2023-03-03T21:37:54.367 | 2023-03-03T21:37:54.367 | 7,078,453 | 7,078,453 | null |
75,632,089 | 1 | null | null | -2 | 15 | Help me please to combine two functions: there is a div with id=chat and a text field div with id=card-body. The chat is reloaded every 10 seconds, and the text box should scroll down as the chat refreshes. But it turns out that the card-body is scrolled only once when the document is loaded.
```
$(document).ready(func... | Scroll of the chat after div reloading | CC BY-SA 4.0 | null | 2023-03-03T21:36:45.507 | 2023-03-03T23:35:38.490 | 2023-03-03T23:35:38.490 | 21,328,643 | 21,328,643 | [
"load",
"setinterval",
"scrolltop"
] |
75,632,094 | 2 | null | 75,632,032 | 1 | null | I believe the solution I was looking for was:
```
fig.update_traces(
xperiod="M1"
)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T21:36:56.420 | 2023-03-03T21:36:56.420 | null | null | 16,054,911 | null |
75,632,088 | 1 | null | null | 0 | 12 | I am new to neural networks, and I am facing an issue with changing the dimensionality of the data.
I have a 3-dimensional time-series input data of shape (136, 81, 99), and I want to reduce it to (136, 45, 99) using the LSTM Auto Encoder Decoder.
I believe I have written the code below, which is incorrect as it gives ... | Reducing the timesteps of a time series data using LSTM auto encoder decoder | CC BY-SA 4.0 | null | 2023-03-03T21:36:32.577 | 2023-03-03T21:36:32.577 | null | null | 6,071,705 | [
"python",
"tensorflow",
"keras",
"lstm",
"dimensionality-reduction"
] |
75,632,096 | 1 | null | null | -4 | 17 | I am using `window.location.href` in a javascript function to get redirected to the following url:
/client/contract/show/{$guest}/{$data}
so I wrote as follows:
```
window.location.href = `/client/contract/show/{$guest}/{$data}`
```
where and are variables that I obtain in the code.
Once done, I'm redirected to th... | I get %20 in url through window.location.href | CC BY-SA 4.0 | null | 2023-03-03T21:37:12.277 | 2023-03-03T21:37:12.277 | null | null | 19,638,773 | [
"javascript"
] |
75,632,098 | 2 | null | 75,631,837 | 0 | null | trikeCheckout.open({
name: this.product.product_name,
description: 'Payment widgets',
amount: +amount * 100,
phone:'',
address: {
mode: 'shipping',
},
currency:'inr'
});**
**
| null | CC BY-SA 4.0 | null | 2023-03-03T21:37:21.270 | 2023-03-03T21:37:21.270 | null | null | 21,328,581 | null |
75,632,090 | 2 | null | 59,853,889 | 0 | null | I know this question is old but I wanted to add how I did this in 2023 while automating a move from on premise DevOps to Azure DevOps (cloud) with powershell where we had yaml based builds (`azure-pipelines.yml`) in the repository source root.
The body to submit for creating a yaml based build (pipeline) I found to be ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:36:47.040 | 2023-03-03T21:37:23.790 | 2023-03-03T21:37:23.790 | 149,053 | 149,053 | null |
75,632,099 | 1 | null | null | 0 | 24 | Suppose I have an array A
```
[i1, i2, i3]
```
and I wish to copy its elements to array B but while expanding them such that array B is
```
[i1, i1, i1, i1, i2, i2, i2, i2, i3, i3, i3, i3]
```
How can I achieve this?
| Copying element within an array and assigning it to multiple positions in a new array | CC BY-SA 4.0 | null | 2023-03-03T21:37:34.077 | 2023-03-03T21:46:49.823 | 2023-03-03T21:41:23.127 | 1,491,895 | 14,677,459 | [
"python",
"arrays",
"numpy",
"copy",
"python-xarray"
] |
75,632,024 | 1 | null | null | 0 | 23 | So I have stumbled upon a case where my form does not post values after I click the submit button once, it goes to the next page indeed but my Django View can not fetch the post values.
But soon after I hit back button on browser and then clicks the submit button again it works ; I can then see the POSTed values in my ... | Html Form Posting Values to Django Backend only when submitted twice, or rather hit back to form and then submit again | CC BY-SA 4.0 | null | 2023-03-03T21:28:08.387 | 2023-03-04T02:30:01.177 | 2023-03-04T02:30:01.177 | 17,562,044 | 14,899,703 | [
"javascript",
"python",
"django",
"django-templates"
] |
75,632,095 | 2 | null | 74,101,995 | 0 | null | To fix the console warning, you'll need to switch `defaultValue` to use `value`. I was having a similar problem and found the answer here: [https://www.reddit.com/r/reactjs/comments/8zuwek/warning_a_component_is_changing_an_uncontrolled/](https://www.reddit.com/r/reactjs/comments/8zuwek/warning_a_component_is_changing_... | null | CC BY-SA 4.0 | null | 2023-03-03T21:37:12.043 | 2023-03-03T21:37:12.043 | null | null | 18,814,592 | null |
75,632,081 | 2 | null | 75,630,522 | 1 | null | There are several weaknesses in the Queue code's use of synchonization objects. Among them:
- `q_terminar()` wakes only the threads waiting on the `q->empty` CV, not those waiting on the `q->full` CV. Perhaps you anticipate that this function will be called only when the queue is empty, but it would be safer and very... | null | CC BY-SA 4.0 | null | 2023-03-03T21:34:50.953 | 2023-03-03T22:12:12.247 | 2023-03-03T22:12:12.247 | 2,402,272 | 2,402,272 | null |
75,632,103 | 2 | null | 19,568,134 | 0 | null | In case someone encounters a similar problem in recent times, the following steps worked for me:
1. Right-click on the project/module that you want to remove.
2. Select "Maven" from the context menu.
3. Choose "Unlink Maven Projects" from the dropdown list.
4. Finally, select "Remove" to delete the project/module.
| null | CC BY-SA 4.0 | null | 2023-03-03T21:37:59.030 | 2023-03-03T21:39:02.093 | 2023-03-03T21:39:02.093 | 8,573,084 | 8,573,084 | null |
75,632,097 | 2 | null | 75,629,858 | 2 | null | Apologies but :
```
Task.Run(() =>
{
while (true)
{
_name = new Random().Next() + "";
Thread.Sleep(500);
}
});
```
is not nice code! It blocks the thread: in WASM it will block the application.
You need to ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:37:20.850 | 2023-03-03T21:42:49.473 | 2023-03-03T21:42:49.473 | 13,065,781 | 13,065,781 | null |
75,632,101 | 1 | 75,632,140 | null | 0 | 18 | I'm creating an HTML page in VS Code and trying to style a div, however none of the settings in my CSS stylesheet seem to be working.
I have confirmed my HTML is referencing the CSS file and ran the CSS code through the W3C CSS validator.
HTML
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<... | Problem with CSS style sheet functionaltiy | CC BY-SA 4.0 | null | 2023-03-03T21:37:52.277 | 2023-03-03T21:46:30.510 | null | null | 21,328,648 | [
"html",
"css"
] |
75,632,100 | 1 | 75,632,165 | null | 0 | 39 | I have this:
```
class VibraniumEngine {
public:
VibraniumEngine(VibraniumEngine const &) = delete;
VibraniumEngine(VibraniumEngine &&) = delete;
VibraniumEngine& operator= (VibraniumEngine const&) = delete;
VibraniumEngine& operator= (VibraniumEngine&&) = delete;
static VibraniumEngine* instance(... | C++ - How to run a class in separate thread and reference functions from same class in main thread | CC BY-SA 4.0 | null | 2023-03-03T21:37:37.330 | 2023-03-03T22:32:41.143 | 2023-03-03T21:48:51.410 | 65,863 | 2,661,419 | [
"c++",
"multithreading"
] |
75,632,109 | 1 | null | null | 1 | 33 | I was trying to do
```
ld -r -o test.o lib.a
```
It worked but test.o ended up being very small file even though `lib.a` large file.
But if I do
```
ld -r -o test.o obj1.o obj2.o etc
```
It seems to work. Just link all object files in `lib.a` )
Essentially is there a way to tell `ld` to take all the object files out... | Is it possible to partially link together archive files? | CC BY-SA 4.0 | null | 2023-03-03T21:39:08.507 | 2023-03-03T21:47:06.463 | 2023-03-03T21:47:06.463 | 5,382,650 | 1,080,552 | [
"c",
"gcc",
"gnu",
"ld"
] |
75,632,073 | 1 | null | null | -3 | 22 | Hello I am a newbie with AWK. I can't use only script because I can't install any tools on the computer.
I would like to show differences between two XML files using AWK.
The two files have a number of lines unknown.
File1 is the opening file and File2 is the modified file.
The goal is :
1°) Check if, in the file2, the... | Parse XML with AWK | CC BY-SA 4.0 | null | 2023-03-03T21:34:05.927 | 2023-03-03T23:14:24.277 | 2023-03-03T23:14:24.277 | 21,328,647 | 21,328,647 | [
"awk",
"sed"
] |
75,632,113 | 2 | null | 75,632,079 | 0 | null | You can always create a copy of the InputStream obtained from the HttpEntity and use the copy to create the InputStreamResource that is returned in the ResponseEntity. This way, the original InputStream obtained from the HttpEntity can be safely closed before the ResponseEntity is returned.
```
InputStream inputStream ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:39:41.027 | 2023-03-03T21:39:41.027 | null | null | 3,642,410 | null |
75,632,110 | 1 | null | null | -1 | 35 | I have a View with a `Binding` like this:
```
struct MyView: View {
@Binding var myString: String
var body: some View {
VStack {
// Not important
}
.onReceive(myString.publisher) { receiveValue in
print(receiveValue)
}
}
}
```
and a Parent View:
```
struct ParentView: View {
@Stat... | @Binding variable publishes String one character at a time | CC BY-SA 4.0 | null | 2023-03-03T21:39:22.203 | 2023-03-03T22:04:46.060 | null | null | 858,962 | [
"swift",
"swiftui",
"combine"
] |
75,632,111 | 2 | null | 75,613,915 | 0 | null | It's not clear from the explanation what implementation of `IProfileService` you use as a base.
If it is the [Default](https://github.com/IdentityServer/IdentityServer4/blob/4dc10e665f5ede63274427036c25cdc216130eb9/src/IdentityServer4/src/Services/Default/DefaultProfileService.cs) one, you can extend it like:
```
publi... | null | CC BY-SA 4.0 | null | 2023-03-03T21:39:26.150 | 2023-03-03T21:39:26.150 | null | null | 1,426,685 | null |
75,632,108 | 1 | null | null | 0 | 20 | having setup an AVR project in Clion on m1 mac I encountered some problem compiling the project I appreciate any help in advance
```
project(micro_controller C)
SET(MCU "atmega328")
SET(F_CPU "16000000")
SET(CMAKE_SYSTEM_NAME Generic)
SET(CMAKE_C_COMPILER /opt/homebrew/Cellar/avr-gcc@11/11.3.0_1/bin/avr-gcc)
SET(C... | avr-gcc: error: unrecognized command-line option '-arch' | CC BY-SA 4.0 | null | 2023-03-03T21:38:59.097 | 2023-03-03T21:38:59.097 | null | null | 19,205,129 | [
"c",
"cmake",
"apple-m1",
"avr",
"avr-gcc"
] |
75,632,116 | 2 | null | 75,632,057 | 4 | null | You are almost there. Use:
```
df= df[df['ID'].str[2].ne('W')]
```
you might want to reset the index after this selection
| null | CC BY-SA 4.0 | null | 2023-03-03T21:40:06.933 | 2023-03-03T21:40:06.933 | null | null | 19,077,881 | null |
75,632,119 | 1 | null | null | -1 | 6 | I have three Y/N questions in my REDCap survey and I'm trying to make it so that if they say no to any of the three questions, a pop-up shows they fill out all of the three questions. Is there any way to do this without having to use branching logic for all the combinations of Y/Y/N?
I've looked up similar problems an... | Only Having a Pop-up After All Questions Are Answered | CC BY-SA 4.0 | null | 2023-03-03T21:40:59.447 | 2023-03-03T22:00:06.410 | null | null | 19,558,849 | [
"popup",
"logic",
"survey",
"redcap"
] |
75,632,118 | 1 | null | null | 0 | 13 | I have 2 separate reports (2 rdl files). I would like report 1 to be able to link to report 2 and the visual on report 2 is based on parm values as well as a field value (i.e, textbox value that is an expression) from report 1. I want to do this thru an action and goto url and pass the values. For testing purposes, ... | Pass a textbox/field value to another report via url | CC BY-SA 4.0 | null | 2023-03-03T21:40:57.527 | 2023-03-03T21:48:50.517 | 2023-03-03T21:48:50.517 | 19,210,181 | 19,210,181 | [
"ssrs-2008",
"powerbi-paginated-reports"
] |
75,632,120 | 1 | null | null | 0 | 19 | I need to standardize hundreds of variables in a text file that has `id` as first column and varlist in subsequent columns using Stata. After conversion, I need to export the new file that only has `id` (first column) and all standardized values to my directory.
| Standardize multiple variables | CC BY-SA 4.0 | null | 2023-03-03T21:41:12.047 | 2023-03-04T09:52:57.080 | 2023-03-04T09:52:57.080 | 1,820,446 | 12,132,487 | [
"loops",
"stata"
] |
75,632,112 | 1 | null | null | -1 | 6 | I've been dealing with a problem for the past 5-6 months (home office, don't work from home so it hasn't been crippling). Essentially, my PC that is hard wired to fiber will, more often than not, have a very hard time loading webpages or a video but have absolutely zero problems with peer to peer services such as onlin... | Content loading issue with high bandwidth | CC BY-SA 4.0 | null | 2023-03-03T21:39:30.237 | 2023-03-03T21:39:30.237 | null | null | 19,667,912 | [
"networking",
"dns",
"ethernet",
"packet-loss"
] |
75,632,117 | 1 | null | null | -2 | 32 | in my login form, the key is logically checked. This is followed by another form in which you should see your username. Each key also has an assigned name.
My problem is that no matter which key I log in with, it shows the username of the last user created
```
var sort = Builders<BsonDocument>.Sort.Descending("_id");
... | Username is not shown after Logging in with Key License | C# Winform | CC BY-SA 4.0 | null | 2023-03-03T21:40:11.290 | 2023-03-03T22:01:44.370 | 2023-03-03T22:01:44.370 | 19,951,222 | 19,951,222 | [
"c#",
"mongodb",
"winforms",
"authentication"
] |
75,632,106 | 2 | null | 75,631,857 | 1 | null | ```
library(agricolae)
library(tidyverse)
library(openxlsx)
main.data <- runif(256)
main.factor <- c("1st control", "2nd control", "Control A", "Control B",
"Variant A", "Variant B", "Variant C",
"1st Variant", "2nd Variant", "3rd Variant",
"Treatment 1", "Treatment ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:38:51.680 | 2023-03-05T00:40:57.763 | 2023-03-05T00:40:57.763 | 4,380,278 | 4,380,278 | null |
75,632,115 | 1 | null | null | 0 | 13 | I'm on a search for handling business rule validation at a more global scale. Any BusinessRuleException thrown should result in a notification to the user. I thought of using the new ErrorBoundary component as a base for my own class but it is troublesome. The implementation below works but it refreshes the whole scree... | ErrorBoundary as an Exception handler for businessrules | CC BY-SA 4.0 | null | 2023-03-03T21:40:03.227 | 2023-03-03T21:40:03.227 | null | null | 561,380 | [
"razor",
"blazor",
"radzen"
] |
75,632,128 | 2 | null | 75,051,895 | 0 | null | ```
context: app/
```
I think that may do it.
| null | CC BY-SA 4.0 | null | 2023-03-03T21:43:06.510 | 2023-03-03T21:43:06.510 | null | null | 1,196,339 | null |
75,632,126 | 2 | null | 75,630,402 | -1 | null | Do you mean this?
```
library(tidyverse)
# define datasets
df1 <- tibble::tribble(
~station, ~date, ~substance1,
1, "08/07/2009", "5.7",
2, "13/07/2009", "6",
3, "13/07/2009", "2.2",
4, "13/07/2009", "2",
5, "22/09/2009", "1"
)... | null | CC BY-SA 4.0 | null | 2023-03-03T21:42:59.563 | 2023-03-03T21:42:59.563 | null | null | 10,363,163 | null |
75,632,125 | 1 | null | null | -1 | 15 | I need to attach shared memory segments to specific addresses in Linux process.
Shared memory segments are not shared between multiple processes. The goal is to preserve the content of a very large cache between process restarts.
Sequence of events:
The first time process starts, shared memory segments are attached to ... | Attaching shared memory segments to fixed addresses on Linux | CC BY-SA 4.0 | null | 2023-03-03T21:42:54.120 | 2023-03-03T21:42:54.120 | null | null | 21,328,639 | [
"linux",
"memory-management",
"system",
"shared-memory"
] |
75,632,129 | 2 | null | 75,545,090 | 0 | null | You could implement `catch()` on the `onSnapshot` method and create a specific function inside it that could notify you if the listener fails. Also, you can use Cloud Monitoring which can collect metrics, events, and metadata from Google Cloud products. Cloud Monitoring includes the Cloud Firestore metrics.
For more in... | null | CC BY-SA 4.0 | null | 2023-03-03T21:43:18.200 | 2023-03-03T21:43:18.200 | null | null | 16,895,640 | null |
75,632,105 | 1 | null | null | 0 | 16 | This is a bit complex to describe fully, so please bear with me. I have a collection I am working on where the shape of the collection is determined outside the collection itself. It is used like so:
```
enum KeysEnum {
TEST1 = 'test1',
TEST2 = 'test2',
}
const schema = {
[KeysEnum.TEST1]: Collection.string('hel... | How to write a generic function with an argument that could be an enum or string, but treated differently? | CC BY-SA 4.0 | null | 2023-03-03T21:38:51.190 | 2023-03-03T21:43:20.533 | 2023-03-03T21:43:20.533 | 4,347,950 | 4,347,950 | [
"typescript"
] |
75,632,127 | 2 | null | 75,631,594 | 0 | null | ```
import pandas as pd
import datetime
import numpy as np
df = pd.DataFrame({'ID':[120, 120, 120, 120],
'DT':['2022-12-22-02:12:123',
'2022-12-23-04:12:456',
'2022-12-26-08:11:125',
'2022-12-30-02:12:126'],
... | null | CC BY-SA 4.0 | null | 2023-03-03T21:43:03.670 | 2023-03-03T21:48:08.720 | 2023-03-03T21:48:08.720 | 13,460,543 | 13,460,543 | null |
75,632,123 | 1 | null | null | -1 | 15 | I am currently developing a flask webapp that continuously scans the local network in a background thread and I am using Turbo Flask to push the updated results in a request's view.
Everything works fine but now I am having trouble splitting the tasks in different modules using the flask application factory approach: w... | Turbo Flask Multithreading Application Context | CC BY-SA 4.0 | null | 2023-03-03T21:42:47.590 | 2023-03-03T22:38:58.273 | null | null | 13,021,005 | [
"multithreading",
"flask"
] |
75,632,132 | 2 | null | 75,605,416 | 0 | null | Maybe simply leverage DSBulk for achieving this. As CQL COPY FROM/TO on large table anyways is not going to be super convenient. See [this answer](https://stackoverflow.com/a/74415229/10410162)
| null | CC BY-SA 4.0 | null | 2023-03-03T21:44:24.953 | 2023-03-03T21:44:24.953 | null | null | 10,410,162 | null |
75,632,114 | 1 | null | null | 0 | 42 | I'm trying to create a for loop that makes separate plots for all dataframes from a dictionary of dataframes. I am not trying to make a subplot.
I have a dictionary named roi_exon_dict.
In this dictionary, there are 15 separate dataframes that ALL share the same indexes, number of rows, and column labels. The dictionar... | Plotting dataframes separately from dictionary of DataFrames | CC BY-SA 4.0 | null | 2023-03-03T21:39:42.867 | 2023-03-04T09:09:37.870 | 2023-03-03T22:25:55.893 | 13,507,806 | 13,507,806 | [
"python",
"pandas",
"dataframe",
"for-loop",
"matplotlib"
] |
75,632,136 | 2 | null | 75,618,111 | 0 | null | You should probably use the HttpCientTestingModule
Official documentation at [https://angular.io/guide/http#testing-http-requests](https://angular.io/guide/http#testing-http-requests)
| null | CC BY-SA 4.0 | null | 2023-03-03T21:44:56.457 | 2023-03-03T21:44:56.457 | null | null | 982,341 | null |
75,632,131 | 2 | null | 38,892,771 | 0 | null |
### Angular 14+ Using Standalone Component
Import the form component directly into your standalone component:
```
import { FormsModule, NgForm } from '@angular/forms';
import { NgFor } from "@angular/common";
@Component({
selector: 'app-table-view',
standalone: true,
imports: [
NgFor,
FormsModule
... | null | CC BY-SA 4.0 | null | 2023-03-03T21:44:09.100 | 2023-03-03T21:44:43.887 | 2023-03-03T21:44:43.887 | 285,795 | 285,795 | null |
75,632,135 | 2 | null | 70,612,769 | 0 | null | Inspired by the [answer](https://stackoverflow.com/a/70612770/15419146) of dear [gru](https://stackoverflow.com/users/2472398/gru), I adapted it to React Native. The code is as below. (It finds vertical distance, changing pageY to pageX will find the horizontal distance as well)
```
const [touchStart, setTouchStart] = ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:44:48.437 | 2023-03-03T21:45:40.527 | 2023-03-03T21:45:40.527 | 15,419,146 | 15,419,146 | null |
75,632,140 | 2 | null | 75,632,101 | 0 | null | Change:
```
<link rel="sytlesheet" type="text/css" href="/Untitled/csss/style.css">
```
to:
```
<link rel="stylesheet" type="text/css" href="/Untitled/csss/style.css">
```
you have stylesheet misspelled.
| null | CC BY-SA 4.0 | null | 2023-03-03T21:45:44.687 | 2023-03-03T21:46:30.510 | 2023-03-03T21:46:30.510 | 21,056,235 | 21,056,235 | null |
75,632,133 | 1 | null | null | 0 | 37 | I just have some child div with a some class, in this case .element. And first one with some other class, in this case .skip. I need to don't count that element, like it doesn't exist. So if i take every odd div with .element class to take same divs even if .skip div is there or deleted. If it possible with some css se... | CSS child selector that don't count some div at all | CC BY-SA 4.0 | null | 2023-03-03T21:44:36.353 | 2023-03-03T23:49:57.567 | null | null | 11,210,444 | [
"html",
"css"
] |
75,632,142 | 1 | 75,632,228 | null | 1 | 45 | I'm trying to do something similar to the segment structure in the Codeigniter system.
I want to transfer the parameters I get via REQUEST_URI to a function and call them with a variable name I want inside the function.
Example: /news/stock
```
$arguments = explode('/',$_SERVER['REQUEST_URI']);
// I want to pass this ... | PHP Automatic Function Arguments and Variables | CC BY-SA 4.0 | null | 2023-03-03T21:46:16.123 | 2023-03-04T12:51:35.113 | 2023-03-03T22:09:26.263 | 16,457,321 | 16,457,321 | [
"php"
] |
75,632,137 | 1 | null | null | 0 | 24 | Okay, simple question, I have a data on Google Sheet like in the picture below
[](https://i.stack.imgur.com/uGuRF.png)
How could render the data to look like in the picture below using Google Query?
[](https://i.stack.imgur.com/JAUkT.png)
I already know basic Google Query syntax, but I can only render the data only up ... | How to render Google Sheet Query to multiple Column | CC BY-SA 4.0 | null | 2023-03-03T21:45:02.463 | 2023-03-03T21:59:15.900 | 2023-03-03T21:45:54.893 | 5,544,988 | 5,544,988 | [
"google-sheets",
"google-sheets-formula"
] |
75,632,138 | 2 | null | 66,171,339 | 0 | null | An example that allows you to select a new theme from a theme browser showing all themes -no combo selection is needed- and updates a window by closing and recreating it.
Here is the source code:
```
import PySimpleGUI as sg
selected_theme = 'LightGreen'
sg.theme(selected_theme)
theme_list = sg.theme_list()
theme_lis... | null | CC BY-SA 4.0 | null | 2023-03-03T21:45:07.573 | 2023-03-04T10:54:08.837 | 2023-03-04T10:54:08.837 | 19,940,512 | 19,940,512 | null |
75,632,121 | 1 | null | null | 0 | 28 | Firstly, I don't know if it's important to specify it but I'm using Jetpack compose and I'm a beginner in Android development.
I'm building an app that should communicate with Google Drive in order to upload and download light datas. For that, I tried to add these dependencies in the build.gradle file of my app (as rec... | Communication between google drive API and jetpack compose app | CC BY-SA 4.0 | null | 2023-03-03T21:42:01.867 | 2023-03-03T21:42:01.867 | null | null | 13,297,517 | [
"java",
"kotlin",
"google-drive-api",
"android-jetpack-compose"
] |
75,632,146 | 2 | null | 75,632,099 | 0 | null | ```
from itertools import chain
from functools import reduce
starting_list = [1, 2, 3]
ending_list = []
for element in starting_list:
extended_element = [element]*3
ending_list = ending_list + extended_element
# fancy way
temp = chain([[element]*3 for element in starting_list])
ending_list2 = reduce(lambda ... | null | CC BY-SA 4.0 | null | 2023-03-03T21:46:49.823 | 2023-03-03T21:46:49.823 | null | null | 14,498,474 | null |
75,632,145 | 2 | null | 75,631,670 | 0 | null | The `update` is pretty easy using ["arrayFilters"](https://www.mongodb.com/docs/manual/reference/operator/update/positional-filtered/).
```
db.collection.update({
_id: "1"
},
{
"$set": {
"builds.$[buildElem].artifacts.$[artElem].minioPath": "test42.zip"
}
},
{
"arrayFilters": [
{"buildElem._id": "11"},
... | null | CC BY-SA 4.0 | null | 2023-03-03T21:46:43.820 | 2023-03-03T21:49:23.430 | 2023-03-03T21:49:23.430 | 1,409,374 | 1,409,374 | null |
75,632,143 | 2 | null | 75,631,946 | 0 | null | I agree Rufus, no-one forces you to check for null, in particular when all those methods are private and therefor under your control. There's no way the member can ever be null in any of those private methods.
We can help the compiler using the [null-forgiving-operator](https://learn.microsoft.com/dotnet/csharp/languag... | null | CC BY-SA 4.0 | null | 2023-03-03T21:46:39.940 | 2023-03-03T21:53:23.597 | 2023-03-03T21:53:23.597 | 2,528,063 | 2,528,063 | null |
75,632,153 | 1 | null | null | 0 | 9 | ```
BucketPolicy:
Type: AWS::S3::BucketPolicy
DeletionPolicy: Retain
Properties:
Bucket: !Ref MyWebsite
PolicyDocument:
Version: 2008-10-17
Id: PolicyForCloudFrontPrivateContent
Statement:
- Sid: AllowCloudFrontServicePrincipal
Effect: Allow
Principal:
Service... | Template format error: YAML not well-formed Bucket Policy | CC BY-SA 4.0 | null | 2023-03-03T21:48:16.083 | 2023-03-03T22:07:13.843 | null | null | 20,993,724 | [
"amazon-web-services",
"amazon-s3",
"cloud"
] |
75,632,155 | 2 | null | 36,876,512 | 0 | null | `$ git push -f origin <last_good_commit>:<branch_name>`
| null | CC BY-SA 4.0 | null | 2023-03-03T21:48:22.820 | 2023-03-03T21:49:35.033 | 2023-03-03T21:49:35.033 | 16,431,240 | 16,431,240 | null |
75,632,148 | 2 | null | 75,631,969 | 0 | null | Heyo, you're right that the local storage is being accessed after the page loads, because that's exactly what you've programmed to happen. The `OnAfterRender` method is fired after the page has rendered/loaded. Why don't you access the local storage in the `OnInitialized` or, since you seem to need the Async, `OnInitia... | null | CC BY-SA 4.0 | null | 2023-03-03T21:47:27.703 | 2023-03-03T21:47:27.703 | null | null | 18,640,156 | null |
75,632,134 | 1 | 75,632,486 | null | 1 | 38 | I tried to use `createBrowserRouter` to create a new route (apart from the root `"/"`), but it seems not working. Can anyone help pointing out what could be missing?
[](https://i.stack.imgur.com/DVRwO.png)
Here is how index.js looks like:
```
import React from 'react';
import ReactDOM from 'react-dom/client';
import Ap... | React Router v6 - createBrowserRouter Can not get error | CC BY-SA 4.0 | null | 2023-03-03T21:44:42.047 | 2023-03-03T22:57:24.287 | 2023-03-03T22:53:10.207 | 8,690,857 | 4,597,683 | [
"javascript",
"reactjs",
"react-router",
"react-router-dom"
] |
75,632,156 | 2 | null | 75,626,441 | 0 | null | If you want something similar to the Telerik ScreenTip, you should try the built-in `ToolTip`.
```
<Button
Content="Click"
ToolTipService.Placement="Bottom">
<ToolTipService.ToolTip>
<Grid RowDefinitions="Auto,*">
<TextBlock
Grid.Row="0"
FontWeight="SemiBo... | null | CC BY-SA 4.0 | null | 2023-03-03T21:48:23.593 | 2023-03-03T21:48:23.593 | null | null | 2,411,960 | null |
75,632,150 | 1 | null | null | 0 | 7 | Here is my code: (I would like to be able to grab the input from the "left" input, and be able to then have options that lead with the subsequent "wait" and "swim" options....but how do I grab the input that I will produce with this?????? argh!
first_choice = input("To begin, you find yourself in a dark forest at a ... | I am trying to grab the input from a choose your own adventure program to then use for another set of if/elif statements | CC BY-SA 4.0 | null | 2023-03-03T21:47:37.223 | 2023-03-03T21:58:22.000 | null | null | 18,014,091 | [
"if-statement"
] |
75,632,158 | 1 | null | null | 0 | 30 | Edit: I have been informed that I have a Godot-specific error. I'm going to leave the question up so people can look at my idiocy and also to help the one poor soul in the future who sees this. I still don't know why though, I'll be going to the Godot Game Engine Discord, and will update here if I figure a solution out... | Can you compile for Windows using WSL? | CC BY-SA 4.0 | null | 2023-03-03T21:48:41.053 | 2023-03-04T08:16:55.120 | 2023-03-04T08:16:55.120 | 466,862 | 15,525,549 | [
"windows-subsystem-for-linux",
"godot",
"scons"
] |
75,632,149 | 2 | null | 74,454,859 | 0 | null | Sounds like you want a pseudo-terminal. Have a look at the [pty](https://docs.python.org/3/library/pty.html) module.
`pty.fork()` gives you a pid and a file descriptor (the child process gets pid=0). From the parent process you use the file descriptor to read from the terminal and send data to the terminal. Best approa... | null | CC BY-SA 4.0 | null | 2023-03-03T21:47:33.453 | 2023-03-03T21:47:33.453 | null | null | 21,328,408 | null |
75,632,130 | 1 | null | null | 0 | 11 | I am trying to register all the manage servers running in WebLogic 12 in Consul Discovery Server. In order do do that, I create a war project with dependency. This is a spring-boot application. application run with each manage server in WebLogic server.
Here is the pom.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<p... | Failed to run spring-boot-consul client in weblogic | CC BY-SA 4.0 | null | 2023-03-03T21:43:40.737 | 2023-03-03T21:43:40.737 | null | null | 14,156,095 | [
"java",
"weblogic",
"consul",
"spring-cloud-consul",
"sidecar"
] |
75,632,161 | 1 | null | null | 0 | 18 | Im building a podcast player project, where you can find a list of podcasts, filter them by a search bar, and so on.
Im supposed to be able to navigate to a podcast and once there, to show all Episodes of that particular Podcast in my WebApp.
I've seen people mention in the Apple Developer Forums, that you could access... | How do I get a list of Episodes from a podcast using the Itunes API? | CC BY-SA 4.0 | null | 2023-03-03T21:49:27.343 | 2023-03-03T23:33:38.137 | null | null | 14,388,910 | [
"reactjs",
"typescript",
"api",
"redux-toolkit",
"itunes"
] |
75,632,164 | 2 | null | 75,623,777 | 1 | null | This happens when at least on of your text flied is in focus mode and the keyboard is visible i think because you are binding to the published array and at the same time you are trying to remove it. So i suggest that you disable delete when any of the textFields are in focus mode. You can do it like this
```
struct Not... | null | CC BY-SA 4.0 | null | 2023-03-03T21:49:59.377 | 2023-03-03T21:49:59.377 | null | null | 10,701,774 | null |
75,632,160 | 2 | null | 75,629,477 | 0 | null | Typically, the ack deadline expires due to slow processing in the subscriber. This slow processing could take on many forms. It could be that the user callback is taking too long to process and acknowledge the message. Based on your investigation, it does not sound like this is what is happening.
Another possibility is... | null | CC BY-SA 4.0 | null | 2023-03-03T21:49:27.107 | 2023-03-03T21:49:27.107 | null | null | 1,121,288 | null |