Latest Questions

Swift - Re-add time back into Timer

I have a countdown Timer that shows seconds and milliseconds. The user can start/stop recording multiple times until the timer hits zero. The user can also dele

"is not registered in resolver" exception when serializing with abstract class using MessagePack

Trying to serialize componentMappers . The Exception is throwed at .Serialize(): var componentMappers = new Bag<ComponentMapper>(); var componentMappersS

Volatile reference to mutable object - will updates to the object's fields be visible to all threads

... without additional synchronization ? The Tree class below is meant to be accessed by multiple threads (it is a singleton but not implemented via an enum) c

Linqpad: LINQPad.Util.Cache throws error if query file is modified, saved and re-run. "Cannot load type" error

Using the amazing LinqPad with a C# script. Get an error using the Util.Cache storing a custom class declared in the same script. How to resolve, other than res

How the vector gets returned even though it is a local variable inside a method of a class

The vector<int> bfs is local to the method bfs_of_graph then how can we return the vector as it would be erased in the memory and only garbage values shou

ASP .NET Core custom authentication scheme with external login

I have a website where users log in on an external website and are redirected back with a token in the querystring. I then validate the token and create the aut

Search data for JTable using PLSQL stored procedure

I have a JFrame in which I have populated some data by stored procedure. Now I want to search the data through a JTextField. I used a RowSorter filter method b

.NET 6 console app using NuGet library written for .NET 5 runs fine under Windows but crashes on Mac M1 with System.BadImageFormatException

Under Windows I have used the SaxonCS library (available on NuGet https://www.nuget.org/packages/SaxonCS/ that is written against .NET 5 successfully in both .N

Compute shared secret for ECDSA<ECP, SHA256> keys with Crypto++

I'm trying to do the following: Receive x and y coordinates of a EC public key Generate a random EC public key Compute the shared secret of the two keys I'm stu

How can I italicize part of a ggplot2 plot title when knitting the figure in an RMarkdown file?

If I'm just working in R to save a plot as a PNG I'm able to use the {ggtext} package to incorporate basic markdown into elements of my plots, but {ggtext} outp

Symfony- Error ocurred when I try to make an entity

When I use: php bin/console make:entity to create a new db entity, I get the following error: In DoctrineHelper.php line 180: Class "Doctrine\Persistence\Mappin

Bar chart with two sets of labels in Quickchart

I am trying to create a bar chart for tracking a budget with quickchart. I want the chart to have one set of labels on top of the bars (for % remaining), and a

Create a new Date for any specific timezone

I am using Google Apps Script to check and re-format date data from some Google Sheets. But the problem is the result shows the times for the user who run the c

sort unique values on the same line

If I have a list of items like this in any text-area, I can use a bookmarklet to sort the unique values. a b d c c I click on the bookmarklet and the list is c

BigQuery DENSE_RANK

I posted something similar to this but without the full code and I don't think people understood what I was looking for... I'm writing a query to examine bus st

Avoiding a Loop to Extract Vectors From Rows in Dataframe in R

I have data in a text file in which the cases are stacked in a single column. I need to extract selected lines from each case into vectors. I know how to do t

ASSERT: "i >= 0 && i < size()" in file Qt/6.2.4/mingw_64/include/QtCore/qstring.h

i am a noob in Qt, when a push a particular push button, the project window closes and shows this error: ASSERT: "i >= 0 && i < size()" in file Q

Constructor __init__ is written to take two position arguments, but when used, reports the error that only 1 is allowed

I have a class and constructor I'm working on, and I added an extra parameter to __init__, and now I get the error, TypeError: FeatureDataset() takes 1 position

Integrate Phaser Game with React as component

I'm new to React, I want to make a component for my phaser game to insert it into a react project. My Game component: import React, { Component } from 'react' i

RabbitMQ - Sending the same message more than once to the queue (Some fail)

So guys, I'm using RabbitMQ and when I send the same message more than once per second of difference, I notice that some are not arriving. Does anyone know if R

Comparison of file system packages for Expo/EAS project?

What is the current preferred package for saving files from an Expo app? I've come across expo-file-system react-native-fs, and Async Storage but don't understa

Flutter/Firebase: build page depending on database

I'm trying to build a simple card game app to play online with friends using Flutter and Firebase. The way it works (for now), is we have lobbies which players

is there a code or function in excel to: If F8=blank, cut and paste text in G8 in G7 next to text separated by semi-colon

Is there a code or function in excel to do the following: If F8=blank, cut and paste text in G8 in G7 next to text separated by semi-colon.

Gmail Error Action: failed Final-Recipient: Status: 5.0.0 Remote-MTA: dns; gmail-smtp-in.l.google.com Messages missing a valid address in From: header

I am getting this error attempting to send emails to gmail. Any thoughts on what it means or how i can fix? This message was created automatically by mail deliv

regexp_matches, array per row

In PostgreSQL, I have a table as follow. | id | mycolumn | | -------- | -------------- | | 1 | /1/2/8/ | | 2 | /1/40/22/11/ |

Issue with Generating Random Numbers using Laravel contains vs foreach loop [duplicate]

Hey guys I come across this strange issue where if I use the foreach it does not generate a unique random number wheres if I use laravel funct

Passing action to a component optionally

I've learnt that it's possible to pass action to a component: https://stackoverflow.com/a/66142037/15943057. Now I wonder if it would be possible to pass one op

Use of Maps Chart from Ant Design

I'm using ANT DESIGN CHARTS on an example project in React. I try to add two differents types of charts a line chart and a map chart for the moment only a copy

Azure Devops Pipeline - Angular 13 to Azure App Service Error

I am trying to build a pipeline for a simple angular project in Azure Devops but I keep getting an error that "no such file or directory: D:/a/1/s/dist" Here is

I want to highlight the Specific word in my ajax response loop

I want to highlight the word which user has searched. I am getting an array in response which will shows the occurrence of that word. I want to highlight that w