text
string
meta
dict
Q: Enable CSRF TOKEN in Django html coded using element-ui I am trying to add CSRF TOKEN in my html script (Django framework) for ensure CSRF protection so that my POST requests will be be classified as an unsafe request. However I am unsure of where I should place it. When I place it within {% verbatim %}, it comes of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting a syntax error while storing a data in sqflite databse in flutter Hello Guys I am working on a flutter project Where I am trying to save data in a sqflite database.I tried different ways like storing it using Json, Map but nothing works than I found the old classic way that is using a raw query to store the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How could do the authentication and authorization in a gRPC service in a ASP Core application? I have a gRPC service that is hosted in an ASP Core NET 7 application. I am reading how to use JWT to authenticate and authorize a client at ASP Core level, but I don't know how to do it in the gRPC level. My application h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: suitlet max lines and paging I need to create a suitlet where according to criteria, I will show transactions like invoice, bill, journal, ... The Goal is to make a custom GL matching page with many results. I know that a search can return maximum 4000 results. I also know that the laptop from the user can freeze if...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python "speech_recognition" library throwing error ``audio_data`` must be audio data with the following audio Here is my code in which I'm getting the audio: import soundcard as sc import soundfile as sf import speech_recognition as sr OUTPUT_FILE_NAME = "out.wav" # file name. SAMPLE_RATE = 48000 # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two websites on one server, why does reaching the server IP ends up on one of these websites instead of root? I have an Apache server, on which I have associated two domains, say domain1.com and domain2.com, and separated their codebase like this: var/www/html/ | | ---- domain1.com/ |...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rancher Desktop not noticing file chages, Docker does A simple docker repo created to demonstrate HMR of a Sveltekit + Vite app within a docker image / container, works out of the box with native Docker, does not with Rancher Desktop. It seems the external browser connects fine to the container (+ HMR port) but I th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: locust mixed rest and websocket performance testing on the same locustfile I'm trying to write a test with the following requirementes: * *the test has two calls, the calls has to be exectuted in sequence *the first call is a REST call (http post) *the second one is a websocket call How I can implement this in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to get the patient details from the logica patient picker by using a standalone SMART-on-FHIR app? We have created a SMART on FHIR app and testing in Logica health sandbox as a standalone application. The scope we are using is 'launch/patient patient/. openid user/.' Now, during the execution it is pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to send an email notification to the message recipient when I send a message in a chat room (MessageRoom) in DRF What I want to achieve When I send a message in a chat room (MessageRoom) I want to send an email notification to the recipient of the message premise like below I have the code in Views.py. When I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do we have to edit XML for GTK 4 ui? Like is it possible that we still don't have a decent designer for GTK 4.0 - Even though I did not like Glade that much (for 3.0) but it worked at least, now I have to deal with XML code which is far more worse--- Is there any tool for GTK 4.0 UI? tried: Google, Flatpak etc..
{ "language": "en", "url": "https://stackoverflow.com/questions/75626973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to load huggingface model which does not have config.json file? I am trying to load this semantic segmentation model from HF using the following code: from transformers import pipeline model = pipeline("image-segmentation", model="Carve/u2net-universal", device="cpu") But I get the following error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML heading color I'm an 8th-grade e-commerce student learning to code in HTML. For homework, I had to make an HTML site with just the basics and I'm sort of stuck on the heading color. Surely something is wrong but I can't seem to see the problem. <center> <h1 style=font-size: 90-px;> Васил Левски </h1> </cent...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I set the background color of the MESSAGEBOX on Tkinter? Is it possible to change the background color of the messagebox in tkinter, if so, how? I was writing code for my computer science homework and came across this question: Is it possible to change the color of a message window on tkinter? I was interest...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Antd - Disable scroll bar in Header but not in Content in the layout I am using Antd Layout in my app where the Header and the Sider are fixed. I want my content to be scrollable but I don't want the scrollbar to appear beside the Header. I couldn't find any example on how to do this and I can't seem to figure it ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facing java.net.UnknownHostException: Unable to resolve host "tfg.test": No address associated with hostname Im trying to use retrofit with android but Im facing that problem and have no idea how to solve it. I have tried doing it in a physical device with internet connection but it doesn´t work. Here are my files: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rounded button border animation I have a button for which I'm trying to animate the borders on hover. I have a working code, but the issue is that when you hover it, the radius on top left and bottom right starts at 0 and gets adjusted only when the animation finishes (you might need to zoom in to see what I'm talki...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git merge, can I substitute some files in one branch with files in another one? So, this is the situation. I have a repo with let's say a lot of files. I have only touched let's say about 15 files... there are a lot of files, that I don't need to touch/modify and they are out of my scope of work, but for logic reaso...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running adhoc jobs in individual containers using hangfire The idea is to somehow use scheduled Hangfire jobs to fire up a container to run a .net6 job once. The background is that we are using Hangfire to schedule all our imports to out asset database. Each import job is currently in full framework. Built locally a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delay Autoresponder CF7 We have set up an automatic autoresponder based on a field input by adding an additional function. However, now it sends directly. What we would like is to send only that autoresponder after a delay, so the form itself may be send immediately. I tried doing that by adding sleep() into the fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/75626997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert a single object or a set into a set? There's a method as follows: def send_message( content: str, slack_conn_ids: Union[SlackConnection, Set[SlackConnection]], send_only_in_production: bool = True, ): ... if isinstance(slack_conn_ids, set): set_slack_conn_ids = slack_conn_ids ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spark streaming query that contains multiple joins gives no output I have a join query that has another join query as a subquery, but the query gives no output. I ran the subquery alone to figure out where the problem is and it's working as expected. What I'm trying to get here can be thought like finding the last m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ionic how to integrate screensharing in mobile using Twilio I was integrated the video calling with room creations using Twilio npm package after that I got another requirement to implement screen sharing functionality the below code working fine for the web browsers but during the video call in mobile app is not wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to shorten long reusable modifiers like font style, foreground styles, etc I have a custom font modifier that I am using often, however it makes the code very long as I need to add it in multiple places. This is the modifier: .font(.custom("Bebas Neue", size: 24)).foregroundStyle(LinearGradient(gradient: Gradien...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No mime type could be found/ ajaxworkdeskwindowsave.jsp. To resolve this add a mime-type mapping to the application web.xml Facing the attached mime type error in production. How to add new mime type to resolve this issue.
{ "language": "en", "url": "https://stackoverflow.com/questions/75627010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use two application.properties from external jars I have two libraries in my class path, both of them have application.propeties. I need to use both properties but one of them is getting to classpath but other one is getting overridden. Is there a way I can use both the application.properties in my spring boo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run a command in Developer command prompt 2022 using Python I am trying to open and run some commands in developer command prompt 2022 , I am able to open but not able to run the commands. I tried: code,: subprocess.call("C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Visual Studio 2022\\Visual St...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A python script task takes too long to finish in task scheduler Today I added a task that runs Python Script into Task Scheduler. The task I added was the 6th one with the others. Every task does the same thing, they run a python script that writes the result by getting info from remote Database every 10 minutes. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to improve my accuracy in Bi-LSTM neural network in Python? I want to make a model to predict the land use of some fields but my accuracy after making my model is about 50%, which is so low. I want to improve the accuracy of my model to my case and as I am new in neural networks I need some help with it. Here is...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use common variable for muti-datasources in a single dashboard I am having a existing grafana dashboard working on Thanos datasource and I have also included a elastic search(datasource) panel in the same dashboard by elasticsearch environment variable. Is there any posible way, having common variables (env,l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Widget selector in Android Studio for Flutter navigates the app I wanna know where a button is in the code and Widget Inspector works divinly for that. The problem is that everytime i click "select widget mode" the app jumps to the inapp-homescreen. It is probably impossible to show relevant places in code for this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python and node.js, which one would be better to handle the backend of an echarts web app I am developing an data display web app, I've done well so far with django + echarts, but I googled a lot, and I found out that in most of the tutorials ,they set up devs with npm, and then I realise django may be too big for m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: iText difference between word generated PDF and CorelDraw generated PDF I'm trying to get the location of a specific string in PDF generated from different sources (Word, Excel, CorelDraw..). I have extracted part of the code that in my opinion is relevant to this question: private static iText.Kernel.Geom.Recta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I multiply a 3x3 matrix with many vectors fast in CUDA? I am trying to multiply 2000 xyz vectors by the same 3x3 matrix as fast as possible. Since each matrix vector multiplication can be done in parallel i would think this would be faster on the GPU than the CPU. However when I run my naive Cuda implementati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading number of text files I have output files generated output files with the extension output.txt0001, output.txt0002,......,output.txt0020 from an MPI code. Is there any shorter way to load each txt file and concatenate them into a single array? I am currently using numpy.loadtxt for each file and loading them ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Advice to implement an app that calculates the best route So i want to make an app for my University Thesis where the user can add different locations from one city. This app will calculate the best route based on distance and time (distance from one location to another, and time spend in traffic and in queues at th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get 422 Unprocessable Entity and not 500 Internal Server Error in FastApi POST endpoint from Pydantic @root_validator fail model via ValueError import uvicorn from fastapi import FastAPI, Depends from pydantic import BaseModel, root_validator app = FastAPI(docs_url=f"/docs") class MyClass(BaseModel): my...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the point of a Type 1 Hypervisor? I've been trying to get into Linux lately, and while experimenting with different distros on VirtualBox, I've come across it being a a 'type 2' hypervisor. Now, after a quick search, it became clear what type 1 and type 2 hypervisors are, but my question is, what is the poin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to organise DataFrame columns I am trying to organise DataFrame columns based on the specific rules, but I don't know the way. For example, I have a DataFrame related to chemistry as shown below. Each row shows the number of chemical bonds in a chemical compound. OH HO CaO OCa OO NaMg MgNa 0 2 3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I create a HTML form select with sub select I have a need to create some sub selects on a form. So when you hover/click on the option a subset appears eg. Lorry| Car|Saloon |Coupe |Estate Van| I know we can create a menu dropdown but I don't know how the selection could be included in the form POST I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sample simultaneously from two columns in R? I am trying to draw samples param1 and param2 from df_sample to df. I tried to use the setDT function as suggested elsewhere, to input two columns..but the output only recognizes the first param1. Any suggestions on how to fix this? #DATA FRAMES set.seed(501) mont...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to call a endpoint in .Net core with request object I've a endpoint like below in Api 1 [HttpPost] public ActionResult PostSchoolQuery([FromBody] SchoolQueryModel schoolQueryModel, [FromHeader] string authorization) { } Here the Request Model class like below public class SchoolQueryModel { public List<Guid?>...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jsPDF cyrillic characters I need to generate a bunch of PDF documents with cyrillic text in it. I have generated font binary and registered font like it described here: https://www.npmjs.com/package/jspdf#user-content-use-of-unicode-characters--utf-8 But it's not working. See example on codesandbox: https://codesand...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Firebase Have a Shell Like Mongodb? Does Firebase have a shell like mongoDB where I interact with the firestore? It doesn't have to be a shell, just any program where I can easily interact with firestore without having to be in project file.
{ "language": "en", "url": "https://stackoverflow.com/questions/75627039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JS CORS complaint when loading modules I have a page on the main domain www.main.com that has a subdomain in an iframe: <body> <iframe src="https://subdomain.main.com/" id="iframe"></iframe> </body> The subdomain has the following JS in the head: function loadModules() { const {init} = await import('https:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find Average of student's grades using the last grade he got at a subject in case he got more I have two tables, one for Grades and one for Students. The Grades table has a column Student which is a foreign key referencing to Student.Id. Students have multiple grades at different subjects and some of the stud...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculate carbon emissions of android app I am searching for a CI, gradle and/or Android studio plugin/tool, which helps me to calculate the carbon emissions of my code (kotlin, java). In this direction I only found https://codecarbon.io/#about and https://greenframe.io/. Has someone some suggestions?
{ "language": "en", "url": "https://stackoverflow.com/questions/75627046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I minimize size of required node_modules to serve production build of my app? I have a use-case where I wish to deploy a production build of my React.js app to various other machines. I serve my production build via node using express server - node server.js In case of release, I build the app once in a speci...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove special character from substring using python I have string like this. {AB-C}123-XYZ/456 What I want. Remove special character from text outside of curly bracket using python. End result {AB-C}123XYZ456 A: The trivial answer is: string = "{AB-C}123-XYZ/456" string[:6]+string[6:].replace("-","").replace("/","...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use np.cumsum to replicate the output of scipy.stats.expon.cdf? For context, I'm trying to understand how to use np.cumsum to replicate scipy.stats.expon.cdf because I need to write a function compatible with scipy.stats.kstest which is not one of the distributions already available in scipy.stats. I am havin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: thymeleaf spring boot OneToMany Is there any possibility to add in parent template (OneToMany), some childs (ManyToOne) and in the same page please? Thank you in advance
{ "language": "en", "url": "https://stackoverflow.com/questions/75627052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting coverage hole from 3d model of uneven surface The idea is to reconstruct a 3D model of a surface using images taken from an UAV. After constructing the model, is there any way we can detect whether there are any points that are not covered (coverage holes)? I have taken approximately 20–40 images from an U...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: WordPress page URL: Get rid of /wp-content/... part from URL How to get rid of the /wp-content/ part of URL from WordPress? I have this URL: https://www.page.com/wp-content/something and I want to keep this: https://www.page.com/something Is it possible at all? I also wonder if I can rename the /uploads/ part in c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: unsupported image format on a python game When I tried to reskin a python game I keep getting unsupported image format. Even when I put the files back I get the same thing. So i download a fresh version and copy, delete, then paste the same image and I get the same unsupported image format even though I am using the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Nuxt 3 dynamic route not found I have a problem with nuxt 3 frontend application: I use nuxt 3 as my frontend and django as my backend and api service. When I run npm run build (it executes nuxt generate) command in local, to get files ready to be send to production, the files like /blog/9, /blog/6, /blog/4 etc. are...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Append and hash two Strings as Hex with sha256 in Dart(Flutter) I have this function in JavaScript and I want to have the same functionality in my Flutter App, but I can't find something similar: const {createHash} = require("crypto") const secret = "<SomeSecretHexNumbers>" let id = 123456789 let idHex = id.toStrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String filtering I have a Java like Groovy script, using for Jenkins Pipelines. In there I have the following scenario. There's a ArrayList with Strings, specifying versions of a script, such as: def version_list = [] as ArrayList<String> -> [Version-2.5.0.0, Version-2.4.0.0, Version-2.3.1.0, Version-2.3.0.0, Versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CkEditor5 - How to let user click on the checkbox I'm using CkEditor5 for my Wysiwyg editor. We can add a todolist which will be presented as a checkbox. But when I'm rendering it, it's disable per default. This is the html that came out of it. <ul class="todo-list"> <li> <label class="todo-list__label"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to loop through 2 arrays after fetching data using a for when trying to loop through 2 arrays of objects fetched using the fetch API the for loop part gets ignored and will only get the else if part. I believe I am doing something wrong but I can't wrap my head around it, any help is welcome so the idea is to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can I avoid validation of the caller id when I make a call to Twilio via trunk? When I redirect a call to Twilio via trunk I want to know the callerId of the first number and Twilio tells me that I need to verify the number first. I call a phone number (phone1 to phone2) and the second one redirects the call to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tablerow with Vue3 Composition API without Vue.cli not working My problem is similar to this question: Vue.js table component not working. The difference is that I use Vue3, with the Composition API and without Vue.cli as follows: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get CacheManager instance with Spring Boot and Ehache3 when using XML configuration I am trying to integrate echache 3 in my spring boot application. I had been following https://www.baeldung.com/spring-boot-ehcache to do so. I I have a questions here How to i get my CacheManager instance. When i try to auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Commit is missing I see my git commit in azure devops repository history. Somehow my changes are not shown in actual code. Then if I see file git history, I do not see my commit. I am expecting consistentency here. I want to understand how can a commit be part of repository but not part of file git history. Also not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Elasticsearch update does not persist We have a elasticsearch index on an Amazon ELK Stack installed. The python dependencies give the following versions: elasticsearch == 7.9.1 elasticsearch-dsl == 7.4.0 When i want to update a document i intialize the elasticsearch wrapper object with es = Elasticsearch(es_host_n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A question on using decorators in Python scripts Going through an online intermediate python course from freeCodeCamp.org and in the section on decorators, the second decorator example (time stamp 3:19:15) does not appear to work correctly, or at least not as I understand it should. The idea is to have a decorator f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: R: producing a table with gtsummary to show p-value between two time points and by group The package gtsummary provides with the function tbl_summary to make tables that show p-value and other info. I have a data frame that includes the variable condition, it has two groups, "active" and "passive". I want to produce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are identifiers separate tokens only in select cases? 1. Lexical Pitfalls: For another example, consider this statement: if (x < big) big = x; Each non-blank character in this statement is a separate token, except for the if keyword and the two instances of the identifier big. In fact, C programs are broken int...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Numpy.tile() "confusing" axes on sliced array I have a 2D numpy array that I have retrieved by slicing a 3D rasterio data set (i.e. I retrieved the first raster band). Now, when I try to tile this 2D numpy array into a 3D array in order to run some vectorized operations, numpy seems to interpret the axes of my array...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are these straight lines that connect the start and the end of while and if-else statements? I have it in Sublime, but not in VS Code, how can I add them in VS Code? I tried to find the name of this, but failed. A: In VS Code they are called Guides. Just open the settings and search for them. I assume you wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Styles not showing up with bundles up Chakra UI Components using Rollup (with typescript React and Chakra UI) I am trying to build a Chakra UI Component Library using Typescript, React and Chakra UI. However after bundling the folder and using npm link to test my library out, none of the CSS styling is showing up, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: disabling manual input of html input type date I have a input field of type date, and i'm looking for a solution to block the manual input of user in this field, and accept only the selection of calendar showed. I'm trying to use this javascript unsuccessfully: * *onkeydown="return false" *onkeydown="event.preven...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parallelizing for Loops for parameter study in python I am currently working on parallelizing large parameter studies of a system of equations with only 2 coupled ODE. A trivial "for loop parallelization" using the CPU resulted in a runtime of about 5 hours for 90000 solutions as a test run. So, now i am looking at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is this safe for my apple account to delete a rejected app? My apple app got rejected from apple store .I want to remove that app from apple account.I am only concern about my apple account .If I will remove my app is this safe for my account? can apple will take action against my account ?
{ "language": "en", "url": "https://stackoverflow.com/questions/75627103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select a directory in a non Windows-specific .NET 6.0 application? I want to present the user with a dialog that allows them to select a directory from the file system. According to what I found online, this can either be done with the FolderBrowserDialog or OpenFileDialog classes. However, both of them live ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: update multiple rows of one column within one query I have 100 of rows in one table and in that in one column is filepath. It looks like below : E:\test\file1.png E:\test\file2.png and so on.. Now I have renamed this folder to temp as per client requirements. Now I need to do bulk update like below for this filepat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GDB and OpenOCD - Board resetting by itself when other threads are created I'm running a board with STM32H750VBT6 microcontroller running NuttX and some application code. For debug, I'm connecting to the target using GDB (cortex-debug extension in vscode) and OpenOCD. My launch.json file is the following: { "typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swiper not getting installed I am trying to install npm i swiper@5.3.0 but I get error 522 . I am using npm version 6.5.0 npm ERR! path C:\Users\<user>\demo-swiper\node_modules\swiper npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c C:\Users\<user>\AppData\Local\Temp\postinstall-537039b0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to connect to a MS SQL Server 2019 on another machine with Python? The MS SQL server I am trying to connect with is in another machine within my corporate network. Many laboratory external devices write on the SQL service without issues, so I know that the server is configured to accept external connections. In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between premain and agentmain in java language? I know they modify classes at different times. But are there other differences? For example, are there some classes or methods that can be modified by premain but not by agentmain? I checked some documentation but couldn't find a clear explanatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capture output of @Sl4j for a package in a SpringBoot application I have a class which is using Flyway to apply migrations for an application import lombok.extern.slf4j.Slf4j; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; import org.flywaydb.core.api.MigrationInfoService; import org.fl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Navigationpage NavigatedTo not working on IOS when go back - Maui I'm creating an app, where I want to know what page is currently shown. Some childpages should not be counted as currentpages, that's why I opted to not look at the last Item of the navigationstack as it wouldn't always be right in my case. Besides, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shopify: Section API not returning blocks added via customise We are using section rendering API from Shopify here to replace the product blocks dynamically. Section Rendering API here: https://shopify.dev/docs/api/section-rendering The sections seem to be rendering fine, but it doesn't render any blocks added to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Seaborn lineplot with color, line style, and marker style as data dimension I have a pandas data frame that looks like this: time performance attr_c attr_s attr_m 0 10 C1 S1 M0 1 15 C1 S0 M1 2 9 C1 S1 M2 3 12 C2 S0 M0 ... ... ... ... ... Time and performance are numbers, all attributes are catego...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Failed to decode packet: in running virtual controller using google matter Hi I am following this codelab and trying to build a virtual device and controller. I have followed all steps till step 5. When I open the virtual controller, I try to change the light state to on and I also try to change the level. But there...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Integrating Html theme into angular I am trying to integrate a Html admin theme into new angular project. The pages are loading fine, but the toggle & click actions are not working after integrating into Angular. I am trying to integrate a Html admin theme into new angular project. The pages are loading fine, but th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML stored as image in SQL server For reasons that escape me, I have a table that stores xml in an image field. I would like to be able to query that field and see the actual XML What I currently see is 0xE5E0753F0B0B02457DF74900F5E996DC020F4DB8DF204E9 ... etc I've tried casting as xml but that doesn't work and I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to detect different shapes of objects like window ,walls and measure it? Want to build an app which can auto detect rectangle , circle shape( window or walls or floors) etc and we need to measure it. we need this kind of solution / tutorial for that Target application is similar to AR Ruler App: Tape Measure Cam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Right to left support for percent sign Let's say there is a piece of code as follows: <div dir="rtl"> test 50% </div> It renders as test 50%. But according to this wiki page for Arabic language it should be displayed as %50 test. Note the percentage sign is before the number. The question is as follows: how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I subtract from subsequent column in pandas? How can I subtract from column before itself for many columns without hardcoding it? I can do it by hard coding it as shown below: import pandas as pd df = pd.DataFrame({"a":[1,2,3,4],"b":[1,3,5,6],"c":[6,7,8,9]}) df['a_diff'] = df['a']-16 df['b_diff'] = df['b']-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: send comand to telnet server with TCP client Hercules I am using programing device which communicates true telnet protocol. The commands that I am sending to it true telnet are: #auto , #select and all work OK. Later I will use this programing device in work environment where there is no telnet option, but only opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make pylint parse correctly the __main__.py file with the included modules I have a python 3.10 project with the following structure: root/ something/ __init__.py some_class.py other_class.py __init__.py __main__.py pylintrc I'm running pylint with a command: pylint --init-hook="from p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql "ONLY_FULL_GROUP_BY" Issues I disabled the MYSQL 8.0.32 "ONLY_FULL_GROUP_BY" mode by removing it from my.ini file. Still I am facing the issue of incompatible with SQL_MODE . I also set this from command line Still I am facing the issue. enter image description here enter image description here I tried to set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update refused: App not compliant with the Data safety section of User Data policy Google refuses an app update and claims that I am collecting and sharing data (phone number, email address). Therefore, they want me to adjust the "Data safety" section in the Play Console. As proof, Google sent me a screenshot of my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to import class from a Python package directly My current package looks something like this: package_repo/ package/ __init__.py module_one.py module_two.py tests/ setup.py Inside the module_one.py I have ClassOne,and inside the module_two.py I have ClassTwo. Now, if I want to import ClassOne i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET WebApi storing application logging in Azure Application Insights I have a .Net WebApi project, I would like to store the logging for it (things like errors, information, stacktrackes). I'm not sure what a good place would be I read that I can use log4net and then store it on the same server the application is r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Sort particular index I have a model Hotel name bookings reviews I have a strange sorting requirement and wanted to check with you if there is a better way I need to sort list of books based on bookings and just the third item in the list with max number of reviews What I have done so far and it works *...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Manually changing the tax total for the order on the checkout page - WooCommerce I am integrating with an SAP system to determine prices and taxes of products in WooCommerce. The issue is that I cant figure out how to manually set the order tax total with the tax amount from the response. I have all the values, I ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Raspberry pi C++ wiringpi.h wiringSerial.h multithreading I have a multi-threaded application where I use wiringpi for button and pwm control. And I want to add a barcode reader(A800D) using a serial connection to it. Everything works fine if the thread with the reader is running and the rest of the threads are turn...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle include NULL containing rows when compared string is zero length I am building a function in Oracle where I would like to return a set of results based on input parameters. Minimal select query SELECT FIRSTNAME, LASTNAME FROM EMPLOYEES WHERE FIRSTNAME LIKE '%' || P_FIRSTNAME || '%'; where P_FIRSTNAME is a pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a cleaner way to sum all numerical properties in a class individually? I have a class, represented below as Example class. In my DoSomeLogic Method, I need to sum a collection of Example class, and want to return a new instance of Example class where each numerical property contains the sum of that property...
{ "language": "en", "url": "https://stackoverflow.com/questions/75627160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }