Latest Questions

Counting pixels of same value in R

I need help with counting pixels of the same value in R. I'm doing a master thesis and part of it is calculating the NDWI of an area before and after floods so

Increase div id number with new div fields

The following script creates new input fields up to 4. I need to know how can I increase the ID also as follows.. with first click, "var fieldHTML" generate : &

PostgreSQL query slow when adding EXTRACT ISODOW

I have a large table(117 899 162 rows) the query below is very slow but if I remove EXTRACT(ISODOW FROM l2.starttime) IN (1) the performance is alot better. I g

Scala argument upper type bounds and overriding

I am trying to understand and incorporate upper bound types with overriding in my system, but have not been able to achieve it without some ugly code. I have th

`useTheme` must be used within `NativeBaseConfigProvider`

In my project I faced the above error can anyone tell me how to solve this error. The error I faced is: Error: useTheme must be used within NativeBaseConfigProv

Hide custom field depending on the page

I need to hide a custom field created by a theme only in a specific page. I am using a code that works perfect in another site but in wordpress seems to not wor

Can't group employees list without years

my issue is that when I want to group a set of employees according to the month of their birth date, Odoo separates the months by years, which I want to avoid b

Is there any sollution or code to find wsdl all methods and which type this methods GET or POST etc

I have a wsdl : https://www.lb.lt/webservices/ExchangeRates/ExchangeRates.asmx?WSDL I want to extract all methods and defined types of methods GET,POST etc. Is

Cron Expression to trigger every previous Month File

I am trying to schedule a cronjob to get triggered on the 4th of every month at 9 AM, which is fine. But I want to schedule a cronjob to run on every previous m

Why "for i in q" makes the result different from "for i in range(len(q))"?

I have code for calculating max depth using BFS, which works fine, but I couldn't figure out why it fails if I replaced for i in range(len(q)): with for i in q:

How to cancel/reset workflow from Java Client?

Im seeing cadence cli supports the above commands from cli interface.How to do this through java sdk.Im seeing support only for starting the workflow.

there are some issues in this family tree I made

I have this good family tree but the problem is that the page is funcy like everything is on top of each other how can I fix it (it's better to try it in a cod

MetadataType not working to merge metadata having followed Microsoft tutorial for data first approach

I have tried to simplify this problem as much as possible and cannot find a solution or fix. I have followed the second approach ("Add metadata class") in this

How can i copy a Value of a certain Column if another column has "No" in it?

Very specific question. I got a task to learn vba, but i cant really find anything for my problem. screenshot of how it looks in project Basically if the column

What does "rc" mean in dot files

In my home folder in Linux I have several config files that have "rc" as a file name extension: $ ls -a ~/|pcregrep 'rc$' .bashrc .octaverc .perltidyrc .screen

Launchingthe Calendar application (.EXE) from C#?

How can I lunch the build-in calendar app using c#, I can't find the process name and the PID(process ID)

how to bmp bytes transfrom to bmpfile

I make a barcode by zint. If it successes it will be creat a bmp file. But I want to its bmpdata. Now I get its bmpdata,I don't konw to show it by pyqt5.Becsuse

Find max value that is multiple of 3 in an array

Recently, I've got a code test from ABC. Please take a look at this one and give me your idea. Find the max value of an array of N integers. E.g. [ 1, -6, 2, 0

Symfony 5 & SubQuery

I've been trying to do a cascade query with the query builder for a while, I tried to do a simple sql but nothing. if I try to run the same query by replacing t

How to drop columns and rows with missing values?

I've been trying to take a pandas.Dataframe and drop its rows and columns with missing values simultaneously. While trying to use dropna and applying on both ax

Letting one user login with multiple google accounts on one webpage

My team is building a loadboard for dispatchers. These dispatchers are loaned to a truck company and use their gmail account to send emails to brokers so they c

How to have v-for loop nested in an other v-for loop in vuejs working?

I have a types variable that is an array of objects. Each object has 2 properties name and content. The second property content is an array of object with only

Minimax Algorithm - Tic Tac Toe AI not selecting best move

I've been working on writing a minimax algorithm for my tictactoe game, but it doesn't seem to be choosing the correct move. It is possible to win against the c

Gradle test: println works, logger won't

I'm building a Gradle plugin that does a lot of stuff. I'm testing it. I added a lot of logs... None appear. Yet, if I add println statements instead of logs, t

Why the result of categorical cross entropy in tensorflow different from the definition?

I am testing outcomes of tf.keras.losses.CategoricalCrossEntropy, and it gives me values different from the definition. My understanding of cross entropy is: d

Leading zeros cut from JSON response when using enum

Essentially I am using enum to account for instances where code is either and int or string - but it appears when the JSON value is simply an int with leading 0

How to convert the image into qrcode in laravel?

convert the image into qr code

React native wont run after ejecting from expo

I developed an app using the managed expo workflow, however it's required to use a native apis (in this case WebRTC) and therefore I ran expo eject to switch to

Medical images, computing correlation of slices for a specific planes

What quantitative measure should I use to compute on stacked 2D images (slices of MR images) that should be specific to the plane (axial, saggital or coronal)?

Implementing React table expanded rows

It's my first time to use react-table librabry. I am struggling for the previous couple of days how to implement the expansion functionality using useExpanded h