Latest Questions

C++ google test fail for multi threads

I am having following C++ code and corresponding unit tests in google test. I am studying book on Modern C++ programming using Test Driven development. Below co

Composable calls are not allowed inside the calculation parameter of inline fun

I am trying to access the dao instance of my room database which is being used to store names(This code I wrote just to get familiar to jetpack compose). I trie

pyaudio Segmentation fault in termux

I am trying to run pyaudio (version: https://git.skeh.site/skeh/pyaudio) in termux, but nothing can be heard from my tablet and it prints out "Segmentation faul

is this the right way to implement a custom architecture in flutter app using riverpod?

I am creating an App using riverpod, hooks and freezed. My aim is to remove the entire logic out of the widget tree. This article by @ttlg inspired me. In my a

How to send a reply email when recipient clicks button embedded in an email message?

I am doing Excel VBA code to send emails from Outlook. This is working so far. I would like to add a couple of buttons (or links) inside the email body. The rec

Discord bot stopped working through Heroku, works fine offline

Solved! Answer below. EDIT: Cleaned up this post to keep it all clear. Here's the code for a simple GIF bot. The important thing is: this bot works offline, giv

how can i fix pagespeed score when base64 font is treated as unused css

I embedded the font file directly into my css file in fontface as base64. Besides the font, I have about 150 css lines there. The pagespeed claims 60.5 KiB of 6

Control display of an ipyvuetify page by a dropdown works in notebook not in voila

I have encountered another working in notebook but not in voila issue. I have tried for a couple of hours but feel like I am still missing something and therefo

Feed formats other than pbf to Osmosis

I've written code in Java using the Osmosis framework and specifically OsmosisReader for Java, for OSM processing. As far as I understand, OsmosisReader can onl

justify-self propety doesn't work in bootstrap's navbar [duplicate]

I have a basic bootstrap header here: https://codepen.io/yan14171/details/KKQNoYW <nav class="navbar navbar-light" id="navbar"> <a

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