Latest Questions

automatically remove items of a list every few second in redis

I'm trying to see how many users used my bot in the last 5 minute. I've got an idea to every time a user used my bot I add his/hers id into a redis list with a

DataGrid gets the value of a row and column

I want to get the value of a certain cell in the DataGrid of syncfusion. like this: <dataGrid:SfDataGrid x:Name="sfDataGrid"> </dataGrid:SfDat

R2DBC pool closes all connections before each query

We're using the latest versions of spring-data-r2dbc, r2dbc-pool and r2dbc-postgresql for connecting to a PostgreSQL database using a connection pool. We notice

Error in utilising schematool to Metastore

I'm trying to initialize hive and I'm getting this error when I try to use the schematool utility to initialize the Metastore by running the following command:

'iDocumentStore' only refers to a type, but is being used as a value here

I have an interface: export interface iDocumentStore { hasSpaceInfo: boolean; docId: string; } I get the following error when trying to do @property({

Edit value for a key in a Map in Angular

I have a model that uses a Map for eg: (I also have other properties such as Name) export class User { _id!: string; accounts!: Map<String,Number>

Can you run or debug a SQL Server stored procedure without side effects? [closed]

I would like to be able to see the effects of running a Stored Procedure that someone else has written or other SQL code on a production datab

Micronaut + Vertx + testcontainers

How do I configure Micronaut app using Vert.x and testcontainers? I'm trying: application-test.yml datasources: default: url: jdbc:tc:mysql:8:///db dr

JSXGraph Moodle plugin move after student answer

I have a Moodle question with a JSXGraph image, say <jsxgraph width="600" height="500"> var brd = JXG.JSXGraph.initBoard(BOARDID, {boundingbox:[-5,5,5

KnockoutJS - How to hide certain elements inside foreach using Observable Arrays?

I have a list of WebsiteOwners. I'm trying to build a UI which will display more information about the owners when I click on them. this.toExpand = ko.ob

User Access Roles In Firestore

I have Firestore setup as shown in the images below. I am trying ensure that a user can only have access to projects of a specific company provided the user is

Old Opera: Dragonfly will not load

I know that Dragonfly is quite old and hasn't been seen since Opera version 14, but I am trying to target a specific version of Opera (9.50). Every time I open

run function file in google colab

In Google Colab, how can I execute the function file related to the original code? In the main code is part of the function that is in the file. PY is another,

Extracting rows from list in data frame where at max numbers [duplicate]

So i've been given a pandas data frame and created a definition for the maximum variable in one column. max_energy = D202['USAGE'].max() max_e

How to redirect the existing URL to new URL

I have a simple html website and in app folder I have a file called application_14.apk now I have sent the download link of this application to my users, later

Multiple SQL Server statements do not work on same form

I am working on a C# project with a Microsoft SQL Server database. This is how I have connected the database: DataSet ds_display = new DataSet(); SqlDataAdapte

Webpack Hot module replacement, react 18 ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before

I updated React to v18 and my Webpack dev server gives me a console error whenever the hot module replacement fires and injects the new javascript code: Warning

Outlook VSTO - Get all items in a group calendar

I am looking for a way to access a group calendar in Outlook VSTO Add-In. I am only able to search the default calendar in outlook. I have shared an image from

Any way to make use of ImageClassificationInstance in C#?

I keep getting Grpc.Core.RpcException: Status(StatusCode="Unimplemented" ... exception when I try to use the ImageClassificationInstance objects to classify usi

matrix with nodes that refer to which openings/connections they have

I would like some help on a problem that has been stressing me for a while now It revolves around recurdive backtracking maze generation, but should reurn a mat

Upgrade from Elasticsearch 5.2.1 to 6.8.22 encounter issue: java.lang.LinkageError

Our project need to upgrade elasticsearch from 5.2.1 to 6.8.22. We encounter an issue now. The war can be deployed successfully in jboss server, but will contin

How to align an embedded map to the center?

I am working with HTML code in Virtual Studio Code I am trying to align an embedded map to the center, how can I do it? This is my HMTML code below <section

how can anyone send email to me on my website in js

I am creating a project as I have created a contact page. I want any user to send me a email by putting his email and message in input box of contact page. I ha

Port scanner using net.DialTimeout always manages to connect even when ports are closed

---UPDATE I send the code to a friend who then tested it on his pc. The output was as it's supposed to be. This means the issue is not code related but somethin

Decoding API data with RestClient

I am not entirely sure how to do this or really where to begin, I can't seem to find any information pointing me in the correct direction. I am calling an API a

selecting one file/folder from the directory

I am building a program that manages the quantity and distribution of files and folders from folder "a" to "b" in java (io , nio, apache commons-io) libs. I got

How to share same implementation and maybe share fields

How can I simplify this code? I still can't wrap my head around rust's traits and structs after OOP. struct Player { entity: Entity, hp: i32, atk: i

Why can I "captureless-capture" an int variable, but not a non-capturing lambda?

The following function is valid (as of C++20): void foo() { constexpr const int b { 123 }; constexpr const auto l1 = [](int a) { return b * a; }; (v

How to make ball bounce off of triangle in Py.Processing?

Im building a game in processing python. It is similar to pong except the paddles can rotate thus changing the direction of the ball. There is also supposed to

Using UIBarButtonItemAppearance have both the system and the custom back button images

I am using UIBarButtonItemAppearance for the first time and I'm confused on how to put a custom image for the back button. This is how I do it: private func cre