Latest Questions

Records updated in Compass keep reverting

I have a MongoDB instance hosted on AWS DocumentDB. There is only one node in the replica set, and this is MongoDB 4.0.0 Community edition. Twice now I've upda

Team Foundation Server - Unauthorized intermittently

Recently I've had this error pop up intermittently when trying to do things in a project: Checking In Changes Making edits to a recently unchanged file (checkin

How to create Liquibase changeset for below Postgres index creation statement - "using btree"

create index if not exists department_index on department using btree (department_id); How can I create a Liquibase changeset for the above Postgresql? I h

how can i implement or convert a python code to javascript to be used with tensorflow js

how could I use this code in python with tensorflow js? it is to occupy it with a model that was trained with the dataset tf.keras.applications.ResNet152(input_

(R) How can a bigger expression be written by combining shorter variable expressions?

Brief introduction, I have multiple data file that can be fitted by models based in mathematical equations that are a combination (by sum, mutiplication, etc...

Flask sqlalchemy: how to draw two foreign key relationships to the same table

How would I go about creating the foreign key relationships for a very simple friend request database schema in flask sqlalchemy. Both the requester and request

Transpose an image2d_t in OpenCL

I work on an image processing code base that uses image2d_t objects everywhere. These have their shape (width and height) formally declared which enables progra

Statistical Tests in R

I want to run Bonferroni P Adjusted Value Test on a stacked data set. This is my code: stat.2 <- stack.2 %>% group_by(modules) %>% t_test(values ~ phen

Instruction 0: incorrect program id for instruction. Works on devnet but not mainnet

I am trying to make a spl-token transfer from a user wallet. The code below works perfectly on the devnet but throws Transaction simulation failed: Error proces

Unity spriteRenderer error what i need to do?

i dont know what this means... Library\PackageCache\[email protected]\Runtime\InternalBridge\InternalEngineBridge.cs(21,35): error CS1061: 'SpriteRender

How to optimise function logic to avoid duplication - python

I have some code below, for a given name that matches pattern with 2 lower case letters (such as 'aa'), the valid name can be V-aa or X-aa def verify_helper(val

Axios POST with the server responded with a status of 500 (Internal Server Error)

I'm using ReactJS to build a blog app. I can use axios get, put, delete but NOT POST. Every time I post a new blog, it gives me server responded with a status

When Cloudwatch Logs data is sent into kinesis data stream, what is its encoding format

I'm trying to write a Go program, to download data from aws kinesis data stream. I read that kinesis data stream encode the data with base64, so I need first de

How to cleanup azuredevops server agents maven repositories and docker images when pushing is completed

We are using Azuredevops server integrated with the self hosted agents running on linux vms in azure. We are facing some unexpected behavior in our build agents

how to get the caller's filename, method name in python

for example, a.boo method calls b.foo method. In b.foo method, how can I get a's file name (I don't want to pass __file__ to b.foo method)...

Set not Removing Duplicate Dates

I have a structure that displays entries sorted by date. The date is displayed once for all entries of the same date. The problem I have is that Set is not remo

what is the upper limit for process heap memory? [duplicate]

Hi Anybody knows what is the upper limit for the heap allocation in linux process? Consider below example, int main() { char *p; unsig

Order of Operations in Fortran

I'm a new Fortran 90 user and have a relatively simple question. Within a subroutine I'm running the following code: y = (1-crra)*(f(llc(1) , llc(2) , llc(3)

VBA Open excel file from Sharepoint with changing name

I am trying to generate some code that will open up an excel file on Sharepoint and copy data into another spreadsheet. I have been using the below code when th

What is a NullReferenceException, and how do I fix it?

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object.

Change node style based on name / label

I'm using vis.js to visualise a network. The network is created based on the DOT language (Directed graphs). An example: 1 -> 1 -> 2; 2 -> 3; 2 -- 4; 2

Confusing brackets in MASM32

I am trying to get to grips with MASM32 and am confused by the following: I thought that brackets were used for indirection so if I have the a pre-defined vari

quotas are exceeded error while deploying Vertex AI Matching Engine Index

I am following this example notebook and used custom word embeddings of my own. i am getting the following error while deploying the index at this step r = inde

Is it possible to have an 'IF' conditional statement nested within a 'CASE' conditional statement? (pseudocode)

I'm designing a pseudocode version of a programme thingy I made, in which one of the sections is someone inputting a number to select an option. When someone in

Open Browser with a specific url on sending request on API (.Net core MVC)

Working on .Net Core MVC and IText7, I'm filling a Pdf form (empty form PDF is already saved on server). What I want is, Whenever I send request to the link (ca

How can I make executable file from jar with embedded JVM?

For example, I have someFile.jar. I can run it simply using java -jar someFile.jar. But I want to create some files (for example .deb file) to install this jar

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

fish shell + omf + git plugin: how to customize the prompt in the terminal

I have fish shell with omf with agnoster theme and git-plugin installed. I would like to tune my prompt a bit. Does anyone here know where/how I do that. I ran

How to add instantaneous force onto drake ball

I'm working on a juggling robot iiwa, and am looking to add disturbances onto the ball every now and then to see how well the controller works. Is there an easy

QML Row "fill" / auto-spacing?

Instead of assigning a fixed spacing between items, it is possible to evenly spread the items along the (parent's) width, so as to maximize spacing? What I curr