Latest Questions

Displayed values are not what they should be

There are 2 tables ost_ticket and ost_ticket_action_history. create table ost_ticket( ticket_id int not null PRIMARY KEY, created timestamp, staff bool, statu

Labels -1, 0 and 1 for classification in Tensorflow

I am trying to write a model that outputs a vector of length N consisting of labels -1,0 and 1. Each of the labels depicts one of three decisions for the system

Error: syntax error, unexpected any; when using OR-Tools solver with Minizinc

I want to use the OR-Tools solver in combination with MiniZinc (IDE or CLI). I followed the steps in this answer. My MiniZincIDE is now set up like this: . When

expo build:android apk crashes after splash screen

I have created an app in React Native / Expo. It works fine during development but is crashing when I create a standalone app (expo build:android) The splash sc

Eslint rule is running multiple times

I'm trying to write an eslint rule that enforces making sure the name property is defined on any classes that extend from other Error/Exception named classes (a

Cypress: Add option to allow LocalStorage

The following facts: page 'X' Open -> cy.visit('/x'); check checkbox 'A'-> cy.checkCheckbox('A'); close browser or reopen page ?????? check if checkbox 'A

SSL Certificate added but shows "Kubernetes Ingress controller fake certificate"

I am having the following issue. I am new to GCP/Cloud, I have created a cluster in GKE and deployed our application there, installed nginx as a POD in the clus

API Platform: Hide properties in /api/contexts/<entity>

When working with the API platform (Symfony) I only expose some of my entity's properties to the API. That works pretty good with groups, the output DTO and Dat

Ignore submodules for pytest in vsc

I am using VSC with pytest to debug my code. This worked fine until I added a submodule which I used in the past. The Codebase in the submodule has not the same

replacement for sun.reflect.ReflectionFactory newConstructorForSerialization

there is a project that uses newConstructorForSerialization(Class<?> incomingArgument, Object.class.getDeclaredConstructor()) to get a constructor that is

How to enable HTML input field from Javascript

I'm using localStorage to save string so the user could enter title and it will be saved for the next times. I want to add a button that will delete the display

Microsoft SQL Server Express: this version of the installer is no longer supported

I'm trying to install Microsoft SQL Server 2019 Express but I keep running into the above error message. I was originally running into a separate error message

Retrieving swapped token addresses from etherscan using web3js

I am trying to retrieve the token addresses of tokens swapped (and amount of tokens swapped) in a single transaction. I am using the "web3.eth.get_transaction(h

Can't store Files in public folder in Laravel 8

i'm trying to store pdf, txt... in DB but i get this error: Method Illuminate\Validation\Validator::validateCsv,txt,xlx,xls,pdf does not exist. but when i add r

MDCEV model estimation - all observations have zero probaility at starting value for model component

I am running an MDCEV model on location choice dataset and at first I ran into an error as "Log-likelihood calculation fails at values close to the starting val

Spring cloud Kafka does infinite retry when it fails

Currently, I am having an issue where one of the consumer functions throws an error which makes Kafka retry the records again and again. @Bean public Consumer&l

How to store hue from primary color pallete in global variables in angular material?

I am extracting 500 hue from primary pallete and I want to store that hue in global scss variable so that I can use it anywhere. But it is not working. My code:

How to use default time function in metabase

SELECT a_offer.name as Engagement Name, count(*) count FROM u_user_offer_detail_record left join a_offer on a_offer.id = u_user_offer_detail_record.offer_id WHE

jsoniter how to prevent print null to json

I use Jsoniter to deserialize jsons and serialize objects to json. I have an object with many properties and add them as json member by @JsonProperty("xxx"). wh

How to split segmented image into sub images

I would like to ask if there is a way to split segmented image into sub-images? I want to extract each object in predicted image into separate image. To visuali

Integrate mapbox with fabric js

I am using fabric.js for html 5 interactive canvas app and I'm tryna to do an integration with mapbox, basically putting the map inside a fabric js element such

Is it possible to provide estimate hrs or minutes for progress completion? - PROGRESS 4GL

I am using below query for progress completion which shows how much percentage is completed in record updating process. My question or doubt here is Is it possi

Can't parse excel date to string with xlsx in a util function javascript

I am trying to read an excel document which has a datetime column.Uploading it to the website,instead of date column i get those numbers which represent the tim

getServerProps does not fetch the data

I am working on an real estate site through a tutorial since I am learning NextJs and for apartments filter it uses getServerSide as common, the code I use is :

React Native how to import a docx file from assets

Any ideas on why this doesn't work: import Timesheet from './Timesheet.docx' Works in the web browser, it gets imported and I can use the url to access the fil

Access-Control-Allow-Origin to allow Multiple Origin Domains/ Subdomain using Traefik

Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header using Traefik? I'm aware of the *, but it is wildcard. I really wan

Lifetime reference among struct data fields

I have the following code which will throw me this error. Basically I want C to reference B which has reference to A. How can I achieve this in Rust? Is it poss

Overwrote master with another branch completely when trying to merge, how to revert it?

I wanted to merge two branches into one, however instead I overwrote it. On github desktop I went toolbar branch -> "Merge into current branch" on master, ch

The sum of all numbers less than 1000, multiples of 3 or 5

If we list all natural numbers less than 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all numbers le

How to fix slow page changing speed to heavy routes with React Router?

I have a React project and use React Router DOM v6 to manage all my routes. I have a route that uses a fairly heavy component and, when switching to that heavy