Latest Questions

Extend golang struct/type from another package

I have done some reading and found similar threads but none seem to work for my use case. I am trying to extend mongo's primitive library specifically primitive

How to append to second last line in a file in NodeJs

I want to append to second last line of a file using NodeJs! I hope I am making sense. Thanks in advance My current code which appends to end of the file: fs.ap

Why do I get this error while calling predict in Keras?

I'm a newbie to Tensorflow, I've done many models but today when calling predict I get this error : ValueError: Exception encountered when calling layer "sequen

LABSE for bilingual sentence similarity

I am trying to run LABSE for bilingual similarity measurement. I am getting following error: AttributeError: 'tuple' object has no attribute 'pooler_output'

how to load the php file in the form action only after php submit button was executed

I am not a PHP expert. I have a form that has Captcha validation image. the form has a button "submit", and the code for the submit is within the same page (let

openpyxl problem Keyerror Content_Types.xml

I have a problem reading the code with openpyxl, until yesterday it works, and now it doesn't work anymore, I tried also with a backup copy but I have the same

How can I add line breaks to the prompt in a google apps script dialogue box?

I'm attempting to provide a multi-line prompt message in a dialogue box using g-app script. The resulting dialogue box would be: Content of line 1. Content of l

How to report ModelNotFoundException with stacktrace to Sentry.io in Laravel 6?

I am using below laravel 6 code to report exceptions to Sentry.io: public function report(Exception $exception) { if ($this->shouldReport($exception) &am

how to pass the smartcard info from one machine to another via ssh

question: I am logged into machinA with smartcard and using that smcartcard information I can ssh into the machineB by doing\ ssh -I pkcs11.so `machineB` Now

Slow down player's speed in air

I am working on a 3D game currently that is based on Unity's Roll-a-Ball tutorial. The problem that I have encountered, is that whenever my player jumps, its sp

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.