Latest Questions

Cakephp 3 ORM contain condition use field from parent table

Is it possible to use a field from a parent table in the conditions of a contained table in cakephp 3? For example, I have an Entities, Locations, and Stats tab

Tomcat 10 on Mac not Recognizing servlet-api.jar when compiling servlet

I'm working on creating a Servlet for a tomcat webpage and the Servlet will not compile. I'm using the servlet-api.jar & mysql-connector.8.0.28.jar for the

Visitor Pattern and std::shared_ptr

I am using the Visitor design pattern in my application for message processing. For example: class AbstractMessageVisitor; class AbstractMessage { public:

Trying to connect to an FTP server from Azure App service

I am trying to upload/download some files from Azure VM directly through a Azure App service, but the app returns this error: System.Net.WebException: The remo

how to get max values in dictionary?

text = 'orange strawberry barley gooseberry apple apricot barley currant orange melon pomegranate banana banana orange barley apricot plum grapefruit banana qui

react native app crashes when tf.ready called

I followed all instructions to install @tensorflow/tfjs-react-native given at https://www.npmjs.com/package/@tensorflow/tfjs-react-native/v/0.3.0 this is my app

ImageManagerStatic how to add copyright symbol on image

I am trying to add a copyright symbol onto an image with the ImageManagerStatic in Laravel, but it does not convert the code (©) to the symbol (©)...

msvcrtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function

I am using gradle to build my c++ library I added this line to build.gradle file linkTask.linkerArgs.add("msvcrt${linkTask.name.toLowerCase().contains('debug

Combine lists of dictionaries with specific value matches

Given a_list and b_list in python, I want to merge them so that the result is c_list. In the example below, only want to merge elements that have a matching 'A'

Canvas putimagedata is sometimes not drawing like expected

I am trying to draw a simple flat line from the left center of my canvas to right side. The starting and ending points will be taken from textbox input. To do t

How to pass the batchsize for a custom environment in Tf-agents

I am using tf-agents library to build a contextual bandit. For this I am building a custom environment. I am creating a banditpyenvironment and wrapping it in t

JavaScript to control play/pause embedded YouTube videos

I need to embed multiple YouTube videos on a website. For each video, I need to set up an external element (such as a paragraph, image, div, etc) that can trigg

Background color going out of the column while using 100%

I am using Bootstrap 5. I have created 2 columns on my page. This is the output I was getting it. Now, I have to show an orange color from end to end of my lef

generic decorators for callable objects with conditional return

I want to write decorator functions for callable objects. This is what I have now: #include <utility> template <typename DecoratedT, typename Callable

Easy-Peasy StoreProvider returns the error "Property 'children' does not exist on type..."

I got this error on <StoreProvider ...> Why? What can be wrong with the children? :( TS2769: No overload matches this call. Overload 1 of 2, '(props: {

MediaDevices.getUserMedia() prompts the user for permission then launches camera app on full screen instead of in-browser

I am using getUserMedia() to take images on a vue web app. Working everywhere except on iOS safari. The user is asked permission for accessing the camera, aft

npm install react-google-login not working

i am using following command to install react-google-login for react npm install react-google-login but its not working npm ERR! code ERESOLVE npm ERR! ERESOLVE

Can a Github app hosted on Heroku add files to the GitHub repository through Heroku?

So I have a Vue/Express application that uploads images using Multer to a local folder. If I host this application on Heroku using GitHub, when someone uploads

Application Insights - Faulted Error code from Dependencies in Az blob storage

We are using Az blob storage, and it's reached few time maximum threshold. Due to this getting DNS error code in dependencies, but dependency collector updating

How do I create my own Oauth app for R script?

Hey im using the 'rgoogleads' library in R. https://github.com/selesnow/rgoogleads The problem im facing is that the app is able to access the googleads api fro

Understanding how path works in Node

So I have developed a Node Api and on local the path works fine, but I want to move it now to a server online, and don't know how to address the path. This is t

Undefined Step definitions in Cucumber Java

I added the login steps in Login class. But when I run the scenario from the Login.feature file I still get undefined steps error. Login class package stepDefin

xcode does't generate .h file for swift framework project?

I created a framework writting on pure swift , but I cant find any .h file of public class . shouldn't Xcode generate .h file automaticly? here is project struc

Hey guys i was trying read csv file using pandas in pycharm i am getting this error how to resolve it ,i was able to run in googlecolab but in pycharm [duplicate]

#i am getting url error how do i resolve it C:\Python\python.exe E:/data_science/Python_basic/module1_eda/EDA.py Traceback (most recent

AWS Firehose - Convert record format - CDK

I am trying to setup AWS Firehose using the CDK and I am trying to enable the Convert record format option and then specify a AWS Glue database and table to use

How to add items from object in DOM with button click in javascript?

first time posting in here :) I have recently started coding and for JS study practice, I wanted to make a button in my navbar that generates an object to DOM a

I would like the header logo and main visual to be aligned vertically

Prerequisites The header logo and main visual are side by side. Expected value I want the header logo and main visual to be aligned vertically.I would like to

Docker override ENTRYPOINT but keep CMD

I need to extend a base image (jwilder/nginx-proxy) because I need to add some additional configuration to that image. Some of these configuration changes need

Running and joining two tables with a 100 million+ rows together

What is the best way to join two tables together which exceed rows of over 100 million rows? I'm running into an issue where my query is timing out after 6 hour