text
string
meta
dict
Q: Unable to install pip using curl (SyntaxError) I tried to install pip using curl: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py but I received the following error: File "<stdin>", line 1 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ^^^^^ SyntaxError: invalid syntax
{ "language": "en", "url": "https://stackoverflow.com/questions/75597871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Accessing group data frame information within a groupby() - .data, cur_group() etc Thanks in advance wonderful community! I'd like to know the "Rthonic" way to do the following: * *I have hierarchical data. The dependent variable is EucDistance. The measurements are by stride, but each stride measurement is classi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type manipulate in Rust In C++, we can derive a class from another as following: template<int N> struct MyType { int arr[N]; }; template<typename T, int E> struct ModType; template<int N, int E> struct ModType<MyType<N>, E> { typedef MyType<N+E> extend_type; }; Therefore, using ModType<>, we can derive one...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to get a the string value of an element in a Javascript object to use in the value from another element I'm building a website with some rpg stat blocks for a table top role playing game I'm trying get a string element to use data from another element. But it when I go to boot up a web browser it prints i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access Violation while trying to hook MessageBoxA() I recently started C++ (I'm using Visual Studio 22) and am just starting to learn how to use the Windows API. The program is supposed to rewrite MessageBoxA()'s memory to jump to procHook() when called, but it never does. Instead, it tells me this: Unhandled excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make the black box be below the red one and above the gray background? I've tried z-index to be -1 in the pseudo before but it went below the background. is there a way to retrace it behind the red box only? * { box-sizing: border-box; margin: 0; } .start { background-color: gray; width: 100%; he...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object won't delete from Databricks dashboard I'm trying to create a dashboard in Databricks and would like to delete a table I've added. If I click on the delete button (circled below) the table just turns red and does not delete. How do I delete this table from the Dashboard?
{ "language": "en", "url": "https://stackoverflow.com/questions/75597890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Benefit of having a delete and a deleteById in the Spring Repository interfaces I really wonder why there is a void deleteById(ID id); and a void delete(T entity); in the Spring CrudRepository interface. In my code I'm working with the JpaRepository which extends the CrudRepository. The concrete implementation in Sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blank column containing rows with 01.01.1900 in SSIS I'm trying to wrap my head around how to blank all rows containing 01.01.1900. The data typee DT_DBDATE does not accept case statements, string does, however, string will not return the desired format. Im using derived column. [column] == "01.01.1900" ? "" : [colu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to center app bar text title with buttons next to it I'm trying to center my Text and two icon buttons which are the arrows in the middle. I tried adding padding but it seems kind of brute force, wondering if there was a proper way for this. return Scaffold( appBar: AppBar( title: Row( children: [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSRS Grouping custom i have the following question: I want to do a primary group in a table but i only want to group 3 values of the field instead of the 6 he has. Example: Modifying the dataset isn't an option. Is it possible to do it with an expression? Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/75597903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel - duplicate name between column and table I have a table "vehicles" that has a column "wheels", which is an integer count of the number of wheels. I also have a table "wheels", which is in a "belongsTo/hasMany" relationship with Vehicles (note the count in the vehicles may not match the number of records in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to manage focus on multiple inputs in grandchild component in React/Typescript I have a situation where I have to give user the ability to edit a list and if they decide to discard the edit I show a modal which is in the grandparent. In the modal if they decide to change their mind and hit "No", the modal closes...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stripe Subscription and How to save card details using Stripe Elements for React and Django Backend I have implemented a stripe subscription flow for frontend and backend as follows : Backend urls : app_name = 'payment' urlpatterns = [ path('subscription', SubscriptionCreate.as_view(), name="create_subscription"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build failed: npm ERR! Missing a lot of unknown packages I initialized a new firebase project in my project. I added functions to my project and I am trying to deploy the default helloWorld function. const functions = require("firebase-functions"); // // Create and deploy your first functions // // https://firebase...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON to list of strings Hi have this JSON from web: { "trTrype": "TYPEX", "stops": [ { "location": "STREET 1" }, { "location": "STREET 2" }, { "location": "STREET 3", } ], } I'm trying to map it to have only the "locations" and then, for each, do s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: unsupported operand type for 'str', cast variables with nan.inf, nan.NaN, float64 evidence, but 'str' type error Problem Defined, Data Casting Tying simple cast, conversion to change variable with nan.inf and nan.NaN into a safe numeric .astype("float64") to handle integers and real number fractions. Type...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: S3 presigned url expiring too early I use boto3 to generate a presigned URL for an S3 object S3_CLIENT = boto3.client('s3') PRESIGNED_URL_EXPIRY_SECONDS = 7*24*3600 def generate_presigned_url(bucket_name, object_key, expiration): """ Generates a pre-signed URL for an S3 object. Args: bucket_name (str): The name...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error Uploading URL Stream to Pinata in React I'm trying to upload a URL to Pinata IPFS in React. I'm following their docs but I can't get past this error (attached below). The images I'm using are generated as a url and I'm trying to pass them inside the function. I've put a demo image there to test or reproduce th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Devtools load_all keyboard shortcut not working I reinstalled the latest versions of R and R Studio.restarted my PC.downloaded all the packages I need.Dev tools is one of them.the keyboard short ctrl+shift+L stopped working.however if I manually type out devtools::load_all in the console it still works.Any way I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement a custom UIView with structs in storyboard I followed this tutorial https://www.youtube.com/watch?v=qHGpf4fmjrA to make animated waves, and I'm trying to take this file and implement it in a storyboard UIView. I tried making the whole code a custom class but nothing appeared. Not sure how I would go...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Problem in Unity: "...does not contain a definition for 'transform' and no accessible extension method 'transform' accepting a first argument..." I wrote some code about moving little Hero entities across a Hexagon grid in C#. But for some reason it tells me the Hexagon class does not contain a definition for "trans...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I use fstream to read & conserve '\n' as a char when it changes to a new line in a .txt file? Let's say the .txt file has two lines as follows: Hi, X Bye I want the vector to contain ['H', 'i', ',', ' ', 'X', '\n', 'B', 'y', 'e'], but I can't manage to get fstream to record '\n' as a char (it just makes it a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS Lambda with Rust fails silently, calls main() but not handler I am trying to create an AWS Lambda function in Rust. Everything compiles and deploys fine but the invocation fails. I have created a Minimum Reproducible Example (MRE) and included a Docker based build for repeatability. Keep in mind this is an MRE s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Azure SDK for C IoTHub client fails to get clientID for device ID's in certain format I am using the Azure SDK for C and I am trying to connect a device to IoTHub. I noticed that I can connect with no issues if I use a device ID like this "testDevice". But if I use something like this "11:11:11:11:11:11" it fails to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the right way to use a handler in a CommandModule I have been using the handler to, you know, do the thing, whatever it is. yargs(process.argv.slice(2)) .strict() .demandCommand(1, "Please select a command\n") .command({ command: "setup <token>", handler: ({ token }) => { doSetup(token); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Rest Controller - Error 500 because service is null I have an endpoint like you can see below and if try GET http://localhost:8080/api/taxoffice/971/details in Postman, i'm recieving an error 400. If i try GET http://localhost:8080/api/taxoffice/101/details then i'm getting an error 500 "Cannot invoke "com.wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: seq2seq inference outputs wrong results despite high accuracy I am training a seq2seq model following Keras tutorial https://keras.io/examples/nlp/lstm_seq2seq/, the same code but a different dataset. Here is the main model code for reference: Code snippet for data preparation: for i, (input_text, target_text) in en...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python-Django project : errors when i run (python manage.py runserver) `Watching for file changes with StatReloader `Exception in thread django-main-thread:` `Traceback (most recent call last):` File "C:\\Users\\Elite\\AppData\\Local\\Programs\\Python\\Python310\\lib\\threading.py", line 1009, in \_bootstr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to get required number of zero coefficients in Lasso regression? I have 2-d dataset, the number of zero coefficients to be obtained and coefficient of determination(minimum). How can i get the regression equation with required number of zero coefficients? I think, it is necessary to choose a lambda(L1 regulariza...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can i test not creation of a service? i want to test if the object was created or not, for this case is 'create section error' context 'create section error' do subject(:created) do described_class.call(name: 'obj1').result end it 'case 1' do expect(created).to be_empty end end i a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to use the value of an assigned variable in new variable names in R? Goal: To create a new variable whose name uses the value of a previously assigned variable in R. Motivation: Naming many variables according to some value related to the associated command's property (e.g., an alpha value of 0.75 spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Read a boolean flag pass through CLI in vanilla rust I want to pass boolean flags to a program in rust. However, I do not want to use any external crates. How would I do something like that? Example: Command: cargo run -- -t output: -t flag enabled A: To hand-roll your CLI, you want to use the std::env mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search for value1 in array, search row value1 is found on for value2, once value2 is found return cell 1 to the right, and then LOOP I have a Google Sheets Script that currently searches an array for one value, then takes the row that value is found on and searches only that row for a new value, and once the new val...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ReactJS - Why is the first object in the MutationObserver not an object? I am getting this error: MutationObserver.observe: Argument 1 is not an object The code is working great in HTML & JS, but when I was "converting" it to react, I am getting the error. Here is the relevant code: const target = document.querySel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to scale a texture on a Texture Atlas while maintaining its offset? How can I scale a specific texture on a texture atlas in GLSL while ignoring the other textures? For example, let's say I have a texture Atlas that has 16 textures. I found the texture I need using this formula: float scale = 1.0/0.25; vec2 idx...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issue with my websites I've built and stored in Github I downloaded my website files from my github and ran them on my other laptop but the pages won't work properly. I tried uninstalling and reinstalling NPM on the terminal. They're in the right port. It runs fine on my Macbook but not on my PC. This is what its su...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: Object of type TextIOWrapper is not JSON serializable | Pycord I'm trying to make it where it will store channels in a json file. I'm new to json and don't know what is causing this. I'm using Pycord. Thanks in advance! Code: def get_channels(guild): with open('channels.json','r') as f: channe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get property response body from JSON response in Cypress Can someone, help in solve asserting following response: { "data": { "actor": { "account": { "nrql": { "results": [ { "TotalCoreUI": 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: bigquery SQL - opposite of GREATEST() function I am looking for a function that does the opposite of GREATEST() in Bigquery. Ex.: ID date_1 date_2 date_3 date_4 1 2022-01-01 2022-10-01 1987-12-25 1945-10-01 2 2009-05-30 2007-02-30 2015-10-15 1999-12-31 SELECT ID, GREATEST(date_1,date_2,date_3,date_4) A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: Cannot find module "../Models/User" in Gitlab pipeline I am constructing the pipeline. When i run these tests in vs code, it all works perfectly, but it doesn't work in the pipeline for some reason. ´´ Pipeline Error: $ npm run build-test-server > stava@1.0.0 build-test-server > cd server && npm install && np...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw multiple data on one plot using R or Python I found a great data visualization picture on the net and would like to try the same, but have absolutely no clue where to start. Could someone, please, tell me how to draw such plots using R or Python, as in given picture? maybe there is a nice library for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to capture the order of a slicer selection using DAX? Is there a way to capture the sequence a person selects a slicer using DAX? For example: * *12th *3rd *2nd *22nd Currently, I am using this DAX code to capture the values selected. However, the returning values are in alphabetical order each ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can you save an object array using zarr? Following zarr's tutorial, I'm trying to save a list of list of ints to a persistent zarr: * *Failed method 1: import numcodecs, zarr zarr.save("path/to/zarr", [[1], [2]], dtype=object, object_codec=numcodecs.JSON()) *Failed method 2: import numcodec, zarr z = zarr.array...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Video embedded inside readme.md I've seen is possible to drag and drop from your pc, mp4 videos and github will show the video embedded instead of a link. I try to drag and drop in a comment section inside github and it works, but for the readme.md it doesnt, it just put a link and not even try to add the embedded. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: fp-ts do notation + pipe: multiple binds with spread I'm trying to figure out how to use fp-ts bind() function to automatically bind multiple properties from an object to the scope in one go: import * as A from "fp-ts/Array"; import * as IO from "fp-ts/IO"; const wrap2 = (x: unknown) => () => () => x; const wrap3 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copy a row from one worksheet to another using a macro button I am new to excel and using macros, so please be kind! I wish to copy an entire row from one worksheet called "list" and copy that entire row to another worksheet called "logged". The copied row should go to the next available empty row in the "logged" wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change fill color and font according to specific value either in column or row using Plotly Python I need to plot a table to show dataframe values. The idea is to change the font and color if 'Total' value is identified in the column or the row. I'm using the Plotly library and I created the following code: import p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Has anyone tried using ChatGPT yet to write a simple game up using sCrypt? I've started experimenting with ChatGPT to see if it could help me build a simple game using Bitcoin Script (via sCrypt). See here: https://www.youtube.com/watch?v=bDP7IptDIdo Would love to know if anyone else is experimenting with this yet o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: adb is not starting when launching android studio When I launch android studio, adb is not shown in task manager, device list in Android Studio stuck on loading, when I press Start device I get the following IDE Internal Error: java.lang.AssertionError: Unexpected schema version 0 at com.android.dvlib.DeviceSchema.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unresponsive sliderInput I'm using two slider inputs for my R shiny app that displays dates. I can't figure out why, but the slider sometimes gets stuck and I'm unable to drag it. Here's a short video showing the behavior: https://youtu.be/cP7O43HTXeE Here's a snippet of the R code for the slider input. I played aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking to calculate stock price difference averages based on shifting criteria more quickly I am trying to conveniently calculate stock price industry averages (IndustryReturn) based on single-company earnings release dates. See table below: CompanyName StockTicker Q322EarningsDate Q422EarningsDate Q322EDStockP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vega lite: Add Total Column to Table Visual Here is my script: https://vega.github.io/editor/#/url/vega-lite/N4IgJghgLhIFygG4QDYFcCmBneBtUYGADhAE5QYC2GAdlPCAJICqAKiADQgDmpA9miIMAQgHlOIABYYoYAPqUIAR0xQK8AGwBGAAwaAvhwLEyFanQYBRAMKiAMpYAEAEVHX2XXgKFwQYidKyCsqq6nC6BkbgJuRUtPS+lgByAMqsAEopAGoSXoIi4lyB8ooqMmEAzAAsVQBMhsYk...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Apps Script - how to collapse groups in a pivot table? I created a Pivot table in my spreadsheet and would like to automatically collapse all its groups in the Google Apps Script. Although it is possible to group.collapse() groups in sheets, I cannot figure out how to automatically collapse all groups of my p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting values from Yaml file using Bash scripting I have yaml file and it is located in a different directory. Chart.yaml: apiversion:v2 name: microservicename version: 1.0.0 appVersion: "1.2.1" I want extract value and save it in variable. The output in variable should be :1.2.1 Can you suggest me how to use g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Git tracks only some directories with ./ prefix from .gitignore? I'm used to using ./ prefix for directories, which is why I've created such a .gitignore file: ./test1/ ./test2/ ./test3/ ./bin/ However, it was not working properly, and I spent a lot of time trying to remove the first three directories from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you prevent the border from enlarging the widget? I want the buttons to stay the same size after I click them. If that's not possible, I need them to at least grow in their own predefined box such that they dont push the other buttons away. Here's the code: <?xml version="1.0" encoding="UTF-8"?> <interface> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Launch python console from Spyder Python I would like to launch the python console and run a python script there from within a Python script in Spyder. I am creating a password encryption script and need to run python console so the password being entered is hidden, but the users will be more familiar with running S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Material ui component iOS issue I cant set any language in material ui menú component in iPhone , works in android but not in iPhone i want my app to work in both I cant set any language in material ui menú component in iPhone , works in android but not in iPhone i want my app to work in both ` <Box sx={{dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Upper and lower case in Python I want to do a program where I have this input: New Word and this output: NeW wOrD def changeCase(): i=0 while i <= len(word): if((i%2)==0): print(word[i].upper()) else: print(word[i].lower() i=i+1 A: Your function needs to take the word as a parameter, and the indent...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I use apply/lapply on each row of a data frame where calculation requires fetching data from another data frame I am trying to calculate jaccard coefficient for a two mode network data. My data looks like this: df <- data.frame(patent = c("A", "B", "B", "C", "C", "C"), class = c("X", "Y", "Z...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to implement a custom deserializer for all subclasses that only changes one aspect of deserializing behavior? I'm dealing with parsing JSON objects that distinguish between an empty value and a null value. I.e. I want to treat the sampleField field in {"id": "...", sampleField: null} different from {"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML+CSS working on desktop but not on mobile I have a piece of legacy code below, and it works perfectly on desktop. But I am not able to render it on mobile. Can you point in the right direction about what mistake I am making? Thanks. I have removed the url inside url(), but that is correct in the real code since ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting up event listeners to listen for different click events I created two eventlisteners listening to clicks from two different buttons, the problem is that when I click any of the buttons, only on eventlistener registers the event and runs the code relevant to that event. This is button A: <button class="login"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Stripe Card Element using React with Django Backend I try to implement Stripe Card Element with React using the following code : const CreditModalCard = ({ ModalPlanData, ModalStatus, SetModalStatus }) => { const [ModalplanMonthly, setModalplanMonthly] = useState(false); const planModalClose = () => SetModal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to see if a particular git hash has a git tag associated with it? I am trying to figure out how to see if a particular hash has a git tag associated with it through the git commands. I know that git show-ref -s my_tag returns the HASH of the tag. but what about the other way around? I am unsure of what to try. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Blurred background" UI using Qt? Many apps today have part of their UI semi-transparent, with a blurred background, so you can kind of see colours behind a window. However, I have not seen an example of achieving this with Qt. Is it achievable? If so, how can I do it? (A C++ or python example would be great).
{ "language": "en", "url": "https://stackoverflow.com/questions/75598011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Calculate ROC, Sensitivity and Specificity using DenseNet121 model I am working on image classification of breast cancer using DenseNet121. I used confusion_matrix and classification_report and accuracy_score but it didn't calculate the requirement metrics as I want to calculate ROC and sensitivity. I tried i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use lodash to remove nodes from a deeply nested object array I am very new to lodash and I have been searching all over the web but cannot seem to word my search in a way that yields something in the neighborhood of what I need. What I have a deeply nested array that resembles something like this: [{ "id": 1, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A program that multiplies "two numbers" written in a spaced BCD format. in assembly i was trying to answer this assembly question and I couldn't understand what to do Here is a program that multiplies "two numbers" written in BCD format with a space. DATA SEGMENT NUM1 DB 3, 9 NUM2 DB 9 RESULT DB 0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add text to a dashboard in Databricks I'm trying to add a text box to a dashboard in Databricks. The guide at https://docs.databricks.com/sql/user/dashboards/index.html says there should be an "Add" button but I'm not seeing it (screen shot below). How do I add a text box to a Databricks dashboard.
{ "language": "en", "url": "https://stackoverflow.com/questions/75598019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display few items in the list TypeScript/React/FluentUI I have the following code to display a list of items using Fluent UI DetailsList control. The response includes a total of 200 items. However, I only see 30 items in the list on running the code. What am I missing? import React from 'react'; import { useState, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Consume a Response with WebClient in This Scenario I have an old code that's using WebClient...exchange(). Apparently with the newer WebFlux version, it triggers leak detection if the response is not consumed. Flux</*StatusObj*/> res = Flux .fromIterable(/* a list of items */) .concatMap(listItem -> {...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL query, picking groups of one column based on another column I am working with a table of employees and information in the format (Fname, Lname, Ssn, Bdate, Salary, Dno) Where Dno is the department number the employee works in I am trying to create a query that returns the names of the employees that work in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my p-table populating twice while looping a 2D array I think each table is being populated the size of the test array. Is there a way to only populate each table once on the correct table index? In the .ts file I have headers and my 2D string array headers = ['Header1', 'Header2'] test = [['Test1', 'Test2'], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load and execute code from an Azure Blob container from a function app? I have a multitenant application which stores certain custom assemblies for each tenant in blobs in their Azure storage account. These assemblies contain custom code to run reports for the specific tenant who is logged in. The most straightforw...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to apply survdiff to a list of dataframes I am trying to compare survival of all patients with a mutation in a gene to all patients without the mutation. I have a list of 66 data frames for different batches of patients in different cancer types and I want to isolate the patients with the mutation and compare th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Buildbot shell command environment variable ignored I have buildbot configured, which has docker workers which in turn execute python script. The problem I encountered is worker seems to ignore new environment variable I am trying to add. in the master.cfg I add: f = util.BuildFactory() f.addStep(steps.ShellCommand(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to copy files to an existing docker image without running it? I want to build a Docker image to run a Python script. I added some files to the image during the building process and installed some python packages. In the last line of my Dockerfile I have: CMD ["python3", "script.py"] I aim to run this...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Always getting too many connections error no matter what I'm making a backend to a website with node.js and I'm connecting to the database with a connection pool however after a while I can't connect to the database at all because of the too many connections error. I have the connections set up like so var connectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add product scope to cart-summary.liquid? I want to loop over product.collections in cart-summary.liquid. If a product is part of a specific collection, I'm going to display some extra info to the user. This is not working because, I'm assuming, the cart-summary snippet does not have access to the product scope: {% ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autocannon requests rate So I need to make some simple performance testing on an Http server, which includes simulating users load, and I would like to use autocannon. For example I need to simulate 200 req/sec for 2 minutes to an endpoint (as a simple simulation of stress created by multiple users), so that's the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the source code files from map files of vue project I lost my source code of vue project but still I have dist production files in dev mode ( with npm run dev ) there is any way to get back the source files from the map files ? . I tried open the map files but it is hard to get the source files from it...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Python Parse CSV files contain JSON columns I have a csv file that contains JSON format text column. Example: employee = "{""eid"":""12345"",""firstName"":""alan"",""middleName"":"""", ""lastName"":""wang"",""gender"":""Female"",""dob"":""1991-1-11T00:00:00"",""maritalStatus"":""single"", ""partyType"":""Unknown"","...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Native Expo Loop through Json response and output to Alert I get the following response from an API to my react native expo app: { "email":[ "The email must be a valid email address." ], "password":[ "The password field is required." ] } I want to display this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: go_router: deep linking to application from browser is not activating router My app opens a browser for the user to log in. The back end app then issues a redirect to a deep link. My routes file has this: GoRoute( path: '/login/:token', builder: (context, state) { final token = state....
{ "language": "en", "url": "https://stackoverflow.com/questions/75598051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does -L in -L$(OPENSSL_DIR) mean in QT .pro file? In a QT .pro file, that is the project configuration file for QT project, I saw a line like this: LIBS += -L$(OPENSSL_DIR)\lib -llibcrypto -llibssl I was wondering, what do -L and -l mean? I googled, but couldn't find an answer.
{ "language": "en", "url": "https://stackoverflow.com/questions/75598052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: When Player collides with Wall it bounces him off and launches from wall to wall forward and i don't know how to fix it Here is my code and link to a video, where you can witness my "monster" text Player and Walls have tags - Player, Wall Collider with None physical Material Is Trigger - unchecked Radius - 0.5 and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to diplay photos with same date in ListView in flutter As you can see in Firestore there is a collection called Photos and all photos have a property called DateCreated, How we can just show photos with the same date in the listView? Ps. I don't want to hardcode the date in the query : something like this collec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access denied: DriveApp won't create PDF Long time reader first time asker: I was asked to fix a Google Script that compiles data from tabs to create a PDF sans a few tabs. Either way, the script throws an exception error when we try to run it. Drive and Docs service status is set to "ON for everyone" I'm an editor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django models.IntegerField choices In my Django admin page, I have a dropdown field (Teachers Name) that fills from Database when the page loads. But when I want to Save something, the Teacher's dropdown field has an error. I need to TecherID. My model.py: class classes_info(models.Model): ClassName = models.Cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using oclif how can i have flags at runtime that are not precompiled? i want to add a command like mycli --foo=bar where foo is not predefined in the static flags definitions. When i try, i always get errors like "Unexpected argument". I have added code to examine the argv returned by parse but the command fails bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent Fetch POST request from redirecting to '/' route in React Js I am using React for the frontend on localhost:3000 and Express for the backend on localhost:5000. Below is the behavior that I want. * *Go to localhost:3000/donation/#amt=5000&#id=abc <= this works *parse "amt" and "id", create JSON and fetch P...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to create an array of input field values and labels in React and TypeScript? I would like to create an array like this one from my input fields where the value is the value user inputs to the field and label is the label text. React/TypeScript used. const foods = [ { value: 6, label: 'Amount of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display custom checkout field value in Woocommerce Bookings metadata Based on this description, I made a custom dropdown field to the WooCommerce Checkout Page. I would like to see this value among the metadata in Woocommerce Bookings plugin. Bookings: Action and Filter reference add_action( 'woocommerce_admin_booki...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: height not showing 100 percentof the page how can i make the height so it covers the entire page, do i need to make the position fixed and how do i hide the slide and show back in if i have to this is the code i am using http://jsfiddle.net/tyuth1sr/16/ html code <ul class="slides" id="slideshow"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I generate a random point within a set of lines in 3D space? So, I have a list of 3D points that are connected to one another in the order that they were added to the list. The first and last points are also connected to ensure that the lines form a shape. How would I generate a random point within the lines ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python - Slicing an array of unknown dimension by a fixed pad Given a random array, I wish to remove a pad of 10 pixels from each side, what's the best way to do this without hard-coding if-else statements? my_array = np.ones([3, 250, 250, 250, 1]) n_dims = len(my_array) - 2 if n_dims == 2: my_array = [:, 10:-10...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Someone knows if is there any way to use the "~" selector with pseudo elements like ::after? I was trying to do this but it doesn't work, at least not with this pseudo element with an image bg `.contact-form .select-arrow::after { content: url('./assets/img/icons/arrow-up.svg'); position: absolute; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Vercel - No metadata for "Entity" was found - TypeORM i have a problem with my Node API (MySQL DB) and maybe on .ENV file for TypeORM configurations (I'm not using ormconfig.js/ts/json) In my local, the API works 100%, and i can do whatever i want using get,post,put,delete methods in all my endpoints. But when i put...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }