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,628,598 | 2 | null | 75,624,217 | 0 | null | I believe Knative 1.9 requires Kubernetes 1.23 or newer. One of the changes that happened in the last year or so was the removal of the `v2beta2` autoscaling API and replacement with `v2` API. I believe the new API is present in Kubernetes 1.22, but Knative 1.9 was tested with the community supported versions as of Ja... | null | CC BY-SA 4.0 | null | 2023-03-03T14:54:12.263 | 2023-03-03T14:54:12.263 | null | null | 1,543,502 | null |
75,628,597 | 1 | null | null | 0 | 21 | I'm trying to make a one-to-many association between a "Tasks" and another "Employees" model. This error persists.
The code is separated into two models.
Model "Funcionarios":
```
const { Sequelize, DataTypes, Model } = require('sequelize')
const database = require('../db')
const schema = ''
const Tarefas = require('./... | Error: Tarefas.belongsTo called with something that's not a subclass of Sequelize.Model | CC BY-SA 4.0 | null | 2023-03-03T14:54:09.670 | 2023-03-03T17:59:38.543 | 2023-03-03T17:59:38.543 | 5,846,045 | 21,326,705 | [
"javascript",
"node.js",
"sql-server",
"sequelize.js"
] |
75,628,595 | 1 | null | null | 0 | 28 | I'm trying to install this component: `npm install ngx-treeview --save`, and I'm having this error:
```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: angular-ngx-treeview-app@0.0.0
npm ERR! Found: @angular/common@15.2.1
npm ERR! node_modules/@angular/commo... | I'm trying to install this component npm install ngx-treeview --save, but I'm not getting | CC BY-SA 4.0 | null | 2023-03-03T14:54:05.507 | 2023-03-03T16:31:13.467 | 2023-03-03T16:06:46.950 | 6,584,878 | 21,326,758 | [
"angular",
"npm"
] |
75,628,602 | 2 | null | 4,187,356 | 0 | null | Here is the C# code to get the two numbers from a string:
```
Regex regex = new Regex(@"[\d]+");
var matchCollection = regex.Matches(text);
int firstNumber = int.Parse(matchCollection[0].Value);
int secondNumber = int.Parse(matchCollection[1].Value);
```
| null | CC BY-SA 4.0 | null | 2023-03-03T14:55:50.493 | 2023-03-03T14:55:50.493 | null | null | 626,533 | null |
75,628,585 | 1 | 75,628,937 | null | 0 | 63 | I'm making an FAQ section.
The goal is pretty simple: click the question to open the answer and then click the question again to close the answer.
At the meantime, the "+" and "-" toggles.
I made it work for the first question, but I don't knonw how to iterate it with loops.
I tried to for loop, but failed.
Can someone... | How to iterate a few elements with loops in JavaScript? | CC BY-SA 4.0 | null | 2023-03-03T14:53:08.277 | 2023-03-03T21:09:47.013 | 2023-03-03T15:05:12.593 | 10,669,010 | 19,480,643 | [
"javascript"
] |
75,628,604 | 1 | null | null | 0 | 17 | I am able to connect to singlestore and load the data into a dataframe using spark.read.format("memsql") and also write to singlestore using dataframe.write.format("memsql")
But i need to run a delete query for ex: Delete from tableA where id=1; to delete a record in singlestore through my pyspark code
I am not able to... | How to run delete query on Memsql/singlestore using pyspark | CC BY-SA 4.0 | null | 2023-03-03T14:55:55.973 | 2023-03-03T18:56:04.767 | null | null | 21,326,752 | [
"pyspark",
"singlestore"
] |
75,628,599 | 2 | null | 75,628,208 | 0 | null | I am using sql fiddler. Here are the steps that I used to reproduce and solve your problem.
Create the tables.
```
create table planned
(
Operation1 varchar(32),
Order1 varchar(32),
Planned_hrs varchar(32)
);
create table actual
(
Operation1 varchar(32),
Order1 varchar(32),
Actual_hrs varchar(32)
);
```... | null | CC BY-SA 4.0 | null | 2023-03-03T14:54:13.897 | 2023-03-03T14:54:13.897 | null | null | 2,577,687 | null |
75,628,605 | 2 | null | 75,626,858 | 1 | null | What you are seeing is a named vector. To get rid of the names you can use
```
q1 <- unname(quantile(x, .25))
q3 <- unname(quantile(x, .75))
```
in your function.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:56:00.017 | 2023-03-03T14:56:00.017 | null | null | 2,372,064 | null |
75,628,592 | 1 | null | null | 0 | 8 | I have a k8s cluster with one master and 3 worker nodes. I have set up crunchy operator high availability with 2 replica sets. This is my deployment file.
```
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo-ha
spec:
service:
type: LoadBalancer
patroni:
dyn... | My my Postgres-operator Pods dont transfer to new node if one node is failed? | CC BY-SA 4.0 | null | 2023-03-03T14:54:00.877 | 2023-03-03T14:54:00.877 | null | null | 20,500,110 | [
"kubernetes",
"pgo",
"crunchy-postgresql-operator"
] |
75,628,603 | 2 | null | 75,627,592 | 0 | null | `URLSearchParams` already exists as a built-in. To get the setter, we can use [ReturnType](https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype) and access the second element of the returned tuple:
```
type SetURLSearchParams = ReturnType<typeof useSearchParams>[1];
```
[Playground](https://w... | null | CC BY-SA 4.0 | null | 2023-03-03T14:55:53.347 | 2023-03-03T14:55:53.347 | null | null | 18,244,921 | null |
75,628,608 | 2 | null | 75,399,888 | -2 | null | Confirm that the phone number "40404" is not blocked on your phone. This is one of the most commons causes of this error.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:56:17.140 | 2023-03-03T14:56:17.140 | null | null | 131,128 | null |
75,628,606 | 1 | 75,628,732 | null | 0 | 34 | I want to count how many rows are equal to the max value within a group (in data.table). I know from [Select the row with the maximum value in each group](https://stackoverflow.com/questions/24558328/select-the-row-with-the-maximum-value-in-each-group) how to find the max value in data.table.
```
set.seed(5)
z <- data... | Count Records Equal to Max in Data.Table within group | CC BY-SA 4.0 | null | 2023-03-03T14:56:01.570 | 2023-03-03T15:50:02.733 | null | null | 2,286,779 | [
"r",
"data.table"
] |
75,628,600 | 2 | null | 75,628,330 | 0 | null | Is there a reason why you want to use nested tables? If I understand the question correctly you can achieve this by using 1 table and for example rowspan/colspan.
```
table, th, td {
border:1px solid black ;
border-collapse: collapse ;
padding: 0;
margin: 0;
}
th, td {
width: 14ch ;
height: ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:55:34.970 | 2023-03-03T14:55:34.970 | null | null | 2,558,945 | null |
75,628,612 | 2 | null | 75,626,854 | 0 | null | looks like your textview already has an id
else try to invalidate and restart
else Settings(Preferences on Mac) -> Editor -> Code completion
| null | CC BY-SA 4.0 | null | 2023-03-03T14:56:38.337 | 2023-03-03T14:56:38.337 | null | null | 8,619,606 | null |
75,628,596 | 1 | null | null | 0 | 59 | I have a dataframe where I want to find the next row in one column where the value changes, based on a check on another column
```
df[(df['Col1'] == 49.8) & (df['Col2'] != 0) & (df['Col2'].abs() > 0.02)]
```
The code above produces results, which is ok, but the value in Col3 change sometime later
So , how do I use the... | Find when value changes one row based on another | CC BY-SA 4.0 | null | 2023-03-03T14:54:08.313 | 2023-03-03T18:27:38.863 | 2023-03-03T15:52:25.880 | 4,328,843 | 4,328,843 | [
"python",
"pandas"
] |
75,628,607 | 2 | null | 38,274,530 | 0 | null | I would sugest library `@mrhiden/cstruct`
[https://www.npmjs.com/package/@mrhiden/cstruct](https://www.npmjs.com/package/@mrhiden/cstruct)
Than you can exchange binary data as follow:
```
// Prepare exchange model and preset LE - Little Endian
const cStruct = new CStructLE({
first: 'int16',
second: 'bool8',
t... | null | CC BY-SA 4.0 | null | 2023-03-03T14:56:11.100 | 2023-03-03T14:56:11.100 | null | null | 160,581 | null |
75,628,611 | 2 | null | 73,614,938 | 0 | null | As found here [https://forum.ionicframework.com/t/backdrop-for-stack-modal/222468](https://forum.ionicframework.com/t/backdrop-for-stack-modal/222468)
Try using `!important`
```
ion-modal.stack-modal {
--box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4) !important;
--backdrop-opacity: var(--ion-backdrop-opacity, 0.32) !im... | null | CC BY-SA 4.0 | null | 2023-03-03T14:56:36.443 | 2023-03-03T15:04:02.787 | 2023-03-03T15:04:02.787 | 21,326,802 | 21,326,802 | null |
75,628,614 | 1 | null | null | 0 | 8 | using KnowAge report designer I have implemented a report. Following the guide (of which the link [https://knowage-suite.readthedocs.io/en/8.1/functionalities-guide/birt-reporting/index.html](https://knowage-suite.readthedocs.io/en/8.1/functionalities-guide/birt-reporting/index.html) ) I need to publish the report from... | KnowAge report designer publishing report on KnowAge server | CC BY-SA 4.0 | null | 2023-03-03T14:56:59.113 | 2023-03-03T14:56:59.113 | null | null | 21,279,437 | [
"server",
"publish",
"business-intelligence",
"report-designer",
"knowage"
] |
75,628,617 | 2 | null | 53,406,548 | 0 | null | this.context worked for me instead of context.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:57:11.890 | 2023-03-03T14:57:11.890 | null | null | 14,197,208 | null |
75,628,609 | 1 | null | null | 0 | 5 | Why requests outgoing not logging with logbook ?
I have a unit test:
```
@Test
public void logRequestBodyTest() {
Logbook logbook = Logbook.builder()
.sink(new DefaultSink(
new DefaultHttpLogFormatter(),
new DefaultHttpLogWriter()
))
.buil... | Requests outgoing not logging in logbook zalando | CC BY-SA 4.0 | null | 2023-03-03T14:56:23.200 | 2023-03-03T15:16:40.973 | 2023-03-03T15:16:40.973 | 152,794 | 2,369,681 | [
"resteasy",
"logbook"
] |
75,628,615 | 2 | null | 75,598,159 | 0 | null | You could try a dynamic SQL like this:
```
--SELECT set_config('remote.host','pg.farfaraway.com',true);
DO LANGUAGE PLPGSQL
$_$
BEGIN
EXECUTE FORMAT('
CREATE SERVER my_server
FOREIGN DATA WRAPPER postgres_fdw
OPTIONS(
dbname %L,
user %L,
host %L,
port %L);
','the_database',CURRENT_USER,current_setting('remo... | null | CC BY-SA 4.0 | null | 2023-03-03T14:57:03.410 | 2023-03-03T14:57:03.410 | null | null | 4,912,966 | null |
75,628,613 | 1 | null | null | 0 | 11 | This is my simple ned file:
```
simple Txc1
{
gates: (***)
input: in;
output: out;
}
network Tictoc1
{
submodules:
tic: Txc1;
toc: Txc1;
connections:
tic.out --> { delay= 100 ms; } --> toc.in;
tic.in <-- { delay= 100 ms; } <-- toc.out;
}
```
I copied this exactly from a udemy cour... | In OMNET++, trying to implement a very simple ned file, I get syntax error, unexpected ':', expecting NAME after gates: | CC BY-SA 4.0 | null | 2023-03-03T14:56:39.713 | 2023-03-03T20:57:59.793 | 2023-03-03T20:56:33.233 | 4,653,172 | 13,823,383 | [
"omnet++"
] |
75,628,620 | 1 | null | null | 0 | 14 | I am seriously exhausted how to solve this problem.
The aim is to create a new timeslot. I have tried triggers to move with mouse (mousedown, mouse up...). Honestly, the biggest issue was to specify START and END position.
Cypress version 12.7
I've used function to specify element with its class and assertion like ".sh... | Drag & Drop - create a new timeslot | CC BY-SA 4.0 | null | 2023-03-03T14:57:46.267 | 2023-03-04T10:01:29.813 | 2023-03-04T10:01:29.813 | 17,562,044 | 19,824,400 | [
"drag-and-drop",
"cypress"
] |
75,628,618 | 2 | null | 51,822,551 | 0 | null | The workaround for me was to create the ssh fingerprint before running the command:
```
INSTANCE_NAME=$(gcloud app instances list --service="$RUN_SERVICE" --version="$CI_COMMIT_SHORT_SHA" --project="$PROJECT_ID" --format="value(ID)" --limit=1)
INSTANCE_IP=$(gcloud app instances list --service="$RUN_SERVICE" --version="... | null | CC BY-SA 4.0 | null | 2023-03-03T14:57:20.737 | 2023-03-03T14:57:20.737 | null | null | 333,291 | null |
75,628,616 | 2 | null | 75,627,908 | 0 | null | To get an item from Amazon DynamoDB, try using the (which is the recommended version of the .NET SDK).
You can use the . Notice that the call is an async method. If you are not familiar with AWS SDK For .NET V3 - here is the DEV Guide.
[What is the AWS SDK for .NET](https://docs.aws.amazon.com/sdk-for-net/v3/developer... | null | CC BY-SA 4.0 | null | 2023-03-03T14:57:11.080 | 2023-03-03T21:52:44.453 | 2023-03-03T21:52:44.453 | 1,435,543 | 1,435,543 | null |
75,628,619 | 1 | null | null | -1 | 14 | When I'm trying to update an article in Postman, he responds to me: .
This is my code:
updateArticle: (req, res) =>{
```
const articleId = req.params.articleId
Article.update({_id: articleId}, req.body).then(() => {
res.status(200).json({
message: 'Article Updated'
})
}).catch(error... | Postman : is not a function | CC BY-SA 4.0 | null | 2023-03-03T14:57:46.230 | 2023-03-03T14:57:46.230 | null | null | 21,326,760 | [
"visual-studio-code",
"postman"
] |
75,628,621 | 1 | null | null | -1 | 17 | I am quite new for networking and I would like to know if it is a good idea to use OpenVPN (or generally VPN) to restrict PostgreSQL server access.
If yes, is it possible to setup OpenVPN and Postgres on the same server and allow DB access only for those clients who are using VPN? Or should OpenVPN live on another serv... | Using OpenVPN for securing PostgreSQL server | CC BY-SA 4.0 | null | 2023-03-03T14:57:56.463 | 2023-03-03T15:20:35.843 | 2023-03-03T15:20:35.843 | 17,572,369 | 17,572,369 | [
"postgresql",
"ubuntu",
"openvpn",
"database-security"
] |
75,628,610 | 1 | null | null | 0 | 31 | I am writing a push-triggered workflow and am running into an issue where the boolean input parameter is coming through as null despite being default: false.
```
name: CI Build on Merge
on:
# Currently only master/main/develop are listed as branches where push
# will result in this workflow trigger.
# NOTE: If ... | Input param in bash if condition not being set | CC BY-SA 4.0 | null | 2023-03-03T14:56:28.357 | 2023-03-03T15:02:40.810 | 2023-03-03T15:02:40.810 | 12,899,384 | 12,899,384 | [
"bash",
"github-actions"
] |
75,628,624 | 2 | null | 75,628,069 | 0 | null | Until someone proposes a better solution, `replace_last` is what I found from `boost`
```
#include<iostream>
#include<boost/algorithm/string.hpp>
int main()
{
std::string s= "There {x:y} is a {x:y},u bench";
std::cout<<s<<std::endl;
boost::algorithm::replace_last(s,"{x:y}","{r:w}");
s... | null | CC BY-SA 4.0 | null | 2023-03-03T14:58:02.037 | 2023-03-03T14:58:02.037 | null | null | 8,255,865 | null |
75,628,631 | 1 | null | null | -3 | 35 | I want to init a 3D array in python without knowing the last dimension size.
This is what i have in Java:
```
lastUnionNeg = new int[numberOfVariables+1][3][];
```
I want to do the same in Python if it is possible.
I search a lot but i did not find any useful. Can anybody help me?
| Init 3D Java array without exact size in Python | CC BY-SA 4.0 | null | 2023-03-03T14:58:31.087 | 2023-03-03T15:20:24.547 | 2023-03-03T14:59:59.900 | 21,326,801 | 21,326,801 | [
"python",
"java",
"arrays"
] |
75,628,623 | 1 | null | null | 0 | 17 | I am investigating why a blob does not get removed from blob storage. Cannot find yet why.
Here is my code
```
public virtual void DeleteBlob(string containerName, string fileName)
{
var source = GetContainer(activeBlobContainers, activeBlobServiceClient, containerName).GetBlobClient(fileName);
sour... | DeleteIfExistsAsync does not work on azure storage | CC BY-SA 4.0 | null | 2023-03-03T14:57:59.027 | 2023-03-03T14:57:59.027 | null | null | 999,079 | [
"c#",
"azure",
"azure-blob-storage",
"azure-storage"
] |
75,628,625 | 1 | null | null | 0 | 26 | Shown below is a piece of code for creating an EC2 instance, but in the AWS EC2 portal, the name is coming as empty.
What parameter should I add for populating the NAME field?
```
resource "aws_instance" "terraform_Demo_EC2_Instance"{
ami = "${var.ami_id}"
count = "${var.number_of_instances}"
instance_type = "${v... | How to set the name field when creating AWS EC2 instance through Terraform? | CC BY-SA 4.0 | null | 2023-03-03T14:58:03.433 | 2023-03-04T02:57:54.373 | 2023-03-04T02:57:54.373 | 2,745,495 | 21,326,179 | [
"amazon-ec2",
"terraform",
"terraform-provider-aws"
] |
75,628,634 | 1 | null | null | 0 | 6 | I want to checkout 2 repositories with specific branch in a single plan.
I am able checkout for the plan branch but not other branches.Can anyone please help me with this. Thanks in advance.
| Checkout multple repo with specific branch in Bamboo CI plan | CC BY-SA 4.0 | null | 2023-03-03T14:58:44.833 | 2023-03-03T14:58:44.833 | null | null | 19,052,724 | [
"bitbucket",
"bamboo"
] |
75,628,630 | 2 | null | 75,628,521 | 2 | null | with Office 365:
```
=LET(
rng,$C$5:$L$14,
hd,$C$4:$L$4,
rw,$B$5:$B$14,
INDEX(FILTER(hd,FILTER(rng,rw=R5)="x"),,COUNTIF($R$5:R5,R5)))
```
[](https://i.stack.imgur.com/nAWyc.png)
Older versions
```
=INDEX($4:$4,AGGREGATE(15,7,COLUMN($C$5:$L$14)/(($B$5:$B$14=R5)*($C$5:$L$14="x")),COUNTIF($R$5:R5,R5)))
``... | null | CC BY-SA 4.0 | null | 2023-03-03T14:58:24.947 | 2023-03-03T15:05:37.210 | 2023-03-03T15:05:37.210 | 4,851,590 | 4,851,590 | null |
75,628,627 | 2 | null | 75,510,275 | 0 | null | TL;DR: elasticsearch (1) can store strings with special character in it, (2) performance depends on the mapping of the field
to maximise performance:
- [docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html)[docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index... | null | CC BY-SA 4.0 | null | 2023-03-03T14:58:15.060 | 2023-03-03T14:58:15.060 | null | null | 3,029,337 | null |
75,628,626 | 1 | null | null | 1 | 43 | I am new to Git and version control, so apologies if this is an obvious mistake. I have not found anything online that helped me solve this issue.
I have just done the following steps:
- - -
Now I want to:
-
When I put the command
```
git clone https://github.com/MY-USERNAME/MY-REPO.git
```
This gives me the followi... | Error in cloning repository with Git from R | CC BY-SA 4.0 | null | 2023-03-03T14:58:03.577 | 2023-03-03T15:48:59.783 | 2023-03-03T15:47:16.470 | 1,968 | 12,161,164 | [
"r",
"git",
"github"
] |
75,628,632 | 1 | null | null | 0 | 20 | I have a movie app that fetches an API and I'm trying to get set the movie image on the other view controller when I click on the cell. But the delegate is coming back as nil and nothing is happening.
If anyone knows how to fix this please help me out!
```
protocol LibraryVCDelegate {
func didGetMovie(moive: Strin... | Delegate not working, data isn't being passed to view controller from selecting cell | CC BY-SA 4.0 | null | 2023-03-03T14:58:39.940 | 2023-03-04T10:15:33.913 | 2023-03-03T15:57:10.423 | 20,287,183 | 18,284,724 | [
"swift",
"uikit"
] |
75,628,638 | 2 | null | 74,440,028 | 0 | null | The App Inventor development environment currently does not support Kotlin. Use Java instead. See also the App Inventor Extensions document. Alternatively use the Rush development environment, which also supports Kotlin.
And for creating extensions please follow the naming conventions for extension developers.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:58:52.110 | 2023-03-03T14:58:52.110 | null | null | 21,324,027 | null |
75,628,635 | 1 | 75,630,059 | null | -1 | 51 | I want to create my User table and set a proper size for password field used for signup request.
```
@Entity
@EqualsAndHashCode(callSuper = true)
public class User extends Person {
@Column(length = 50, nullable = false, unique = true)
private String username;
@Column(length = 120, nullable = false)
pr... | What should be password field length in dB when using Spring Security? | CC BY-SA 4.0 | null | 2023-03-03T14:58:46.087 | 2023-03-03T19:45:19.460 | 2023-03-03T15:30:05.723 | 21,263,160 | 21,263,160 | [
"java",
"spring",
"spring-boot",
"spring-security",
"passwords"
] |
75,628,637 | 2 | null | 75,103,753 | 0 | null | I also stumbled to this problem when i upgrade Android Studio Electric Eel | 2022.1.1 Patch 1 to Android Studio Electric Eel | 2022.1.1 Patch 2.
The old java_home is
```
C:\Program Files\Android\Android Studio\jre
```
The new java_home is
```
C:\Program Files\Android\Android Studio\jbr
```
After setting correct envir... | null | CC BY-SA 4.0 | null | 2023-03-03T14:58:51.853 | 2023-03-03T14:58:51.853 | null | null | 3,783,566 | null |
75,628,633 | 1 | null | null | -3 | 52 | ```
#include<stdio.h>
void main(){
float p1,p2;
float *x,*y;
printf("Enter the co-ordinates (x,y) : ");
scanf("%f%f",p1,p2);
x = &p1;
y = &p2;
printf("The co-ordinates(%f,%f) lies in quadrant ",*(x),*(y));
if(*x == 0 && *y ==0) {
printf("It is the origin.");
return;
}... | How to resolve the segmentation fault issue while working with pointers in c? | CC BY-SA 4.0 | null | 2023-03-03T14:58:44.090 | 2023-03-03T15:11:06.833 | 2023-03-03T15:11:06.833 | 4,062,354 | 21,277,945 | [
"c",
"pointers",
"segmentation-fault"
] |
75,628,583 | 1 | 75,630,043 | null | 0 | 16 | I am trying to access the Google Maps and Autocomplete API.
Here is the error I am getting at the
```
Uncaught (in promise) ReferenceError: Cannot access 'AutocompleteDirectionsHandler' before initialization
at window.initMap (traffic.js:25:5)
```
Here is my traffic.HTML file
```
<html>
<head>
<title>DREAM M... | Cannot access 'AutocompleteDirectionsHandler' before initialization for Google Api | CC BY-SA 4.0 | null | 2023-03-03T14:53:01.387 | 2023-03-04T15:29:52.140 | 2023-03-04T15:29:52.140 | 1,210,329 | 21,294,077 | [
"javascript",
"html",
"google-maps",
"electron"
] |
75,628,629 | 1 | 75,629,060 | null | 0 | 22 | I am trying to create an array where I need to filter with a certain key (`fileid`) so that it returns only unique keys for parent array. Here is what I have..
```
Array
(
[ABCD] => Array
(
[0] => Array
(
[fileid] => 5454554
[filename] => m... | Remove Duplicate Nested Arrays From Multidimenssional Array By Nested Array Key | CC BY-SA 4.0 | null | 2023-03-03T14:58:22.303 | 2023-03-03T17:02:20.853 | null | null | 1,954,949 | [
"php",
"arrays",
"multidimensional-array",
"array-filter",
"array-unique"
] |
75,628,642 | 2 | null | 75,628,254 | 0 | null | Aha, just try to use `PaperProps`, hope is would solve the issue:
```
<Drawer variant="permanent" open={open}
PaperProps={{
style: {
backgroundColor: "black",
},
}}
>
```
| null | CC BY-SA 4.0 | null | 2023-03-03T14:59:17.800 | 2023-03-03T16:01:06.947 | 2023-03-03T16:01:06.947 | 8,330,688 | 8,330,688 | null |
75,628,641 | 1 | 75,633,228 | null | 1 | 30 | In Flutter, I have an async function that should not be called twice at the same time.
Here's a minimal example
```
class DatabaseHelper {
Future<void> add100elements() async {
// this functions queries a database and adds 100 elements from the db to a local list
var elementsToAdd = await db.rawQuery('... | Dart : how to prevent concurrent calls to async function | CC BY-SA 4.0 | null | 2023-03-03T14:59:13.300 | 2023-03-04T02:05:49.087 | null | null | 4,838,189 | [
"flutter",
"dart"
] |
75,628,640 | 1 | null | null | 1 | 13 | My GitbHub action job keeps failing at the "git pull" script with the following error:
err: fatal: could not read Username for 'https://github.com': No such device or address.
Here's what my yaml file looks like
```
name: Deploy to DigitalOcean
on:
# run it on push to the develop repository branch
push:
branch... | I am trying to deploy my Nest JS app to a digitalocean droplet using Github Actions. The job I run keeps failing at the "git pull" command | CC BY-SA 4.0 | null | 2023-03-03T14:59:04.243 | 2023-03-03T16:27:04.430 | null | null | 16,116,658 | [
"nestjs",
"github-actions",
"devops",
"digital-ocean"
] |
75,628,651 | 2 | null | 75,627,883 | 0 | null | ```
OrderSL = KucoinCC.create_stop_order(symbol=coin,type='market', side='sell', amount=AvailableAmount, price=StopLossTrigger,stopPrice=StopLoss,params=dict(stop='loss'))
OrderIDSL = OrderSL['id']
OrderTP = KucoinCC.create_stop_order(symbol=coin,type='market', side='sell', amount=AvailableAmount, ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:59:31.093 | 2023-03-03T14:59:31.093 | null | null | 19,115,161 | null |
75,628,649 | 1 | null | null | 0 | 14 | I hope you're doing well!
I've got four dummy variables in SPSS and am trying to work out what the syntax would be to calculate the number of cases where at least one of the four variables = 1 (meaning it's true). I believe the mathematical equation for this is:
A + B + C + D - (AB + AC + AD + BC + BD + CD) + (ABC + AB... | How do I calculate the number of cases where at least one of four variables is true? | CC BY-SA 4.0 | null | 2023-03-03T14:59:26.170 | 2023-03-04T17:45:42.363 | null | null | 16,537,944 | [
"variables",
"statistics",
"spss"
] |
75,628,645 | 1 | null | null | 0 | 17 | I'm getting an `AuthenticationFailed` message when attempting to use the `MERGE` verb for an API call into Azure Storage API (specifically Tables).
The [documentation](https://learn.microsoft.com/en-us/rest/api/storageservices/insert-or-merge-entity) indicates that the signature hashing and body content should be the s... | AuthenticationFailed message when using MERGE with Azure Storage Table API | CC BY-SA 4.0 | null | 2023-03-03T14:59:20.800 | 2023-03-03T15:19:36.827 | 2023-03-03T15:19:36.827 | 1,421,994 | 1,421,994 | [
"php",
"azure",
"azure-table-storage"
] |
75,628,648 | 1 | null | null | 0 | 24 | I am trying to make a hotkey using AutoHotKey that toggles through the audio output options using `nircmd setdefaultsound`. The following program is what I have: it does not give errors, and it gives the MsgBox but it always says "Headphones" and it does not actually change the device.
```
#Requires AutoHotkey v2.0
;E... | AutoHotKey v2 Audio Output Device Toggle | CC BY-SA 4.0 | null | 2023-03-03T14:59:25.683 | 2023-03-04T01:05:20.843 | 2023-03-03T16:33:22.070 | 8,739,121 | 8,739,121 | [
"audio",
"output",
"autohotkey",
"device"
] |
75,628,650 | 2 | null | 72,558,298 | 0 | null | Good news ! They added Display P3 wide gamut colors profile to Flutter 4 days ago ! :)
Link : [https://github.com/flutter/flutter/issues/55092#issuecomment-1446790646](https://github.com/flutter/flutter/issues/55092#issuecomment-1446790646)
Add this :
```
<key>FLTEnableWideGamut</key>
<true/>
```
to your info.plist
| null | CC BY-SA 4.0 | null | 2023-03-03T14:59:28.043 | 2023-03-03T15:01:57.463 | 2023-03-03T15:01:57.463 | 19,698,269 | 19,698,269 | null |
75,628,653 | 2 | null | 74,783,271 | 0 | null | This guide (specifically the "Mounting Cloud Storage buckets" section) solved this problem for me:
[https://cloud.google.com/blog/topics/developers-practitioners/cloud-storage-file-system-vertex-ai-workbench-notebooks/](https://cloud.google.com/blog/topics/developers-practitioners/cloud-storage-file-system-vertex-ai-wo... | null | CC BY-SA 4.0 | null | 2023-03-03T14:59:40.200 | 2023-03-03T14:59:40.200 | null | null | 5,653,319 | null |
75,628,647 | 1 | null | null | 0 | 12 | I am currently implementing tests for a system accessible via rest. The tests are programmatically created to check access rights for different users and endpoints in the target system.
The code creating the tests looks something like this:
```
test.describe('Access tests', () => {
test.beforeAll(async ({request}) =>... | Playwright parallel execution skips tests | CC BY-SA 4.0 | null | 2023-03-03T14:59:24.863 | 2023-03-03T16:17:20.353 | 2023-03-03T16:17:20.353 | 2,373,249 | 11,612,733 | [
"typescript",
"testing",
"automated-tests",
"playwright"
] |
75,628,657 | 2 | null | 57,774,591 | 0 | null | It gets the parent of the parent of the `h2`, because `eq`starts with 0.
parents returns a jQuery, set with the first entry (.eq(0). next to the grandparent ('eq(1).
| null | CC BY-SA 4.0 | null | 2023-03-03T14:59:54.603 | 2023-03-03T15:25:48.967 | 2023-03-03T15:25:48.967 | 616,443 | 21,326,845 | null |
75,628,652 | 1 | 75,629,127 | null | 0 | 35 | I am working on a project from my for fun, and I was asked the question "Write a program to output the letters H, T and L as created by * characters. Create four variables that store * patterns and use ONLY THOSE to output the letters."
So what I have to do is create text in the console looking like this
```
* ... | Advanced JavaScript Pattern Creation Problem | CC BY-SA 4.0 | null | 2023-03-03T14:59:33.297 | 2023-03-03T15:45:05.297 | 2023-03-03T15:07:33.823 | 19,412,090 | 19,412,090 | [
"javascript",
"design-patterns",
"character"
] |
75,628,658 | 1 | null | null | 0 | 13 | Can you delete Development pods and install them again with `pod install` command?
I am getting this two issues from RNAnimtated library in the moment I switched my branch and I thought that deleting and installing the development pods would be the solution but I am not sure.
Can somebody give me an idea?
```
RNAnimate... | xcode - ios buil issue when branch is switched | CC BY-SA 4.0 | null | 2023-03-03T15:00:03.897 | 2023-03-03T15:00:03.897 | null | null | 19,480,917 | [
"ios",
"xcode",
"react-native",
"expo"
] |
75,628,646 | 1 | 75,628,685 | null | 1 | 22 | I am trying to use `pyproject.toml` (and specifically setuptools_scm) in an isolated environment. My minimal `pyproject.toml` is:
```
[build-system]
requires = ["setuptools-scm"]
[tool.setuptools_scm]
write_to = "mypackage/version.py"
```
However, when trying to install my package in an isolated environment, I get:
`... | pyproject.toml in an isolated environment | CC BY-SA 4.0 | null | 2023-03-03T14:59:23.383 | 2023-03-03T15:28:13.113 | null | null | 8,087,322 | [
"python",
"setuptools",
"pyproject.toml",
"setuptools-scm"
] |
75,628,661 | 2 | null | 75,588,595 | 1 | null | I also have the same problem; the only way to load the remaining projects was to remove the project from source control (Azure Dev ops). It was the only thing I could find that enables me to keep working.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:00:15.357 | 2023-03-04T19:01:43.050 | 2023-03-04T19:01:43.050 | 10,871,073 | 21,326,841 | null |
75,628,656 | 2 | null | 59,130,064 | 0 | null | Reinstall using howebrew, follow this steps:
-Install homebrew:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
-Install with homebrew your ruby version:
```
brew install ruby@2.6
```
-Set 2.6 as default version:
```
export PATH="/usr/local/opt/ruby@2.6/bin:$PAT... | null | CC BY-SA 4.0 | null | 2023-03-03T14:59:49.793 | 2023-03-03T14:59:49.793 | null | null | 7,023,267 | null |
75,628,654 | 1 | null | null | 0 | 23 | I m calling a stored procedure using the following code:
`dbContext.Database.ExecuteSqlRaw(sqlCommand.ToString());`
I have the following Stored Procedure:
```
CREATE DEFINER=`user11`@`%` PROCEDURE `UpdateDimDateEntity`(IN DimDateKey INT,
IN FullDate DATE,
IN DayName NVARCHAR(50),
IN DayOfWeek SMALLINT)
B... | MariaDb ColumnStore stored procedure returns Expected to read 4 header bytes but only received 0 | CC BY-SA 4.0 | null | 2023-03-03T14:59:42.967 | 2023-03-03T15:03:37.057 | 2023-03-03T15:03:37.057 | 1,173,307 | 1,173,307 | [
"c#",
".net",
"mariadb",
"mariadb-columnstore"
] |
75,628,664 | 2 | null | 75,597,405 | 0 | null | Then you need to create the application gateway with an azurerm_application_gateway resource, then reference it with the gateway_id property of the ingress_application_gateway block.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:00:28.487 | 2023-03-03T15:00:28.487 | null | null | 4,693,388 | null |
75,628,666 | 2 | null | 75,627,694 | 2 | null | The _last_of_month function expects a date data type and you are passing it a string. You will need to cast the string to a date. Additionally syntactically you have too many closing brackets.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:00:45.813 | 2023-03-03T15:00:45.813 | null | null | 11,481,509 | null |
75,628,660 | 2 | null | 75,628,633 | 3 | null | The line
```
scanf("%f%f",p1,p2);
```
is wrong. `%f` in `scanf()` expects of `float` variable, so it should be
```
scanf("%f%f",&p1,&p2);
```
Checking for input failure is better.
```
if (scanf("%f%f",&p1,&p2) != 2){
puts("failed to read values");
return;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T15:00:11.150 | 2023-03-03T15:00:11.150 | null | null | 4,062,354 | null |
75,628,663 | 2 | null | 14,933,039 | 0 | null | Like Bill Cheatham mentioned, you can use,
```
set(h, 'AlphaData', ~isnan(img_data(:, :, 1)))
```
For something more generalisable, I would change this to
```
set(h, 'AlphaData', ~isnan(h.CData))
```
This uses the image handle so that you don't have to worry about indexing your input image.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:00:22.543 | 2023-03-03T15:00:22.543 | null | null | 20,063,242 | null |
75,628,655 | 1 | null | null | -1 | 14 | `I'm new to vue and I'm having trouble validating dates, I want to validate dates so that the system prevents filtering if the final date is less than the start date or vice versa, I would like to validate dates with vue using :allowed-dates="allowedDates()"
to not let select end date smaller than start date and not le... | Validate start date and end date with vue js | CC BY-SA 4.0 | null | 2023-03-03T14:59:47.983 | 2023-03-03T15:13:47.840 | 2023-03-03T15:13:47.840 | 21,326,756 | 21,326,756 | [
"javascript",
"vue.js",
"validation"
] |
75,628,667 | 2 | null | 74,816,852 | 0 | null | I don't think this is possible and I don't think you should change the domain during runtime. I like the combination of Fiber and Certmagic, but I would do it in a different way:
```
func main() {
app := fiber.New()
ln, err := certmagic.Listen([]string{"example.com"})
if err != nil {
panic(err)
... | null | CC BY-SA 4.0 | null | 2023-03-03T15:00:45.873 | 2023-03-03T15:00:45.873 | null | null | 12,214,580 | null |
75,628,662 | 1 | null | null | 0 | 10 | I am trying to create fully automated script for SIEM deployment. There is one issue. I am not able to install fleet server. I want it to be fully automated no UI interaction. So first i need to create policy using API which i was able to do. Then I need to add fleet server integration to this policy and enroll fleet s... | Elastic Fleet server API Deployment | CC BY-SA 4.0 | null | 2023-03-03T15:00:21.060 | 2023-03-03T15:46:25.407 | null | null | 11,350,718 | [
"elasticsearch"
] |
75,628,659 | 1 | null | null | 0 | 15 | Running dotnet v7
```
dotnet --version
# => 7.0.100
```
I installed dotnet-warp using the command
```
dotnet tool install --global dotnet-warp
```
I am able to run `dotnet tool list -g` with the following result
| Package Id | Version | Commands |
| ---------- | ------- | -------- |
| dotnet-warp | 1.1.0 | dotnet-... | dotnet tool available globally but can't run command | CC BY-SA 4.0 | null | 2023-03-03T15:00:10.350 | 2023-03-03T15:27:10.020 | 2023-03-03T15:27:10.020 | 13,302 | 11,145,153 | [
".net"
] |
75,628,674 | 2 | null | 63,162,506 | 0 | null | Use the javascript Substring inbuilt function.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:01:48.760 | 2023-03-03T15:01:48.760 | null | null | 21,326,840 | null |
75,628,670 | 1 | null | null | -2 | 34 | I am working on the Palindrome Number problem on LeetCode. The instructions are as followed:
"Given an integer x, return true if x is a palindrome, and false otherwise."
I used the following code to change the integer to a string and reverse the string.
class Solution(object):
```
def isPalindrome(self, x):
"""
... | What's wrong with this code for the Palindrome Problem in LeetCode? | CC BY-SA 4.0 | null | 2023-03-03T15:01:17.677 | 2023-03-03T15:03:48.853 | 2023-03-03T15:02:21.587 | 21,326,792 | 21,326,792 | [
"python"
] |
75,628,668 | 1 | null | null | -1 | 25 | I have only been half successful in removing 'Get Started' from Windows 11 'Installed Apps' and 'Start Menu'.
```
powershell -inputformat none -outputformat none -NonInteractive -Command "get-appxpackage *getstarted* | remove-appxpackage"
takeown /f "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\Asse... | Complete removal of 'Get Started' in Windows 11 'Installed Apps' and 'Start Menu' | CC BY-SA 4.0 | null | 2023-03-03T15:00:52.493 | 2023-03-03T16:53:35.780 | 2023-03-03T16:53:35.780 | 6,738,015 | 21,326,767 | [
"batch-file",
"windows-11"
] |
75,628,676 | 1 | null | null | 0 | 9 | I want to read 2 different json files in 2 different directories in ADLS & create 2 different data frames. Although different dataframes are getting created but its only writing out the latest json file "json2" in this case. I understand the problem that the loop is overwriting instead of appending but not able to mani... | Reading multiple json files & creating multiple dataframes | CC BY-SA 4.0 | null | 2023-03-03T15:01:53.687 | 2023-03-04T17:12:58.380 | 2023-03-04T17:12:58.380 | 18,229,980 | 10,927,566 | [
"python",
"azure",
"for-loop",
"azure-data-lake-gen2"
] |
75,628,677 | 1 | null | null | 0 | 28 | We have few JSON Documents those are greater than 16 MB when saving to MongoDB, iam getting as an error.Is there an approach to store this documents along with documents that are less than 16MB in the same collection,so that my queries will be seamless.I have explored GridFS option provided by mongodb,but i have quer... | MongDB-JSON document size >16MB throws error when saving | CC BY-SA 4.0 | null | 2023-03-03T15:01:57.360 | 2023-03-03T16:37:41.740 | null | null | 21,326,777 | [
"java",
"spring",
"mongodb",
"spring-boot"
] |
75,628,679 | 2 | null | 75,628,367 | -2 | null | You should change the JSON object.
```
const activeDivs = {
date: { id: 0, text: "date", checked: true },
name: { id: 1, text: "name", checked: false },
day: { id: 2, text: "day", checked: false },
time: { id: 3, text: "time", checked: false },
created: { id: 4, text: "created", checked: f... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:12.003 | 2023-03-03T15:02:12.003 | null | null | 1,353,123 | null |
75,628,680 | 1 | null | null | 0 | 8 | I have `foo/defaults.yaml` file in my project. Then there is `foo.js` that uses data from this file.
I would like to make a JSDoc comment the following way:
```
/** Actually launches real Foo missiles. The default values are read from @link foo/defaults.yaml. */
async launchFooMissiles() {
await openHatch()
const... | WebStorm-compatible referencing a config file in JSDoc | CC BY-SA 4.0 | null | 2023-03-03T15:02:22.783 | 2023-03-03T15:09:39.680 | 2023-03-03T15:09:39.680 | 783,119 | 805,266 | [
"intellij-idea",
"ide",
"webstorm",
"jetbrains-ide",
"jsdoc"
] |
75,628,673 | 1 | null | null | 0 | 51 | I want to calculate expected outcome after resting a price, I tried using scaling matrix but it did not work. Appreciate any help.
```
double originalPrice = {5, 8, 18, 58, 80, 49.399167162403300}
double originalWeight = {0.34146341463414637, 0.3902439024390244, 0.14634146341463414, 0.024390243902439025, 0.02439024390... | How can I re distribute my weight such that expected outcome is the same | CC BY-SA 4.0 | null | 2023-03-03T15:01:46.280 | 2023-03-03T20:34:02.033 | 2023-03-03T15:11:28.237 | 20,508,410 | 20,508,410 | [
"java",
"algorithm"
] |
75,628,671 | 1 | null | null | 0 | 14 | I'm new to Mongodb and I'm trying to get what I thought would be quite a simple unique call on a field. What I want is a list of all the unique or distinct (one of each) marketIds:
```
sample doc -> added to local mongodb as a pojo (with a double array codec)
{
"_id": {
"$oid": "63fe576c931a3f5dc2aa355d"
... | MongoDb how to get a list of unique fields from a pojo doc | CC BY-SA 4.0 | null | 2023-03-03T15:01:25.597 | 2023-03-03T15:27:57.817 | 2023-03-03T15:08:54.837 | 9,003,250 | 9,003,250 | [
"java",
"mongodb",
"distinct"
] |
75,628,684 | 2 | null | 75,628,069 | 0 | null | You could reverse your input string, the regex and the replacement and then replace the first occurance:
```
#include <iostream>
#include <regex>
int main ()
{
std::string s ("There {x:y} is a {x:y},u bench");
std::string pattern = "x:y";
std::string replacement = "r:w";
std::string out = s;
std::regex_repl... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:37.560 | 2023-03-03T15:02:37.560 | null | null | 12,173,376 | null |
75,628,669 | 1 | null | null | 0 | 7 | Recently i'm facing an issue when try to run a task from Jenkins that simply run a .robot file.
I've been searching and trying different options from another colleagues that faced similar issues in StackOverFlow but i can't achive to run the script correctly.
Please let me show you what i'm doing, my scripts and Jenkin... | Issue trying to run robotframework script on Jenkins | CC BY-SA 4.0 | null | 2023-03-03T15:00:59.480 | 2023-03-03T15:00:59.480 | null | null | 9,740,254 | [
"selenium-webdriver",
"selenium-chromedriver",
"robotframework",
"robotframework-browser"
] |
75,628,681 | 2 | null | 75,628,564 | 1 | null | First set a `col` variable storing the target column names. The total number of records being `NA` or `12` should match the `length` of `col`.
```
col <- c("V1", "V2", "V3")
df[apply(df[, col], 1, \(x) sum((is.na(x) | x == 12), na.rm = T) != length(col)), ]
```
Or
```
df[rowSums(is.na(df[, col]) | df[, col] == 12, na... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:26.680 | 2023-03-04T02:21:02.900 | 2023-03-04T02:21:02.900 | 16,647,496 | 16,647,496 | null |
75,628,672 | 2 | null | 75,616,427 | 4 | null | TypeScript's type inference is effectively a set of heuristic rules that perform well over a wide range of situations, but do not claim to be perfect or ideal, and it will sometimes behave in ways that are apparently inconsistent or unsuitable for certain use cases.
There are some type systems that have a well-defined ... | null | CC BY-SA 4.0 | null | 2023-03-03T15:01:27.290 | 2023-03-03T15:01:27.290 | null | null | 2,887,218 | null |
75,628,675 | 1 | 75,628,830 | null | 1 | 27 | I am trying to render manually a set of components in `Blazor Web Assembly`, however I am having trouble with `Attributes` and `ChildContent`.
Here's how I render manually a component:
```
private RenderFragment CreateComponent(List<cMenuItem> menuItems) => builder =>
{
try
{
... | How to render manually a component in Blazor? | CC BY-SA 4.0 | null | 2023-03-03T15:01:53.247 | 2023-03-03T15:14:49.893 | null | null | 16,364,109 | [
"c#",
"components",
"blazor",
"blazor-webassembly",
"radzen"
] |
75,628,690 | 1 | null | null | 0 | 11 | The following code does not compile due to `parameter type T may not live long enough`
```
#[async_trait]
trait Foo<T>: Send + Sync {
async fn foo(&self, x: Vec<T>) -> Vec<T>;
}
#[async_trait]
trait Bar<T>: Send + Sync {
async fn bar(&self, x: T) -> T;
}
#[async_trait]
impl<T, U> Foo<T> for U
where
U: Bar... | rust async trait fn taking parameter of type Vec<T> has error T may not live long enough | CC BY-SA 4.0 | null | 2023-03-03T15:02:52.513 | 2023-03-03T15:02:52.513 | null | null | 7,340,493 | [
"rust"
] |
75,628,685 | 2 | null | 75,628,646 | 0 | null | > How can I ensure my package can be installed without network access (supposing that all dependencies are already resolved)?
By having built a [wheel](https://realpython.com/python-wheels/) out of it, and installing the wheel on the desert island machine.
If your package is PEP 517 compliant, use [build](https://pypi.... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:38.843 | 2023-03-03T15:28:13.113 | 2023-03-03T15:28:13.113 | 51,685 | 51,685 | null |
75,628,691 | 2 | null | 75,628,336 | 1 | null | It is not a good idea to match the input against the constants fields. You could use map to match such data. However, still if you want to do it, here is the class.
```
import java.lang.reflect.Field;
public class ConstantCheckerUtil {
public static boolean checkConstant(String input) {
boolean hasAnyMatch... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:54.500 | 2023-03-03T15:02:54.500 | null | null | 1,151,412 | null |
75,628,689 | 1 | null | null | 0 | 10 | I'm trying to plot a graph with plotly express which represent a count of clinical trial per sponsor, per conditions, per count and per date.
The following code is working
```
fig = px.bar(df, x="Sponsor/Collaborators", y="count_x", color='Conditions')
fig.update_layout(barmode='stack',xaxis={'categoryorder':'total des... | Remove duplicates from merge node pandas DataFrame | CC BY-SA 4.0 | null | 2023-03-03T15:02:49.650 | 2023-03-03T15:04:16.527 | 2023-03-03T15:04:16.527 | 3,001,761 | 21,096,206 | [
"python",
"plotly-python"
] |
75,628,687 | 2 | null | 75,597,714 | 0 | null | After a lot of digging i found the solution to my problem through this article:
[Define part of an Expression as a variable in c#](https://stackoverflow.com/questions/35012607/define-part-of-an-expression-as-a-variable-in-c-sharp/35015043#35015043)
I added a new helper function:
```
public static Expression<Func<CMSite... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:48.660 | 2023-03-03T15:02:48.660 | null | null | 3,495,322 | null |
75,628,692 | 1 | null | null | 1 | 14 | One of the distinguishing features of SAS is a full-duplex connection between the HBA and device. SATA provides only half-duplex connections.
I used to think that SAS drives could simultaneously ingest and retrieve data using both directions of a full-duplex connection.
However, [Wikipedia](https://en.wikipedia.org/wik... | SCSI commands that can benefit from a full duplex SAS connection | CC BY-SA 4.0 | null | 2023-03-03T15:02:57.377 | 2023-03-03T15:02:57.377 | null | null | 2,361,497 | [
"sas",
"hard-drive",
"duplex",
"scsi",
"sata"
] |
75,628,686 | 2 | null | 75,628,308 | 1 | null |
[Marc Gravell's answer](https://stackoverflow.com/a/75628827/1920035) is much more concise and keeps it so it can be deserialized easily too.
Here is a fiddle using the XmlAttribute decorator: [https://dotnetfiddle.net/6T0U4d](https://dotnetfiddle.net/6T0U4d)
> I can do this in a post-serialization method where I loa... | null | CC BY-SA 4.0 | null | 2023-03-03T15:02:43.427 | 2023-03-03T15:30:00.360 | 2023-03-03T15:30:00.360 | 1,920,035 | 1,920,035 | null |
75,628,693 | 1 | null | null | -2 | 20 | This is the question I got from an interviewer in an interview.
I have a class with a variable in it and every time when I am creating an object of the class the variable count should gets incremented.
Let's say if I have 3 objects of class I should get object.variable value should be 3.
This variable count should gets... | How to check object count inside the class ios swift | CC BY-SA 4.0 | null | 2023-03-03T15:02:57.963 | 2023-03-03T15:04:21.327 | 2023-03-03T15:04:21.327 | 4,667,835 | 4,319,511 | [
"swift"
] |
75,628,683 | 1 | null | null | 0 | 39 | There is a select with v-model. Initially, there is null. In option, I also specify null for the default value - everything works, the default value is substituted.
But as soon as I put this select into a separate component, for some reason it stops working with null, the default option is not substituted.
Link to docu... | How to set default option in select component with null-value in vuejs? | CC BY-SA 4.0 | null | 2023-03-03T15:02:36.347 | 2023-03-03T20:01:50.647 | 2023-03-03T20:01:50.647 | 21,326,657 | 21,326,657 | [
"vue.js",
"vue-component",
"vuejs3",
"html-select",
"v-model"
] |
75,628,688 | 1 | 75,629,123 | null | 2 | 42 | I receive this xml
```
<message xmlns="http://www.ns1.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<elem1 id="att1">
<elem2 i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
</elem1>
</message>
```
and I need to transform it to this using xslt (prefix changed on nil attribute)
... | How to suppress unnecessary xml namespace prefix declaration? | CC BY-SA 4.0 | null | 2023-03-03T15:02:49.450 | 2023-03-03T19:47:08.073 | null | null | 8,920,348 | [
"xml",
"xslt",
"msxml"
] |
75,628,696 | 1 | null | null | 0 | 29 | I'm designing a simple service and will ask for new users to create an account (code below). My Users table contains following columns: user_id_inc (Increments), username, userEmail, userPwd, Role, unique_id (Primary key). When asking for details I only ask for Username, email, and password. What I really want now to h... | Creating unique_id (PRIMARY KEY) after new user created | CC BY-SA 4.0 | null | 2023-03-03T15:03:21.260 | 2023-03-03T16:51:29.560 | 2023-03-03T16:51:29.560 | 1,839,439 | 21,311,111 | [
"php",
"sql"
] |
75,628,695 | 2 | null | 75,627,991 | 3 | null | As a bonus, here is a way of collecting exactly N values satisfying a test in a list. This is done as a higher-order function that accepts a `size` parameter, as well as two functions, `generate` and `test`:
```
(defun generate-list (size generate test)
(when (> size 0)
(loop for val = (funcall generate)
... | null | CC BY-SA 4.0 | null | 2023-03-03T15:03:10.637 | 2023-03-03T20:02:18.037 | 2023-03-03T20:02:18.037 | 69,545 | 124,319 | null |
75,628,697 | 2 | null | 75,628,064 | 1 | null | An excerpt from the docs:
> You should always return an [HttpResponseRedirect](https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponseRedirect) after successfully dealing with POST data. This tip isn’t specific to Django; it’s good web development practice in general.
So try the following v... | null | CC BY-SA 4.0 | null | 2023-03-03T15:03:23.200 | 2023-03-03T15:03:23.200 | null | null | 17,562,044 | null |
75,628,702 | 2 | null | 45,903,511 | 0 | null | For me it was that I ran 'npm install' in one of the projects and thought that was enough, but actually the solution/repo had 2 projects so I also needed to run 'npm install' in the other one too as they had separate package.json files. Reading the docs helped me to understand this;
> This command installs a package an... | null | CC BY-SA 4.0 | null | 2023-03-03T15:03:47.057 | 2023-03-03T15:08:53.543 | 2023-03-03T15:08:53.543 | 10,547,705 | 10,547,705 | null |
75,628,703 | 2 | null | 75,628,670 | 1 | null | "Given an integer x, return true if x is a palindrome, and false otherwise."
you are just returning a reversed string.
change that to:
`return rev == num`
| null | CC BY-SA 4.0 | null | 2023-03-03T15:03:48.853 | 2023-03-03T15:03:48.853 | null | null | 8,340,761 | null |
75,628,704 | 2 | null | 75,628,631 | 0 | null | You don't have to init array dimension in python, since it's more like a linked list. Just create your array like `my_array = []`. Then, you can append arrays in it : `my_array.append(another_array)` as many times as you want. Do it 3 times and you have your matrix.
| null | CC BY-SA 4.0 | null | 2023-03-03T15:03:57.500 | 2023-03-03T15:03:57.500 | null | null | 17,485,914 | null |
75,628,701 | 1 | null | null | -1 | 28 | I have a reactjs website , and I'm using router v6 since I have different pages in the website , I also have different sections I want to scroll to from different pages.
the problem is when I scroll to a section from a different page, it scrolls to the section above the section I want. but if I want to scroll to a sect... | ScrollIntoView scrolls into different section depending on the page it's triggered from | CC BY-SA 4.0 | null | 2023-03-03T15:03:45.950 | 2023-03-03T16:08:23.550 | 2023-03-03T15:07:16.437 | 14,901,544 | 14,901,544 | [
"javascript",
"reactjs",
"react-hooks",
"react-router"
] |
75,628,698 | 1 | null | null | 0 | 11 | I am trying to set up dynamic svg imports since my app uses many icons and I don't want to impact startup time to load all icons i.e. load them when used.
I have been following other SO questions and implemented something similar to this [answer](https://stackoverflow.com/a/61472427/7323010) in a React + Webpack proje... | Dynamic SVG import in Preact + Vite | CC BY-SA 4.0 | null | 2023-03-03T15:03:35.647 | 2023-03-03T15:03:35.647 | null | null | 7,323,010 | [
"svg",
"vite",
"preact"
] |