text string | meta dict |
|---|---|
Q: Blur event not triggered on VTextField I've created a date/time picker component that is using two VTextField's to enter hour and minute values. There're three events on each field. Two of the events, focus and input do call their respective handlers when triggered. But the blur event does not.
The code for the VTex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular: property in controller is undefined I have a small controller that binds a model to a UI and handles the UI popup with semantic (tells semantic when to show / hide the popup).
export class MyController implements IController {
popup: any | undefined
onShow(context: any) {
this.popup = $(context)
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How fit to screen inner div container which can change sizes e.g. video of different sizes? Here is my react component.
const Player = require(react-player);
<div className="video-container">
{activeVideo !== null && (
<div className="player-aspect-ratio-box">
<Player
className="player"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Prolog to solve The Jindosh Riddle from Dishonored 2 I am playing the game Dishonored 2
There is a puzzle in the game, see the picture below (no spoilers).
Riddle
Naturally I wanted to solve this using Prolog.
I have looked around and other people have made Prolog programs to solve the riddle, but I would like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is a python dictionary good to use as a database? Is a python dictionary file good to use as a database?
Could it cause problems for my project in the future?
Is it possible to have a low speed in a large volume of data?
How much data can a Python dictionary contain? Is it limited?
I need a database like following D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use the idwST() function from geosptdb package I have spent some hours trying to get this function to work. I have read the documentation but I am not getting it. Can someone explain?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Multi object tracking from centroids I have a stationery video of me pedaling a bike, and my goal is to track the position of my joints and then compute some angles etc. The joints are marked with a color tape. Based on the color of the tape, i threshold the frames, detect contours and compute centroids of those con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flutter Switch List tile loop not changing/moving when clicked I have a for loop in my code that populates the field _skill from the field allSkills using data from a database. In the same loop I populate instances of SwitchListTile into skillDisplay from each instance of _skills. I have all the switchListTile on sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to average every value in a matrix with its surrounding values in C I have a problem where I'm meant to write a program that takes an element of a matrix/2d array and averages it with the values surrounding it.
For example a matrix of:
1 2 3 4
6 7 8 9
10 11 12 13
Would turn into:
4 4 5 6
6 6 7 8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why is the gnuplot epslatex tex file yielding doubled axis/labels/key in different fonts When using the gnuplot epslatex terminal the associated TeX file creates overlapping plot text (axis/key/labels). The eps file is as expected.
As the user is not supposed to worry about the generated gnuplot TeX file, I am at a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to have multiple SITE IDs? I'm trying to wrap my head around the Site framework in Django. One part I don't really get is the SITE ID. I am working on a db for my photographer friends to store their content. They have different domains und using the "get_current_site()" shortcut I can get their respective conten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: send notification to all tokens When I want to send Notification to all devices I retrieve all tokens of devices in List and try to send notification to all devices with this List but that work for just the first device's token
*
*So can I use for loop to send notification to all tokens or there is better way?
*A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Override ASP.NET Core "Authorize" attribute for test purposes We have an application that uses JWT claims and the Authorize attribute on our ASP.NET controllers to enforce authorization server-side:
[HttpPost("allnames")]
[Authorize(Roles = "role1,role2")]
public ActionResult<string> GetAllNames(string sessionToken)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java desktop application with continuous communication between many clients and one server. How to properly set communication between devices? I am creating a javafx application that can communicate with a server over the internet and I need some clarification on how things should work.
I am using an SSLSocket betwe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Script in apptainer work for one user but stuck for other users in computing clusters We tried to pull a docker from docker hub and use the apptainer to shell into it and run the script inside the shell.
However, only one user can run the script correctly but others will get stuck after setting the LD variables.
I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Template function specialized to take reference to array I have a function template that I'd like to be able to instantiate for a reference to an array (C-style). However, when I try to call it, the deduced type never matches.
Here's a minimal example:
#include <iostream>
class FooClass{
public:
template<typena... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLAlchemy cascade not deleting related object in one-to-many relationship I have three SQLAlchemy models: Template, Venue, and VersionKit. When I delete a Venue instance, the associated Template instance is also deleted as expected due to the cascade parameter. However, the associated VersionKit instance is not del... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB query for return a single object in nested array of specific object {
"_id": "63fc2ea6e9d9d1b8f1d1asdfsd",
"matches": [
{
"pk_id": "12340456",
"value": []
},
{
"pk_id": "9962243... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: DataFrame merging with replacing value I have two Dataframe:
A B C
0 a-1 b-1 c-1
1 a-2 b-2 NaN
2 a-3 b-3 NaN
3 a-4 b-4 c-4
SECOND:
C
1 c-2
2 c-3
How can I update the first dataframe by value from the second based on the same index?
So I expect to see the following:
A B C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wrong fine tuning con categorization I'm trying to do a fine-tuning on a categorization (in my case, I have to categorize sms, whatsapp and twitter in 6 categories).
I tried to create a jsonl with this kind of structure
{"prompt":"<phrase>","completion":"<value from 1 to 6>"}
for at least 20 categories for every id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to mask text box with image in Processing w/ cp5 Within my code, I wanted to overlay the warning_img over the alert_box I have created, however using the mask function produces an error as the alert_box is not an image and needs to stay as a text box as it will be edited later to produce changing output.
void cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Analytics Data API (GA4) date dimension in combination with other dimensions breaks the return data I used GA4 for quite a while and noticed one strange thing, I am not sure if it is a bug or it should be this way, so when I create a call with standard parameters for example active users as metric and session... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Blazor WASM JWT authentication plus Google SSO In my .NET 7 application I have Blazor WASM project and ASP.NET REST api protected via JWT authentication. I followed this tutorial. Blazor WebAssembly Authentication with ASP.NET Core Identity
Everything is working properly. Now I would like to add another authenticati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Schema is required in SQL Server to invoke user-defined functions I've always found that when I'm programming in SQL Server, in a database where everything I create is under the dbo schema, that I don't need to reference the schema when querying tables or views or executing stored procedures, but I always need to pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can it be undefined? How can a variable be undefined after waiting for the promise to be resolved, to get its value?
const getEGLDPrice = async () => {
try {
const { data: { price: egldPrice } } = await axios.get(`${xexchangeBaseUrl}/economics`)
console.log("egld price = ", egldPrice)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'mail' not working in Script same way it is working from command line The below line of code/command is working as expected if I run it from Unix terminal, but not if I include it in a script and run the script - exact same.
I am expecting the X-Priority to show the mail as high priority in Outlook.
If I run it from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am looking for the regex (JavaScript) to grab any numbers that appear within a bracket I have a variable that could contain a mix of strings and numbers along with a set of brackets that will contain both a string and a number i.e 'this-is-1-example (example-123)'.
I need to grab only the numbers that are found wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Template openapi template for aws_apigateway.SpecRestApi from another stack Its a pretty common pattern when using API GW openapi to reference logical ids from the same stack to create a template where items are substituted. While some consider it a bit hacky it works well in my opinion for being able to leverage 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala equivalent of Haskell type constructor/inverse? I'm trying to port some code from Haskell to Scala and came across this pair of functions:
newtype OO f j a b
Composition of type constructors: unary with binary. Called StaticArrow in [1].
Constructors
OO
unOO :: f (a `j` b)
I tried to do this in S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where in Azure is my .csv error files from the application are stored in Azure? In my application, I have a scenario where I send invites to multiple contacts by uploading a.csv files, also if the file is having erroneous or duplicate records those records will be assorted on another .csv [file with filename_errorli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET session state redis cache managed identity or securing accessKey I am using ASP.NET MVC 4 running on .NET 4.8.
I'm referring to https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider
Does it support managed identity? I tried to google for some time and was unable to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem when trying to push files to from vs code to github repo Im trying to push a file from vs code to a github repo of the same name
Hi Im getting this output:
fatal: unable to access 'https://https://github.com/ianecross/apple.git/': Could not resolve host: https
seems to have appended https// twice.
It does th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delta method for confidence intervals in R I am calculating sensitivity and specificity from a model where the outcome is the measured value and the exposure is the true value. It is my understanding that I need to use delta method or bootstrapping to get the confidence intervals based on the equation (instead of ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace Mulitple Lines Greedily With BusyBox Given the following input file:
text
text
pattern2
pattern3
text
text
pattern1
pattern2
pattern3
pattern2
pattern3
pattern2
pattern3
text
text
I need to search for "pattern1" and then I need to replace the first occurrence of "pattern2" and "pattern3" with "pattern2-new"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Solve Error 500 on Node.JS signup backend When trying to test http://localhost:3000/api/users/register I'm getting that cannot GET users/register and when testing it on postman, performing a POST request, I'm getting an 500 error. Can you please tell me how to solve it?
models/User.js
const mongoose = require('mong... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to infinitely end a chrome task manager? So, basicly i want to end this task infinitely, so that whenever it opens it imeditely closes on a chromebook task manager.
Currently, possibly is their a way to accomplish this by writing a chrome application or allowing the host of the chromebook to write a program rela... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: How to create graph for last 12 months and populate only with numbers available Below is my data set and I am trying to create for last 12 months line graph Month as my static X axis and count as my Y axis. How do I create measure and populate graph with only available numbers in my table?
Location
Jan 23
Feb 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: next.js modules are not loading I didn't know who to ask to console
npx create-next-app my-app
I'm writing but I can't load modules and I get an error like
enter image description here
when i try to run it like this
enter image description here
I was waiting for the project to run successfully, I want to start next.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: M2 Mac having problems with simulator for a specific project I've recently switched to an M2 Mac for my dev work.
When I build and run my app on a simulator, it works ONE time and then each successive attempt it fails with PID no process error. Cycling to a different simulator works, but just once and the pattern re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Powershell - Need help passing the variables from one process to another I'm trying to write a script that will create a very simple GUI with a dropdown list and a text box for input. I am using regions in the drop down list and then passing the selectedIndex to a process which assigns the hostname of the server for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I tell object usage? I am trying to see where objects I create are being used in our platform. How can I look at which apps my object type is being used in and track usage of these applications?
A: You can find where your Object Type is being used in the Dependents section of the Object Type Overview page.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement Column level security in Palantir foundry? I am trying to find a way to implement column level security using restricted views and policies.
I want to hide and show columns based on rules just like row level security.
How we do that ?
Implemented row level security but didn't saw anything which will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Move to the right cell in a Openedge browse I need to move the cell selection in a browse to the cell on the right, when hitting the ENTER key.
By default, ENTER moves the selection to the next record, in the same column. I need to change that behaviour in one particular browse.
Example:
Selected field is row 1, co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would I be able to include a parameter in this function? Below Is the code I created, its intended purpose is to traverse through a list and show up randomly on a label called "recs1", Including an IF statement saying that is "J15Watch" comes up, a different label would show "Out of stock". I was wondering if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it OK to present a sheet within a conditional subview? My current project has a structure where a helper view (actually a couple different views) present a sheet when a button is pressed. That sheet can then actually obviate the need for the subview that presented the sheet.
To make that a little clearer, the sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in survival::survdiff(eval(fit$call$formula), data = data) : Right censored data only I'm encountering a problem similar to
Survival not recognizing right censored data
but the suggested fix isn't working. I've confirmed that the censoring variable is numeric and I'm not encountering any problems when using co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Randomly assign values with non-overlapping values across rows in data frame I have a set of 3 reviewers that I want to randomly assign exactly four reviews each across six applicants. My goal is for every application to be read by two unique reviewers.
reviewers <- c("reviewer1", "reviewer2", "reviewer3")
applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does Task.Run() sometimes not seem to run tasks concurrently? I have a section of code that uses Task.Run() in an attempt to perform actions concurrently, but using the code to actually perform work causes the tasks to take as long as if they were run sequentially. Why would Task.Run() run tasks concurrently in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Core 7 MVC project Area folder empty I just created an ASP.NET Core 7 MVC web project with local identity in Visual Studio 2022. Once I have done the migration of the database, now I can register/login, but I am surprised I can not find identity related code files in directory Areas/Identity/Pages.
I have at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: AddMicrosoftIdentityWebApiAuthentication analog for .net framework I have several Web APIs, some implemented using .Net Core, others using the .NET framework.
I use AD and AddMicrosoftIdentityWebApiAuthentication to authenticate responses from one .NET Core service to another.
Can anyone tell me what the equivalent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't IO an instantiation of State? Why isn't IO an instantiation of the (strict) State monad when we have RealWorld, as provided in Control.Monad.ST? I thought RealWorld were meant to be a magical type representing the reality itself.
I mean, recall the "run" function of the State monad:
runState :: (s -> (a, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can multiple threads share non-static data that is *temporarily* immutable? Can multiple threads share non-static data that is temporarily immutable (while the threads are running)?
For example, this code gives an error:
error[E0621]: explicit lifetime required in the type of v (line 4)
use std::sync::Arc;
use std... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Cloud SWG policy - ERROR: (gcloud.alpha.network-security.gateway-security-policies.import) NOT_FOUND: Method not found I'd like to test the Cloud SWG service (https://cloud.google.com/secure-web-gateway/docs/overview), but I've got an issue when I've tried to create the "Create the Cloud SWG policy" (https://cloud.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sum with conditions
hello guys i'm trying to find a way to sum values based on conditions on sql server for example on the attached photo i'm trying to put the sum of all the Ko's + the mutual ok for the null values so at the end i need to have 7,981 for all the 4 null values thus ko1(16) + ko2(103) +ko3(130) +ko4(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: COALESCE on calculated column to remove NULL The formula below works fine now. It gives a result of 1 when the calculation is above 4. The problem I am running into is trying to replace the NULL with COALESCE / zero. I have a tried a few options and the syntax keeps breaking.
CASE
WHEN CEILING(ORDER_QTY * 1. / ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Time goes wrong after some houres of setInverval I implemented a very basic digital Clock in JavaScript to display the time on a TV. After some hours of displaying it seems that the time goes some seconds (like 30 or more) wrong.
Here is my code:
getTime() {
const time = new Date();
const formatter = Int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Storybook and TypeScript, how can you infer a control for a prop that references an interface defined in a different component? My team is working on a component library using Storybook.
The Storybook controls for each component are generally inferred using TypeScript. For example, we might use a union for one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Solve an equation without knowing the equality and using only addition/subtraction? Edit: I could've asked this question better and as I was re-writing it multiple people provided good answers below. Stack etiquette is to not delete an answered question, so this post shall remain up.
So here is my "reprex":
inputs <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merge two tables based on rows combination and not to compare every row in the table with the other table I have two tables
Table_1
Product
Parts
A
Z
A
X
A
Y
Table_2
Produkt
Superset
Parts
A
Superset (Z,X,Y)
Z
A
Superset (Z,X,Y)
X
A
Superset (Z,X,Y)
Y
A
Superset(Z,X)
Z
A
Superset(Z,X)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPOS ISORequestListener: How to set custom fields for a specific transaction response, all while auto-responding to others? Experimenting with converting my JPOS project from just vanilla JPOS code, to using Q2 instead.
One thing I'm having trouble implementing is a custom response for certain transactions of the us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return Reference to a member field / property I am trying to change some repetitive code where the same operations apply to 2 variables : var A or var B.Currently i have something like this:
if(condition)
{
if(varA is null) Do1(varA);
else Do2(varA)
}
else
{
if(varB is null) Do1(varB);
else Do2(var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SDWebImage can't write to disk / read from disk new to SDWebImage, so forgive me if anything big was missed and causing this issue.
POD
pod 'SDWebImage', '~> 5.11.0'
pod 'SDWebImageWebPCoder', '~> 0.8.5'
AppDelegate
SDImageLoadersManager.shared.loaders = [SDWebImageDownloader.shared, FirebaseStorageUI.StorageImag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simplifying nested loops using recursion Let's assume we have a three-dimensional array x. For each k, I want to have the mean of x[:, :, k] stored as out[k]. The task is simple if it is a 3D or 4D matrix, with the for loop like this:
x = np.random.normal(0, 1, [4, 4, 3])
out = np.zeros(x[0, 0, :].shape)
for k in ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React only rendering import React from "react";
import ReactDOM from "react-dom/client";
import logo from "./logo.svg";
import "./App.css";
const root = ReactDOM.createRoot(document.getElementById("root"));
const element = <h1>Hello World!</h1>;
function App() {
return (
<div className="App">
<header cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert a coreml-model to other formats Does anyone know a way or idea of how to convert an existing apple coreml-model (a .mlmodel-file) into any other format like tensorflow, ONNX or pytorch?
I can't find any way of using my existing mlmodels outside the apple environment.
I tried using the coremltools (especially... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integrating Backend API with Tea Stack Front-End (TailwindCSS, Eleventy, AlpineJS) In my new project, I'm learning about new front-end frameworks and libraries and found the Tea Stack (TailwindCSS, Eleventy, AlpineJS). I really liked the idea of this minimal stack (I have very little experience with React and VueJS)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Updating table on test SQL Server database from live environment with a query I need to update a few tables on test environment from our production database. Basically it's the same table, just a few months more recent.
So, here's a query that I'm trying to implement:
UPDATE [Server-DEV].[Database].[dbo].[bHRRM]
SE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Array sort in javascript case temperature here is my code can you modify it so that it displays these results The average high temperature for all high temperatures entered must be calculated and displayed showing 1 decimal point.A summary row must display “Averages” as shown followed by the average low temperature ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Comparing 2 method of C++ ref-counting To write a ref-counted class, I have seen 2 different approaches:
Approach 1:
struct RefCounting1 {
void ref_up() {
m_ref.fetch_add(1, std::memory_order_relaxed);
}
void release() {
if (m_ref.fetch_sub(1, std::memory_order_acq_rel) == 1) {
delete this;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Angular Array Prototype I have the following declared in an Angular Application:
export {}; // Using the export, there is no need to import the file anywhere.
declare global {
interface Array<T> {
firstOrDefault(predicate: Function) : Array<T>;
}
}
if (!Array.prototype.firstOrDefault) {
Array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does DDL operation commit DML operation which run before DDL? I have such steps:
*
*Insert into tableA
*Drop tableB
*Insert into tableC
A) when i do rollback after 3 step does it also rollback step1?
B) procedure D contains these steps. An error occured while runing step 3. Whether step1 is commited?
C) Is ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nuance Grammar Out Tag I have a request for when my caller enters 7 numeric digits that the result or "out" contains the 7 digits plus the constant "LU" . Currently I can do it if the constant is a prefix , such as "LU1234567" but what I want is "1234567LU. Below is a grammar I use that does the prefix . What needs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selenium-Java: Code crashes if no element is found I cannot seem to find a solution on this. This line of code seems to crash if it cannot find it. Sometimes it is there and sometimes it is not:
Integer dynamicElement = myDriver.findElements(By.xpath("//iframe[@title='CAPTCHA']")).size();
I then go on to check t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you copy an in-cell image to another cell using app script? Is it currently possible to copy an in-cell image from say Sheet_A to another specified cell in Sheet_B?
I am trying to build a catalogue where I can retrieve such images with a search function on google sheets. Can someone help me out?
A: It was solve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't install public github repositories listed in package.json
I'm getting
You may not have access to this repository or it no longer exist in this workspace. If you think this repository exists and you have access, make sure you are authenticated
The repository is public and my other computer can install depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connecting Spring Cloud function using IAM DB Authentication I am trying to build a spring cloud function lambda that connects with AWS RDS using the IAM DB authentication.The token generated is valid for only 15 mins. do we need to refresh the token explicitly? Also what would be a good way to configure the data so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find path relativity with regex I'm trying to implement something similiar to path.relative(...) from NodeJS in Rust, but this time without porting the actual code from NodeJS. I've this regex from the regex crate:
static PATH_SEPARATOR: Lazy<Regex> = lazy_regex!(r"[/\\]");
So I want to find the relative path from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AuthorizationPolicy vs AuthorizationFilter There are many examples of creating authorization policies based on if the user is over the age of 18. Suppose I want to authorize pages based on any age I decide--based on the page I'm showing (i.e. a page might only be available to someone 21 (to drink alcohol), or 25 (to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Authorization issue when performing operations on MSK cluster using SASL/SCRAM auth method I have configured the MSK cluster and allowed public access through SASL/SCRAM authentication method. Now I am facing the issue where I do not have the necessary permissions when using these credentials (specified in the Secre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where does a local variable get stored, and how can I define a getter/setter for one? So in JavaScript, I know that when you define a variable in the global scope, like this,
let a = 0;
console.log(a); // > 0
it's (more or less) the same as defining a property on the window object:
window.a = 0;
console.log(a); // ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Launch vscode debugger from code similar to pdb.set_trace() Problem:
I have a python script that I want to debug in VSCode and a startup section should not run under the debugger (since it becomes much slower when using the debugger).
I cannot attach to the python process because ptrace protection is enabled (kernel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CKEditor5 editor's custom plugin not work inside angular component when another instance of editor open inside modal (ngx-bootstrap) to return value CKEditor5 custom plugin functionality not work inside the angular component only when I use another instance of editor inside modal ( ngx-bootstrap/modal ) and return s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use relative imports in a Python package, especially with pytest? Apologies if this question appears to have been asked before, but I can't find a single definitive answer to this question and everyone seems to give slightly different answers. I have checked a fair amount of documentation, but I seem to hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle APEX: Is it possible to programmatically check/uncheck APEX$ROW_SELECTOR for a specific row While looping through the rows of an IG I want to be able to programmatically check row selector for a row where another column's value 'Test'. If it equals something else, I want to uncheck it.
Is that possible?
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: json column with nested values I have a JSON type SQL column in SQL table as below example. I want the below code to be converted into separate columns such as drugs as table name and other attribute as column name, how can I use adf or any other means please guide. The below code is a example of table called report... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DocuSign api I want to download a document after being signed string accountId = "60194631-4f3e-4684-ba08-3304476b12f3";
string envelopeId = "1";
string documentId = "3";
string encoding = "base64";
DocuSign.eSign.Api.IEnvelopesApi.GetDocument(accountId, envelopeId, documentId,)
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merging multiple columns into one based on a column value I am trying to merge different touches' like touch 1 source, touch 2 source based on an individual Leadsrx id which can be called the primary key.
so I can filter the ID column and show all its details like:
LeadsRx ID conversion conversion date conversion... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to manually increase Brightness in Pillow np.ndarray Im trying to make an Image Editor in Python using tkinter. I've developped functions to manipulate images, increasing brightness, contrast and so on. I've been getting really wierd results when converting the array back to a Pillow Image using Image.fromarray(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django changes order for ManyToManyField, but it have to be exactly the same as in post request I have two models (vehicle and stop). I want to create route for every vehicle, so i've added manyToManyField in my vehicle model. Whenever i send post request with a few stops listed in json object django messes with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make ElectronJS mainWindow.loadURL() asynchronous I have a ExpressJS server running inside an electron instance and the mainWindow.loadURL() is directed to the server view URL (localhost:3000) but the mainWindow launches before the server is able to start so it's not able to fetch the view. I tried restarting the in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't get Decompose installed I am trying to install Decompose (https://github.com/arkivanov/Decompose) into my project, but I just can't figure it out. I am using Gradle 8.0 and trying to install it like this:
kotlin {
jvm {
jvmToolchain(11)
withJava()
}
sourceSets {
val jvmMain ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Before showing error label message navigate to another screen I have to two buttons Draft & Submit on submit button all the fields are required but while i am submitting new form and click on submit then then show the error label message in form. If i try to update and submit the existing data then it didn't show th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add code that fixes urls in httpd.conf So the 'problem' im having is that 192.168.2.69/TEST does work, but when i go to 192.168.2.69/test it doesnt work. also happens with other folders or files. now i had soem type of code that fixed urls and with casing and just wrong writen urls. such as 192.168.2.69/TETS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: compare strings in flatlist I am trying to compare a strings in a flatlist in a react native expo project but it is not working. item.bauteile_lage has strings like KG_1, KG_2, EG_1, EG_2 and so son.
I just want to see if item.bauteile_lage includes KG or EG.
Can anyone see what I am doing wrong?
<FlatList style={st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to add insert statements after veifying is table exist I get an error in my If statement from LoadParametrage.sql (see below), what I would like to have is a simple SQL file that first looks if the table exist then insert into it, I've looked online and everyone are using this Select statement to look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Provide examples on how to run program in "help" How can I provide some examples on how to use the different boost program options at the end of my help message?
I know I can add descriptions with options_description but how can I add a few options at the end of the help?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular template not rendering value of property, but | json on the same object shows property has value I have an Observable object that I'm selecting out of my store in an angular component. The template looks like this:
<div *ngIf="user$ | async as user">
{{ user | json }}
<h1>Welcome, {{ user.email }}!</h1>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I concatenate all .txt files in a folder and separate all of them with a line? I'm very new to using python, and I suspect this is easier than I think, but I have a lot (more than 200) .txt files in a folder that I would like to concatenate in a single one.
Problem : I want each .txt file to be separated by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to remove the date from Panda's series using df.dt.time but getting an object back I would like to remove the date from a series in the datetime64 format so that I can plot data starting from 8 am in one plot.
I tried this:
df['time_no_date']= df['time'].dt.time
However, now I'm unable to plot df['time_no_da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Subject Key Identifier pulled in C# does not match SKI read from Certificate properties So I am trying to read the Subject Key Identifier field from an X.509 certificate used to authenticate a user in a C# web app. As I am in the initial stages of this code, I have two different methods of reading the SKI from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |