text
string
meta
dict
Q: How to add text AFTER inputs in Django forms I have a form which ideally would render like this: <label>Price: </label> <input type="number" />USD Visually it would be Price: |___________| USD I know that the label attribute of a form field can add text BEFORE an input, but I want to know if it's possible to add t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pyplot table : Each row in 'cellColours' must have 2 columns I want to transform a dataframe into table and have the following code : import pandas as pd import matplotlib.pyplot as plt # Create a dataframe df = pd.DataFrame({'Name':['John','Barry','Irene','Paul','Ricky','Jenny','Tina','Linda','Toby','Peter'], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deserialize Json Object containing map with null values to Immutable with Jackson I'm trying to deserialize a Json object that contains the following structure but am getting an error from Jackson during deserialization due to null values appearing in the the map containing the Json object. Is there a way to deseria...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix the error "Required Attributes birthday" in AWS Cognito with Google OAuth2.0? I'm working on my React Native project with AWS amplify and I want to implement Oauth2.0 into my authentication process(first time using Oauth2.0) I followed to docs on aws-amplify about OAuth2.0 and I believe I set it up correc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upgrade to Spring boot 3 with Jakarta EE throws a runtime exception Unable to build Hibernate SessionFactory I am trying to upgrade my project from Spring boot 2.7.2 to 3. the project depends on a library that contains the entity classes. Following is the pom.xml for the library, where I have moved from package java...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when re-entering a Django web application In a web application, I get a CSRF-Token error when logging back in after the user logs out. Of course, this problem only occurs when working with a smart phone. I put the {%CSRF-TOKEN%} tag in the designed login form, but this error occurs only on smartphones and afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MUITableHead color overriden by palette.text.color I want to use a different color for TableHead cells and TableBody cells. I have added the custom theme for both but the TableHead colors are being overridden by the palette.text.color. How can I fix this? const theme = createTheme({ palette: { text: { pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to reverse-beautify python code? A specific unique task I have in mind requires me to read a text file (the text file only consists of python code) and store each line from the file in a list. However, there is one catch. I require each line to be complete. What I mean by complete is if a group of seq...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: TypeScript Assignability between Parent method and Child class method is different from regular function's assignability In typescript, when doing assignment for regular function, the param in target function should be assignable to the param in the source function. For example, in the below code, the param "name" i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run a large section of code in R with code (to initialize start of section and end) I'm running a large section of code and don't want to repeatedly do "highlight code" + ctrl+enter approach. I know I can put the whole code into a if or loop like below. for for (all in 1 ) { the whole code section } if (1==1){ the w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a js radar outer ring always the same value I am displaying a js radar chart but trying to have the default ring/range/background (not sure if these are the right words) always the same. Currently, it changes depending on the values and the values are percentages. I would like to have it as the outside r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pivot in Snowflake? Suppose I have the following table. How to pivot three columns prefixed with part_ per customer_key for the top 3 orders? +--------------+----------+---------------+-------------+----------------+ | CUSTOMER_KEY | PART_KEY | PART_QUANTITY | PART_AMOUNT | TOP_ORDER_RANK | +--------------+--...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Listview.builder -> Height of Container is stretching in Flutter, even if I put smaller value? I am using Listview.builder with expanded as its parent due to column, but I am getting empty space at the bottom of this Notice Board widget. I had used every type of method to prevent this space but fail to get the desi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to track page/route is user currently on? Flutter navigation How to track page/route is user currently on? Flutter navigation Tried to google, but couldn't find the answear
{ "language": "en", "url": "https://stackoverflow.com/questions/75566355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Abstract tree shakable API design More and more JavaScript/TypeScript libraries shift towards a tree shakable API. In my API I have various "things" of the same structure. What do I mean by "thing": A "thing" can be understood as an "implementation" of a structure. However, I am not calling it implementation, becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: react state is not updating on onCick function i am updating my state on onClick Func but its not updating , This is my State const [loading, setLoading] = useState(false); my OnCLick func const handleBookmarkButtonClick = () => { setLoading(true); //rest code...including an async func }; console.log("l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible for byte arrays, returned from BufferedStream.Read(), to have different lengths? We have this old code in our repo: bool BufferByteCompareFiles(string filePath1, string filePath2) { int bufferCapacity = 0x400000; var firstFile = File.OpenRead(filePath1); var secondFile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: torchscript with huggingface Pegasus model I am trying to put in production the following huggingface model : https://huggingface.co/tuner007/pegasus_paraphrase using torchserve. I think the first step should be to save the model using torchscript, and this is the code I am using: import torch from transformers impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set action after delay Kotlin Im trying to refresh my Fragment with task after a period of time. I've tried this val executorService = Executors.newSingleThreadScheduledExecutor() executorService.scheduleAtFixedRate( { dailyRefresh() }, 0, 10, TimeUnit.SECONDS) This is placed within onVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I install vs code for reactjs in windows 7? I install version v13.14.0 of nodejs for my laptop because the version of its window is 7 and does not supported higher version of node . But I can not install vs code and has error and does not install. How can I install vs code for reactjs in windows 7?
{ "language": "en", "url": "https://stackoverflow.com/questions/75566368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Whenever I'm adding the mongoDB cloud server link it show the ejs error but when it runs on local server it doesn't show error it runs successfully Whenever I'm adding the mongoDB cloud server link it is showing the ejs error but when it runs on local server it doesn't show any error it runs successfully facing a lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to pack linked files from referenced NuGet packages I have a build-properties-defining package that is to be used by all the libraries. Some libraries may provide a json file, that should be retained when they're referenced by some other libraries and then, ultimately, all the configuration files should be trans...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: make: *** No rule to make target 'obj/main.o', needed by 'myftp'. Stop I'm making an FTP server from scratch in C. I need a makefile to compile. his is the architecture of my project : / include / header file (*.h) src / potential sub directories / *.c *.c main.c M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: There's an error when I try to run it. Any help? This is from RStudio, for R There is a sustianing error in the code: Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "c('matrix', 'array', 'double', 'numeric')" Tried to change the variables, but ended up with the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to join against a programmatic list? I know that EF Core is worse than EF6 when it comes to this, but maybe there's a workaround for the following issue after all. I want to do this untranslatable query: List<String> newEmployeeEmails = ... var existingEmployeesQuery = from oe in Db.Employees ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate paypal signature validation I am trying to build a subscription functionality in laravel project. 1st payment works fine but I am using webhooks for cancellation and other payment but getting error on paypal signature validation. I am using spatie/laravel-webhook-client package for webhooks but when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot resolve method 'forDefaultResourceLocation' in 'SpringFactoriesLoader' Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.core.io.support.SpringFactoriesLoader org.springframework.core.io.support.SpringFactoriesLoader.forDefaultResourceLocation(java.lang.ClassLoader)' Cannot resolve ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QEntities are not generated I created a spring boot project but QEntities are not generated. Can anyone help me figure out how to fix this? Thanks. The error that I get is: QAppello cannot be resolved to a type. Appello is an entity of my project and AppelloRepository is its repository. I tried to post in pom many d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to match optional whole words with python regex I use regualr expressions frequently, but often in the same similar ways. I sometimes run across this scenario where I'd like to capture strings with optional whole words in them. I've come up with the method below but I suspect there's a better wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fixed Effects and Random Effects I'm currently working with panel data and I'd like to conduct a Fixed Effects and Random Effects Analysis. Since I'm not familiar with those types of analysis, I don't know what commands I should use in R. I'm currently working with a dataset that shows how the speaking time in the g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot read external .cl file. String is empty. (Ubuntu 22.04, C++, ROS2) i am facing am problem using OpenCL for the first time (Version 1.2, on Ubuntu 22.04LTS). I am trying to work with OpenCL and ROS2 together, so the following code is executed in a ROS2 node through a launch file. I installed the drivers from I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSRender : Recursive Call to Parent Template I have use-case wherein the input json can have n number of nested child objects and for that I want to display tree structure. Probably need to have some sort of a recursive rendering logic to achieve this. I am new to jsrender so can someone please help me with a sample...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Celery: memory not released from workers running python code So this isn't the first time this question is asked here, but it's a slight variation. I have a file conversion task loading in several GB of data files, chopping them up, and writing them into a new format. This task will continously scan for new files an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the last page Number of a wabpage - aiohttp I have a project to scrape the amazon site. however, I can't get the last page number for pagination. import telegram, aiohttp async def main(self,links ,semaphore=8): try: s = HTMLSession() async with aiohttp.ClientSession() as asession: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change BottomNavBar colour Flutter I have a flutter website with a bottom navigation bar, the bar however is white with white text. I don't know how to fix it so the icons and text can be visible. I tried setting the background colour but it keeps ignoring me and setting it to white. Here is the code for the screen:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ReactJS adding something to database will display after refresh I connected my app to my database and at first, it fetches the data from the database and displays the result based on the values in the database. I added a post request and handled it in the backend. When I add something to the database it will be adde...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Captured images are rotated 270 degree clockwise on android I am developing a simple Camera App for android. I create a CaptureSession and CaptureRequest. The target of the captureRequest is a surface retrieved from ImageReader. The result of characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION) is 270 degre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is gRPC server side stuck after client is done streaming (client and server both written in dart)? I want to upload an image from client to server in gRPC. For this purpose i have created the proto file below: syntax = "proto3"; service EshopService { rpc UploadImage (stream ImageToUpload) returns (ImageLin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to build G3D Library - Header not found: 'string' I am following this guide in order to compile and install G3D library. I got this error when I try to build G3D on Ubuntu 22.04, and when I run ./buildg3d lib data tools I got this error: Building libfreeimaged.a Computing dependencies Header not found: 'str...
{ "language": "hi", "url": "https://stackoverflow.com/questions/75566412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot autowire argument $user, it references class but no such service exists after removing sensio/framework-extra-bundle Symfony 5.4, php7.4. After removing sensio/framework-extra-bundle, as it is abandoned, all routes which contain ids returns an error message: Cannot autowire argument $user of "App\Controller\B...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble setting a custom banner when installing an Electron application using Electron Builder I'm having trouble setting a custom banner when installing an Electron application using Electron Builder. I've tried following the documentation and various tutorials, but I haven't been able to get it to work. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing .tcx workout files that specify it is a virtual exercise path I am writing .tcx files from software of a new exercise device that works in virtual environments. However, in examination of tcx schema, etc., I don't see how to specify a virtual bike instead of a real bike. I have looked at exports from other...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerPoint JS API: insert an image and set the title at the same time I am using Script Lab to build my add-in for PowerPoint on the web. I want to insert some images and encode extra information for each image in the title. The information I want to store depends on the content of the images. From the example provi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: osm2pgsql is taking forever to process with lua config My osm2pgsql script is taking forever to load data into my database and I don't know why. The reference lua scripts which perform similar computations take 1/10th the same amount of time. I know my personal computer won't blaze through the data but its taking ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve value from Hashmap using partial key I have a HashMap with key type (i64,usize) Suppose I have an use case to retrieve data from this HashMap using only first part of Key tuple. For example I have sample data like this (-1, 1): "1st -1 Resident", (1, 1): "1st 1 Resident", (1, 0): "Oth 1 Resident", (1, 2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does this SassError occur? This is the alert.scss file @mixin alert-variant($background, $border, $color) { color: $color; @include gradient-bg($background); border-color: $border; hr { border-top-color: darken($border, 5%); } .alert-link { color: darken($color, 10%); } } it retuns this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in D:\BlockChain\IPFS\node_modules\ipfs-http-client\package.json I am working on a project where I just want to save some data in the IPFS. I am using node.js and Infura to do this. But while running the code I get D:\BlockChain\IPFS>node app.js node:i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include a remote library in spacevim? What to do if spacevim does not see the remote java library? version : 2.1.0-dev (i'm use termux 0.118.0) I tried to find information about this on the sites but found nothing.
{ "language": "en", "url": "https://stackoverflow.com/questions/75566430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which CRC extension option is better: filename.sha3 or filename.txt.sha3? Which CRC extension option is better: filename.sha3 or filename.txt.sha3 ? Please help
{ "language": "en", "url": "https://stackoverflow.com/questions/75566434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How do I create priority pathfinding system without If statements I recently began a new project, which is almost finished. As far as the code goes, all I need to do is add AI to the game. I chose A* pathfinding because it was the best option for me, but I also added enemy personalities to make it more interesting. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Impossible to make clang/llvm works in Code::Blocks (Windows 10). Is it real? This is my first post. So if something is incorrect in formatting text, please tell me about it. I'm the most beginner of beginners. I was wondering whether it's possible to make llvm compiler works in Code::Blocks. I'M USING WINDOWS 10. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can you still get a job programming imperative javascript in the 2020's? That's the whole question. I'm down with component based development but I've been doing js for 20 years and I have my own opinions and don't need a framework to tell me how to structure components. I also like the freedom that comes with mut...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Getting System.FormatException: Input string was not in a correct format. while trying to upload a file from Angular "System.FormatException: Input string was not in a correct format while trying to upload a file" from my Angular application to asp.net 6 backend api. My client side code goes as follows onFileSelect...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to map through an array of objects and add the total in each object to a variable in Javascript Here is an array of objects const items = [{description: "Cement", total: "150"}, {description: "Mortar", total: "200"}, {description: "Sand", total: "100"}] I want to add the total of each object to a variable so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make a new column based on a condition in existing column in R? I have weather recorded at daily intervals. I need to make new columns based on existing columns mean_rh, mean_temp and mean_ws. For each year, I need to calculate the exposure duration for each unique combination of temperature/humidity/wind speed val...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding SystemTime::now() behavior I have the following code use std::time::{Duration, SystemTime}; use std::thread::sleep; fn main() { let now = SystemTime::now(); let delayed_now = now + Duration::from_secs(10); let x = delayed_now.duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs()-(n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling Appointment form in web application So I’m creating a web appointment booking system using flask, html I have completed the sign up page log in page the routes basic user dashboard but I was really confused on how to go about creating the appointment form. How will I be able to display the calendar, show th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Flutter: Images go off device screen. SafeArea won't work I'm trying to make sure the UI will be fit and aligned to the screen correctly in most devices that will use my app. In particular, images, which I found getting off screen on my phone, but in the emulator it's exactly fit. As you can see in the images: In An...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Conda is installing older version of Spades even though latest version is there in the bioconda I am trying to install spades using conda. Even though the bioconda has the latest version, the version getting installed in my system is an older version 3.13. Initially, I thought creating a new environment (with python...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my code keep outputting java.lang.Error when all my methods seem to be fine `import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Angular problem with array constructor and oninit src/app/views/tasks/tasks.component.ts:12:3 - error TS2564: Property 'tasks' has no initializer and is not definitely assigned in the constructor. 12 tasks: Task[]; export class TasksComponent implements OnInit { tasks: Task[]; constructor(private dataHandler: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel prevent N+1 query I have a controller to show relation's data by joining like this $data = App::whereIn('app.status', ['2','3','4','5','6','66','99','8']) ->where('app.file_created', '>=', $date1) ->where('app.file_created', '<=', $date2) ->orwhere('app.rejected_date', '>=', $date1) ->where(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I print/use a specific value of a key in mongo shell script? I'm running the following from the shell; const records = db.issues.find().limit(1); print('Record:', records); print('ID:', records.id); It returns one record; Record: [ { _id: ObjectId("63f94e684902f564f7d418ca"), id: 1, status: 'N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the function returns undefined when forEach is used? Why is this returning undefined? drumButton.forEach(addEventListener("click", () => { console.log(this.textContent); })) drumButton.forEach(addEventListener("click", function() { console.log(this.textContent); })) I tried using both functions, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JavaScript calculator cannot calculate double digit numbers I am making a JavaScript calculator, currently it can only calculate single numbers at one time. If I try to calculate more than 1 digit, it will not work. This is because my operands are being stored in an array, and the calculate() function takes index[0]...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# WPF PRISM - Pass multiple parameters to UserControl I am using the PRISM framework for my C# WPF application. The UserControl is inheriting from the IDialogAware Interface. What I'm trying to do, is passing multiple parameters from the MainWindowViewModel to the UserControlViewModel. But when i the OnDialogOpened...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hello guys,I am new in html and css,js.I am interesting to make 1 player like this ( www.elahmad.com/tv/kanal-turk.php) Can anybody help me with this? I am new in html and css,js.I am interesting to make 1 player like this www.elahmad.com/tv/kanal-turk.php Can anybody help me with this?
{ "language": "en", "url": "https://stackoverflow.com/questions/75566473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to activate specific PHP version My webserver (Apache on centos7) does not load the installed PHP version. php -v says I'm running PHP 8.1.16. But Apache always loads PHP 7.2. But I was running V7.4 until now. Don't know, but on nightly update routine the following package was updated: php-pear.noarch 1:1....
{ "language": "en", "url": "https://stackoverflow.com/questions/75566474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Request is not defined" when using useNavigate in Jest I am trying to test that a certain action navigates as expected. I followed all the instruction to create a memory router, but the test crashed completely with the above error when it reaches the point where it should actually use navigate. return new Reques...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my data not being stored in the session variable? I'm having problems getting reading my HTML inputs and storing the data in session variables, the end goal is to have this data inserted into a MySQL table, so if there's a better way of doing it, that would be appreciated as well :) <?php session_start();...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difficulty in understanding Kotlin Coroutine output fun main() { println("Start of program") GlobalScope.launch{ println("Starting coroutine") val result = someOperation() println("Coroutine Running thread is: ${Thread.currentThread().name}") println("Coroutine completed with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No camera on current device while running pygame module I have connected usb webcam but it still not detected but it works with cv2 import pygame import pygame.camera initializing the camera pygame.camera.init() make the list of all available cameras camlist = pygame.camera.list_cameras() print(camlist) if camera i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: window.loadFile doesn't update window in Electron So for some reason, my window doesn't update when calling window.loadFile. I've tested multiple things: * *Function does run. *HTML has no errors. *No errors. function cb(html: HTML, window: BrowserWindow) { console.log("CB"); fs.writeFile(path.join(app.getPat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems while trying to (learn to) implement my first database I'm starting to learn node.js with a small chat application, but when trying to implement a SQL database, I started facing some problems. At first, I made a separate module (database.js) and wrote some code to interact with the tables I made, in a way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Melting data in pandas python I have a data frame which have 11 columns. The data is in wide format. 1 column is unique ID. 5 columns represent Social Media apps, while 5 columns represent how much are these apps used (frequency). All the values are categorical. first 5 columns have 0 and 1 which show whether someon...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploy the same project (Django + reactjs )from github to many railway accounts I'm new to reactjs and I'm planning for a project. So, in reactjs, I have to set the Api endpoint for fetching data. After finishing my coding, I want to deploy my project on railway, so I have to set new endpoint in my reactjs project. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Renko chart- Strategy to Entry at completion of time stamp I am using Renko chart for strategy testing. I am using 1 min TF and and block size 10. I want to enter at the completion 1 min on the current price. I try to code this but unable to get opening time of next block I have entry condition in below code and als...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix Flutter package flutter_video_cast breaking iOS simulator build on Apple Silicon Mac (M1 or M2) My issue: Adding flutter_video_cast package to my project stops it building for arm64 on Apple Silicon Mac. Error (Xcode): In /<path>/ios/Pods/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.6.1_static/GoogleC...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: React wheel handler to zoom on canvas scrolls page I have a canvas where I add a background image, but when I zoom it using the onWheel action, the page scrolls as well. When I try to disable that using event.preventDefault(), I get an error: Unable to preventDefault inside passive event listener invocation I tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Differing entries within a date column, objective being to preserve columns before removing. How to best clean a "date" column like this? structure(list(year = c("Mar-10", "2014", "May-August", "2009/2010", "2015", NA_character_), date = c("August 31st, 2010", "March 13th, 2015", "May 31st, 2010", "June 16th, 2010...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does MPEG-Dash live have ?begin parameter in their URI to start playback from a particular position I have a MPEG-DASH URI like below https://test.com/default/index.mpd?begin=20230222T120430 where i have begin parameter specifying from where to start the playback. This is a dynamic MPD. I want to know is begin param...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Web API 2 - [FromBody] is null I have a really simple test app to send over a json Post to my web services. Everything is working expect for some reason the value received in the Post([FromBody] string value) is null. // POST api/<controller> public IHttpActionResult Post([FromBody] string value) { var t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add computed column and check for distinct values How can I add a computed column called computed_no2 (INT) to a table using a SQL query? Specifically, I want to increase the integer value by 1 within rows that share the same values for "Concept", "Form", or "SIN" columns, whenever there is a change in any (one or m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Wordpress - Stylemixtheme Theme Template - The login and sign up functionality is not working Screenshot Login & Signup Page When you try to register(Sign up) - When you click the register button, it does nothing and it was working before because previously students have been able to register on the website. I even...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What have i to do to implment the ui kitten theme switch? I would like to know what is the setup for light/dark theme switching and how to implement it in a react native app because i cant find anything in the doc I found the Using Theme section in the doc but i can not make it work with that
{ "language": "en", "url": "https://stackoverflow.com/questions/75566512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why local openssl is marked as insecure and Response to preflight request doesn't pass access control check my case is very simple and i never had problems before. 1. Symfony Backend (api) at localhost:8000 2. React Frontend at localhost:3000 I can access the symfony api through postman without any problems....
{ "language": "en", "url": "https://stackoverflow.com/questions/75566513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Background-image doesn't appear on the webpage code Can anyone help? Background-image doesn't appear on the page, althouth address seem to be correct, two levels up in the folder. but still doesn't appear. A: If your SASS output and referenced stylesheet is /assets/sass/app.css your relative links will be relative ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: PostgreSQL: how to convert from Unix epoch to "timestamp" until minutes? How could I convert from Unix to "timestamp" until minutes? For example, 1672718268 -> 2023-01-03 06:57 upd.: Format - not string I tried to use function: * *to_timestamp(timemodified)::date + date_trunc('hour', timemodified) + date_part('m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for splitting rgb values from a string using JavaScript I want a regex for splitting rgb values from a given string below are the test cases which should pass the check. 0 0 0 0,0,0 0, 0, 0 rgb(0 0 0) rgb(0,0,0) rgb(0, 0, 0) The regex I created to solve this problem. const regex = /(^[\d\s,]+)|(^rgb\([0-9\s,]...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ - trying to iterate through files in folder and getting a weird error I'm very new to c++ and am getting and error when trying to run this code which iterates through images in a directory and modifies them. This is the function that gets the images and I'm getting an error on this line: std::string curr_path(fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get text from quill in the server side i use quill as rich text editor in my website, But I can't get the information on the server in any way. i can use the other fields in the form in a very simple way through req.body.X app.post('/userProfile', async (req, res)=>{ if(req.user){ console.log(req.body.X); }...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: loop in python without using built-in loop features I want to traverse through a string and print it as output, without using any goto, for loop, while loop, or any list / set / dictionary comprehension. (in python) I already tested it in C++ using goto and label. Whereas , my target language to to achieve same func...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: R mutate produces error 'Must be size 1, not 10' Here is my df Airline Destination delayed ontime Total_Arrivals Alaska Los Angelos 62 497 559 Alaska Phoenix 12 221 233 Alaska San Diego 20 212 232 Alaska San Francisco 102 503 605 Alaska Seatlle 305 1841 2146 AM West Los Angelos 117 694 811 AM Wes...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Subsampling a species x sample matrix - ecology I have an abundance of data for 239 species from 140 sites. Species are columns, and sites are rows. The matrix looks like the simplified one below. I want to sample from each site 5 individuals without replacement. Is there any function that allows me to do this? mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jooq & R2DBC execute DDL I have my tables schema generated from the database, I'm trying to execute the ddl to create the tables using an r2dbc connection to an h2 in memory, but I cannot figure out what should I do. The DSLContext.ddl method returns a Queries object that is not a Publisher and I cannot find any way...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: curl: (52) Empty reply from server for mongodb #!/bin/bash # Set the MongoDB connection information mongo_host="172.16.10.10" mongo_port="27017" mongo_db="user_info_remote" mongo_collection="user_info" # Extract user information from /etc/passwd for users with UID greater than 500 and insert it into MongoDB awk -F...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check existence of running selenium webdrivers on AWS EC2 instance? I have a question regarding how the selenium web driver works while multithreading in a Python script on an AWS EC2 Ubuntu server. Specifically, I'm concerned about the memory usage of each thread that is running a headless selenium browser. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Derive total wall area from floor area using only floor area & room height. How? I work in construction as an estimator. We received scaled architectural drawings, then use a piece of software called Bluebeam to line up the ceilings, walls, floors, etc. Currently, in order to get the wall areas in a corridor, I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connect parent to children in graph structure stored in CSV file I have a CSV-formatted file like this. The first row of the file is the header. For example, according to column 'tree', and where column 'type' is 'asset', '2' is the parent of '2-1', '2-2', '2-3', '2-4', '2-5', and '2-6'. So, this represents how pare...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PgAdmin running on Docker. How can I find a dot backup file that's on the host? I am using PgAdmin4 using Docker both, because I find it easy and because I am learning docker. So I am doing all I can using docker. I want to restore .backup file, but it is located at the host. Is there some way to pass the file to so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75566537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }