text
string
meta
dict
Q: Custom format for Date.timer? Say I have a Date.timer in WidgetKit and I want to set it so that it displays hours:minutes only, instead of hours:minutes:seconds. How can I go about this? A: To display hours and minutes only in WidgetKit, you can use the DateFormatter class in SwiftUI. Here is an example in SwiftUI:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Ajax call return 403 Forbidden error while uploading image from web cam <!DOCTYPE html> <html> <head> <title>Capture webcam image with php and jquery - ItSolutionStuff.com</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need plugin for crypto donation on WP site? I see a lot of free and paid plugins for crypto donation on word press sites. But, do I need one? I could just post my QR code and hash wallet address for that coin and specifie the transport network i use? I want to understand is there some advantages using free or p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't update my state in first call. How can I update it? I can't update my notes state. When I first call updateNotes function it logs null array. But if I call it twice it's loaded by the available values. How can I fix this? const AddNote = ({navigation, route}) => { const [title, setTitle] = useState(''); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make two same inner classes in a instance mapping in Mybatis (Java) I'm using class Hand to save datas. It inclues two same inner class Card, which means two Cards make up one Hand. As the following: public class Card { private Integer id; private Integer number; private Integer color; public...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why I cannot use pip on kali linux? I'm using kali linux, and every time I try to run a pip command (for example for installing files from requirements.txt) I receive the following error: error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is this code producing an invalid memory access? I'm trying to create a function that implements the ROT13 Caeser cipher. #include <stddef.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> char *rot13(const char *src) { char *cipher = calloc(strlen(src)+1, sizeof(char)); strcp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: NextJS13 Conditions for soft navigation In NextJS 13, I was making a feature that requires router changes when applied a facet. I try to router.push (from next/navigation) page doesn't change. In fact it does made a fetch request but URLkeeps stays the same. const applyFilter = async (namespace, value) => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with positioning using view width and height I was trying to solve a React challenge. The challenge is when you click somewhere on the screen, a circle appears where you clicked. Also you have a redo and undo button. The problem happened with restrictions which are: * *The circles must be responsive (a cir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pfSense route LAN traffic thru OVPN I have the following network infra: 1 X ROUTER (192.168.10.1) 1 X ESXI server ( WAN_ESX 192.168.10.4) connected to ROUTER with 2 vSwitches: 1 assigned to WAN_ESX and 1 assigned to LAN_PFS pfSense. On the ESXI server i have installed as a virtual machine pfSense 2.6.0 wich has 2 N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: I'm unable to fetch categories to the server in groq sanity how do i insert this data: { name: 'cars', image: 'https://i.pinimg.com/750x/eb/47/44/eb4744eaa3b3ccd89749fa3470e2b0de.jpg', } into this:- export const fetchCategories = (fetchCategories) => { return *[_type=="category"] };
{ "language": "en", "url": "https://stackoverflow.com/questions/75635321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net Core 6 problem when use SelectList I have 2 models with one to many relationship and want to make drop down list Model 1 View Page and there is my code: Model 1 public class Events { public Guid Id { get; set; } [Required(ErrorMessageResourceType = typeof(Resources.ResourceData), ErrorMessageResource...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RSpec compare Job enqueued for a later time I have a job called DisableInvitationJob. I call it like this: DisableInvitationJob.set(wait: 7.days).perform_later(invitation: @invitation) And when testing the call with RSpec: it { expect(DisableInvitationJob).to have_been_enqueued .with(invitation: Invitation.last) .o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VScode jupyter kernel died when load large file with f2py subroutine I cannot open large file in specific case. I suspect that compile stage with ifort could have problem. Is there any solution? * *I write Fortran90 code and there is a line open to read fortran unformatted file !rur/readr.f90 module readr ... sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Batch does not write and accepts using FlatFileItemWriter> I am really hoping anybody can answer my question regarding Spring Batch writer. I am super stucked with my current task right now: My goal is * *Read all data from Parent table *Process the data from reader and the results is store to common DTO l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parsing JSON array and object in Android Studio I don't understand how to parse an object through an array This is what the JSON looks like: {"users":[{"id":1,"username":"DNS","email":"1111111@gmail.com"},{"id":2,"username":"ANT","email":"22222222@gmail.com"}]} Java: @Override protected void onPostE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: typeahead change value of input field after form submit I am using typeahead plugin with bloodhound in a bootstrap modal. The jQuery code is: let countries = new Bloodhound({ datumTokenizer: function (d) { let t = Bloodhound.tokenizers.whitespace(d.id); let z = Bloodhound.tokenizers.whitespace(d....
{ "language": "en", "url": "https://stackoverflow.com/questions/75635334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: order by RANDOM() not working after using <@ and NOT IN in WHERE statement I'm building a Django REST API and having a PostgreSQL query issue where ORDER BY RANDOM() stops working. I have tables product and service and I want to receive union results in random order. The where statement needs to check if all items i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why regex is giving me Uncaught TypeError: Cannot read properties of null (reading '1')? I have the following code: function myFunction() { var inputString = document.getElementById("ur").value; var result = inputString.match(/http:\/\/(?:.*\.|.*)imdb.com\/(?:t|T)itle(?:\?|\/)(..\d+)/i); document.getElementB...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FPGA Master and slave device issue I am currently working in Python FPGA testing using pyserial. I use i3c communication protocol to interface FPGA master and FPGA slave device. Sometimes, The communication between both the device is give correct signal but sometimes the signal not from master device sometimes the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do you save data from inputs into a list then print them separately without knowing exactly how many inputs are saved So i have this code for a restaurant kind of code and i have to reuse the inputs over and over sometimes and i need to store all of them in a list or something of sorts so that i can later print ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why allocating char on the free store giving wrong value? I'm allocating memory on the free store and putting the char on that storage, but it giving some unexpected output in long input of char, and on my pc it giving me unexpected result for more than even 1 char of input, but if i comment out delete [] p; in add...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to do a reactjs horizontal scroll webpage I’m building a Reactjs Webpage, builded with vite and using tailwind. I want the page to scroll horizontal. I’ve tryed some react libreries like npm react-horizontal-scroll and otherd but nothing work and i dont know how to do it. I want the pago to scrolls everything ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get CResamplerMediaObject to work as it is supposed to? I am trying to use CResamplerMediaObject to resample audio I capture from the DefaultAudioEndpoint in order to clone it to any other AudioEndpoint I choose. But whatever the Input/OutputType is, it seems to just pass through what I input to it without mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configuration.resolve has an unknown property 'fallback'. for webpack4 Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. * *configuration.resolve has an unknown property 'fallback'. These properties are valid: object { alias?, aliasFields?, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check password that has been hashed and salted? In my register method, I've created a user after hashing and salting their password. And in the login method, I need to check if the user has entered the correct password. The check_password() doesn't seem to accept a salt, and when I use the default authenticat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access a job's failed logs in a Github Action? I want to automatically create a Github issue with an action if a job fails. In this issue, I want to include the log in the issue body but I can't figure out how to get this log. I've tried using the Github CLI gh run view --log-failed --job <jobID>. However, this requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ how to std::accumulate vector of futures? Why following code does not compile? #include <future> #include <numeric> #include <vector> int main() { const std::vector<int> values{1, 2, 3, 4, 5}; auto futures = std::accumulate( begin(values), end(values), std::vector<std::future<int>>{}, []...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How am I suppose to mock a custom hook with jest? Do you have an idea of why this hook doesn't work? // globalMock(); jest.mock('@/lib/hooks/useAxios', () => ({ __esModule: true, default: () => ({ http: { get: jest.fn(), post: jest.fn(), }, }), })); Could it be due to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to rotate an image with a slider in PyQt5 while keeping it centered? I want to rotate an image (dial.png) by one degree without moving it from its center position using PyQt5. However, despite my best efforts, the image does not stay centered and moves chaotically when rotated. The image should rotate by one deg...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Program terminated with signal SIGTERM, Terminated. c++ destructor I have two classes that order a group of people by both height and weight nextHeight that points to the next person, ordered by descending height (more details below). • nextweight that points to the next person, ordered by ascending weight The Perso...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: The image field is required. (PHP/LARAVEL) I dont understand why the form and what happens after on back ground doens't get the image that i place in the form. The error: enter image description here The code i have: THE FORM VIEW addaccount.blade.php: <!-- start content --> <div class="container"> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Scrapy : How to access callback function variable in parse function Fairly new to Scrapy and Python, trying to build a winrate calculation program using scrapy. class WinSpider(scrapy.Spider): name = "win" start_urls = url victory = [] defeat = [] def parse(self, response): f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I merge a directory from a branchX into a branchY where the project structure is different? I have two branches: branchX and branchY. As you can see from the following trees they have a different structure: branchX_root └── app branchY_root ├── dir1 │   ├── ... └── dir2 └── app When I make changes in b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the whole object pushed in to an array from firebase Javascript Im doing a simple webstore. I have products in firebase database that im fetching. I get the data as an object from firebase. But I want it to be an array with objects so I can use array methods like find(). The reason is that I want to add t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Showing widget area above header only on homepage I want to showing widget above header area only on homepage. I use theme by Kadencewp check my site https://fajar.me enter image description here I can't disable widget area on any page/post. excerpt on homepage only.
{ "language": "en", "url": "https://stackoverflow.com/questions/75635371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to display the content of a single cell from an exel file for example, on an html page I'm looking to display the information from just one specific cell on an html page. I am talking about an exel table, I don't know if the term is correct but I can convert it to another format. The only answers I can find are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React js cancel booking after 10 minutes I want a react code that checks the booked date and if the booked date has passed 10 minutes then automatically cancel that bookings. following are conditions. * *when user books any hotel , then he arrives in payment page , hold them 10 minutes to pay by checking the time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Snowpack can't find /src/index.jsx no matter what I do? Man... no idea wth is going on. Keep getting the error: :~/plasma$ npm run start > plasma@1.0.0 start > snowpack dev [14:33:25] [snowpack] Ready! [14:33:25] [snowpack] Server started in 55ms. [14:33:25] [snowpack] Local: http://localhost:8080 [14:33:25] [snow...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Same TypeScript Custom Generic type works different between two cases I have a custom TypeScript Generic type but this one works differently between the two cases. I use it for more than 20 cases and all work but it does not work in only one condition. type Previous = [never, 0, 1, 2, 3, 4, 5, ...0[]]; export type D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot find file at '..\lib\fvm\bin\fvm.exe' Cannot find file at '..\lib\fvm\bin\fvm.exe' (C:\ProgramData\chocolatey\lib\fvm\bin\fvm.exe). This usually indicates a missing or moved file. All ok I am expecting
{ "language": "en", "url": "https://stackoverflow.com/questions/75635377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Priority of nested ternary operator in AntlrV4? I am using AntlrV4 to build a rule engine. But the priority of nested ternary operator without bracket is confusing. Here is the grammar fragment: expression QUESTION_MARK expression COLON expression # ternaryexpr Here is a nested example: 1 > 0 ? 2 : 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Attempt to assign property "RoundNumber" on array I'm trying to extract RoundNumber data from a json file that I pass from request in my laravel application in this way: public function importResults(Request $request) { $json = file_get_contents($request->file('results')); $decoded = json_decode($json); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to run a python face recognition script from a php file? I have a python face recognition script that uses opencv and face_recognition module to detect and match faces. I want to implement this via a php file. So that whenever the php file is opened the face recognition script starts and opens the open-cv window...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which model from tensorflow to use? I have to do object detection + orientation of the object in real time. For that purpose i must to use Tensorflow2. The object is rivet rivet that flows into chute. The chute is a straight direction and will have only 1 rivet at the same time for detection. There is 2 possible var...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: secretOrPrivateKey must be an asymmetric key when using RS256 I'm using jsonwebtoken to generate a bearer token. Following the examples provided by the documentation my code looks like this var privateKey = fs.readFileSync('src\\private.key'); //returns Buffer let token = jwt.sign(myJsonContent, privateKey, { algori...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update variables in subscribe? I have a service, in this service I initiate a subscription: session.service.ts constructor( private apollo: Apollo, private notificationService: NotificationService ) { this.subscribeToSessions(); } // private subscribeToSessions(): void { this.apollo.subscribe<UserJo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload files from android to FTP I want to upload images in phone directory using Kotlin in android studio to ftp server, but it returns Error: /storage/emulated/0/Pictures/AsterPhoto-Image: open failed: EISDIR (Is a directory) private fun main() { val server = "" val port = 21 val user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 6 high severity vulnerabilities problem while trying to install reactstrap To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force PS C:\reactbaslangic\intro> npm audit fix --force npm WARN using --force Recommended prote...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using BETWEEN only if condition is met I have the following query. SELECT T1.guid, T1.transaction_type, T1.transaction_counter,T3.full_name, T1.transaction_date, GROUP_CONCAT(DISTINCT(T2.descriptions)), SUM(T2.amount) FROM tb_transactions T1 INNER JOIN tb_transaction_item T2 ON T2.transaction_guid = T1.guid RIGHT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to configure a asyncAcks spring kafka listener? I using spring kafka to consumer messages from kafka. I want to use batch listener to consume a topic with asyncAcks mode. But I did not find how to configure it in the application.properties for it. @KafkaListener(groupId = "${app.kafka.shipment-historic-topic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code error with regard to the syntax adds padding to the right of the string Can someone help me solve this valueError: def movie_fetch_data(movie_csv): with open(movie_csv, "r") as movie_file: reader = csv.reader(movie_file) movie_info = [] for row in reader: movie_info.appen...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rdlc report working on development mode but not working in production My controller code is string fileDirPath = Assembly.GetExecutingAssembly().Location.Replace("ERPWEBAPI.dll", string.Empty); string rdlcFilePath = string.Format("{0}ReportFiles\\{1}.rdlc", fileDirPath, "rptCostingBOQ"); Encoding.RegisterProvider(C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CORS not allowing endpoint access I am working with this tutorial on Spring Boot / JWT, when using with Postman all works well. https://github.com/ali-bouali/spring-boot-3-jwt-security I have written a frontend for it in Angular and of course I needed to add the @CrossOrigin(origins = "http://localhost:4200") to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Retrieve name of a list from a list of lists I have a list of lists. all_lists <- list(list1, list2, list3, ...) Now, I want to retrieve just the name of each list to create a table, so I thought something like this would work (let's say I want to get only "list1" as output): all_lists[[1]] I was wrong. It gives me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to create a folder with mkdir on Android device with Superuser I am using LIBSU by John Wu to run superuser commands on my android app. My objective is to create a folder with mkdir but it seems that the command runs successfully but the folder isn't created. Here's my code: fun createDialog(packageInfo: Appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i faced problem is - Cannot read properties of undefined (reading 'filename'), when i click on submit button than i'm not uploading image * *This is a Schemayour text *const mongoose = require("mongoose"); *const { Schema } = mongoose; *const NotesSchema = new Schema({ *user: { *type: mongoose.Schema.Types.Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to split a file into lines using foreach in linux? File.txt has numerous lines with paths to different files I want each line of File.txt to become an argument to sed command Ex : File.txt has following lines dir1/sub1/a.txt dir2/sub2/b.txt dir3/sub3/c.txt Need to use sed command on all these files in File.txt ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ImportError: cannot import name 'Etherscan' from partially initialized module 'etherscan' (most likely due to a circular import) error I tried to run the code : from etherscan import Etherscan But it is throwing the circular import error again and again, please let me know how to solve it. Tried to uninstall ethers...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I installed version 11.7, but how did it become version 12.1? I installed version 11.7 on Centos 7.9 system following the steps below, wget https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda-repo-rhel7-11-7-local-11.7.1_515.65.01-1.x86_64.rpm sudo rpm -i cuda-repo-rhel7-11-7-local-11.7.1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Change ag grid body viewport I am trying to implement agGrid react. I have a wrapper that has a height of 300px but when I put the items into ag-Grid, the grid doesn't scroll and the rows are not accurately displayed. From inspecting the html I found that changing the ag-body-viewport height manually to less than th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use a variable as XPath expression. Not expected behavior To parse reddit.com, I use xidel -e '//div[@data-click-id="background"]/div[@data-adclicklocation="title"]/div/a[@data-click-id="body"]/@href|//div[@data-click-id="background"]/div[@data-adclicklocation="title"]/div/a[@data-click-id="body"]/div/h3/text()' "ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update sql db by specific time? I have a sql table which contains a status of request(register, waiting1, waiting2 and ... ). User have 30mins to update the request. If he/she didn't do that, system should update the request status after 30mins. How can I do that? I try to update it when ever user whants to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static members inside normal inner class How are we able to access static member of normal Inner class without creating an Outer class object in JAVA? Because Inner class is like an instance member of Outer class, an Outer class Object is required to access its instance members. I mean how are we able to access dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Webpack-dev-server doesn't refresh site on css file change On my file change webpack dev server sees change but don't refreshes site (I'm using Chrome) there is my webpack config: const HtmlWebpackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.export...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting __asm__ __volatile__ to NASM is there a way to convert asm volatile to NASM this is the code im trying to convert __asm__ __volatile__ ("cpuid" : \ "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (leaf), "c" (subleaf)); i try this code but im not sure if its correct .code checkcpu proc ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: screen gui not showing up im new to lua and im trying to make a roblox admin panel, but it wont work and i cant tell why admins = require(script.Parent.Admins) AdminPanel = game:FindFirstChild("ServerStorage").AdminPanel Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) if admins...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deafult Build Plugin is used instead maven-shade I want to use maven to create out of two modules jar files, (each as a single fat jar), depending on a third module. My problem is that if I use "mvn package" it does not use the maven-shade-plugin but somehow maven-jar-plugin:2.4:jar (default-jar). Even it isnt anywh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenPDF with html I need help for converting html content to a pdf. I am currently using OpenPDF 1.3.30 to generate my pdf file in Java. I have a vue component that uses Vue Editor which is a rich text editor wrapper for Vue from Quill. Currently I am sending the html content as a string to my backend class and conv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding React to a standard Electron application I'm trying to add React.js to my very standard Electron application, and wondering about the smoothest way of accomplishing this. I have scoured the internet searching for a guide on this, but none are up-to-date, and 99% of what I've found is about how to create the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use left join COUNT in sequelize? (default 0) I'm trying to write a sequelize query but unable to get the expected result. Sorry for my immature English skills. My query is: SELECT a.album_id, a.cup_id, a.title, a.thumbnail, a.created_time, IFNULL(ai.cnt, 0) AS count FROM album AS a LEFT JOIN (SELECT album_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When switching page timer adds too much seconds When I switch page to another and go back my timer starts to count 2 seconds instead of 1. public partial class Page2 : Page { static System.Timers.Timer timer; public static int m_counter = 0; static int minuty = 0; static int started = 0; public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS SNS SMS with special characters I'm sending SMSs through AWS Simple Notification Service (SNS), and it all seems to work just fine, except when I try to send messages with special characters, tilded characters to be specific (they are in Spanish). For instance, if I send something like: Tu código de verificación...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AttributeError: Got AttributeError when attempting to get a value for field on serializer DRF Full error here AttributeError: Got AttributeError when attempting to get a value for field name on serializer ResponsePeopleofGroup. The serializer field might be named incorrectly and not match any attribute or key on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node crypto Error: error:0409A06E:rsa routines:RSA_padding_add_PKCS1_OAEP_mgf1:data too large for key size I am trying to encrypt a string which has length of 2224. I generated a key pair with following code. let key = crypto.generateKeyPairSync('rsa', { modulusLength: 2048, publicKeyEncoding...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am using Replit to code but every time I try to import anything this error happen: imported but unused This is what appears for me I can't even import the random module I don't know why it does this, is this problem only face me or everyone who use replit A: This is not an error. This is a warning Warning mess...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I get logs from localstack when using APIGateway with Lambda Integration? I am running localstack to test out API Gateway with Lambda integration In localstack docker logs I see 2023-03-04T11:40:41.408 INFO --- [uest_thread)] l.s.a.lambda_executors : Running lambda: arn:aws:lambda:ap-southeast-1:00000000...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying native Quarkus build on Render.com I'm trying to deploy a native build of a Quarkus application to Render.com, but it fails. The build seems to run fine, as far as I can tell, but the application won't run. I can't reproduce it on my local setup. My local trials My build is derived from Quarkus's proposal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pafy module causing error in PythonAnywhere I am using pafy in a Flask app. It is working fine on my local machine. But when I am trying to deploy and run on PythonAnywhere, it is throwing an error. Upon execution, it is showing the following ewrror: youtube_dl.utils.ExtractorError: Unable to download API page: <ur...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a new request per row in table using karate DSL I'm able to manipualte the xml request (from a fIle) but I dont know how to iterate it over a table and form a new request for every row in the table Scenario: Create subscriber base * table data | PaidMode| BillCycleCredit|BillCycleType|PrimaryOffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting Error while trying to install gazebo9 after installing ROS noetic in ubuntu 20.04 LTS I have removed complete ROS and gazebo in Ubuntu 20.04 and tried to install it fresh, but I am facing the errors while installing gazebo9, below are the errors lucky@Lucky1461:~$ sudo apt-get install gazebo9 libgazebo9-dev ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C program to Disable COM port I’m using an Arduino to do certain tasks based on the commands it receives. I send the commands serially through my computers usb port. Everything works great most of the time, however after I’ve been opening and closing my pc application over the duration of a couple of days, I suddenl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My android app is working on DHU but not seen on Android auto car screen I just started to develop apps for cars a month ago and still a lot of black spots in my mind. I have developed an android app for navigation that can be used in Android car mirroring. When I test my app on DHU everything works perfect but I tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mern stack + ts got problem with accesstoken I have a problem with 401 error (unauthorized). Everything works in Postman, but in my Client Side i got this error, in situations when I do anything that requires VerifyToken as create a comment, for example. That's my verifyToken middleware import {Request, Response, Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Crawl Question - Get style attributes specified in a CSS file [enter image description here](https://i.stack.imgur.com/9D304.png) The modules used are: from bs4 import BeautifulSoup import requests The site used is naver The code that got stuck while trying and asked for help, weather_icon = soup.find('div', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing several variables with a similar name in Batch 1. @echo off set "a=verA" set "b=verB" :a echo %a1% & ^| & %b1% echo %a2% & ^| & %b2% pause 2. @echo off set "1=hor1" set "2=hor2" :a echo %a1% & ^| & %b1% echo %a2% & ^| & %b2% pause How to make variables change by any letter of their name? So I would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ghostscript's dfilterimage option increases file size I've read a very dedicated article about using it to remove all images from pdf file How can I remove all images from a PDF? actually it does what it says it does in eliminating all images out of sight. but strangely my file size ended up from 28MBs to bigger 32M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: undefined reference to `MQTTReasonCode_toString' I have added in linker > input> -lpaho-mqttpp3lpaho-mqtt3a-lpaho-mqtt3as-lpaho-mqtt3c-lpaho-mqtt3cs -lpaho-mqttpp3 I have also added pragma comment(lib,"libpaho-mqttpp3") I have also include the directory in C/C++ > Additional include directories>/home/pi/vcpkg/insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to convert square overlay to circle to get selfie in flutter? flutter camera overlay This plugin is used to add common camera overlay components such as ID Card, Credit Card, Texts, prompts or custom components. So it is by default in rectangle/square overlay. I want it in circle overlay to take selfie pictures....
{ "language": "en", "url": "https://stackoverflow.com/questions/75635489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change style while rendering freetype.Font I want to be able to use bold or italic styles while rendering with pygame.freetype.Font, but it turns out freetype.Font.render doesen’t take any bold or italic keyword arguments. Instead it takes a style argument. I’m not sure how to use this though, please help me....
{ "language": "en", "url": "https://stackoverflow.com/questions/75635490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move multiple SmtpServer.Credentials from code behind to web.config being a novice (and certainly not good in English) I need some help. I am a VB-coder. Not sure I have fully understood the instructions given how to fill in the question. I have X mail accounts on the server and when sending mail I want to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python pandas, I want to filter by product name and supplier in my product table, and then change the price according to that filter I am a new to python and pandas. I want to list it according to the SKU name and process the new column accordingly. For example, if the SKU name starts with BA, do the following on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: why multiple fetch run in sequence So I was trying to run multiple fetch requests in parallel like this: fetch( `http://localhost/test-paralell-loading.php?r` ); fetch( `http://localhost/test-paralell-loading.php?r` ); fetch( `http://localhost/test-paralell-loading.php?r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: plese Rsolve the problem(Uncaught TypeError: Cannot read properties of undefined (reading 'map') ) import React, { useContext } from "react"; import movieContext from "../context/movieContext"; const Movies = () => { const { Movie } = useContext(movieContext); return ( <> {Movie.map((curMovie) => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Can I use tkinter on PyScript? So I have a python script that uses only tkinter to draw shapes, I did not add the code because it is not really needed my problem is not with the code, its with running it in PyScript. The script is for a project, and I wanted to present it with HTML, making a website that would run m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a flat data structure from a tree? I have a tree structure such as (A JSON object): 1 / \ 2 3 /\ 4 5 I need to convert this into the following: 1 1 1 | | | 2 2 3 | | 4 5 After some days of trying to do this in Python, I'm struggling. This is a question that came up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React native Expo facebook login with auth session - why cant I get an access token in exchange for the code? Im implementing a facebook login with expo (version 46) auth session. I am successfully getting the code. However, when I try to get the access token, I always get a 400. I searched and feel like I am using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QR code generator for email using reactjs So I am trying to generate QR code using react-qr-code module in the value field I gave mailto:${email}?subject=${subject}&body=${body} format but when I scan using google lens it's getting converted to https://mailto:_______ which will not work how to resolve this issue? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select from an option in a navbar that is written as a I am making a web scraper with selenium C# and ran into an issue. I am using a website called Taver.Ai But basically, I ran into an issue with the following HTML code: HTML CODE. I get an error when trying to post code idk why!? In the html page, when yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Your app is uploading users Social Account information to .. without a prominent disclosure - app will be removed from Google Play I got an e-mail from Google that my app will be removed within 7 days if I don't fix the issue. I contacted Google but I have not yet received a clear information, they are constantly se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75635509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }