text string | meta dict |
|---|---|
Q: Can application level cache be used along with a in-memory cache like redis in Spring Boot In the current scenario,
*
*Caching is implemented using Redis as datastore. Now the cached data size that is causing issue is about 200-300KB.
*the cache hits mostly happen in a 4 hour window.
*the number of hits count is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multi date timestamps binned in 15 minute intervals in Pandas I have a Pandas Dataframe with datetimes across multiple months:
datetime count
40722 2022-07-21 13:30:00 1
40809 2022-07-21 20:30:00 1
40822 2022-07-21 21:30:00 1
40948 2022-07-22 07:42:15 1
40954 2022-07-22 08:05:17... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft Excel Ribbon Cannot run callback macro I've written many VBA macros over the use but this my first foray into modifying the ribbon with XML and running a macro with ribbon callback. I have followed the instructions for a simple example on Ron de Bruin's webpage precisely, but when I click on the newly crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My Android TV seems to be rebooting frequently in sleep mode and causing ADB to be disconnected, why? This is the log I got from adb logcat when the TV is at sleep mode:
03-05 00:50:40.242 9534 9647 I uicksetsdk.son: Starting a blocking GC Alloc
03-05 00:50:40.242 9534 9647 I uicksetsdk.son: Starting a blocking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using renv but still system library active I'm just new to renv and tried to find something similar to Pythons virtualenv. So renv seems to offer what I need. I also tried packrat, but renv can load the library when one is not in that project folder.
*
*When starting R in the renv project directory it loads my pac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use a variable from arguments in discord.py I am making discord.py bot, that sending you info about online on your Minecraft server. Earlier I used input field in a terminal, but now I want to rewrite it to write IP address by the command /ip. I don't know how to use variable from the command in the another e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to return to the menu when the user enters a key at any point in the program in python? The program works as a console-based application, where a user can add loyalty cards to a database.
There is a menu (in a separate file) that is connected to the main application. What I want to allow is whenever the user inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create function for plotting graphs Here is the question I have to answer:
Create a function Eplot( X, Y, Xerrors, Yerrors, Xlabel, Ylabel)
(arguments in that order) that returns a scatter plot of the data with x and y values given by the lists X and Y respectively, x and y error bars given by the lists Xerrors and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Django form is not displaying all fields I have a problem, i need to create form like scheme, i have my models and created forms.py.When i add my forms into the HTML, i have only 2 of all fields in my forms.What it can be?
This is my models.py
class Post(models.Model):
full_name = models.CharField(max_length=60,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set background image using bootstrap 5 I have been trying to set background image for my website using bootstrap 5 but it is not showing
I use external CSS to set the background image but it is not working
The code is
body {background-image:url(images/bgr.jpeg);}
I will like to know what I can do to set the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ref counting and null reference design I am working on a C++ ref counting objects implementation without using std::shared_ptr<> and without C++ exceptions. So, there is a C++ template object that holds a pointer to your actual object, similar to shared_ptr<>, and implements the ref counting semantics.
I am trying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I want to create github page for my reactjs project but my project is not working because of this there isenter image description here some errors that I don't understand. What means the red cyrcles in this github project?
I tried find solution in google but can't find anything. even ChatGPT didn't understand me
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: PostgreSQL - optimizing select query with int/float indexes I have the following table
CREATE TABLE message (
message_id serial PRIMARY KEY,
total int,
reply_count int,
reply_rate float
);
The table has over 1mln records and I need to run a query and filter results by reply_rate
What would be more efficient option:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a draggable canvas using the translate method? I'm trying to make a game map move like google maps.
I can't understand why I don't drag to the bottom or up, but only to the left or right, where you can read information about it or see formulas, but please don't throw off links to complex and cumbersome c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with two displays on a system running Ubuntu with Preempt_RT patch For developing a control program i need a rt system. I decided to use Ubuntu with Preempt rt patch. I tried out different kernels (Versions 5.19, 6.0 and 6.2) and patched with the corresponding patch.
I do have two monitors connected to my pc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot connect to Eureka server - Spring Boot | Eureka | Docker I'm building the microservices system using Spring 3.0 and I want to setup Eureka with Docker.
I have 2 services called "AA service" and "Order service", and "Eureka server".
Setting for Eureka server is below:
application.properties
spring.application.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add Button event in Kotlin fragment I want to add Button onclick event in kotlin fragment, and onclick start recording.
onclick event:
startRecord()
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75637376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to convert time difference in terms of years and months Is there a way to convert below time difference in terms of years and months?
as.Date(Sys.Date()) - as.Date("2015-08-20")
Time difference of 2753 days
Expected output (Since it app.. around 7 years and 5 months?
7.5
A: You may try the below ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Populating image property values from code Hi:I need to programmatically populate image Title, Subject, Tags and Authors for millions of TIFFs. The goal is to make the detail tab of the property dialog to be populated.
I've tried the GDI+ method from this post and also LeadTools's L_SetTag/L_WriteFileTag and neithe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I create a Wordpress Dashboard widget to show a plugin's changelog I am trying to create a dashboard widget with feed from a custom plugin's changelog. On the Plugins page of the WP dashboard, one cabn already click on View Details and then Changelog as per I would like to show the 3 most recent items in a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange PHP parseer error with ++ increment I get a strange error with the following code
function HeadLit($ST) {
global $inHead,$HeadP,$Head_C,$H_parts,$H,$B_parts,$B,$inHead,$M_parts,$M;
while (true) {
$t=strpos($ST,"/t');
if ($t===false) {
$B_parts[++$B]=$ST; // mainline... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to create a url link for a c code file to upload on hacker earth projects i have recently made account on hacker earth and wanted to upload my projects on it however, it is asking to upload a url for my code. i dont know how do i create a url for my c code. can anyone help me with it?
i tried searching on google... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python - sort list of objects by one of the obj attributes and then by dict value Literally need correction in only one line of the code below. Everything in the code works fine except for line: dwarfs.sort(key=lambda x:-x.physics) which is incomplete.
After creating the objects and appending them in the list dwarfs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Implementing optimization model for electric bus transition using CPLEX in Python Hello Stack Overflow community,
I am currently working on a project where I need to optimize the transition of a bus network to electric buses using CPLEX in Python. I have developed an optimization model based on the technical feasibi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How can I find ranges of values out of low and high bounds? I'm currently trying to find ranges of values given list of bounds.
Here is some example data:
#
Low
High
1
3
8
2
3
8.1
3
3.2
8
4
3.1
8.2
5
3.4
5
6
3.3
5
7
3.2
5.2
8
3.4
5.1
9
3.6
5
10
3.5
5.7
11
6
8
12
6.2
8.1
13
6.1
8.3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cant import pygame into Visual Studio Code Can You help me ?
I have latest PIP command. I tried to import pygame to VScode but it didnt happend
(i dont have installed pygame, and I can install pygame into pycharm)
At CMD this shows me
CMD
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75637407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass data from react native to node.js using axios? How to pass data from react native to node.js and vice versa using axios?
How to pass data from react native to node.js using axios?
I'm working on react native and nodejs (express). I can't figure out how to pass data from react native to node.js using axio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: default landing page is not showing in react.js path="/" works perfectly in local but when i have hosted it with the github pages.While visitig the site through the link it only shows the navigation and footer.
This is the code of my App.jsx
import React from 'react'
import Nav from './components/Nav'
import Footer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Firefox doesn‘t accept .wav with bootstrap b-form-file <b-form-file
@change="onFileChange"
class="formFile"
accept="audio/wav|.wav"
v-model="audioWav"
:state="Boolean(audioWav)"
placeholder="Wähle eine Audio .wav Datei aus ziehe sie hier rein..."
drop-placehol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Same Macro on Different Worksheet Without Changing Sub Name I am creating a very large WorkBook, utilizing the same WorkSheet format several times. I have created the WorkSheet and then I just duplicate it over and over. I will have more than 20 WorkSheets. Each WorkSheet requires a minimum of 50 or more macro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML for SVG diagram How do I write the html to create a sitemap using SVG like the image given?
diagram svg
This is what I have so far
<svg width="400" height="200">
<rect x="0" y="0" width="100" height="100" style="fill:lightblue;stroke-width:2;stroke:black" onclick=""/>
<text x="50" y="6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring-Boot-Application on Kubernetes - how to pass passwords to JVM? I have a Spring-Boot-Application, that I deploy with Helm to an Openshift Kubernetes Cluster.
We are using an SSL-secured database, that needs passwords from key-and truststore.
The only way this works is by adding it to the JVM arguments like
-D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: push commands take too long to push data on Github repository hi guys Im trying to push my changes in GitHub as same as I pushed it before but it takes too long to push here is my terminal image
I also trying this:
git config --global http.postBuffer 524288000
but not works
could you pls help me ?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75637424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: .Net7 upgrade of Azure Function project fails to run locally I updated VS 2022 to the latest version and upgraded my Azure functions project to .Net7. I get error message when running the app from visual studio "There is no Functions runtime available that matches the version specified in the project.". How do I fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Model For Resume Parsing with Medium training data Size Currently I am working on building a resume parser for tunisian resumes which will be in english and french I started researching i found too many Models, now I narrowed the scope to use SpaCy custom NER pretrained Model or Train a BILSTM_CNN_CRF model for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Pip Installs successfully, but when importing to program the module cannot be found (Pycharm). How do I fix this? I have been having this issue with all my modules and as a beginner its frustrating. I downloaded beautiful soup using: pip install bs4 and it was successful. When I then try to import the module into my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recording Robo-Script From Android Studio Failed I am trying to generate a simple robo script for my app in order to run it on Firebase׳s Tast-Lab.
While following the instructions: In Android Studio click -> Tools -> Firebase -> Test Lab -> Record Robo script. The app is being built, but the UI of the test lab neve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort and display an Array of Objects JavaScript I have created a function to dislpay the objects in an Array.
let shownObjects = myArray;
function showTheObjects(displayedObjects) {
document.getElementByID('divToDisplayObjects').innerHTML = "";
for (let i of shownObjects) {
// Code to display the obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to improve the silhouette extraction algorithm in Python? I want to extract silhouette from images that comes from Microsoft Kinect. I have this files saved as .mat file.
This is my code for now:
python
import scipy.io
import cv2
import numpy as np
# Load the data from kinect_data.mat
data = scipy.io.loadma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to convert texts into an image or multiple images in Python for document classification i was working on a project and it is wanted that there are some texts ( actually so many texts) which should be converted into an image or multiple images for each text and after that classify documents which are i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Find index in nested array objects , check if the data is the same value I have some data like this
let dataCart = [
{
"id": "001",
"name": "Product 1",
"price": 23,
"image": "images1.jpg",
"group_option": null,
"qty": 1,
"note": ""
},
{
"id": "002",
"name": "Product 2",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to print selected (output) days only between two dates this codes output different days i.e. mon, tue and etc. in the week. For example the output could be mon only, or mon, tue, wed, thu and fri
school_days AS
(
SELECT to_char(trunc(sysdate ,'D') + LEVEL - sw.LEV_1, 'dy') as school_day
FROM SCHOOL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change code window function from scala to sql I'm trying to change the written scala code to sql code, now I got it, which I think is not entirely correct, since there are two window functions in the scale code and I combined them into one. I also need this code to be in the form of a cte table(Hive sql version).
Sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Add a dark block background to tables when rendering markdown in React I have followed this thread to add a dark block background for code when rendering markdown in React. Here is the code and codesandbox: https://codesandbox.io/s/happy-flower-2g42h4?file=/src/PostBody.tsx
import React from "react";
import ReactMar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vuejs show default image if no imagedata is found for 2 properties I am using vuejs. I am having difficulty displaying the default image if the two properties (selImage and imageData are empty). Is there a better way to write this. I can achieve it if its only one, but not both. I would prefer not to use computed in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ommand Prompt Er When I run java program in edit plus software and execute through command prompt it show this error refer image for understand.
My drive path is correct however it shows error
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75637454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-10"
} |
Q: TypeError: a bytes-like object is required, not 'str' PYTHON 3 BS4
# LIBRAIRIES
import requests
from bs4 import BeautifulSoup
import csv
# SEARCH URL
url = 'https://www.atlas-monde.net/tous-les-pays/'
response = requests.get(url)
# EXTRACT DATAS
if response.ok:
soup = BeautifulSoup(response.text, 'html.pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Write a program to input name and marks of 5 students and make two list 1 for name and second for marks Write a python program to input name and marks of 5 students and make two list 1 for name and second for marks.
Write a program to input name and marks of 5 students and make two list 1 for name and second for mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Google Cloud hourly SQL Instance backup from one region to another region I am new to the Google Cloud.
A colleague has created a GCP mssql instance in the region europe-west6 (Zurich) which makes a daily backup.
Now I have to create an hourly backup of a GCP mssql instance in region europe-west3 (Frankfurt) and reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compile error after downloading a project I have gotten this error when downloading a project and trying to set it up with mongodb. Anyone know why I get this error? If anymore code is needed let me know and I will edit this post! Appreciate the feedback.
FAILURE: Build failed with an exception.
* What went wrong:
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: CORS error : preflight missing Access-Control-Allow-Origin here
I am trying to upload an Image to digitalOcean spaces via a react app and aws-sdk/client-s3
an error thrown in console says Fetch failed loading: PUT MY-DO-SPACES-URL
when incepting in network the error says : cross error preflight Missing Allow Origin ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to convert a list to dictionary having values of dictionary in list and keys defined [how to resolve this error regarding list tuple s and dictionary main problem coming is I want to split the string so how can I am confused in that] (https://i.stack.imgur.com/DWGOP.png)
expected to get the list values as values... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Angular 11 event fires in one method but not another I have a problem where I can trigger an event in one method of an Angular 11 child component but cannot trigger the event in another method of the same child component. It was previously working where I was able to successfuly call the event from any function and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to inject dependencies in Jest tests, injected with the new Angular14 inject function? I refactored all my components' constructors with the new inject function from Angular v14+
@Component({
selector: 'app-cmpt',
templateUrl: './cmpt.component.html',
styleUrls: ['./cmpt.component.scss'],
})
export class M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to avoid another upkeep run my checkUpkeep function Chainlink I don't know if this is a too simple question but I'm wondering how to avoid an external Upkeep run my checkUpkeep function of my contract if, at the end, my contract's address is public and that's the only thing you need to run the checkUpkeep. I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swap diagonals with matrix in C language I want a code that swaps the diagonals in a matrix, in C.
The matrix must be M*M. This is my code at the moment:
#include <stdio.h>
#define m 4
int
main()
{
// Write C code here
int arr[m][m] = {
{1, 2, 3, 5},
{4, 1, 6, 0},
{7, 8, 1, 3},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to solve setState() or markNeedsBuild() called during build error in Flutter when using Provider? I get the following error while using Provider in Flutter :
The following assertion was thrown while dispatching notifications for CampaignProvider: setState() or markNeedsBuild() called during build. This _Inherite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No box to click to help fight spam On form submission, I get a huge red box that says, "Almost There. Please help us fight spam by clicking the box below", but there is no box to click.
*
*Is this a bug? I have a recaptcha activated on my localhost for my test site.
*Is there a way to customize this? Or have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would I be able to attach the main camera to different characters and make them have their own movement script when they are selected? I'm a Unity and C# beginner and I'm working on a game for a school project. I've mainly followed tutorials so far and I've run into a problem that I feel is very specific for a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TailwindCSS does not apply React - Vite I just started new project, installed latest Vite with React template. Then installed React-Router-DOM and fallowed a guide for setting it up. Using createBrowserRouter and <RouterProvider router={router} />. And Tailwind does not apply at all.
I have found (related question) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: k3s + MetalLB: metallb-controller Failed to allocate IP for "default/nginx": no available IPs I created a k3s cluster and disabled the service loadbalancer & traefik. I installed metallb via a manifest file. Also, I created a ConfigMap for Metallb below named "config" with an address pool so I don't know why the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Motion equation of a space engin in low earth orbit So my goal is to simulate the mouvement/motion of a space capsule from low Earth orbit with initial coditions emuating initial thrust.
Here the code,
Is it right? I know that the next step is to implement Runge Kutt's algorithm (to solve the ode), but shouldn't I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update List box with new added value of same id? when I add new value in List box it should be updated with new value of same id. I am unable to do it. I am trying to sum values of same id from Datagridview and want to display result in List box My code is not working.
Dim results = New Dictionary(Of Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing date from string in regional format I have Mysql table, with dates, represented as "4 мар. 2023 г." ("мар." - is russian March)
I need to parse this date in PHP, and format it like Y-m-d.
Trying:
$formatter = new IntlDateFormatter("ru_RU", IntlDateFormatter::SHORT, IntlDateFormatter::NONE);
$unixtime=$format... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: JavaScript FETCH: Failed to load resource: the server responded with a status of 415 () I'm getting this whenever I send a POST request to the URL API I'm using. Here's the error I always got is,
Failed to load resource: the server responded with a status of 415 ()
Here is the code I used:
var firstName = "John";
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Hikaricp automatically call close() by detecting the DB connection socket in the 'CLOSE_WAIT' state? As far as I know, the socket in the 'CLOSE_WAIT' state continues to remain in that state until the application calls close() normally. By the way, I don't think hikari has such logic, but how does the TCP socket... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm working with Reactjs and Tailwind CSS and having an issue with my pictures I want to be able to put my pictures in the code like:
<img alt="profile" src="assets/profile-image.png"/>
But it's not working
I am however able to import my picture like:
<img src={pic} alt="profile"/>
Any thoughts to why the other w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python - Trying to copy columns of data from one spreadsheet to another. After the third block of copy code, it wipes all previously copied data I am attempting to build some automation that will automate the processing of a workbook; Excel cannot handle the datasets with the amount of required calc fields. I am at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does Python read a file, i.e., a .txt file through the use of the open() function? I'm intrigued in the low-level programming of Python's source code, and I'm asking how Python actually reads or opens a file. I've been searching through a lot of Python's source code but I can't seem to find the functions/classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to compose a MySQL query and several SELECT and nested queries I need to get a list of the stores that the company has, and I need to output the number of products in each of those stores. The list of stores and items are different tables and I need to merge all of this to output a common answer.
To have all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot use std::map::emplace to insert an object of a class with no copy constructor I'm trying to compile the following code:
#include <map>
#include <condition_variable>
class MyClass
{
public:
MyClass(): m_cv() {}
std::condition_variable m_cv; //just to illustrate that a copy constructor is not obvious t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: os.listdir returns the error: no such file or directory even though the directory actually exists This is my project files structure:
and this is my main.py script:
if __name__ == '__main__':
leukemia_dir = "../dataset/leukemia" # if I click here, I get redirected to the folder
file_names = os.listdir(leuk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display the System.Window content into a wpf window I have a systwm window and I need to display it's content into a wpf window. How can I do this?
I tried:
*
*window.Owner = wpfWindow
*wpfWindow.Content = window.Content
And none of this are working.
I am expecting that the content of the system window will be d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring boot Rest API give empty data in browser Ineed to help
I have a spring boot project with h2 database. I added data in the data.sql but the data wasn't inserted into the database however tables are created successfully when I call the findAll API I get an empty data.
this is app.properties
server.port=8080
sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MS-Word Wildcard Search/Replace in VBA/Macro-Enabled Doc Change in Behavior (@ wildcard not working) Here’s a bizarre one. I have been using for years a macro-enabled document that basically “cleans-up” my notes using the MS Word Search & Replace and wildcards.
Yesterday, the behavior changed drastically and it no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a new column with values derived from a groupby Take for example this dataframe:
a b c
0 1 2 3
1 1 2 3
2 2 1 1
3 2 0 0
I have the averages of column c for a given label 'a', as follows:
average_c = df.groupby(['a'])['c'].mean()
I want to add a new column 'd' which takes the difference between the val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement a sliding panel with react router dom? The project has a sliding panel with information, and you can call it from any page. This panel's URL needs to be appended to a valid URL. And when updating (or opening a link by another person), I got to the same page with the exit panel already open.
I was ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: java array sort() manual realization I have an array of objects, which have to be sorted by their fields. Sorting algorithm must be written manually. I've chosen merge sort, but can't understand, how to compare by different fields. Made classes with Comparator implementation, but don't understand, how to select whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Writing RAW BayerRB12 to disk (python) I am working with some raw camera data (BayerRG8 or BayerRG12) that is coming straight from a camera (Allied vision). I can access it as a numpy array of shape (1216,1936,1) at a bitdepth of <class 'numpy.uint8'> or <class 'numpy.uint16'>. To get useful images out of this, I us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google App Script: Unexpected error while getting the method or property getConnection on object Jdbc I am trying to connect a Google App Script to a SQL Express SQL Server on my local PC. I believe I have the port 1433 opened on my firewall (for what that is worth) and have my SQL Server enabled, TCP/IP enabled, et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firebase Read Reduction I'm working on a chat app with a friends list feature and I need to know how to reduce the number of read calls to the database. The logged in user has a document with the name of their uid and contains their username (which can be changed), and their friends in a different subcollection with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# parse headers with sections of the parameters How we can parse Headers with sections of the parameters (see rfc2231(https://datatracker.ietf.org/doc/html/rfc2231)). For example:
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;
name*0*=US-ASCII''%D0%97%D0%B0%D0%BF%D1%80%D0%BE%D1%81... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get json for dynamic zone strapi , please help with this issue. I'm trying to output the added dynamic zones from stpapi to next, but I can't find how to correctly form a request in postman so that I can register it in next
add dynamic zones
generated a request in postman
/?populate=*
http://localhost:1337/api/cours... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: L1 Cache Usage in Optimised matrix multiplication micro-kernel in C++ I was tasked with implementing an optimised matrix multiplication micro-kernel that computes C = A*B in C++ starting from the following snippet of code. I am getting some counter intuitive behaviour and I would like some help to better understand ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing data to Shiny modules from "global" data I am trying to create a Shiny App but using modules stored in different scripts. I am having trouble calling the data to be used inside a module.
I have 2 App versions - the one where everything is stored inside a single Shiny R script and this works without issue. Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to connect two Duplex streams in Node? I am using the node:net Socket API in a library I'm writing. I want to unit test this code, so I would like to abstract over Socket by allowing this unit to accept any Duplex stream.
For testing purposes, I would like to have a method of creating streams which al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert dynamically into a table in OracleDB I am writing a script to push data from Snowflake to OracleDB using pandas and sql alchemy. The scenario is, I am having duplicate primary keys in my source and I am expecting an error when I try to insert in the target.
try:
df.to_sql('table', engine, index=False, if_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to save all messages in mutt How to save all messages using mutt ? I want to do a backup copy of my inbox from a imap server to a folder on my pc in maildir style not mbox.I selected all the messages pressing T button and then .* , the messages get a * , but when I press s for saving and selected the path it sav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Campos inputs para multiplicar Can anyone give me a direction?
I have an HTML and php code where the input is created within a while php and shown on the screen through a table, I need to take the value of an input and multiply it with the value that the user types in the input on the side, until then, blz I can do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Flow type grandchild inheritance issues I'm curious as to why this inheritance model succeeds between a base and child, but fails between a child and grandchild. I'm sure there is something I've missed here. The error would make sense to me, if only it also occurred between base and child.
type BaseType = {
base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding to Entry element does not update entry text more than once - Maui When binding a value to a Label.Text it works fine but doing the same with Entry.Text I see the initial value but this never updates when the value changes. Here is xaml for Label:
<Label x:Name="multiplierLabel" VerticalOptions="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failed: error processing document #1: invalid character '_' looking for beginning of value I have been to trying to import a csv file in Mongo DB server using 'mongoimport' cmd. The error was "invalid character '_' looking for beginning of value ".
When I opened the csv file, invalid character '_' was at the beginn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix TypeError: cannot unpack non-iterable Button object I was writing my PySimpleGUI program and it (Still) does not load
This is the error it gives me:
Traceback (most recent call last):
File "D:\Python\Lavoro.py", line 89, in <module>
event = window.read()
^^^^^^^^^^^^^
File "D:\Python\v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type-hinting based on custom config file structure Is there a method in Python or PyCharm to produce attribute type hints for a class that dynamically loads the attributes from a file?
Consider the following Settings class:
import re
class Settings:
"""
This class loads a settings file and creates properti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing ChatGPT API through Firebase Cloud Function Below is some code for a simple Firebase Cloud Function that hits the ChatGPT API. Deploying this code and accessing it from my app results in a CORS error.
import * as functions from "firebase-functions";
import {defineString} from "firebase-functions/v2/params"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you sort ArrayLists? for a CarShop project with Eclipse I am very new to Java. Tried few years back to learn something with IntelliJ and now I a try to learn using Eclipse which confuses me.
As part of homework I have these tables
Car list and Car condition
The task is to develop a single Java program that fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: String Function To Get Right 1000, From the Last Period or Carriage return My question is a follow-up to a question that was asked and answered under another thread. However, the question not asked was how do you extract the remaining characters after the first 1000 or nearest '.' :
https://dba.stackexchange.com/que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot get the types right for SVG commponent I have a React component where i import svgs as ReactComponent, In that component i am mapping the svgs to a key string that will return the correct svg.
Everything works the problem I am having is a problem with Typescripts. import React, { SVGProps, FC } from "react";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: After fine tuning model with model.train it gives different predictions for same text This is how I fine tuned the model:
input_ids=tokenizer(str(parseddata), padding=True, truncation=True, max_length=500,
return_tensors="pt")
labels = torch.tensor([0])
lr_scheduler = get_scheduler(
name="l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Color palette and more scale variations I have here two code so you can help me understand...
Well at first my mask colors the "loading" shape. The initials rgbkmcw indicate their colors, red, ..., white. These are normal, already the CAPITAL LETTERS, correspond to bold (red = \e[31;10m; RED = \e[31;1m).
What I'm lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75637557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |