text
string
meta
dict
Q: How many different combinations make up $1.64 using Australian coins I am trying to write a program where you put in a number and it tells you how many possible combinations of Australian coins can make it. I didn't get very far as i did not know where to start. I am using python.
{ "language": "en", "url": "https://stackoverflow.com/questions/75586333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Augmenting layers upon the part of identified object I am working on an AR project, I am using Vuforia Cylindrical target to identify a real life cylindrical target. What I want is once the target is identified, it shows user UI option to kind of cover certain percentage of recognised object by an augmentation of sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Blazor Server best practices about state management and routing I have one page on a Blazor Server app that has multiple child components and I could get some input about best practices about handling different routes, and state management for a somewhat complex page/component. My page lookssimilar to the image belo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding an Objective-C file into a Swift project breaks compilation with "Build input file cannot be found" error I have an existing Swift project (UIKit), Xcode 14.2. I'm trying to add Objective-C code to it, creating .m and .h files. The moment I try to add it, Xcode asks me to create the bridging header (an empty ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I disable Internet Explorer parsing in PowerShell The Invoke-WebRequest cmdlet can fail if Internet Explorer is not available*: The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to use mockk to mock HashMap's putAll(map) Having a function like fun appendToMap(jsonString: String?, optionMap: MutableMap<String, String>) { jsonString?.let { try { val map = Gson().fromJson(jsonString, HashMap<String, String>().javaClass) if (map != null) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Software Floating Point Library for Arm aarch64 I am working on armv8 Cortex A55 with 5 cores ,in aarch64 mode and compiling with armclang. However my core doesn't have a hardware FPU unit but my program does have floating point operations. I need to use a SW FPU library consistent with the IEEE standard for arm aar...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to unmarshal a recursive json with type I've got a JSON with the following form: { "Filter": { "Filters": [ { "Filter": { "someKey": "someValue1", }, "FilterType": "trait" }, { "Filter": { "someKey": "someValue2", }, "F...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Enable brotli compression in ClickHouse I am trying to use ClickHouse (version 23.2.1) to query parquet data stored in S3. The parquet data is stored using Brotli compression. But I am getting the following error - Code: 33. DB::ParsingException: Error while reading Parquet data: NotImplemented: Support for codec 'b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: capacitor android app is not connecting to socket server I have a React APP that is using Capacitor to convert to an Android APP: Here is my capacitor.config.ts: import { CapacitorConfig } from "@capacitor/cli"; const config: CapacitorConfig = { appId: "com.cheese.app", appName: "cheese", webDir: "build", b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Formik value does not update with onChange formik.handleChange This is my <CardBody> : <CardBody> <CustomInput value={formik.values.email} onChange={(e) => { formik.handleChange(e); setErrMsg(""); }} labelText="Email..." id="email" inputProps={{ type: "email", endAdo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PySpark df.na.drop() vs. df.dropna() I would like to remove rows from my PySpark df where there are null values in any of the columns, but it is taking a really long time to run when using df.dropna(). Is there any benefit performance wise to using df.na.drop() instead? I like using df.dropna() because I can specify...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF Combobox Binding SelectedItem Not Sending Changes to Datacontext I am fairly new to WPF and MVVM. I have created a custom control that contains a Combobox. I have bound the ItemSource and it works find, and the selectedItem sets correctly from the binding but when I change the Item it does not update the prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i got an error "getaddrinfo ENOTFOUND {{url}}" when running collection by using newman I am new to Newman package execution with postman collection. I have done the following steps to run the postman collection using Newman package, but getting an error POST http://localhost:3000/login [errored] connect ECONNREFUSED...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lightsail Bitnami Instance Providing Access to other user I have Lightsail Bitnami Instance. Currently, I am able to access my instance via SSH or SFTP using a key file. However, the company that will be installing the module has requested access via FTP with a password. As I do not wish to share my key file, I am w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to extract Qx smooth of whittaker.mortalityTable I want to extract the qx smoothed of the function whittaker.mortalityTable. Here is the code I used : obsTable = mortalityTable.period(name = "Male", ages = Ages, deathProbs = data.qx$"1998", exposures = data.exp$"1998") I tried to look into the variable obsTabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't Integrate rasa chatbot (3.4.4) on Facebook Messenger I can’t integrate rasa chatbot on Facebook Messenger .I followed this guide Facebook Messenger the issue: facebook’s webhook can’t accept Callback URL created by Ngrok “Error The callback URL or verify token couldn’t be validated. Please verify the provided ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't import xlsx file in RStudio When trying to import an Excel file in RStudio, I receive a popup noting: Is this a valid Excel file? .onLoad failed din loadNamespace() for "cli", details: call: asNamespace("cli")$get_ppid() error: object "clic_getppid'not found In the console, I get the following message: Error...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a consecutive snackbar/alert component with React and Material UI v5 in Javascript? I am trying to extract the logic of the Material UI v5 SnackbarAlert into a re-usable component. I have found a very similar question answered recently, however my app is using JavaScript. I've attempted to adapt this t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: in upload_file raise ValueError('Filename must be a string') ValueError: Filename must be a string I know this question has been asked before and i am asking it again because as a newbie to stackoverflow, i can't make comments on people's post yet. I am sending a pdf file from my frontend vue js to django via axios,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I deserialize json using Protobuf in Blazor WebAssembly? I have this model: using ProtoBuf; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestCore.Shared.AppModels { [ProtoC...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If else statement with image in xaml vb Previously I have a rectangle button with has connect and disconnect button. When I click connect button, the program can run the connection() function and the text change to "disconnect". When I click "disconnect" button, the program can end the connection() function and the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make the background of website changes when opened with phone? i need to know how to make the web page background changes when the it's opened with a phone this is my try but it didn't work : <style> @media only screen and (max-width: 768px) { body { background-color: blue; } </style>
{ "language": "en", "url": "https://stackoverflow.com/questions/75586380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to separate project containers in different VPS? I'm currently learning how to build projects infrastructures. Let's suppose that I want to build a project with React, Golang and Postgres using Docker and Docker Compose. Is there a possible way (or an easy one) to build these 3 containers and deploy it in 3 diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I have an CORS error requesting data from an rust back-end? For a project I am using a rust back-end with the Axum framework. I am using react as a front-end. Atm, I just want to be able to make a simple request to the back-end. Everything works when I use a plug-in to disable CORS, but I don't get it working...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blazor: handling `.html` URL with page I have a simple project created with blazorwasm --hosted. It is going to replace an old MVC project and needs to serve a URL ended in .html. As far as I know, this is considered a static file, so I can put it in wwwroot. Quick solution, but not the best one, since I have to rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make COSMOS console scrollable in C#? I've recently been playing around with COSMOS (the operating system builder). I sometimes like to print many lines of text to the console, and was wondering if it is possible to make the COSMOS console scroll. Do I need to make a GUI and a window for a Terminal inside the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I edit Prestashop's code in VSC, from Docker container? How can I display Prestashop code in VSC? I run Prestashop like in docs # create a network for containers to communicate $ docker network create prestashop-net # launch mysql 5.7 container $ docker run -ti --name some-mysql --network prestashop-net -e M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with applying paragraph style in SwiftUI I have a string of text of Arabic and English words, I need to add attribute using NSMutableAttributedString and add paragraph styling with NSMutableParagraphStyle. The problem is paragraph style doesn't apply to the text and not sure why. First I am detecting Arabic ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A way to optimize this way to get random numbers I'm trying to find a way to optimize this Let's say i have this set of chances: let chances = { a: 0.80, b: 0.15, c: 0.05 } and I want to run these chances X times and store how many of each that was obtained of course the simplest way is to do an itera...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't get the alignment right of the loader and the text that is supposed to be left of the loader This is my first html test file, please don't show hate. <head> <meta http-equiv="refresh" content="7; url='http://127.0.0.1:8887/test.html'" /> <meta name="viewport" content="width=device-width, initial-scal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the proper way to update a @Published variable from the network layer? Let's say I have a managed state object like this class SomethingService: ObservableObject { //views are listening to this @Published var statusString: String = "" func doNetwork() async { //how to pass statusString to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can not read properties of null (reading 'username') I'm trying to find a user by id but its erroring. Here is my code: module.exports = { name: 'whois', execute: (client, message, args) => { const userId = args[0]; const member = message.guild.members.fetch(userId); message.reply(`Thats ${member.use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TreeView - RelayCommand Does Not Execute Despite Breakpoint Hitting I have a TreeView with an ItemTemplate/HierarchicalDataTemplate. When I expand a TreeViewItem, I want to trigger a MessageBox. The issue I am currently experiencing is that despite the breakpoint being hit on the RelayCommand() in the ViewModel, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I call an object by variable name? Thank you all for looking into this! Really appreciate. With a reproduceable code, would be: d <- data.frame(school = rep(LETTERS[1:4], times = c(25, 25, 25, 25)), student = rep(1:25, times=c(4)), week = seq(from = 1, to = 25, by= 5), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any problem in using final var when initializing variables in Java? I want to know if there is any problem in doing something like this: final var result = function(); This is only to get type inference and not have to type the entire type of the function. I think it wors normally doing this but I can't kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: trouble referencing a struct in header file I'm trying to use a struct declared in my header file, but when I compile I get the error message "cpu.c:(.text+0x6): undefined reference to `reg' " Basically I defined the struct in the header to make access easier and after clearing some errors, I attempted to compile my...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: please help debug this issue user cant login Fatal error: Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (timoudoh_gsekure.token_auth, CONSTRAINT fk_user_id FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE ON UPDATE CASCADE) in /home/timoudoh/gsekure/clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: updated modules via pip3 but Python 3.7 using libraries from homedir/ .local/lib/python3.1/site-packages instead When I used pip3 to "install --upgrade PySimpleGUI" it got installed in the/usr/local/lib/python3.7/dist-packages directory but my python install (when run as a local user) wants to use the users ~/.loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to properly load tw-elements in Laravel with Vue project? I have a Laravel project with Vue.js and I'm trying to use tw-elements by installing it via npm. I have imported the module in my app.js file, but when I try to use it somewhere else, it doesn't work. I don't receive any errors, but the element simply doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swipebox img base64 without attr a How can I make a swipebox. without [a] attributes. Only on img. It doesn't work for me for some reason. If you advise any other library for opening a photo, working in my situation would be grateful. Thanks ;( function( $ ) { $( '.swipebox' ).swipebox(); } )( jQuery ); <scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: On Call returns Null Firebase Simple OnCall Return Null And im unable to pinpoint the issue. Call function-> const schedule = () => { const functions = getFunctions(getApp()); const scheduleAppointment = httpsCallable(functions, "scheduleOperation"); scheduleAppointment({ text: "messageText" }) .th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CallKit, как узнать, когда звонил заблокированный номер I want to receive notifications that a blocked number called. The number was blocked in the call directory via addBlockingEntry override func beginRequest(with context: CXCallDirectoryExtensionContext) { context.delegate = self let blockedPhoneNumbers: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Use LINQ Query Operations Please need assistance to convert this SQl Query to LINQ Query SELECT EconCode.EconCodeId, EconCode.EconCodeName, EconCode.EconIncomeAmt, EconCode.EconRecExpAmt, EconCode.EconCapExpAmt, FundCode.FundCodeId FROM EconCode LEFT OUTER JOIN FundCode O...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Combine data from different rows I have this table: Item ID Date Value Name ID1 2001 Ben Age ID1 2001 16 State ID1 2001 NY And would like to have a view like this: ID Name Age State ID1 Ben 16 NY What's the best approach to achieve this result? I'm not even sure how to find reference ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: EFS does not persist any data I have a Fargate container with an access point configured to use AWS' EFS. The volume seems to mount properly, but data written into it does not persist. * *No matter how much data I put into the drive, it remains with only 6.00 KiB total size. *I can confirm the volume is mounted p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connecting to Azure Databricks from ASP.NET using ODBC driver I am exploring an option to access the Azure Databricks SQL tables from ASP.NET MVC application. In order to achieve that I came across an article where it states to configure ODBC Data Source. Configure the Databricks ODBC and JDBC drivers Although, my s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom exception handling of JWT validations - how to approach? still relatively new to Springboot/JWTs here so apologies for lack of understanding. Hit a bit of a brick wall in approach to handling invalid JWTs. For some background the project is Springboot 3, utilizing Spring Security 6. I am able to handle most e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I determine which AAOS vehicles support apps built using the Android for Cars App Library? While building an app using the Android for Cars App Library, I noticed that not all of the vehicles running Android Automotive OS with Google-built in are compatible with my app. How can I tell which vehicles can run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Core Web API - Warning CS0618 'FluentValidationAutoValidationConfiguration.ImplicitlyValidateChildProperties' is obsolete I am working on ASP.NET Core-7 Web API Application in which I am implementing Fluent Validation. "FluentValidation.AspNetCore" Version="11.2.2" In the Program.cs I configured it as show...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flask app works locally but shows error when deployed I create an app to retrieve items from a URL to an RSS feed, process them, and return the processed data. This works when I run it locally. I followed this tutorial https://www.rosehosting.com/blog/how-to-deploy-flask-application-with-nginx-and-gunicorn-on-ubuntu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: react context - type script error TS2345: Argument of type In my component I need to pass the object "company" which contains "company_token". I am gettin error TS2345: Argument of type 'Company[]' is not assignable to parameter of type 'string'. "company" is returned by a context which I pasted right after Home com...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make each Cloud Run execution has different IP address? Whenever I search over the internet about this, the result only show how to make a "static" IP address for Cloud Run. While what I want is actually to get an ephemeral IP address even for each execution. But when I implement the Cloud Run and check the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: file css is not converted to html I'm just learning to program and I have such a question, the css file is not converted to html , but it is in the page code (chrome). clearing the history and cache did not help. thanks in advance for the answer, I don't know what to do anymore when including css file. chrome is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Flutter error: (MissingPluginException(No implementation found for method Auth#registerIdTokenListener on channel plugins.flutter.io/firebase_auth)) My Flutter app is connected to Firebase and has Email Authentication enabled.When attempting to log in I get the following error: MissingPluginException (MissingPluginE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a contextual action mode without the action bar? I'm trying to create a RecyclerView that has selectable items using ActionMode, while making it look like a Popup Menu with no toolbar/ActionBar. I've been trying to figure this out for some time, but I can't seem to stop the ActionBar from showing up wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a Linear and a Relative Layout share horizontal screen space as percentages? How to make a Linear and a Relative Layout share horizontal space as percentages? The LinearLayout on the left needs to have a percentage width of the screen, and the RelativeLayout on the right can just take up what remains. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Run a function for all objects in a class So, I am working with classes and I want to be able to make a class without being forced to call functions for each individual object. Is there any way that I would be able to make 1 or 2 lines of code that run a function for every single object in that class?
{ "language": "en", "url": "https://stackoverflow.com/questions/75586444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java heap space error while displaying an image in java swing * *I wrote a code to show the details (with the picture) of a specific record from the database (in a JDialog) *after executing this code multiple times I get the heap space error *while trying to debug the code I found out that the problem is with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Copy and deepcopy not working on/with a lambda function? Here is a minimum example of my code that triggers the error: x = np.array([0. , 2.0943951, 4.1887902]) coeffs = np.array([[-0.08952269, 1.59581565, -0.55240446], [ 2.33359441, -0.71809073, 0. ]]) quadratic_spline = piecewi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding all possible solution pairs to an algebra problem with constraints in python I am trying to use python to create list of all pairs of numbers between 2 and 75 that average to 54, where each value in each solution pair can go up to 6 decimal places. And so I want to have a list of all of these solution pairs....
{ "language": "en", "url": "https://stackoverflow.com/questions/75586451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows browsers fonts not being displayed correctly (possible web font issue?) I've been trying to fix this issue for as long as I can remember and finally gave up and here I am.. I'm running windows 11 and all my browsers (Chrome / Edge..) do not display some of the fonts and resort to funny pixelated fonts. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Cloud Run 403: Insufficient scope for certain users while other users work fine I have a secured node.js backend running on cloud run. One issue I've been having is that some users face a 403 insufficient scope from "Google Frontend" server, client does not have permission to get URL. This is strange because it is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to render OpenCV frames in OpenGL 3.2 GtkGLArea in Python? How do I render images captured by OpenCV in OpenGL 3.2 GtkGLArea in Python? Many of the examples online are 10 years old, outdated and are using OpenGL 2.1 or 1.1 examples. The only way I can do this is through shaders. The only working example to get a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Returning a variable from a .then() method in Typescript `Hello, I am a first year computer science student who tries to make a simple web crawler in TypeScript for one of my beginner couesess. I've decided to use the cheerios and axion library, but have stumbled across an error. Also english not my main language so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Synchronous input and output in the terminal (like a chat) in python I want to make synchronous input and output in the terminal in python (like a chat). For example, first thread prints the text to terminal from top to bottom while the other stream receives the user input at the very bottom of the terminal, without...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Estimation of Gumbel copula in R failing As per the title, I'm having an issue with estimating copulas in R. For this project I need to use the copula package. I have the log returns of two assets, $GM and $AAPL. I need to estimate the copula using MLE. It would seem that for this I need to use the fitCopula functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fill in missing dates and add lists together from column by row and front fill in pandas dataframe I'd like to fill in the following dataframe with dates between a range and front fill all the columns. As I am completing this, I would like to append the lists in the Wells column so it becomes continues to add items...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linear interpolation application/clarification I am reading a manuscript, and the authors state that variables L2, L3, L4 were calculated using linear interpolations of the first and last measurement occasions (L1 and L5). L1-L5 can be thought of as measurements taken at time points 1-5. Using the following formula:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google map showing as grey screen in web app I'm hosting my flutter web app on firebase and when I open the page with a map the page is completely grey. All the other pages work fine but not the map one. This is my index.html file: <!DOCTYPE html> <html> <head> <!-- If you are serving your web app in a path ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scala vs Java big decimal equality weirdness/inconsistency Why is BigDecimal equality different in Scala compared to Java? scala> new java.math.BigDecimal("0.1").equals(new java.math.BigDecimal("0.10")) res7: Boolean = false scala> BigDecimal("0.1").equals(BigDecimal("0.10")) res8: Boolean = true
{ "language": "en", "url": "https://stackoverflow.com/questions/75586468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: .htaccess rewrite not working as intended I'm using the following rewrite rule on my website RewriteRule ^feed/(.+)$ rss/$1 [L] This works fine for URL like this https://example.com/feed/https://anchor.fm/s/db2a6d50/podcast/rss which are redirected to https://example.com/rss/https://anchor.fm/s/db2a6d50/podcast/rs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas groupby transform yields Series instead of DataFrame on empty DataFrames Running this: for periods in [8, 4, 0]: print(f'--- periods {periods}') df = pandas.DataFrame(dict( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inserting a document in a transaction in MongoDB? * *Within a transaction, a document is inserted. *Before the transaction is completed, will an outside query see this inserted document? A: db.foo.drop(); db.createCollection("foo"); session = db.getMongo().startSession(); session.startTransaction( { readConc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting response 301 when trying to connect to a websocket via proxy on SSL apache I'm trying to set up a websocket server using node.js on an existing apache server. Since the server is SSL I need a websocket to also be secured. For that I'm trying to implement the proxy solution. I'm redirecting any websocket requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoose stopped accepting callbacks for some of its functions I've been using callbacks for .save() and .findOne() for a few days now and just today I encounter these errors: throw new MongooseError('Model.prototype.save() no longer accepts a callback') MongooseError: Model.prototype.save() no longer accepts a cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure DevOps REST Interface- Can't get all builds with Builds LIST I am trying to make a rest call to get all builds of a certain definition. The problem is, I don't think it's getting the delted items even though I'm asking for them. there is no ContinuationToken in the response before someone asks, this seems to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Missing lib file in my imgui_master download I'm using imgui for a simple project that uses imgui for a simple anti afk. (it's more about learning imgui than the actual antiafk), my problem is that "imgui_impl_win32.lib" isn't coming with the download, how can i find it online? I tried to build my code, but i am cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: slow search function google script i have a code i use to search for entries in a google sheet, the number of entries is 5000, it takes around 2 minutes for the search function to return a result, can you help shorten that time to reach the data am searching for, i provided the functions search records and get recor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to auto-generate new passwords for old GridDB database users? As a database administrator, I can change the password of any user of a database, and the user can also change it themself. However, I have a database representing all the users of a database, their passwords, and when the password was changed last. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I need a python code that calculates the volume profile in the same way that TradingView does In the following link are the steps to calculate the POC (Point of control) and the Value Area (VAH and VAL). https://www.tradingview.com/support/solutions/43000502040-volume-profile/#:~:text=Determine%20the%20total%20volum...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: JLabel resizes image When I set an image of 72 px width and 108 px height it gets bigger in a JLabel, being of 135 px by 167 px. I need it to set multiple images in tiles in a scroll pane. Here is the code: public class TileViewPanel extends JPanel { //Panels and containers private JPanel tileContainer; private JScr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conditionally Formatting a Custom Image in Excel I want to create an Excel Sheet that takes values as seen below And turns them into an image like this with the colors of the spaces being the colors of the conditional formatting as seen above. Then I want them to color in their assigned spaces "Position" A: If yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Did I somehow break the api? I have just a simple prompt asking the AI how it is doing async generateArticles() { console.log('article') const response = await fetch('https://api.openai.com/v1/engines/davinci-codex/completions', { method: 'POST', headers: { 'Content-Type': 'appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Deserialize items in JSON array to different enum values with associated values I am trying to deserialize a json like so { "timestamp": 123456789, "ownerAssets" : [ { "ownerId" : 123, "location" : "USA", "assets" : [ { "car" : t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: in Google App Script how do i RETURN data from one function to the calling function I'm trying to learn Google App Scrips and it has a RETURN Command which is supposed to allow you to return data from a called FUNCTION to the calling FUNCTION. I must be doing something wrong but what? var statPass = true var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Add number` string-like (`1+1` = `11`) I'm making a calculator operating system for a proof of concept Rust OS. I've dug myself into a sort of deep hole with how I handle math, but I don't want to have to rework it all. I have 2 numbers (they are technically f64s but will never have a floating point) and I need to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cant connect to URL using WiFiClientSecure library I'm following this tutorial: https://randomnerdtutorials.com/esp32-https-requests/ I downloaded the Certificate for https://pulse.eco, then replaced the one from the demo code. It connects to the Wi-Fi and gets an IP. However, it cannot connect to the server. The er...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Predicate works on FetchedResults but not on FetchRequest I want to add a predicate to a FetchRequest... It is not working if i put it into the FetchRequest: not working @SectionedFetchRequest(sectionIdentifier: \Product.manufacturer?.name, sortDescriptors: [NSSortDescriptor(keyPath: \Product...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Appium on real device - works fine manually, cannot reach host under appium Mac using Android Studio, connected via USB to a Samsung Android Tablet. Here is my IP address map: my laptop's private IP is 192.168.1.129 my tablet's private IP is 192.168.1.103 my dev environment IP is 10.10.22.125 (this is where the bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can somebody help me debug my lua code for minecraft computercraft turtles? So i managed to write my code, but im not sure how it is turs out. Im not a english expert my native language is Hungarian but i trying my best. (also i still learning codeing) So my code basicaly get player inputs to set all coordinates wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Universal link data not working on Flutter iOS release I am building a feature where users who don't have my app but want to add someone to their friends list can follow a Firebase dynamic link to install the app and sign up. Once the user signs up, data is pulled from that dynamic link to start the new user's accou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: react-zoom-pan-pinch: Hot to set size of the TransformWrapper based on space available for the component, not based on size of the image? I'm trying to use react-zoom-pan-pinch library, but I have a problem setting up the initial size of the component. My image is very wide. If I run my app it creates an area where ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Code that I worked on a month ago is not working anymore About a month ago I was working on a project in R. I wrote the code and ran it and it worked perfectly, it gave me the result I wanted. I want back to run the code today and it no longer work and I get an error message now. The error message it displays is "E...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Reading a Xml file from within a class Not sure how to right the title. Been doing a simple program that requires o user to login to an account. Made a separate class to store the user info and decided to make the reading and writing functions inside the class to make the code cleaner but when I try to read the user...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does GCC C89/C90 ANSI C use __STDC_VERSION__ in Eclipse? I need to confirm my code if I'm using ANSI C (C89/C90) and I notice this: Even if I have selected ASNI C (C89/C90) standard in Eclipse CDT. Question: It is told that ANSI C does not use __STDC_VERSION__ but why do I see the same value for __STDC_VERSION...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieving the amount of available adapter memory in DirectX 11 DirectX 9 had IDirect3DDevice9::GetAvailableTextureMem() which gives an estimate. I cannot readily find the equivalent in DirectX 11. I found DXGI_ADAPTER_DESC.DedicatedVideoMemory which gives me the total, but what I’d like in addition to that is the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Group a flatten array in JS for below flattened array in javascript [{ "category": "FRESH MEAT NON PI", "categoryId": 76, "subCategoryId": 12, "subCategory": "BEEF-THIN MEATS", "itemThreshold": null, "sellItem": "BEEF SHORT RIBS", "sellItemId": 980217310, "key": "76-12" }, { "category": "FRE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Do multiple macro invocations initialize global structures once or multiple times? Let we have a proc-macro = true crate with one or several procedural macro in it. Let this crate with macro has a lazy_static variable used by the macro. Let another crate calls macro from the first crate multiple times. Will the init...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Infinite loop when using the goto function in C So I am trying to create a code that lets the user choose from a list of workouts and after they choose their desired workout, the have the option to do more workouts or not. But for some reason, lets say the user wants to do more workouts, the code keeps looping over ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }