Latest Questions

Using join method on Entity Framework cause trouble

I got this error An unhandled exception of type 'System.StackOverflowException' occurred in EntityFramework.dll when I use join for listing data from the data

Is it safe to get user token from Microsoft graph API in front-end

so basically, I am checking if it is safe to expose client Id and to make API calls such as fetching user tokens and info from front-end I followed the document

Case condition not working for ORA-01476: divisor is equal to zero

I have a logic where doing some calculation like below is giving error as ORA-01476: divisor is equal to zero I have added CASE condition like below V_EFFEC_P

Elbow Method for DBSCAN

I heard that I should run KNN to find the optimal epsilon for DBSCAN clustering. But is there a way to automatically find the optimal epsilon after that? Someth

Choosing an transporter with enough battery ANYLOGIC

In my model I've created an automobile robots(AMR) which transports orders. The Automobile robots is a transporter fleet, which is agent type AMR. This agent ty

Multilabel Multiclass image classification with tensorflow

i try to train a model that classified frames from my garden camera to detect different animals. My dataset has 8000 images, 2000 per class of squirrels, pigeon

I am confused about these python errors [duplicate]

So, I am developing this game where the graphics is made entirely of text. This prototype looks right but there are some errors in the program

Quantile in For Loop returning incorrect results

I am fairly new to R, not sure what's causing quantile code, to return two different results. When put in a for loop to calculate for all columns, it returns in

Expand 2-D Numpy integer Array as binary but in parallel

I want to convert arrays of integers to 0 or 1s, padding with 0s if the other array possesses the larger value. Examples: ex1 = np.array([[0],[3]]) => array(

Hadamard matrix in Ruby is not unitary although it should be?

Even when trying to define Hadamard matrix in Ruby by using rational numbers (which helps us sometimes to keep good precision) the result is that Hadamard matri

How can I loop through an array one by one when a button is clicked

I want to be able to loop over an array one by one when the next button is clicked. I have a code in place but it only goes to the next one and then sticks to t

How to handle special characters in the string while updating a table using python

Im trying to update some rows to a table, in one of the row a string is having few special charecters. I should be updating the string as is to the db. I have t

How to fix the error on extension error page?

I'm working on a chrome extension. Unfortunately I can't see the log of the error. When I click 'Errors' on this page chrome://extensions/ it goes to a page wit

How to set 2 routes point to the same controller in ASP.NET MVC 5

I have an ASP.NET MVC 5 web site which has a controller MyFirstController. That way, I can load the index view by using https://example.server.com/MyFirst. On

How to pass ctx argument to own function?

It isn't exactly my code but similar example: Function body: async def fun(fun_word) ctx.send(fun_word) Then main code: @client.event async def on_message(me

Counting how many times value meets 2 times in a row in list

I need to count how many times 'Eagle' appears 2 times in a row in random generated list. In case ['Eagle', 'Eagle', 'Eagle', 'Eagle'] it should count 2, not 3

How to handle large no of data/records from backend and display in UI as Angular

There could be following possibilities, need help against each one. Pagination can be implemented, but if we apply pagination, then can we search data from all

Score updating automatically without any prior collisions

I am a newbie to C# and am currently trying to create a scoring system for Ruby's Tutorial. So I am trying to have the score update each time Ruby fixes a robot

Is there a function with which I can find a combination of values in a data set, which has on average the largest values?

These are the instructions that are given: In 2012 and prior to that time, a pizza chain in Australia, Eagle Boys (taken over by Pizza Hut in 2016), ran an adve

How to specify input locations parameter in dataflow pipeline?

I have a Dataflow template, that I originally created via Dataprep. Now I want to move away from Dataprep and use just Dataflow and schedule jobs using Cloud Sc

ValueError: 2307:2222: not well-formed (invalid token)

I've been working in jupyter lab with the package threeML, as of last night everything was working fine when my computer crashed with the Jupyter servers still

Cannot click a button using puppeteer

I am trying to loop through an array to search and add multiple items in cart in https://www.woolworths.com.au/shop/search/ However, after the search the add to

"Variable" variables in JavaScript

I know it's possible in PHP to have "variable" variables. For example, $x = "variable"; $$x = "Hello, World!"; echo $variable; // Displays "Hello, World!" Is

run migration for different database connections

i have two mysql connection and i want to migrate specific database with php artisan migrate --database=databasename and when i ran command php artisan migrate

Creating a dynamic RSS feed for a social network built with node.js

What would you recommend to use in order to embed a dynamic RSS feed for a social network website that was built with node.js. Any type of feed that can extract

How to do the visualization of Optimal Classification Trees in python

I used the code in github:https://github.com/pan5431333/pyoptree. I read the raw code and did not find how to draw the tree, please give me some useful guide to

2 dataframe column values not working in where clause

val creation_timestamp = df.groupBy().agg(min($"userCreation_timestamp").alias("ts")).col("ts") df.filter(col("userCreation_timestamp").cast("timestamp") >=

Determining language from a grammar

I'm trying to solve an exercise on grammars and languages. Here is the exercise: Let the grammar G be: G = {V, T, P, S}, V = {S, A, B}, T = {a, b, c}, P = {S

.NET Multi-language support for unsupported ISO 639-2 cultures

I am currently developing an ASP.NET 4.8 MVC single-page application that is expected to support multiple languages. From various resources, I found that one wa

why do I get Error in density.default while creating bean plot

I am trying to create a beanplot: library(beanplot) beanplot(df, col="#cccccc", log="y", names="plot-1", yaxt="n", overallline="median", ll=0.00001) However,