text
string
meta
dict
Q: Does sorted array have continuous subsequence that averages to target number Given a sorted array of integers and a target of type double how can you check if the array has a subsequence that averages to the target number. For example lets say you have the array [2,3,8,14,15,35] and the target value of 8. The expect...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: R packages raster and terra give different min and max values for a raster I have a large raster file (933120000 cells). When calculating min and max cell values, I get the same values (0 and 90) when using raster and terra packages in R when the file is on disk (not in memory). However, loading the file into memory...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I use react ssr with firebase I code react but I need SEO features. Please should I learn react ssr and be able to implement it with firebase. Is this good practice? Can I also ensure that every page on the web application fetch data from the server side instead of useeffect which is not SEO friendly. What I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert an Element into the dom in backdraft How do you insert an Element into the DOM via a bdAttach? class Foo extends Component { bdElements() { return e.div( e.div( { bdAttach: 'contentGoesHere' } ), ); } insertContent() { const c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: R studio no longer allowing me to download / install packages Cant install packages > install.packages("tidyverse") Warning in install.packages : unable to access index for repository http://cran.rstudio.com/src/contrib: cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES' this is what i have tried so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create something like routing on a websocket client in Unity I used to write in js and everything was very simple. I had an onmessage function, where I received data, parsed it and got the route field from it. Then it was essentially a route. That's about it. `const routes = { 'route_1': () => {}, 'rou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make the covariate in rhohat() a factor? I'm trying to use the rhohat() function to estimate changes and I have my ppp file and image file. When I run the fuction I get this error Error in spatialCovariateEvidence.exactppm(model = list(X = list(window = list( : Only implemented for multitype models (factor m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R - ggplot mapping data on international country I am trying to map a zoomed-in view along the Mwanihana forest in Tanzania. I have looked into Plotting latitude and longitude points in r, but can't get it to work for my dataset. Data <- date forestsite primaryinterface secondaryinterface ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hosting Full Stack Web application I'm getting ready to do a soft launch of a software I created. It uses MongoDB. I guess I'm confused on how the hosting workings. Is MongoDB purely for hosting my Database? Any recommendations or explanations of how this works would be great. Looking for something I can scale into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Play Console's Data Safety section - Is this data required for your app, or can users choose whether it's collected? Here's a question asked in Google Play Console's Data Safety section: Is this data required for your app, or can users choose whether it's collected? Two options are given: * *Data collection...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the Mapbox MBXCLLiveTrackingClient timeoutAllowedCheck stream in the Xcode debugger a side effect? I have an iOS app using the Mapbox iOS SDK 10.11.0-rc.1 that outputs the following line every five seconds: 2023-02-28 17:04:11.470592-0800 xxx[5422:353138] -[MBXCLLiveTrackingClient timeoutAllowedCheck] 2023-02-28 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Segmentation fault / Truncated or oversized response headers error on a previously working django app after configuring apache to use SSL and OIDC I had a working Django Web Application deployed on the intranet (not using ssl) at my company for the last 6 months. After setting up OIDC and SSL, my django application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object Reference Not Set To Instance Of Object When Using InputField Script I just started learning how to do basic things in Unity. I am trying to learn how to use a text field box. I have followed several tutorials and copied everything but I always end up running into one of two problems. First I get the error st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Displays aside panel below picture on small display please, I'm stuck on CSS grid properties. I know the solve with using flex and divide it between wrapper main and aside in flex but I think that grid knows this. This behaviour is fine (on normal displays). But want if I want show the plus/minus properties (class c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which status code to use after deep pagination limit We have an API and we want to reject requests beyond page 99. EG: GET example.com/users?page[number]=99 # Allowed, returns 200 OK GET example.com/users?page[number]=100 # Disallowed, returns ??? What is the most appropriate status code to return? We are consideri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible in Azure to restrict deployment of bicep/template files to management groups to certain users? I have a fairly simple initial management group hierarchy set up that looks as follows: Tenant root group-> Company Name-> Application Landing Zones-> Project A Sandbox Ideally, I'd like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mesh teleport not teleporting So I was trying to help someone design a map, they wanted the portal to teleport them to various places, but when I put the code in, it doesn't teleport, this is my code: local Pad = game.Workspace.Portal2 script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check stored procedure with function if another column is not null I wrote a stored procedure and it works, but I haven't made a validation at the beginning, the validation is if the other column is not null you cant execute this function, where do I put this validation and what does it look like? The validat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Integrating chatGpt with rasa chatbot Can someone help me to integrate chatGpt with my rasa chatbot?? I already did everything i could but the Chatbot is generating random wrong results with chatGpt. Don't know what to do next
{ "language": "en", "url": "https://stackoverflow.com/questions/75598761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use variable across an entire class? I'm trying to use the var client in Awake() from within case EKeyboardKey.Enter: so I can post a status to Mastodon without redefining the variables each and every press of a key. namespace MastodonMonke { public class MastodonMonkePostView : ComputerView { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: IE 11 does not register ActiveX I have legacy ActiveX. This ActiveX has been working very fine. But something went wrong at one PC and IE 11 cannot register this ActiveX. I see folder with name 'CONFLICT.X' inside Folder C:\Windows\Downloaded Program Files How can I fix this problem?
{ "language": "en", "url": "https://stackoverflow.com/questions/75598763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to write Advanced Policies for IHP DataSync? I have the following schema: Users: id, name Group: id, room_id Rooms: id ChatMessages: id, body, user_id, room_id, created_at The Guide shows how to create a basic policy for user_id column with ihp_user_info() function. However, here I want to create a policy fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to play video file with audio with DearPyGUI (Python)? I'm using DearPyGUI to make a simple media player that can play video file (mp4, etc.) together with it's audio. The pre-requisite is that DearPyGUI is a must, however video feature will not exist until v2.0, which is still far in the future. Currently, I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to test domain project updates in Anypoint Studio We are making updates to our Mule 4.3 domain project (runs on-prem in Prod environment). I would like to test initially with one or two of our projects/apps. However when Studio starts a test run (via Run Config), it always puts both the old and new domain versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run-time Error '1004' The file could not be accessed in Excel 2016 I've been given an Excel 2016 spreadsheet which I don't own and do not maintain. A macro is mapped to a button, which passes a filename such as .\input\common\datafile.txt. The spreadsheet ships with the datafile.txt file in the input\common\ subdire...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a column to a dataframe based on another dataframe I have a dataframe like this some_info THIS_info abd set_1 def set_1 www set_1 qqq set_2 wws set_2 2222 set_3 and another dataframe like this THIS_info this_algo set_1 algo_1 set_2 algo_2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tag geo information to an entity How to tag geo information to any entity such as shopping mall, library, etc. Each entity will be created as an Java object in the system. Eventually while searching, based on the location, those relevant entities should be identified.
{ "language": "en", "url": "https://stackoverflow.com/questions/75598782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Convert list to JSON Lines file and write to Django FileField on S3 Let's say I have the following list of dicts: data = [ {"a": 1}, {"a": 1, "b": 2}, {"a": 1, "b": {"c": 3, "d": 4}}, ] And a simple model with a file field backed by S3: from storages.backends.s3boto3 import S3Boto3Storage class S3Stora...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure API python SDK error "PrivateIPAddressIsBeingCleanedUp" Im trying to configure a network interface in Azure with an IP address and I'm seeing this error code as response: Code: PrivateIPAddressIsBeingCleanedUp Message: IP configuration deployment/providers/Microsoft.Network/networkInterfaces/0772E133C192_EXT_N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bitbucket Artifact not pupulating files to next step I am doing a bitbucket pipeline with 2 steps, build and deploy. After build I need the generated file in the next step, but artifact is not working as expected. Even though the folder I am creating ("build") is in the next step, the file inside the folder is not....
{ "language": "en", "url": "https://stackoverflow.com/questions/75598793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add a comment for script in aspx file and remove it when compile? The following code is from a aspx file of Vs 2019, I know I can add the comment "This a comment for aspx" in body, and it will be removed when I compile the project. How can I add a comment for script? At present, I use /* This is comme...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use compiled Svelte as a script that connects to different websites? I wonder if I can write some Svelte code, compile it to a single .js file, and connect it as a 'widget' to other websites? For example, I will create a floating modal and the modal will appear based on a website domain. The user will just add...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failing to verify existing password hashes with ruby BCrypt I'm currently running into an issue trying to implement an authentication on Ruby on Rails against an existing database with existing password hashes. I do have a couple of existing plaintext passwords readily available, so I know a few plaintext/hash pairs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Numpy function/method to calculate moving range? Want to calculate moving range in numpy. Wrote function using Pandas, want simple/fast way to return numpy array with equivalent values. Don't need the name of new array, just the values. def get_moving_range(my_series, na_replace_value=None): """Returns calcu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert different length list in pandas dataframe to row in one column I have a table like this in pandas, the date is always Friday but it could be not continuous due to holidays or other reasons, and in Target, it is a list that contains the performance of next week, the length of the list in the last row could be...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django, Ajax, csrftoken. Please tell me what is the problem UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext. warnings.warn( On HTML templates everything worked. After switching to AJAX, this error appeared Tried th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Variadic Template function returns a std::tuple with the same template argument types I have this kind of functions to parse binary data stream from network. It works well: template<typename... Args> inline void Func(char* data) { cout << "unknown" << endl; } template<> inline void Func<int, std::string>(char* ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A markdown note taking app that handle large file with lots of math function (latex) mode as my current note taking app. I would like to use a better note taking program to better manage my different notes and access them. But one of the problems is that my note contains lots of math functions, which most of the not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In a git or github repository is there a way to notify or set a status that you are working on an issue? I know you can assign an issue to a specific person but is there a way to define in git or github that you are working on a specific issue? A: You have to differentiate between git and GitHub here. Git is just a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: fromisoformat: argument must be str in datetimefield I hav e a model in my models.py as ` class PassForm(models.Model): name= models.CharField(max_length=100, default=None) time_periode = models.ForeignKey(SubTime, on_delete = models.CASCADE, default=True) school_name = models.ForeignKey(admi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable autocomplete in jQuery Datatables search box Is there a simple way of disabling a data table search box to not allow browsers to auto-fill values into them? Can't seem to find anything on the documentation on how to prevent this.
{ "language": "en", "url": "https://stackoverflow.com/questions/75598814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to convert doc and docx files to PDFs in GCP Cloud Function using Python? I have a cloud function in Python whose objective is to load a .doc or .docx file from Firebase Storage, and convert that into a PDF prior to sending back to Firebase Storage. I currently have the following code which is working: def handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Java Date mapping postgresql timestamp has no time, minutes and seconds Java uses java.util.Date to save timeStamp type fields in postgresql database, and finds that there is no time, minutes and seconds, only year, month and day, which is very strange. I have tried to convert it to java.sql.Timestamp at the Java le...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: tensorflow 2 debugging and program execution vs pytorch So I'm coming to tensorflow from pytorch and have some confusions. This is a program from https://albumentations.ai/docs/examples/tensorflow-example/ import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tensorflow_datasets as tfds f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should two elements be handled in React if they are simultaneously attempting to access and update the state? I have two elements that share the same state. I want to make changes in one element that need to be reflected in another element, and vice versa. My current code is not allowing me to run and is not thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to remove item based on ID in EF Core My goal is to remove an item based on the ID. Here is the code I currently have: public async Task<IActionResult> RemoveTodoItem(int id) { // TODO // Use EFCore to remove the item based on id var todoItem = await _context.TodoItems.FindAsync(id); if (tod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SpringBoot Admin with Spring Cloud Kubernetes Discovery Server - Services that are DOWN not showing We are using Spring Boot Admin on our Spring ecosystem. All services are running in k8s, so we installed Spring Cloud Kubernetes Discovery Server as documented here: https://spring.io/blog/2021/10/26/new-features-for-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex match reverse I have a string string: Octane_2022.1.0.6_Houdini_19.5.493_OSX.zip and regex currently regex_search('[0-9]{2}.[0-9]') This will get 2022. The expected result is 19.5 whatever is in that field. Essentially, I need to always gather the base version number of this installer. It works fine when...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When I run a PyTorch model, the model's layers are also printed. How do I stop this? When I run a PyTorch model in a JupyterLab notebook, the model's layers are also outputted. For instance, I am training a 3D-Unet. I train that Unet like so, y_ = model(inputs); When that code is executed, however, the model is run...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to remove element in array object array : array before [ { id: 1, test: [ null, 2, 3 ] }, { id: 2, test: [ 1, 2, 3 ] } ] array after [ { id: 1, test: [ 2, 3 ] }, { id: 2, test: [ 1, 2, 3 ] } ] how to remove value null? I have tried with this function but it doesn't work what is wrong with this functionl in array...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why can't I read a file in Flutter using "file_picker"? I am trying to read a file from user's device and upload it on AWS. This is my upload button functionality: onPressed: () async { FilePickerResult? result = await FilePicker.platform .pickFiles(allowMultiple: false); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Please some one help me to remove that error module not found error I don't know what i missed up, i come across this error, after spending log time using django. I set up everything but this error is showing. i create the project using django-admin startproject, and also for the app django-admin startapp.. i put th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: link NVM environment variables in windows 11 to avoid rewrites I've just been reading this article and I'm looking to hook up my path to the global expo module folder. The only problem is I use NVM and I have 5+ versions of node... Is there a sensible way to set this up so that I'm not having to change my path envir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Excels LinkSources in VBScript I am using basic VBScript to open an Excel workbook and update the links in it to another Excel workbook. If I open the file manually, I can update the links readily. However, if the same Excel workbook is opened via VBScript there is an odd situation where the links cannot find...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: package or namespace load failed for ‘tidyverse’ -- error: object 'glue_' not found Does anyone know why I'm getting the following message when I load tidyverse in a new session. (I have the most recent version of tidyverse, RStudio, and R.) Error: package or namespace load failed for ‘tidyverse’: .onAttach...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I set different CSS styling for Table of Contents in Quarto? I am looking to set the alignment for the main text to 'justified' for my Quarto book using the following custom CSS file: body { text-align: justify; } However, this also makes the Navigation tool and Table of Contents for each chapter to be ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I identify and turn roman numbers into integers in "mixed" observations in R? I have a data frame with a column that contains observations that mix characters (words) and roman numbers. It also has integers, only characters (like the observation "Apple"), and NA's, but I want to leave them unchanged. So it h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use graaljs to get a variable of function defined I'm trying to write a setTimeout(code, delay) function for my application. I need to get the corresponding function from this string code to execute. export function main(){ let foo = function foo(){}; setTimeout('foo()',50); } I can only get the expo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I test global JavaScript when in GeoGebra editor? I am enjoying geogebra and trying to get javascript added to my project https://www.geogebra.org/m/sqrx5zqy I can't seem to get my javascript to respond when editing. When I start the timer slider the javascript does not 'listen' and the alerts and changes to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when using pandas to read a json dataset i'm facing Key error for Timestamp import pandas as pd import json import numpy as np import datetime # Define chunk size chunk_size = 1000 # Create a generator to read the JSON file in chunks data_generator = pd.read_json( "/home/pi/AMG8833_IR_cam/examples/combined_dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm having a hard time while conguring a Keras/tensorflow model i'm trying to create this ai model that can help me to generate, modify videos. I've faced some error previously but i was able to bypass them. Anyway noww i'm stuck in a terrible, annoying error and my head hurt me while trying to solve it, i'm tired i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nuxt 3 useFetch POST request send a 419 unknown status error I develop a web app with NuxtJS and Laravel. When I send a POST request with useFetch, I have a 419 error, and no more information (it is an unknown status). I launch sanctum/csrf-cookie request, and keep token in variable : var token; await useFetch("htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the compact feature of TDengine what is the compact feature of TDengine? As I know TDengine 3.0.3.0 would own a compact feature to improve performance of TDengine . May I know the detail of it?
{ "language": "en", "url": "https://stackoverflow.com/questions/75598882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: use variable expansion failing in sed for inserting string with 4 tabs in a file Team, I need to insert a string at a certain line in a file after certain tabs. bonus: I also need to skip insertion if it already exists. cat test.txt 1 2 3 4 5 sed -i '3i\ \t\t\t\t<file branch-rate="0.0">' test.txt cat test.txt < af...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bind overload template with parameter pack I'm using pybind11 to use C++ code in Python, and I'm struggling to find the best way to bind some generic template code: class MyBase { public: using Ptr = std::shared_ptr< MyBase >; MyBase() = default; virtual ~MyBase() = default; /* ... */ }; class M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: namespace '' already contains a definition for - Im very new to all this but I was trying to get a gun to shoot and I ran into this error: Assets\Low Poly Guns\Scripts\PlayerShoot.cs(6,14): error CS0101: The namespace '' already contains a definition for 'PlayerShoot' Here was the code: using System.Collections; u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NextJS with MongoDB - Why does "Module not found: can't resolve 'DNS'" error happens when I move function in different /lib file? I luanched nextJs with MongoDB. In my root directory, I have the /lib/mongodb.ts that returns the clientPromise properly. Then, in my /lib/beers.ts I have this function: import clientProm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading Google Cloud Run mounted secret From my understanding, I should be able to mount a secret file to a Google Cloud Run service and be able to read the file later on. However, I keep getting an error: [Error: EISDIR: illegal operation on a directory, read]. I've already tried changing the service account to hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Datadog Android SDK Gradle Configuration I followed this steps https://github.com/DataDog/dd-sdk-android-gradle-plugin regarding the setup of datadog gradle plugin. As it says in the documentation put the datadog configuration at the end of the app/build.gradle. The problem is even though I configure the datadog's v...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java regular expression to split a string by dashes positioned outside of double curly braces I have some strings that I want to separate based on dashes but only if dashes exist outside of double curly braces like below: {{abc-def}}-123-benefit-{{ghi}} should break into {{abc-def}}, 123, benefit, {{ghi}} abc-{{123-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image not loading properly in production but working fine in development The client is using cpanel to host a website. It was coded long back ago. When I run the php file on my local browser then it is working fine but on production endless loading is going on but the image still doesn't load. What can be the possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to use a separate event loop for a pushbutton in a separate thread How do I use a separate event loop for java swing components which are in a separate thread? (This is NOT a debugging issue.) A: Swing has a single event thread, see https://horstmann.com/unblog/2007-06-11/swing-single-thread-rule.html Instead...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Problem when trying to render a HTML page using Node and Express I'm trying to render a HTML document by using express. The code that I'm doing below: import { URL } from 'url' const __dirname = decodeURI(new URL('.', import.meta.url)) import express from 'express' const app = express() const port = 3000 import ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stuck migrating Pinescript v2 to v4 Noob learning here! after a couple of days trying to convert a pinescript V2 to V4 from a extended script.. I cannot make a clean migration for the next part of the while script. When save and it’s compiling, The recursive error messages don’t stop and been reading many instructio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: White label error page [Spring Boot 3][@RequestMapping] I am trying to get my record class store information from my ContentCollectionRepository and display it in the web browser. I am using @RequestMapping to define the specific path to follow to find this resource but I keep getting "Whitelabel Error Page, This a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to display an image clicking on it using modal window on HTML, CSS and JS I'm trying to show an image when I click on it using a modal window, but, when I click on it doesn't display anything. The code is the following: HTML <!DOCTYPE html> <html> <head> <title>Seccion 1</title> <link rel="stylesheet" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configuration of SSO with external IDP on AWS I have went through all the steps on my external IDP (jumpcloud) to configure SSO to work with AWS on certain IAM policies. However, in the IDP user portal after clicking on AWS application an error shows (attached). Any reasons as to what the fix is? I have followed all...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stored Procedure WITH SINGLE QUOTES Hi i have the next SP: CREATE DEFINER=`admin`@`%` PROCEDURE `get_products_id`(IN column_name VARCHAR(50)) BEGIN SET @column_name = column_name; SET @query = CONCAT('SELECT `p`.`id` AS `id`, `p`.`image` AS `image`, `p`.`globalClasification` AS `glo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ProgressBar is not displayed instantly in android studio (java) I am trying to display a progress bar in an activity that is supposed to show instantly after pressing a button. When a button is pressed, the following method is called : private void onStartClick() { start.setTextColor(getResources().getCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculating mean in R (column from dataset) I am trying to calculate the mean from a column in a dataset I have. This is the following code. ATLANTA = complete_dataset %>% filter(club == "ATL") %>% select(base_salary) ATL = mean(ATLANTA) print(ATL) I get the following error: In mean.default(ATLANTA) : argum...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why we have integer 1 in strict_types=1 instead of boolean true? I know that to enforce the scalar types, we use declare(strict_types=1) But my question is, why use the integer 1? Is it representing TRUE's boolean value, or does it have to do something different? A: PHP is written in C. Older versions of C before...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Ruby bundler support shallow git cloning? How can one refer to Gem dependencies stored at a Git URL without cloning the entire repository in order to make the fetching as efficient as possible? After searching, I found a bug trail to https://github.com/rubygems/rubygems/pull/4475 and no documentation upon https...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why data is not inserting in database (mysql) and don't show any error? PHP code <?php header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Methods: POST,GET "); header("Access-Control-Allow-Credentials:true"); header("Access-Control-Allow-Headers: *"); header("Access-Control-Allow-Headers:Content-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to cast Application's ViewController to Framework's Storyboard ViewController? We have a framework which has the business logic and two different client applications are using the framework. Framework UI has been designed in Storyboard. One of the client application required different functionality with the exis...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why in flutter, setting property mainAxisAlignment to center for column also center it horizontally? I'm new to flutter, While practising the row and column widget I encountered this problem. It's said that setting mainAxisAlignment to center in a flutter column will center the children vertically, Why when I added ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can private browsing prevent CSRF vulnerability? While I know there are standard ways to prevent CSRF attacks like use of CSRF tokens etc, I want to know if the CSRF vulnerability can be prevented using private browsing (incognito mode browser). As I understand private browsing would prevent accessing my site specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Equivalent reguar expressions giving different results with javascript split() I'm trying to use split() in JavaScript to have a string of the d attribute of a path svg tag splitted. However I'm confused about how split() works with regular expressions. Firstly, I'm assuming that both expressions /[\sMC]/g and /(\s|...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github white arrow on folder, wont deploy website I recently came across a tutorial for using three.js (https://www.youtube.com/watch?v=Q7AOvWpIVHU). I cloned the github and worked on it myself and made a few changes to the main.js file and the index.html file. I am able to see these changes when I run it on localho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is my json response transformed with a header and body? I have a rest full service I call from BizTalk using a custom pipeline. The request works fine, but on the response the xml did not transform to canonical. I used passthrough to get hold of the xml and got the following below: <s:Envelope xmlns:s="http://w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: uploading files to s3 becomes 69 bytes The following is to use the go-sdk of aws s3 to upload files, but the file size after uploading is inconsistent with the actual file size. Here is the code I wrote: package main import ( "fmt" "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I don't have role option in my GitHub repository I should have a role option as it is in GitHub tutorial. Instead I have this: How can I unlock this option? I tried to make a repository public. It didn't work. A: It looks like that for personal accounts there are only two types of permission levels: repository ow...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does the argument "isTest" actually do to testPartExecutor in case.py in Python Unittest From:https://github.com/python/cpython/blob/3.8/Lib/unittest/case.py line:56 def testPartExecutor(self, test_case, isTest=False): ... This argument of "isTest" was not found in function body. I don't know "isTest" actully e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the negative effects of setting a value to what it already is? I am hoping to get information on the negative computational effect of setting specific objects to a state regardless of what the current value is compared to checking and updating only if it is different. One instance is of this would be as fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for matching addresses I need a pattern that checks for the presence of a US street address or PO Box. The part I don't know how to do is specifying that the string must begin with either a number up to 6 characters or any combination of PO Box such as (PO BOX|P.O. Box|BOX). How do I combine this non-literal w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logstash warning Opensearch unreachable I have deployed Logstash 8.6.1 with the logstash-output-opensearch plugin. This is the config related to pushing the logs to OpenSearch: output { if [type]=="logback" { opensearch { hosts => [ "https://search-x.ap-southeast-1.es.amazonaws.com" ] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twilio powered laravel App implementing VOIP Browser Call Functionality using Laravel, AlpineJS, Twilio JS Client and Twilio PHP SDK I am building a Twilio API powered Laravel app. The Laravel App should basically be a UI for the Twilio API, hence making things easier for the user. The one, who I am building this ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: I am not able to figure why I am getting this error I am requesting a file to be uploaded but I get a keyerror even though I have name="imagefile" in my form. from flask import Flask, render_template, request app = Flask(__name__) @app.route('/',methods=['GE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to disable activities about people starring my repo on github home page screenshot I don't want to know if someone starred my repo, how can I disable it. I want to keep it clean for browsing activities by others (like if someone I am following publish a new repo) not by me.
{ "language": "en", "url": "https://stackoverflow.com/questions/75598955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A strange problem about updating useState Here is my code : const {useState, useEffect} = React; function App() { let [count, setCount] = useState(0); let [num, setNum] = useState(0); useEffect(() => { setCount((pre) => { return pre + 1; }); setNum(num + 1); }, []); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do we create Payload in Jmeter using Groovy Scripting How do we create Payload in Jmeter using Groovy Scripting in format [ { "test": 123, "number": "welcome" }, { "test": 123, "number": "welcome" }, { "test": 123, "number": "welcome" } ] Tried below code but it has name for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }