text
string
meta
dict
Q: Setting the date of a file to that of the previous month - KornShell Im trying to set up a KornShell script so a file is FTP'd on the first of each month. When the file is created it should read the date of the previous month - If the job was ran on April 1st the file would be filename_MAR2023. Is this something tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extract data frame from dictionary containing data frame of different sizes? I am using a dictionary to pull data and using a for loop to store iterate through each item and storing it as a unique key: df_dict = {} key_name = {"item1": "url", "item2": "url", "item3": "url" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NullReferenceException: Object reference not set to an instance of an object in unity I’m a newbie to unity and C# in general, there’s an error [07:42:00] NullReferenceException: Object reference not set to an instance of an object Unity.PlasticSCM.Editor.Plastic Window.ClosePlasticWindow (Unity.PlasticSCM.Editor.Pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Does @DBRef supports on aws document db? I am migrating a Spring App which has @DBRef annotations in implementation. Does this support in AWS Document DB?
{ "language": "en", "url": "https://stackoverflow.com/questions/75629301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove .txt on a .zshrc file using Z shell on a mac? I had to edit my .zshrc file and it was locked, so essentially created a copy, then edited and deleted the original .zshrc file. I have renamed my '.zshrc copy' file to just '.zshrc' however when I ls -a it shows as .zshrc.txt How do I remove the .txt end? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Add image to ASP.NET MVC project How can I add an existing image to my ASP.NET MVC project? The image is not being displayed, it works fine when I copy the url directly from Google, but when I save it to my PC and then try to add it, it doesn't work. I've tried this code <i> <img src="C:\filename.txt\WebApplica...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Allocate CPU and memory resources to specific users or groups in Postgres I have Postgres DB and I am looking if it is possible to create users for our analytics team and allocate CPU and memory resources to that users in Postgres. Something similar to WLM on Redshift -> distribute resources per users. If it is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Pulling data from nearest date for multiple months I have the following data of date and color in a mysql database 2023-01-28 red 2023-01-29 blue 2023-01-30 blue 2023-01-31 red 2023-02-01 blue 2023-02-02 blue 2023-02-03 blue 2023-02-04 blue 2023-02-05 red How can I pull the closest date to current date from eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sampling a tensor multiple times I am solving a problem that requires randomly sampling "b" rows from a 2d tensor "A" ,"M" times. I was trying this code to create a 3d tensor np.random.choice(len(A), size=(M, b)) This code is giving an error that too many indices for the tensor of dimension 2. I can write a code to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rJava and RJDBC on Databricks I am trying to install rJava and RJDBC on Databricks (from notebook). I ran recommended lines: %sh ls -l /usr/bin/java ls -l /etc/alternatives/java ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/default-java R CMD javareconf Installation went fine, but when I try library(rJava) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to get kerberos credentials from inside a spark job? In a kerberized cluster, I need to call an http service which is secured with kerberos from spark code. I am actually able to call such service with curl from the command line i.e. with curl --negotiate -u ':' -X GET http://myhost/svc of course aft...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is requiring sufficient funds redundant in a smart contract I saw a contract that has a function that transfers funds to another address (whether those funds are sent directly to the function or exist in the contract's balance is irrelevant) and it required that the funds exist before executing the call. function tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript template literal mapped type i'm working on a converter app and have been trying ~ for a while now ~ to successfuly type an object with template literals as a mapped type. What I want to do: type the formulas object in the code below, that would contain every formula to convert celsius to kelvin, kelvin t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stripping down cluster-manager/admin permissions in GKE? I'm trying to secure my cluster so not even myself is able to see some of the secrets or run kubectl exec. After many attempts I decided to just obliterate all cluster roles in an effort to see if it changes anything. And apparently it doesn't as seen below. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Carousel displayed incorrectly in vue3 project I ultimately try to place a Carousel inside a Modal, but I already fail by just putting the Carousel into a separate component itself. I can see the texts I have put in there, but the control arrows get displayed as a green circle (about 10px wide) on the left and a gre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS kms encryption with asymmetric key using C# I am using .Net SDK (AWS.EncryptionSDK) for AWS KMS encryption & decryption. With example code provided by AWS is working for me while I am using symmetric key. But, now I need to use asymmetric key for encryption & decryption. Now I am getting this below error while u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to vectorize cvxpy code to speed up compilation? I'm using cvxpy on Linux with mosek-10.0.37 solver. I'm running the code below and I'm having a issue when I increase the value of K (after 40). The cvxpy gives the warnings below and takes a long time in the reduction and consumes a lot of memory before crashing....
{ "language": "en", "url": "https://stackoverflow.com/questions/75629321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change data type of values in DataFrames.jl table I need to change the data type of a value (or column-wise if needed be) within a DataFrame.jl object. From String to Int specifically. Not encountering any luck even with the minimal example: using DataFrames df=DataFrame(x=["1","2","3"]) df.x[1]=parse(Int,df.x[1]) #...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ammo.js - How to make same velocity from one to other object via network How to make same velocity from one to other object and make absolutly same movement. I have multiplayer in dev and i already have local player [camera & capsule physics] > net player [just character animation]. Because net player is just a fbx-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parse Shopify Json response in Delphi I know this is a variation on a common theme, but I need to parse a Json response from Shopify, to extract id and price, which is coming in the following literal format: {"data":{ "variant0":{ "productVariant":{ "id":"gid:\/\/shopify\/ProductVariant\/4401...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing data from async function - React JS I'm trying to query a data service and use the json response to create a table with React. I have the following async function that creates a list of the json response (this part works as intended): export const service_query = async function(url){ const resp = await f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Proper way to change the plot size of my heat map plot I've generated such that it is wider than it is tall? I am plotting a set of data into a heat map using Python. Right now the plot I am generating is much taller than it is wide, I'd like it to be more of a square shape in lengths (so make each block wider and a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enable SVE instructions I am in EL1. The EL3 Code is supposed to have activated sve using CPTR_EL3 for all levels. I am trying to do a simple FMOV to sve registers. It crashes. * *What else should I check/set for SVE instruction to be available? This is compiled using clang/llvm-as .arch armv8-a+sve // load featu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ingress controller cannot forward requests to grpc backend : "service does not have any active endpoint" An nginx ingress controller is meant to be deployed in its own namespace. The ingresses that use it have to be deployed in their own namespace, then use the "nginx" ingress class to target the nginx ingress contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding Courses together in formula in Crystal Reports I'm creating a custom Transcript for our school and at the bottom of the report I need to add all the courses together for "Credits Earned". Most are 1 point each, but then there are a few that are half points. I started creating a formula for this and it works j...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Textfield moves when tapping Keyboard I have a problem that I never had before. I have a ViewController with a tableView on full screen. Constraints 0,0,0,0 to safe area. In a header view I have some imageviews and labels - the height of the is dynamic , the cells (1 prototype ) are used for comments. the cells have...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: do same operations on all class methods using decorator ( DRY principle ) Assume this sample class: class A { m: number; constructor(n:number) { this.m=n; } method1(a:number): number { this.m=this.m+a; return this.m; // return this.m.toString(); } method2(a:number): number { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jaxws 4 / java 17: it is not a jaxws or a jaxb binding file I used to generate sources from WSDL/bindings, using jaxws-maven-plugin with spring-boot 2.3.7 and java 11. Now, after upgrading to spring-boot 3.0 and java 17, code generation fails, because my bindings files are ignored with error message bindings.xml: no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I was doing this question on leet code and I was surprised my while loop did not break. Can anyone explain me how is this possible? `https://leetcode.com/problems/find-the-middle-index-in-array/ I tried to create a layman solution. I thought once the values get match the while loop will break. But to my surprise, It...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: pybbn InferenceController.apply takes too long to run I have created a bbn consisting of 12 nodes, with edges that connect the first 11 to the final node. Each of the 11 nodes have 3 or 2 possible outcomes (let's save 'Low', 'Med', 'High'), and the final node can take 4 cases. I have created the bbn with known proba...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm running a 3d model from git repo NDF. I got the CUDA out of memory error? Traceback (most recent call last): File "/work/ws-tmp/g051382-NDF_task/ndf/train.py", line 51, in <module> trainer.train_model(cfg.num_epochs) File "/work/ws-tmp/g051382-NDF_task/ndf/models/training.py", line 107, in train_model ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The printer edits are cut off at the top and bottom after upgrade cups to 2.2.6 with Postscript source The background, we're upgrading a technical platform for our ERP that sends postscript editions in A4. * *Our old cups --> Redhat 6.1 / Cups 1.4.2 / Foomatic 4.0.4 *New platform --> OL 8.7 / Cups 2.2.6 / Foomati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: No response of my commands from Bungie API @client.event async def on_message(message): if message.author == client.user: return if message.content.startswith('!drop'): drop_results = get_drop_results() if drop_results: await message.channel.send(drop_results) els...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Observer and Coroutines with Sugar ORM DB instead of Room? My app uses the Sugar ORM instead of Room DB, however, I would like to use the power of the coroutines and observer to observe the changes in the DB and present the changes to the view. The majority of examples that I saw show using coroutines and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I debug apps using Bluetooth instead of USB? Is it possible to debug apps on Android using Bluetooth? I am working with Processing 4.1.1 and I'd like to run my apps on my Android phone. Processing allows to run apps on devices which are connected through USB debugging, but there is something wrong with my cable/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use htaccess to change a folder name and remove a string from the end of a URL My Goal I'm trying to use htaccess to change URLs like this... https://example.com/OLDNAME/item/a-long-file-name-separated-by-hyphens-2 https://example.com/OLDNAME/item/a-long-file-name-separated-by-hyphens Into URLs like this http...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Expected and Received constructor is the same but not passed the test in Jest I'm not sure what is wrong here, but it seems to not being able to pass the test. Function returns an array, so it's an instance of an Object, right ? This is what I got as an output from Jest: FAIL src/services/database.spec.js ● shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AdonisJS in docker container seems not releasing memory used from worker_thread I have a AdnoisJS app running in docker container on AWS EC2 instance. We use worker_thread to composite images. I found it seems not releasing memory after worker_thread finished. I tried same request on my local computer and it can run...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I pass multiple commits to a Cherry Pick API in Azure DevOps? I do have a requirement where I need to create cherry pick only the specific list of commits instead of one commit and then raise a pull request from the temporary branch which Cherry Pick API creates for me. I didn't find any sample script to ach...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The type of a spatial column cannot be changed (Requested changing type from "geometry" to "geometry" for column "center_location" in table "parking") I use Symfony. I have custom type for doctrine, which extends from Jsor\Doctrine\PostGIS\Types\GeometryType (jsor/doctrine-postgis library): use Jsor\Doctrine\PostGIS...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make operator not case-sensitive on column names? I'm trying to project a column, but the column headings don't have a consistent casing. How can I merge these into a single column? I tried using tolower in several places, (example) tolower(parse_json(tostring(parse_json(Properties).requestbody))).Propertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adding graphs to en existing graph using ggplot I have a function that returns a sample of Brownian motion as a result which is in form of data.frame odd columns are the times of each sample and even columns are the data corresponding to the previous time column. I also have a function that graphs the result of a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqlalchemy connecting to local DB returns "ArgumentError: mapping or list expected for parameters" I want to connect to a DB in my localhost. The idea is to select a DB and then insert a new column. When I attempt to connect to the database I receive the error below: PS C:\Users\Tino> & C:/Python310/python.exe c:/Us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PACMAN LOOP, need to explain those for loops let drawWalls = () => { for (let i = 0; i < map.length; i++) { for (let j = 0; j < map[0].length; j++) { if (map[i][j] == 1) { createRect( j * oneBlockSize, i * oneBlockSize, oneBlockSize, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Failed to create task run pod ... : translating TaskSpec to Pod: Get "https://index.docker.io/v2/": dial tcp 34.205.13.154:443: i/o timeout I am running tekton-pipeline v.0.45.0 in a Kubernetes cluster v1.26.2. When I run this task : apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: hello spec: steps: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can Google Analytics page-level events fire in the same path exploration step as the page_view event? I see in a path exploration on a site I'm working on that click_links, scroll and other page-level events are triggered in the same step as page_view, immediately after session_start. If the page_view event is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get text between two symbols in R This may sound like a duplicate question but I have spent the last hour looking for the answer and can't apply the other similar sounding questions' solutions to this problem. I have a string of text and want to extract the text from between the second _ and the . The furthest I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to Resolve IDAPython Variable Warning Error I keep Having a Warning Error When Loading an IdaPython *.idc Script file and i Don't know what is what After Loading the Script Warning pops up With the Following : F:\REDACTED\DynamoRIO-Windows-9.90.19403\bin32\REDACTED_-_dll.idc: F:\REDACTED\DynamoRIO-Windows-9.90.1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: db.query not working and dont give any response I have a little problem. Im trying to make economy system in discord bot. I programmed a code to add money comannd. Im using mysql. When i try to SELECT from database it works. But when I try to use db.query for UPDATE it just dont work. It looks like the command is su...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error:Drop down all elements when click on one element with same class I have multiple dropdowns and its will drop all element when I click one. I try to use for loop , but It doesn't work. The second loop not working// when I change [i] -> [j] it's work, but it drop all Below is just 1 of many "route-option" div ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: arrange column alphabetically tidyverse R I have: df = data.frame(col1 = c("A","b","B","C","c")) I want: But when I try using arrange and tidyverse, I get: > df %>% arrange(col1) col1 1 A 2 B 3 C 4 b 5 c A: You can use: library(dplyr) data.frame(col1 = c("A","b","B","C","c")) %>% arrange(tol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: Cannot convert BigInt to number, js engine: hermes - noble-secp256k1 package I have a react native app, I am trying to use the package noble-secp256k1. I need this in order to generate a key pair (private and public key) secp.getPublicKey(secp.utils.randomPrivateKey()), however, just by having this packag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a 'object' with multiple variables/values in it in a bash script I am trying to make a dummy character for a project, & I don't know how give it multiple values (i.e. hp, atk, def, etc.) [Sorry if this is an obvious answer, I'm still new at this.] I've tried using case like this, but actually thinking ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show Hide for UILabel over constraint not working as expected for height constraint I have UILabel which I am showing and hiding on tapGesture. I have created label programatically and set constraint programatically only. by default UILabel is visible with heightConstraint = 230 on tapGesture method I am making heig...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update a Python library that is currently in use? I have a few long running processes (FastAPI, Dagster, etc...) and it's not clear to me how I should handle updates. I can just run pip install {package} --upgrade, and run it until it eventually works. But is this the best way to handle it?
{ "language": "en", "url": "https://stackoverflow.com/questions/75629388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to publish multiple artifacts with different group using gradle? I have 2 artifacts I want to push. first one is a tar ball called myTarBall-1.1.tar.gz second one is a jar file myJarFile-1.1.jar I want to push myTarBall-1.1.tar.gz into nexus to the following location com.sample.location.abc. I then want to push ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't I show confusion matrix of ensemble model majority voting approach? I've built an ensemble model with a majority voting approach. I used pretrained models to build the model. code snippet: from sklearn.metrics import classification_report, confusion_matrix # Make predictions using the ensemble method with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter start debuging with android studio enter image description here Help me pls with debug. I am try to debug but the result was error like in picture. But my i can connect the device from android studio to vs code and it works and start the little phone. After that i clicked on debug(F5). but the vs code return...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Redirecting to an ErrorPage via IRequestCycleListener Wicket In the project I use Wicket 9.12.0. If I use a ErrorPage without parameters: "getApplicationSettings().setInternalErrorPage(ErrorPage.class);" Then with the exception everything works fine. If I use the ErrorPage with parameters via IRequestCycleListener: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Network Log interceptor showing null for many components of the Response The news application I have developed is facing some problems and I am unsure if there is something I can do on my end or if it a server-side error The application is not displaying any images and all of the news is somehow outdated, I have lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In code, I'm trying to change the credentials of an Excel data source that is using an oData feed and Power Query; but am baffled? [ Apologies in advance - I am not an expert (or even a user really) in Excel, so my terminology may be incorrect ] Our VB.NET app currently opens up Excel Spreadsheets, changes their con...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Podman - Cannot reach container with exposed port I started a container on my CentOS 8 system with podman (v4.5.0-dev), I exposed the port 8080. The port was reachable on localhost:8080 until I changed some network configuration following these steps in order to be able to resolve pods' IPs. As you can see the port ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to connect to queue manager with TLS enabled in ibm-mq I am writing one java client application to connect to IBM-MQ queue manager configured in TLS. Below is java code: import com.ibm.mq.MQC; import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQQueueManager; //import com.ibm.mq.constants.CMQC; public class IBM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: make cubes with stl, use factional coordinates I want to make a lot of little squares in space, but I get an error. I use fractional coordinates How can I do what I need to do? im = Image.open("circle-black.png") pixels = im.load() width, height = im.size IMG_SIZE = width cube_a = round(50 / width, 2) colors = im....
{ "language": "en", "url": "https://stackoverflow.com/questions/75629411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to clear content in a dynamic range below a table? I have 3 tables on one sheet and right now I have vba for resizing tables 2 and 3 whenevever table 1 is resized, but would it be possible to clear all the contents below tables 2 and 3 when they are resized, because the formulas are left over Here's t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I couldn't understand why the page content changed When I open my page, there are suddenly such shifts on the images. Does anyone know why and can help me out? I checked the css files and looked at the links but couldn't find anything.
{ "language": "en", "url": "https://stackoverflow.com/questions/75629414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I separate symbols [">", "<", ">=", "<="], numeric value and unit from a string by using regular expression in Python? I would like to separate symbols, numeric value and unit from a list of string by using regular expression. x = ">=40.55%" Currently I try to use the following regex in Python to separa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTP response header for credentials Is there some HTTP response header intended for authentication/credentials-data except for Set-Cookie? I am working on an HTTP API which transfer authentication tokens in cookies. I need to add support for a legacy system which supports all HTTP headers except Set-Cookie / Cookie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a third column based on first two column in pandas dataframe? I have a data frame like below col-a col-b abc 123 def 456 ghi 789 I have a string str = f"https://{val1}.{val2}" and using it I want to create col-c like below col-a col-b col-c abc 123 https://abc.123 def 456 http...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Div not disappearing I'm making a website, but for some reason when I try to make some divs disappear, it doesnt work. Here's the code: function now() { q2.style.display = 'none'; q3.style.visibility = "hidden"; } (now() is an onlao09d function for body) Any help please? I tried(as you can see) to use both ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio Code on Mac installation problem I installed VS Code on my Mac (Big Sur, 11.6.2) last night. It won't run because "permission denied ... please make sure the following directories are writeable: ~Libary/Application Support/Code/..." There is no Code folder in Library/Application Support I've looked aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Does &mut T implements Borrow break a mutable reference rule? &mut T implements Borrow<T>,so (&mut T).borrow() will create &T. Does this break the rule that “if we have one mutable reference, we can not have any other references (mutable or not)”? use std::borrow::Borrow; let mut n = 1; let r1: &mut i32 = &mut n; le...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Submit Button in two form in two tabs Antd and React I have two tabs with 1 form in each one, i'm import pay component for save data, when submit of first component do submit of second form, i need submit of one form in the first tab, the second form validate fields but should not <Tabs> <TabPane><FormOne/> <TabPa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mat-table with input change value <form [formGroup]="form"> <div formArrayName="data" *ngFor="let formGroup of getPartControls(); let i = index"> <mat-table [dataSource]="data.orderPositions"> <ng-container matColumnDef="relevance"> <mat-header-cell *matHeaderCellDef>price</mat-header-cell> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add dotted lines in index page using pdfMake? The current index page is designed using pdfMake. I have shared the image of my current index. Here the index titles are getting generated dynamically. I need to add dotted lines between the index title and number The image i have shared here is the result i am...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redis Lettuce - get object data I had used following tutorial to integrate Redis using Lettuce connection in my springboot application. https://blog.tericcabrel.com/data-caching-spring-boot-redis/ The good thing about the above approach is I was able to define my own repository methods. Also, was able to set and get...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make sure that “pre-commit autoupdate” gets run periodically? I know that I should check for pre-commit hook updates from time to time, but I rarely think about running pre-commit autoupdate. I end up using out-of-date pre-commit hooks for months. pre-commit.ci will automatically run pre-commit autoupdate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to populate SimpleITK.Image metadata using nibabel.Nifti1Image object? I am working with MRI images saved as nifti (.nii) files that have 5 dimensions (x, y, z, diffusion direction, repetition) so I cannot simply use SimpleITK.ReadImage() to get an Image object (5D is unsupported by SimpleITK). I need the Image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why my webdriver automation in finding path have to recall each time I change of it? Ok so I don't have really problem, but I don't want my code to look messy but it does make it messy because of this code. containers = driver.find_elements(by="xpath",value='//*[@id="table"]/tbody/tr') So basically I have a crud-app...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue in fine tuning flan T5 model Tokenize input data text = "Sample text for fine-tuning flan t5 base model." inputs = tokenizer.encode(text, return_tensors='pt') Prepare labels labels = inputs.clone() labels[0, :-1] = labels[0, 1:] It should work but I got this error: RuntimeError Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server Errors Near ' I'm trying to run the syntanx in Microsoft SQL Server Management Studio ;with rfm as ( select CUSTOMERNAME, sum(sales) MonetaryValue, avg(sales) AvgMonetaryValue, count(ORDERNUMBER) Frequency, max(ORDERDATE) last_order_date, (select max(OR...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Should I mock module? I'm writing tests for a piece of code using Jest. I'm testing a module called Inquirer, a CLI tool to interact with the user and mainly in this case to store values from the user (project is a text based adventure game). Could anyone explain to me if I need to or why I should mock the library i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tkinter frameless window moving causes mouse cursor glitch (teleport to the left up corner of the window) I use move() function to move the window via this code: window.overrideredirect(True) def move(event): window.geometry(f'+{event.x_root}+{event.y_root}') title_frame= Frame(window,bg='gray', height=20) titl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to combine the a list of outputs into a single data stotage variable? Below is a code which allows you to detect a text from a picture. The code uses Google API and when run will show an output in the following way: Initially i want it to be displayed in one line such as this : PACHINKO MIN JIN LEE Bye Below yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: typescript/javascript promise into rxjs I have some code like below: async someFunction(){ ... await apiRequest() ... } apiRequest(){ return new Promise(resolve=>{ this.httpClient.getAuth('/api')}.subscribe({ next: res => { ... resolve(true) }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Motorola 68k: Convert number to ascii I want to convert unsigned numbers to an ascii string in 68k asm. I can do this for something in the range of words: move.w #12345,d0 ;example number to convert (unsigned word) lea text,a0 ;adress of output string ;first digit and.l #$ffff,d0 ;mask lower word...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix - Response is undefined when Testing an Angular Service I have a service where am testing (Unit Test) a function which returns an observable. describe( 'MyTest', () => { let service: MyService; let httpTestingController: HttpTestingController; beforeEach( () => { .... service = jasmine.createSpy...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: matplotlib function won't work with negative floats I am working in plotting a simple map with matplotlib which includes data from recent earthquakes. I am sizing the dots in the map according to each instance's magnitude, and it seems that there are some earthquakes that have negative magnitude. When I run my code,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DropDownListFor in aspx i'm trying to use a dropdownlist that has 2 values. Thé dropdownlist selected item should be set to yes or no , depending on a bool field that is in my object. I send my object through ViewData as well as the dropdownlist items (yes,no). I saw DropDownListFor in other answers but it is not ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to consume fixed messages per time on RabbitMQ? Currently, I'm using the spring-boot-starter-amqp module and can use the annotation @RabbitListener to read messages on background, How can I consume a fixed number of messages from a queue only when a method is called? What I'm trying to build is an "on-demand" co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expired ack deadline while message is acknowledged well within time On one subscription, I'm seeing occasional redelivery of messages. This seems to happen due to an expired ack deadline, which I can tell by looking at the "expired ack deadlines count" metric. The subscription is configured with an ack deadline of 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set up permissions on Linux Debian so that PHP can change folder permissions How to set up permissions on Linux Debian so that PHP can change folder permissions using the chmod() function inside php through web-site. hmod($destiation_dir, 0777) don't work in php
{ "language": "en", "url": "https://stackoverflow.com/questions/75629479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Vlookup failing to bring back correct results I am using a VBA that completes a VLookup, it works, but brings back a value of #N/A. I can manually intervene by double clicking in the cell the vlookup is looking in, but how would i implement this action into my VBA? I realise this is an error with my data, not the ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Problems using preg_replace Regx is not my thing. I have a large file where I want to replace the following example: <g:id><![CDATA[131614-3XL]]></g:id> should be replace with: <g:id><![CDATA[131614-3XL]]></g:id><g:id2><![CDATA[131614]]></g:id2> Please note that "-3XL" is deleted in id2 and please note that -3XL c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do you get plural currency name with JS? I know I can use Intl.DisplayNames to get the singular form (e.g. US Dollar). const currencyNameEnUs = new Intl.DisplayNames( 'en-US', { type: 'currency' } ); const currencyCode = 'USD'; console.log( currencyNameEnUs.of( currencyCode ) ); // Expected output: "US Dollar" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing Test case for Generic interface with default method I'm trying to write test cases for the interface with default method Interface: public interface XYZConverter <D extends DomainClass, E Extends EntityClass>{ E createFrom(D dto); E updateEntity(E entity, D dto); default dtos.stream().map(this::...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why am I getting an error when assigning a bsoncxx::document to another bsoncxx::document? Using various options, I'm attempting to build a compound query using bsoncxx::builder::basic::document objects. So I can build auto these_guys = bsoncxx::builder::basic::document{}; these_guys.append( kvp("Name", "Smith") ); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why try/catch behavior is different in a coroutine scope and in a simple suspending function (Kotlin)? As I tried to managed the rethrow in a coroutine context, I finally understood that in suspending function we can use try/catch as usual (thanks @Tenfour04). fun main(): Unit = runBlocking { launch { do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use geom_ribbon in ggplot for ribbon plot in R I have tried ribbon plot in R,but my output is not correct ,Can anyone tell whats the problem with my code,thanks in advance Output for ribbon plot library(tidyr) library(ggplot2) library(dplyr) library(reshape2) library(tidyverse) data = read.csv("Kolkata1.csv")...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would I make a canvas element rotate to face the user's mouse I have tried to rotate the rectangle inside this canvas element, without any working solutions. it seems to always bug out or interfere with other elements. I have tried the following: var rect = document.createElement('canvas'); rect.id = 'canvas'; r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75629496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }