text string | meta dict |
|---|---|
Q: How to print dictionary with array value without any brackets or quotes? I have a dictionary that has character keys and list values.
my_dict = {
'A': [1, 1, 0, 0],
'B': [0, 0, 1, 1],
'C': [1, 1, 1, 0],
'D': [1, 0, 0, 0]
}
When I simply print it using print(my_dict), I get an output like this:
{'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to write rules engine for Azure Premium Verizon CDN, httpTohttps & SPA rewrite rules? I have added my react build files in a storage blob container and enabled static website for that.
After that I have enabled Azure CDN classic ( Microsoft CDN ).
Below are the rules I have given for that.
First Rule is to conve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.web.embedded.tomcat I get this error when running my project as a Spring Boot App on STS, I am not able to run my web applications but if I run my standalone applications I don't get any error an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Studio, how to disable all those weak warnings in the code? Recently I reinstalled Android Studio and now it shows many weak warnings on my Flutter-Dart project, for example for _variable (starting with underscore). I can't find any way to stop AS to show them. And scrollbar is full of lines about those weak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ClickListener on ViewPager2 with RecyclerView not responding to clicks I have a ViewPager2 with three pages, two of which hold RecyclerViews. This ViewPager2 is held within a Fragment. When I set a click listener on the view pager before adding RecyclerViews, it worked, but afterwards neither of the two pages will r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Discord.py slash command auto completion I'm making a discord bot using discord.py, and i was wondering, how could i add autocompletion for a slash command like on this image?autocompletion
Tried the followin from a youtube tutorial, didnt work for me.
async def drink_autocompletion(
interaction: discord.In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: for same ids from two data sets finding with specific time difference df1 (having unique ids)
id
date1
1
5/26/2022
2
9/15/2021
3
12/22/2021
5
1/19/2022
6
1/11/2022
df2 (having duplicate ids)
id
date2
3
5/10/2022
3
5/26/2022
4
11/28/2020
4
12/18/2021
5
1/19/2022
6
12/11/2021
6
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React delete someState[id] using callback? I's possible to update a parent state filters inside a children component?.
const ParentComponent = () => {
const [filters, setFilters] = useState()
return (<></>)
}
const ChildrenComponent = ({ filters, setFilters }) => {
const handleDelete = (id) => {
const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a composite string from an object that contains an array in Javascript? I am a javascript n00b, and am doing some exercises to practice.
I am stuck at one of the exercises right now:
Use the given object to print the following string: 'Frodo and Sam got to Mount Doom'.
var fellowship = {
destinati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keystone authenticatedItem query always returns null After upgrading the Keystone core from version 1 to version 4.0.1 the authenticatedItem query always returns null, even though I am logged in.
Logging in either through my Next frontend or through the admin UI's login screen is successful and this can be verified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to flatten/split a tuple of arrays and calculate column means in Polars dataframe? I have a dataframe as follows:
df = pl.DataFrame(
{"a": [([1, 2, 3], [2, 3, 4], [6, 7, 8]), ([1, 2, 3], [3, 4, 5], [5, 7, 9])]}
)
Basically, each cell of a is a tuple of three arrays of the same length. I want to fully split ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why? Expected BEGIN_OBJECT but was STRING at line 1 column 1
*
*Client send message:
sendMsg("system", "login", new Object[] { Constants.SERVER_ID });
sendMsg method:
public void sendMsg(String uid, String cmd, Object[] objs) {
NettyRequest request = new NettyRequest();
request.setUid(uid);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: seqMD: size of substitution cost matrix I'm conducting a multichannel sequence analysis with 3 channels, for which I have defined three separate substitution cost matrices as the basis for Optimal Matching.
I get the following error message, when using seqMD:
> MDcost <- seqMD(channels, method = OM, sm=smatrix, wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to implement a counter in MySQL that responds to changes in another column? There is a table "Table1" which contains a variety of information on the Bank's Customers (including their service channel) by time intervals (Start_DT β End_DT).
From this table, you need to select all the data and another calculation c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Joining same table on two array fields yields unexpected results I'm trying to query for a conversation record, of which a certain participant is a member of, but my query returns odd results.
Suppose the following:
create schema my_schema;
create table support_conversation (
id serial primary key,
participant_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Source Generator to create simpler method overload I got a class that currently needs to be registered like this (to work reflection-free)
ViewLocator = new StrongViewLocator()
.Register<MainWindowViewModel>(new ViewDefinition(typeof(MainWindow), () => new MainWindow()))
.Register<AddTextDialogViewMode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Winsock based SMTP Client: stuck on recv() after client data is sent I'm trying to make a simple SMTP client to learn how SMTP actually works, but I'm having some issues that I think have to do with how my code interacts with winsock. All the code that I have done was made thanks to Microsoft's guide on how to Creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rounding leading decimal points to 2 not saving when using toFixed I am trying to convert a value like 20.0123 to 20.01 by using toFixed(2). For some reason it does convert correctly but going along my code it goes back to not a fixed value.
function checkCashRegister(price, cash, cid) {
let change=(cash-price).to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access protected members of base class when using template parameter I have a derived class that forwards a template parameter to a base class:
template <class _Unused>
class Base {
protected:
static constexpr bool IsBase = true;
};
template <class _Unused>
class Derived : public Base<_Unused> {};
I'd like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic Pivot multiple columns in SQL I have a query where I am pulling this data in separately to pivot. I have 3 different pivot queries to join them together at the end of my script. (One for the date, bool, and code responses)
After I pull in the date data (before I pivot it looks like this: The date, column ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error appears when try to calculate TP AND FP by using Confusion matrix I build ML MODLE to find the accuracy of detection,
I faced below issue when try to find the TP rate and FP rate of each algorithm :
nnnnnnnnnnnnnnn
models = [RandomForestClassifier,DecisionTreeClassifier,KNeighborsClassifier,SGDClassifier,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Swiper.JS slidesPerView not working - sometimes shows more, sometimes to few I tried using both the webcomponent as well as let's say plain old JS approach and in every case slidesPerView does not work right:
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="item in items" v-bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to connect the dots with arrows from left to right? How can I connect the dots with arrows (from left to right) in the following plot without hardcoding the arrows?
library(ggplot2)
points = data.frame(x = c(0, 25, 50),
y = 50)
ggplot(points, aes(x, y)) +
geom_point()
I could hard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Function of Functions - pass variable between scopes - powershell I am looking to create a some functions that create a result in a variable within the scope of a function and then pass that variable from one function to another function. as a simplified example, say I wanted the test1 function to combine two strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding corresponding rows from two tables based on equals or summed up values Having the table structure
Table1
(Id int,
AName varchar(100),
AValue DECIMAL(18,2),
BName varchar(100),
BValue DECIMAL(18,2),
Type VARCHAR(1)
)
where Type is always 'A' or 'B'. I would like to find the corresponding AName and BName kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pygame transparent background linux Is it possible to get a transparent background in pygame when running on a Linux OS? I have a pygame application that generates a transparent background on Windows, but when I run it on Linux the background is not transparent.
To get the transparent background on Windows I am usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic item type cast in dart/flutter How to reuse class with dynamic Cast/Model/typedef?(I'm not really sure what should it name)
ArticleModel.dart
import 'dart:convert';
class ArticleModel {
final int id;
final String subject;
ArticleModel(
this.id,
this.subject,
);
factory ArticleModel.fromJ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uploaded video from TikTok using the PyTikTokAPI module weighs less than a megabyte and does not open I seem to have recorded the api correctly, but if I try to download a video from TikTok without a watermark (using the api.downloadVideoByIdNoWatermark()), then it weighs less than a megabyte and is not readable, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React web component not loading in angular application - Cannot use 'in' operator to search for 'adoptedCallback' in undefined I have simple web component in react
import React from "react";
import ReactDOM from "react-dom/client";
import reactToWebComponent from 'react-to-webcomponent';
function Test() {
return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75595999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert between Terraform Framework Plugin complex types and Golang types? In the official Terraform Framework plugin examples, there are currently only very simple examples of CRUD'ing resources involving simple types.
If we use a complex type like a map, the code becomes extremely verbose. This is what I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I need to create a VBA script that loops through all the stocks for one year and outputs certain info. More details below I need to create a script that loops through several excel sheets with stock market data and outputs the following into a new table:
*
*The ticker symbol
*Yearly change from the opening price ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I run Java? I'm following the w3schools tutorial on Java and it says to make a Java file (called "Main.java") containing:
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Then it says to enter "javac Main.java" into command prompt, but it's not worki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I solve a "Working outside of request context" and Expected request method to be 'POST', found 'GET' instead in Plotly/Dash get_user_data()? I am working on setting up a Plotly/Dash demo, but I've run into difficulty with using the sf_auth.get_user_data() function. Specifically it returns two different errors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure app service need to be run at specific interval of time I have hosted an webapplication and webapi in azure app service plan D1
Query 1 : Is it possible to apply the Private Certificate to the Shared Service plan
Query 2 : How to run my azure app service on specific interval of time . I dont want my website to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Next.js, how to have nav bar opened at home page and closed at all others Is there any chance to have a nav menu opened at home page and closed at all of the other pages of my website, all is made with Next js 13.
Do you guys have an idea how to do it?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75596007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: H2: Slow query execution when using IN (..) operator, even though UNION with individual = conditions works fine I am struggling with slow query execution for a WHERE-clause such as field IN ('value1', 'value2' ), whereas equivalent queries (using UNION or CTE, see below) are performed as expected. Self-contained SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fastest way to match two tables by count of matches I want to match two tables to determine a campaign code when it is unknown. In order to match these tables there is a formula that states how many "service codes" match and how many "discount codes" match.
I have this running in 1 minute for 100 records - I need it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bending render line How can I make the Linerenderer not bend like this?
I want the line elements to look straight up.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75596010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: User.Identity.Name shows up null in IIS No matter what changes I make my User.Identity.Name returns null. I am using .net 7 and IIS 7.
Here is my webconfig file. Windows Authentication is Enabled, and Anonymous Authentication is disabled.
<configuration>
<location path = "." inheritInChildApplications="false">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Google Cloud Armor for Firebase Hosting I'm getting unwanted traffic in a website hosted in Firebase Hosting.
I know this because my Google Analytics instance shows countries that should not be there (we don't ship international orders). Plus, the sessions are super short (1-5 seconds).
So, I would like to:
*
*Set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to easily add start page to existing c# wpf app? I have a WPF that has a MainWindow that is opened at startup. MainWindow has a Menu and Dockpanel that has a bunch of things:
<Window x:Class="test.Testing"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Allow edits from maintainers does not work when the PR is created by a group Met this problem when trying to create a PR from a repo that was forked by a group.
The following screenshot is from the GitHub doc. This shows that through the checkbox at the bottom-left corner, one could allow edit access for maintainers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Behavior of an imported module across multiple files I am familiar with the fact that all import statements in python are executed only once. If reloading is needed, it can be done manually. This has been summarised in this SO answer. However, I am unable to understand the behavior of the following import statements... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Network objects behaving differently when using a remote server compared to localhost I'm dynamically loading avatars from Ready Player Me into unity when spawning a player object (netocde for gameobjects), and using nuitrack to then control the avatar. In order to move the avatar, in the player prefab I have some t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Raspberry Pi 4: How to install erlang? There was a similar question almost a decade ago and I don't think the solution applies to me.
I am trying to install a new software, and it needs erlang software as a support package.
Step1: I downloaded the package as given below:
step2: installing it on the Raspberry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a list containing a string from another list [Edited] I am trying to create a list from another list, such as:
List<String> namesOfLotion = List.of("Alexander Almond & Honey Moisturiser", "Max honey and almond moisturiser", "Mikhail Almond and Talc", "Mikhail Natural Almond Moisturizer", "Tigran Aloe Isolan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a basic if statement to compare 3 variables and return the largest? I need a basic if statement that looks at 3 variables and returns the largest.
a=10
b=20
c=30
if a>=b and a>=c:
return a
elif b>=a and b>=c:
return b
elif c>=a and c>=b:
return c
*
*Is this correct way to write this simple log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: timezone management in polars groupby_dynamic I am exploring polars and encountered an unexpected behavior (at least to me) as shown below.
In [1]: import polars
In [2]: polars.__version__
Out[2]: '0.16.9'
In [3]: df = (
...: polars.DataFrame(
...: data={
...: "timestamp": ["1970-0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RSelenium vs. TikTok I want to scrape the information from the table here, which only shows 3 entries by default.
The following expands the table using the JS browser console:
document.querySelector(".view-more-btn--VGYaj").click();
But the equivalent does not work in RSelenium:
remDr <- RSelenium::remoteDriver(por... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flutterfire Configure - Unhandled exception and no firebase initialization I am trying to configure firebase on MacOS with the new method shown on official docs as below:
firebase login
dart pub global activate flutterfire_cli
flutter fire configure
It generates the below error. I searched for this and didn't find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I am getting following error while installing pyswmm. "error: package directory 'bin' does not exist" I am getting following error while installing pyswmm. "error: package directory 'bin' does not exist"
`enter image description here
I tried to install pyswmm but getting error message.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75596032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: FirebaseError: Function updateDoc() called with invalid data. Unsupported field value: a custom UserImpl object (found in field user in document ) I get an error when I want to update the array "leden" in the document "vergadering".
I get the id of the item (lid) that I want to add to the array of "leden".
the param... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate a bar chart using chartjs I've the following data which am trying to use to generate a bar chart using Chart.js.
const sampleData = {
"data1":[
{
"ng_fy":"2019/20",
"js":"[{\"cat_item\": \"Refurbrish NAGRIC & DB Semen Lab\", \"ng_value\": \"10\"}, {\"cat_item\": \"Semen Bulls Purc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Malware scanning in JFrog Artifcatory We plan to use generic package type for JFrog Artifcatory repository.
We are using Enterprise + which includes XRay as well.
Does Artifactory scans the files/artifacts uploaded for malware as well ?
AFAIK XRay works on certain package types and just checks if there is any vulner... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Data flow analysis (Semgrep, CodeQL, JetBrains etc.) Is it possible to calculate all possible values of a variable in a certain line of code ?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75596040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a way to implement Rust traits based on properties? Assuming I have two structs:
pub struct Vector3D {
pub x: f64,
pub y: f64,
pub z: f64,
}
pub struct Point3D {
pub x: f64,
pub y: f64,
pub z: f64,
}
I want to the Add trait like so:
impl Add for Vector3D {
type Output = Vector3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert autosys Jil to CSV using shell script I have an autosys api url which has Jil script available . I need a shell script which can fetch the data from web url and use it as a text to convert it to CSV file. For few jobs, there are repeated parameters used
For eg: envvars with seperate values mentioned twice in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Install Laravel 10 via composer when your default PHP version is not 8.1 Many of us have the problems installing Laravel 10 via composer without using sudo update-alternatives --config php.
Default command from Laravel website does not work if you default php version is lower the php8.1 and you want to keep your old... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is there a way to display elements from an ngFor only once when displaying a 2D string array? I have a 2D nested string array that I am trying to display the contents of each inner array as a table. I want the first table to display the first array index values and the second table to display the second index values... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spacy similarity score for sweet M&M fails python 3 spacy seems to have a problem with sweets such as M&Ms.
import spacy
nlp = spacy.load("en_core_web_lg" )
query = nlp( "M&M" )
query2 = nlp("M&M chocolate pouch")
print( "Score of M&M versus the full name in shop:", query2.similarity(query) )
The resultant score ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nextjs net::ERR_ABORTED 404 on production server with nginx My app is building and deploying correctly locally, no errors at all whatsoever. However, when deployed on the server, I get a bunch of net::ERR_ABORTED 404 for every static file attempted to be accessed at /_next/static/. The pages html and content is stil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does declaring integers under multiple names work in Cpp? I am new to learning C++, and encountered this as a solution when doing practice problems.
int n, Petya, Vasya, Tonya, number(0);
cin >> n;
while (n--)
{
cin >> Petya >> Vasya >> Tonya;
if (Petya + Vasya + Tonya >= 2)
{
number += 1;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Preventing Windows shutdown in Rust I'm trying to require a user to confirm a Windows shutdown while my program is performing critical tasks.
In order to do this, I want to listen for a WM_QUERYENDSESSION message (in a seperate thread from the main program).
If this message is received, I'm calling ShutdownBlockReas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mocking method reference as any I am trying to mock this line:
ResponseEntity<String> response= gatewayOutWrapper.wrap_2P_OneWay(GatewayOut::getConnectionType, wit, serialNumber, metaData);
with when(gatewayOutWrapper.wrap_2P_OneWay(GatewayOut::getConnectionType, any(), any(), any())).thenReturn(ResponseEntity.ok()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is jquery file not loading with
A: You have your files in a folder:
/someFolder
- index.html
- jquery.js
If you just load the HTML file in a browser, referencing the JS file in the same folder, then you're trying to load a "local resource".
You can tell by looking in the browser's location (URL) bar:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is there a way to dynamically assign a datatype to a property if I can't control the input data type? Currently I have an app that receive it's settings from a manually modified json file and outputs an image.
I'm trying to make an app in wpf to make things more visual. The problem is that in a field, I can input ei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to point to other GMail accounts/folders in Google Apps Script var thread = GmailApp.getInboxThreads(0,10)
will fetch ten threads from my main work email inbox. But I also have access to several mailbox accounts for my department in my company.
I would like to write a google apps script that will cycle through ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Iframe origin error in Safari due to CSS rule I have replicated an error as shown below in Safari:
Blocked a frame with origin "thepagedomain" from accessing a frame with origin "theiframesourcedomain". Protocols, domains, and ports must match.
With the following very simple page:
<html><head>
<style>
#iframe{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extract maximum of a json array in excel VBA without iterating I have JSON data string from which I try to extract the highest value of "id" without iterating.
This is the JSON data string:
"ball_coordinates": [
{
"id": 3938706,
"fixture_id": 18795544,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExecutionContext of ItemStreamSupport I have implemented a custom item writer and using the ExecutionContext to save some data . My doubt is whether that ExecutionContext is a step execution context or job execution context ?
I have read the documentation but it is not clear .
https://docs.spring.io/spring-batch/doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to float all the list items of navbar to right? I want to put all the elements to right. How can I do it?Like this
Here is my navbar
I want all the items in ul to be at left of navbar as like in the figure.
I am expecting the list items to right or left how can I do it.
the float is not working for some reason a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cartesian product not working with String list I'm trying to get from:
list = ['a', 'b', 'c', 'd']
to:
combinations = [['a','b'], ['a','c'], ['a','d'],
['b','c'], ['b','d'],
['c','d']]
(formatting just for readability in stackoverflow)
So, the cartesian product, all combinations, dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: spring cloud gateway filter to replace some string in response body I have some gateway filters written
@Bean
public RouteLocator routes(
RouteLocatorBuilder builder,
LoggingGatewayFilterFactory loggingFactory) {
return builder.routes()
.route("service_route_java_config", r -> r.path("/service/**")
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Concatenate only the non empty columns Is there a good way on SQL Server to concatenate only the columns which are not empty? I tried with CASE WHEN but it was a complete mess, I don't want to concatenate the whole line with the name+field+', ' whenever the field is either empty or NULL.
Example:
'Sub-tΓtulo: ', p.[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Core 6 Web API using Windows authentication I am looking for some help implementing Windows authentication / authorization in .NET Core 6. I can't find any good videos on the topic and plan to make one once I finish this project.
I found the following document https://learn.microsoft.com/en-us/aspnet/core/se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Forms: Issues in scaling child controls inside Group Box I am having trouble in scaling child controls of a Group Box in a Windows Forms application. Resolution on my laptop is 1366x768, which implies a 1.78 ratio. While resolution on my client's PC is 2560x1600 (1.6 ratio). My initial form is like in Pictur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange empty space on bottom of screen on page load I've been trying to align the footer of my website to the bottom of my page at all times, which has been successful. But, I recently noticed that my solution might not be as perfect as I thought on the mobile side of things. When my page loads, there is what I'll ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding a list of phone numbers in CQL IN() clause returns "CodecNotFoundException [TEXT <-> java.util.List]" I'm using the lastet datastax cassandra driver in my application:
<dependency>
<groupId>com.datastax.oss</groupId>
<artifactId>java-driver-bom</artifactId>
<version>4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change range in chord diagram in R I have a correlation matrix in R as follows:
dat <- as.matrix(cbind(c(1.0000000, 0.5161944, 0.5190630, 0.3717464, 0.5719125),
c(0.5161944, 1.0000000, 0.2549985, 0.8469740, 0.7761113),
c(0.5190630, 0.2549985, 1.0000000, 0.2130771, 0.2930945),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Velo: Dynamic table not refreshing So this is very hard to explain so please bear with me and ask me if anything is unclear. I am trying to create a dynamic table, so every input is saved in a database and then, on another site, is displayed. I am using that website builder wix. I have created a custom element that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YARP - Routing based on regular expression Is it possible to use regular expressions in Match-Path-rules to match general broader url-patterns and to be able to match very specific patterns. I dont want to use {**catch-all} but for example an ordinary RegExp like /api/\w{1,3}-\d{1,9} ...
Is this possible to achieve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't apply textRotation in Google Sheets API? I am creating a script in python which will generate me a spreadsheet which I need.
The problem is, when I add rotation and formatting in this order
# Set labels angle in top row of each Unit table
'repeatCell': {
'cell': {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: keyword "public" not indented correctly using vscode in c/c++ i'm using the default visual studio formatter for c/c++, yet it seems to be formatting the word "public" different, its adding 2 white spaces (refer to image) which as far as i know isn't what the visual studio formatter does by default, there should be n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Object of type User is not JSON serialiable I'm trying to create a sign up method for users. This is what the user model looks like:
class User(AbstractBaseUser):
name = models.CharField(max_length=128, blank=False)
created_at = models.DateTimeField(auto_now_add=True)
is_admin = models.BooleanField(blank=True,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to rotate a camera look where I'm moving in unity? I'm making a drifting game and I want to make a first person camera that follows the direction the car is moving, not the front of the car. In the picture I want the camera to look in the direction of the red vector(which is the direction I'm moving towards), no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add a new line after a specific word on text file using shell script Add the below line after the word "server {" in nginx.conf file.
location /nginx-status {
stub_status on;
allow all;
}
Using the script below adds a new line next to the word "server {" wherever that word occurs.
echo Nginx conf_file_directory
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: createLeafletMap prevents renderUI from execution I am running a sample map and want to add some slider bars and choices as inputs using uiOutput. I have written a simple code but realized that when I use leaflet::createLeafletMap to create a map and stop user waiting before being able to use the map, renderUI funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Erratic Windows Behavior I experienced a power outage a few nights ago. I have two systems; one for my banking, etc., the other is a "crash and burn" system on which I practice with Power BI, SQL Server, ERWin, and other products; and most recently a mainframe course that I'm taking at Marist College.
Both systems ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: R - Decrypt with Private Key To communicate securely some information, I have:
*
*generated a public and private keys with the following command:
openssl req -x509 -nodes -newkey rsa:2048 -keyout <institution-retained>-private-key.pem -out <institution-provided>-public-key.pem
*shared the public-key.pem to a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: BeautifulSoup misses specific zippy elements I'm using BeautifulSoup to parse Google support pages, and the parsed soup does not include the zippy elements.
Example: on this page we have the following zippy elements:
<div class="zippy-container"><a class="zippy index1 goog-zippy-expanded" data-sc-zippy-id="play-st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python replacing items I would like to replace ID's which for now contain numbers and letters with unique ID which contains only numbers.
Id's now:
"Id": "a4555752s"
"SummaryId": "a4555752s"
"Id": "a4asa85"
"Id": "a4ddd244"
Second thing is that ID can be repeated in case if there are other items whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Take maximum from an array but how to take the corresponding place another array (in R) So I have an array with precipitation data which I take the maximum of in the last dimension (hours).
I have also another array with temperature with the same dimensions as the precipitation array, however I want to renew the tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plotting and calculating the maximum value of a range of data in python I have a text file containing the data like this,
0 0 6
1 1 5
2 4 4
4 16 2
6 25 3
9 16 1
10 45 4
15 18 3
1st column (say x) is the independent variable and 2nd (y1) and 3rd (y2) columns are dependent variables.
Q1: How can I plot a gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CircleCI self hosted containers losing contact after 30 minutes We have some long running tests that moved into self hosted containers a while back to save on credits. Recently, however, these tests have started dying (Infrastructure Failure) at the 30 minute mark.
Has anyone seen this and does anyone have an idea ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trailing comma in Ruby parameter signature I am curious about having a trailing comma in a block in Ruby.
For example:
[[1, 2], [3, 4]].collect { |x, | x }
# returns [1, 3]
It's as if there is an optional argument after the first argument.
However:
(proc { |x, | x }).arity
# returns 1
If arity is 1 then the array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Shopware 6 JEST test with vue test-utils: infinite update loop in a component render function Vue 2.6.14
Vuex 3.1.1
Vue test-utils 1.3.0
Jest 29.3
The code works well in dev environment but on the JEST component test with vue test-utils the code running into an infinite update loop in a component render function.
my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing Unit Test for XSRF Token in Service Within my service class, I've written a getHttpOptions method for http headers, but I'm having some difficulty testing a branch for an if statement that sets the headers if XSRF TOKEN is not null. here's the the service :
export class ProductService {
constructor(
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net core app publishs fine from gui but not cli i am trying to publish my asp.net core app from the cli in vscode. The deployment works fine when i run it from within visual studio. but i get an ERROR_USER_UNAUTHORIZED when i run it in the cli. I tried to saving the password in the options in visual studio bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VSCode custom button like pytest play button Is there a way to create a custom VScode button on a specific line number (specifically on function names) like what vscode does for pytest?
I want to create a custom "play" button like this and then have it run a specific script that I have. How could I do this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75596154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tree structure in Js infinite loop issue i have code to make a tree structure in Js if i use add_child to add a child to a item in the elements array it adds to the children of all the items in the elements array and there children and there children and there children and so on it makes a infinite loop
idk why it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75596155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |