text string | meta dict |
|---|---|
Q: Cloudfront wordpress apache too many redirect I am setting out wordpress with apache and cloudfront.
My portal is hosted at xxx.cloudfront.net/blog
When I serve with cloudfront address at xxx.cloudfront.net/blog, it fails with error too many redirect.
When i serve with my server ip at myserviceip/blog, it works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Webview Custom user agent is getting reset when a new tab is opened in the website I am using the following code to set custom user agent for webview:
protected void onCreate(Bundle savedInstanceState) {
mWebView = (WebView) findViewById(R.id.activity_main_webview);
String code = "customuseragent";... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can anyone help how i stop the redirection for activation of this theme? i have prepared this theme from a themes coding? I have prepared a theme from a premium theme coding but it is redirecting to that site what should i do.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html class='ltr' dir='ltr' lang='... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Multiple dimensions on indexof array Anyone can help, how can I declare this type of array in c++??
{2, {3, 4}, {5, {6, 76, 5, {3, 4, 6}}}}
Is c++ support this type of declaration?? if yes then how can we declare it.
A: It weren't C++ if you couldn't do it.
Before you go down this hell, maybe you think about why yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: In python, with tkinter, how do I create shortcut keys for my widgets? I'm trying to use tkinter to make an options dialog for my Python program, and I want to add some of the refinements that most GUI programs have. Specifically, I want my options to have what tk calls "accelerator keys" - but tk's method of defin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Make QListWidget not selectable (PyQt5) I'm making a sidebar using a custom QListWidget, and I want to make it not selectable. I'm not asking about making the items not selectable, I'm talking about the QListWidget itself. On the theme WhiteSur on KDE, I can't select the QListWidget itself, only the items, which is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apply two matrices after one another in Manim I am on Manim Community v0.17.2 and i am trying to animate linear Transformation A then wait a bit, and then animate linear Transformation B (I am not trying to animate the overall transformation A*B).
class LT(LinearTransformationScene):
def __init__(self):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Searching for Common Values within 2 Columns in noSQL I have the following sample database.
Col1
Col2
1
2
2
3
2
4
3
1
4
1
5
1
7
2
7
4
Both Col1 & Col2 are IDs that know each other, I would like pass a code using python where for instance ID1 and ID2 know ID3 (triangle relationship) and to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Adding text to a gif outputs a very low quality gif I'm trying to make a discord bot that will add text to a gif.
When it creates the finished gif it is very low quality with missing pixels (see below).
I'm using the text-on-gif module but other similar module produce the same issue.
const {Client, Events, GatewayIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: References needed for Groovy DSL Gradle vs Kotlin DSL Gradle Are there resources that someone can point me to to highlight the advantages of Groovy-based Gradle than Kotlin-based ones (or vice versa)?
The search engines (Google, DuckDuckGo etc) list many articles about language comparisons but not a single one contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An error is shown when defining a javascript file I was able to write javascript codes on vscode, but recently when I create a javascript file on vscode, the js icon does not appear next to the file, and I cannot write the codes inside it because it does not read the codes:
I cleared Extension JavaScript (ES6) code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Text not showing outside of Row scope in jetpack compose What's Happening?
So I have this column which has two mutable objects of type LocalTime. I am updated both in the TwoLineButton() method. Then I have this method ShowTimeRangeText() which displays a Text if both LocalTime objects are anything other than null. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: /usr/bin/env: ‘php’: No such file or directory I already installed composer and it is can be accessed with cmd
enter image description here
but when i running it with git bash will shown error like this
enter image description here
i already checked system path, php is there. Is there any solution? I need using git ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: error : mediaRecorder is not a constructor I'm trying to use mediaRecorder in my project. I'm definitely doing something wrong when defining mediaRecorder because I keep getting the error: mediaRecorder is not a constructor. Not sure how or where should I declare and define mediaRecorder. Can you help me with this, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to retrieve the latest object added (new one) in Django models and display it in the template? l got a problem. Am trying to retrieve a single latest object added everytime, and display it in the template.
Below is my codes but;
Help me figure it out the source of the problem in these different instances below
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: read an ics file using iCal.Net and PowerShell I am trying to read an .ics file using powershell and the iCal.Net package.
# Install-Package NodaTime -Force -MaximumVersion 3.0.0
# Install-Package iCal.Net -Force
# load assemblies
Write-Host loading assemblies -ForegroundColor Green
Add-Type -LiteralPath 'C:\Progra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS RDS MySQL: very high wait/synch/sxlock/innodb/btr_search What means very high wait/synch/sxlock/innodb/btr_search in AWS RDS Performance Insights? It exceeds the max CPU several times. How to deal with this? How to analyze it deeper?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: I am having errors with using for loops and arrays I am having a problem regarding arrays. I am using a for loop inside a for loop to display an array, and its giving me the error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7 at Days.Days(DaysOfWeek.java:24) at Days.Disp_Days(DaysOfWeek.jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Fabricjs: Styling IText characters with fill color increasing the width/space to the characters I'm using fabricjs v5.3.0. My objective is to find the words in the IText to be highlighted and fill them with predefined colors. I find the code working properly with English text but the issue happens while using the Hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: when click on an action button. the Swal is appearing at the top of the page instead of in the center when click on an action button. the Swal is appearing at the top of the page instead of in the center.
do you have any idea.
it's in jquery,
.modal-dialog {
display: flex;
flex-direction: column;
justify-conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add multiple c# file in single console project Hey I am new to c# programming I had created a new console app in C# using vs code terminal and it gives a some files and one program.cs file where my program can write. What should I do to create another .cs file and run it the same project
A: In Visual Studio:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: i have a problem with my c# weighting scale program i have made a c# windows forms app that receives weight from a weighting scale through rs-232 serial
communication. so basically when i press button1 i should get the weight into label1.
except when i press the button1 for the second time an exception error occurs.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++ make_optional for private constructor which takes unique_ptr as parameter I followed this article to implement a class which has a private constructor and a static "make instance" function. The function returns a std::optional object depending on some condition, and will call the constructor only if the conditio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jenkins backup when restored getting an error I am trying to backup my Jenkins which is running on a docker container. I had referred a stack overflow
Reference used
So as said suggested by the first answer I took a backup using backup plugin then I used docker cp command to copy to the host.
docker cp 2620d31f3b67:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can anyone let me know whrer i did mistake? Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's fancy often leads him astray—he tilts at windmills, imagining them to be ...' at line 2 in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: PrimeVue ConfirmDialog not showing I am using PrimeVue ConfirmDialog component as follows:
<template>
<div class="py-2">
<ConfirmDialog>HR</ConfirmDialog>
<Button icon="pi pi-check" @click="delete ()" label="Confirm"></Button>
</div>
</template>
<script>
import PrimaryBu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CAP theorem Vs. BASE model Vs. ACID model Vs.High Availability In our data engineering world there is a mass use of the same terminology for potentially different purposes, I'm trying to distinguish between the terms and their objectives.
Part one:
High Availability vs. Availability in CAP theorem vs. Basically Avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I cannot update all id to database. It update the last id into database for rails using simple_form_for I want to update transaction from Report page by calling transaction_id in report_controller. Example, this report page show two transaction info. If I click submit button at once, update all transaction record. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: msteams: custom app with read messages permission There are 3 types of MSTeams app: tabs, bot or message extensions
I want to create an application that can read chat like https://www.m.io/ does, so which type is recommended and what permission to add to the manifest file in order to allow the app to read the messag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FIlter() is not functioning when it's variable updates. how to fix it? i am creating a chat application, where message variable is coming from another component. i want to filter the messages according to their room id
so i used useEffect to update the roomMessage variable everytime message updates. the message vari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculating points along a line between two points using geopy I am using geopy to map the location of a simulated object as it travels between two geographical points. I would like to be able to calculate the lat/lon of this object at any point in its theoretical journey: so for an object travelling between Paris a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling a Gradle Task conditionally Assume I have 2 tasks:
tasks.register('taskA') {
// do something
}
tasks.register('taskB') {
// do something else
}
for my gradle build, I only want to call task "build" and depending on a
condition, it should decide which other task to call:
tasks.register('build') {
do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is shadow built-in name 'sum'? I am learning at https://github.com/donhuvy/Data-Structures-and-Algorithms-The-Complete-Masterclass/blob/main/1.%20Big%20O%20Notation/2%20-%20bigo-whileloop.py#L11 .
My environment: Python 3.9, PyCharm 2022
import time
t1 = time.time()
num = 100
if num < 0:
print("Enter a po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (fullcalendar) Calendar re-renders to the initial setttings, when the data gets fetched the first time in react, I have used react-fullcalendar, but when I fetch data from api for the first time when the the calendar mounts, it gets re-render on the initial setting with the event array that are coming from api. (e.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create an array of callables based on a std::variant How can I create an array of functions that based off a std::variant which composed of a few message types, where they are to be decoded from io bytes, so that I can quickly access the right functions based on a mid field from the bytes.
struct S1 { constex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GA4 Relative Outbound Link Tracking with a redirect I want to track outbound links with GA4. My link structure is like . I want to capture how many people clicked /cgi-bin/abdl.cgi?abc.com
and date.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django managed=False option will not create migrations but will it run manual migration on the table? I wanted to understand the working of managed = False option in Django models.
If managed is set to False then the migrations for the table are not created by issuing the makemigrations command.
However, I wanted to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement async await in Cypress test? I have a spec file with some duplicated tests and I need to create a loop to avoid this duplication. But JS asynchrony nature makes it impossible. I guess I need to use async await or promises instead of existing solution. How can I implement it?
Here is a code snippet f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Insert to specific sheet name based on referral name I created a writeTosheet() PHP function which writes the form data to the corresponding google sheet name. The function takes in the referral name as a parameter and writes the data to the sheet corresponding to the referral name.
// Write to conditional tabs base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Express-session doesn't delete session in mySQL I am using vite React JS as Front end, Express as Back end, mySQL as database. My server runs on localhost:3000 and my React App is on localhost:5173. I do not use pagination on my React App.
Here is my entry data:
const app=express();
const corsOptions ={
origin:'h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make a range/ sub array based on a condition, in order to compute returns before a threshold / stop loss? (in numpy or pandas) In Excel this would be an offset function. Consider in pandas, but it could also be done in numpy:
returns = df['close'].rolling(periods).shift(-periods).max() / df['close'] -1
..w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I appended CSV data, now I want to loop through it in the main project file with same format I'm trying to scrape multiple websites for news articles. I have it set up as a project and don't know how to call it into the main to keep the correct format to get all the categories for all websites. I can get the right f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cant kill terminal in VSCode Every time i run my python code in VSCode, a terminal runs so i can test input() in my code. but every time i try to shutdown the terminal, it wont. sometimes the terminals even build up to multiple terminals until i have 8 or 9 running at the same time, eventually bugging out my code. s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: .Net 6.0 MAUI. On simple code UI getting freeze for a second not getting why I am new to .net 6.0 MAUI using Visual Studio Community 2022 (64-bit) - Current Version 17.5.0.
I just wrote simple code to show the Mathematical table of entered number on button click using MVVM. I am displaying the table using Collection... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is it sometimes recommended to explicitly install npm dependencies? Some libraries in their documentation suggest to install their dependencies explicitly. I've seen this pattern dozens of times, but I'm not sure what difference does it make. Let's take eslint-plugin-react as an example:
npm install eslint eslin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extracting Episodes Hey I want to extract content from this site using python, but I need content of 1 div and the div is showing but the content inside div is not showing
from bs4 import BeautifulSoup
import requests
req = requests.get("https://gogohd.net/download?id=MTA2MjQ=&token=fU0FFpfwZ8OMWSbHJ11VQg&expires=1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I try to add (google_sign_in: ^5.3.1) and get Exception: Gradle task assembleDebug failed with exit code 1 FAILURE: Build failed with an exception.
*
*What went wrong:
Execution failed for task ':google_sign_in_android:extractDebugAnnotations'.
Could not resolve all files for configuration ':google_sign_in_andro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a revised manuscript under latex How to make a revised Article with Changes Highlighted” file under latex.
Thanks in advance.
I need to create a revised Article with Changes Highlighted” file. However, I did not find a clear and unified explanation and method. I use color to highlight changes but I feel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to instruct GPT Davinci 003 not to prefix with a sentence like "The JSON array would look like this:"? Often when I try to generate code with OpenAI's text-davinci-003 model, the output is lead by a introductory sentence.
In an instance where I instructed the code to list all the variables in a PHP file using JS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I change the os in R from mingw32 to mingw64? This is my R Studio details.
I would like to upgrade to the 64 bit version of mingw because I require more than 3 GB of memory.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel keep receive get method instead of post from React I have project with React and Laravel (I keep using blade btw). Then, I want to send bunch of json data (without form tag) to Laravel.
I simply use fetch like this :
const data = {'_method': 'POST', '_token' : tokenCSRF, 'id': '1','name' : 'test'}
fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Module Not Found - I have created a Basic React NPM package but getting an Error "Module Not Found" I have created a basic react npm package using the command npx create-react-app following the geeksforgeeks-create-react-npm-package documentation but after publishing it, getting an error
npm repo link: k-k-react-hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python webscraper with Beautiful soup only returns one row of data I'm new to coding and for a class project, we're supposed to build a webscraper using python and BeautifulSoup. Following some tutorials I've found online, I put together this code that seemingly works in general, but for the print(nick) command only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my Matlab SVM model gives 100% accuracy 9 out of 10 times with RBF, Polynomial and Gaussian kernel and 96% with linear kernel? I have a Matlab SVM model and when I try different kernel functions only linear kernel seems to get logical results. Confusion matrix for linear kernel:
c =
1428 29
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implement a search box with only native JS I need to create a search box which starts searching only 3 seconds after the user stops typing. I have seen so many ways to do that using Reactjs, like this post. The problem is that I have to do that in native JS (without any libraries or frameworks) and HTML.
A: you hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: want to genertate complex desired list of object using list and python I want to generate data based on some rules and on in the unique structure
can't know how to do it,
any help would be appreciated it
i have two list:
categories = [
'fruits' 'meats'
]
and another list is :
only_on2 = [
{
"ear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error 524: A Timeout Occurred (What It Is & How to Fix It) I am using Cloudflare Hositng is a content delivery network that acts as a gateway between a user and a website server. When the 524 A timeout occurred status code is received, it implies that a successful HTTP Connection was made between Cloudflare and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In package.json, proxy not affecting Fetch Request Proxy not working in my fetch request. It is sending request to PORT 3000 instead of 5000(server is running on 5000)
In similar questions on stackoverflow, answers are suggesting to clear the cache by deleting node_modules and package-lock.json files and then inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can anyone explain why "abc".count('') returns 4 in python? Need to know the reason for the below observations in python 3.7
1>
"abc".count('')
returns 4
2>
"" in "abc"
returns True
3>
"abc".find("")
returns 0
I tried this and got the below results
enter image description here
A: Each character in the string ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Show "loading" animation while API is working and show error I am using the below function to fetch some values using API and use the response to populate a drop down.
How can I add a loading animation which prevents interaction with other elements by the user when the API is being invoked.
Also, if any error happen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change wordpress theme categories title tag (entry.title) from to this is the webpage
same thing happens for archives page
so I have multiple h1 titles on the same page
see image:
see image
what do I need to change and the h1 tags into h2 tags?
to the answer bellow image:
this is how my content.php looks li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: punctuations and bert-based models I'm wondering whether using punctuation are useful to the Bert-based models or not!
For elaboration, I would like to fine-tune my bert network on a dataset and then classify the unseen dataset
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reduce first load js size on Next js? On my next js project, first load js size of the pages where I use char.js is more than 2 Mb. Even though I tried dynamic import, it is not reducing. Is there another way to fix this?
import { createResponseSpectraData } from 'lib/apps/gmp_prediction/draw_graph';
import {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: @Html.EditorFor doesn't show initial value I'm developing a MVC project. In form I send data from controller to view. When I inspect it in browser input value is shown. But not in view. The code is below:
This is the input element:
@Html.EditorFor(model => model.RequiredAmount, new
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set state.backend.rocksdb.localdir with code I write and execute flink code in my local IDE using RocksDBStateBackend as the state backend.
The path specified in the RocksDBStateBackend's constructor is the path that is the checkpoint path that the local state data will be written into this path during checkp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create maven project from scretch takes too long (over 3 hours) using eclipse linux 2022-12 (4.26.0) so the case is I was learning and tried to create a maven webapp project from scretch by using eclipse version 2022-12 (4.26.0) in ubuntu 22.04.
I already install 'maven instegration for eclipse' and 'eclipse m2e - m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Fire and Forget POST - with HTTPS support I want to send a POST request in a PHP script to another server and not wait for the response in any way.
I believe this does not work with curl (there is a async mode, but the PHP script would not return directly and still wait for the response) and I also don't want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: moodle version upgrade for php application Trying to upgrade moodle for one of my old application. So I went to
Site administration > Notifications
But there is no option for upgrading moodle version. Notification page is below:-
What'll I have to do for upgrading the version??
NOTE:- I tried after upgrading PHP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to change an bool in function with other function in python Telebot? There global bool
global getmon getmon = False
There function with handler
@bot.callback_query_handler(func = lambda c: c.data == 'getmoney') def getmonn(c) if c.data: getmon = True
I need to get getmon in function func(). If getmon is True ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can one compute the genetic distance between multiple species in R given multiple observations for each species? For my biology lab, I have sequenced and aligned DNA from multiple species, which each contain multiple DNA samples themselves from different individuals. I wish to create a dendrogram to show the rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create connected contour lines from set of points VTK and pyvista.
I am trying to implement from scratch (i.e., without using any library functions for contouring or interpolation ) an iso contour algorithm.
I am using pyvista to create a custom grid and render it.
With iso_contour function i am pushing (x, y, 0) po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Boot Repository how to cache X Entities until saving to Database I am currently implementing a Database based Logger for my SpringBoot Application. Since there can be hundreds of Logs in a short period of time, I'm looking for a method to store a specific Amount of Logs before they get saved in the Database.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sum IF and CASE in SQL I have a table with Columns artikelnummer = item number, artikelbeschreibung=item description, renr = renr (its the Invoice Number).
What I'm doing I check for values (PN#, RT#, ST#) in the item description and if so, I will give the Value 2 for ST#, 1 for RT#, 3 for PN# else 0. For That, I' d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to add trigger and function in asp.net? tables for item and purchase
I have created two tables and the apps CRUD works. Now, I want to make something that when I add a new purchase record, the associated item's ItemNum will be subtracted directly by the new PurchaseNum. In dbeaver, I have created a tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Infinite loop "foreach" when clone XML Node, C# XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml("<offers>" +
"<offer id = '1'>" +
"<name>Offer1</name>" +
"</offer>" +
"<offer id = '2'>" +
"<name>Offer2</name>" +
"</offer>" +
"</offers>");
XmlNode offer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to connect C harp project to run it in Apche server? Can anyone tell the procedure how can I run C sharp project in Apache server?
To solve the problem how can I run C sharp project in Apache server?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Adding CSS Media Queries in React Js Component how can i use media queries in css file and how can i embedd on reactjs.
My whole code is in css file and now i want to write media queries in index.css file to make my component responsive is it any way to write media queries in the index.css file.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The ignite is suspended during startup Ignite keeps waiting when it starts,
"fm.ignite.monitor-69-1" #285 prio=5 os_prio=0 cpu=35865.92ms elapsed=83153.67s tid=0x000055a415a850e0 nid=0x17f1c in Object.wait() [0x00007f3cc5fd3000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create an observable depending on which observable emitted last I would like to combine 2 observables, take the latest value of each of them (combineLatest) and apply a different function depending on which was the latest emitted observable. Something like this:
public obs1: BehaviorSubject<int> = ...;
public obs2: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enqueue GSAP script with Gutenberg block not working I am trying to enqueue a GSAP script only when a particular Gutenberg/Advanced custom field block is present on a page.
I used this for Slick slider and it works perfectly but for some reason it will not work with GSAP - I don't get any console errors (other than ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load debug symbols in LLDB? I'm trying to debug a curses application with command line LLDB but the experience is a complete nightmare: once the first breakpoint is hit LLDB output mixes with the rendered application interface making everything unusable. To work around this issue I tried to load the applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is RestTemplate compatible with Spring Boot 3? I'm trying to upgrade a legacy application to spring boot 3 and RestTemplate is used extesibly.
As far as I know Spring Boot 3 doesn't allow blocking code (at least by default) and I was wondering if this behavior could be changed or the only solution is to ditch RestTe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to do simple JPanel animation in my JFrame I am making a simple game in which you have to go up and dodge some panels.
The panels should be moving left and right.
Here's some code:
public void keyPressed(KeyEvent e) {
if(e.getKeyCode() == KeyEvent.VK_W || e.getKeyCode() == KeyEvent.VK_UP) {
pm.Pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Making an alarm clock application on flutter I'm working on Flutter. I'm making an alarm app. I will send notification when the time comes to the user who set the day and time. However, this notification must be sent again at 10 or 20 second intervals for the user to wake up. I tried setting notifications at 10 seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle keystrokes in Windows driver I am doing a course project on a keyboard synthesizer driver (when you press 1,2..8,9, a piano melody should play). I created a hello world driver from the msdn documentation but don't know what to do next. If you can help with a useful link or advice, I will be grateful)))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: VBA Excel run-time error 4198 command failed I have problem with code below. On my PC itruns OK and generate PDF file from Word templates. I tried .rtf or .docx format of template doc. On PC at work I got
runtime error 4198 command failed.
On another PC (notebook) same error. On all PC's I have installed Word and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I construct a CASE expression in SQL applying a for a simple estimation for the future with conditions? How do I modify the following CASE expression with condition such as type = 'A' and create a 2023 estimation with a general factor of 1.5 ?
Please see fiddle for reference.
My data table is below :
|id |tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: AttributeError: 'InteractionResponse' object has no attribute 'add_roles' How to make the issuance of a role on the button? I can't manage...
Google translator
@client.slash_command() # Create a slash command
async def button(ctx):
button = Button(label="Verif", style=discord.ButtonStyle.gray)
async def but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to click a bot's menu button which is a web app by Pyrogram I wrote a userbot by Pyrogram to send_message, click bot keyboard with my telegram account.
There's a bot , its menu button is a web app. Can I click its menu button by Pyrogram?
I wrote some code, but it didn't work out.
raw_bot_peer =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Folder access permissions in batch script I have recently created a batch file to allow me to create a selection of parent folders & multiple sub folders.
Can the script include access permissions for a specified folder?
Eg. FOLDER A
Sub folder a (restricted)
Sub folder b (all can access)
I've created batch script ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The Publish Application In Flutter Can't View Page We have an application that already publish in Google Playstore
Before publish, we have already tested the application to make sure everything is alright
After the application publish, the application can't run, only in splash screen, and then everything is white
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I get an rbind error of R notebook: "number of columns of matrices must match" I want to use R notebook, But when I run my chunk, I encounter by this error
(
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
)
How can I fix it?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75564304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I wait for an element to exist? function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}
const observer = new MutationObserver(mutations => {
if (document.que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have implemented a mysql protocol, but he always prompts me that the password is incorrect This is my code. https://github.com/houxinlin/mysql-demo
I want to implement a Mysql protocol client through java. The version of my Mysql server is 8, and the authentication method is caching_sha2_password, but it always pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to send soap xml request and read response I created code with java which send soap xml request and and should read response but i received these errors
Internal Server Error:
java.io.IOException: Server returned HTTP response code: 500 for URL: https://test.api.system.simplyclub.co.il/TerminalService.asmx?op=Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Change the permissions of the folders of Ubuntu 22.04 for Apache Airflow I have installed Ubuntu 22.04 to install Apache Airflow.
Both has been properly installed but all the folders in the Airflow directory only have read access and I can not create new dags.
Directory: \\wsl.localhost\Ubuntu-22.04\usr\local\lib\py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable input entries or button untill next page loaded <!DOCTYPE html>
<html lang="en">
<head>
<form action="" method="post" name="form">
<div class="input">
<input id="number"name="Phone" type="text" placeholder="Phone number,username or email" required></input>
<br>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting:ImportError: libXrender.so.1: cannot open shared object file: No such file or directory when upload App with streamlit Cloud When I upload my code on GitHub using Streamlit. And I face some problem. Here are the part of log and requirements.txt:
Collecting usage statistics. To deactivate, set browser.gatherU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Feature Importance Python with categorical data I am using some numerical and categorical data to build a linear regression model with sklearn package. I do have a total of 30 variables to predict a specific target variable. I want to find out which variable contributes the most to the model.
But it appears to be no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Thread block after 1st call I have two threads ODD and EVEN which are supposed to print Odd and Even numbers consecutively.
I have used a Binary Semaphore "mutex" initialized with value 1.
Irrespective of which one runs first, it only prints once "Even - 0".
The "ODD" thread never starts even though cnt = 1 and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75564321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |