Categories
Development

My super is not working even though I think its set up right

I’m doing an assignment for school and im implementing a super but its not working yet i feel its done right. anyone have any idea why my super gives me a syntax error. It tells me “The Constructor Employee(String, String, String) is undefined yet it is though. Here’s my employee class that my other classes […]

Categories
Development iOS

Map over Axios Response and append 2nd Axios Response to 1st

I’m creating a movie search React App using axios and the TMDb API. I want to make an axios.get call to search for a movie based on query, then map over the response, and pass the movie.id for each movie into a 2nd axios call to get more details for each movie. I have tried […]

Categories
Development

jest failing with “Target container is not a DOM element.” cause it tests my index.tsx

So i want to set up testing on a react project i working on. i set up some test files, but jest always fails with Test suite failed to run Target container is not a DOM element. 4 | import App from ‘~/App’; 5 | > 6 | ReactDOM.render(<App />, document.getElementById(‘root’)); | ^ 7 | […]

Categories
Development

ML Image Classification – Any UI Tools to train a set of images on pretrained models (more than one models) and provide result

I have set of images for image classification. Now I want to run these images on pre-trained networks simultaneously (for ex: vgg16, inception, etc.,) and return their accuracy values.Can anyone recommend any available UI tools for this approach.

Categories
Development MySQL Python SQL

insert data in RDS MySQL with python ( IndentationError: unindent does not match any outer indentation level)

I use RDS MySQL, and I want to insert data in a table with Python code, but I have the error File “DB2.py”, line 23 mySql_insert_query = “””INSERT INTO empolyee (ID, Name, date) VALUES (1, ‘reham’, ‘2019-08-14’)””” IndentationError: unindent does not match any outer indentation level the code import mysql.connector from mysql.connector import Error from […]

Categories
Development Plugins WooCommerce Wordpress

How to customize shipping message on Woocommerce cart if the user is not logged in

I want to customize the shipping message on my cart. I want to show “There are no shipping methods available. Please login or create your account or double check your shipping detail” if the user is not logged in. I tried the WordPress booster plugin but it didn’t work. It expected to remove Woocommerce default […]

Categories
Development

Combining data from multiple workbooks into a single worksheet

My code is designed to allow the user to open multiple workbooks and take the data from each workbook copy it in to a new workbook and save that workbook in a designated location with a dynamic name. My code is failing when the data that has been copied from the opened workbooks in to […]

Categories
Development

How to identify palindrome in the middle of an array file and print out just the palindrome in a new file

I am trying to create code that will read the file and identify the palindrome that is in the middle of the array of integers (i.e. 5 8 6 11 22 33 44 33 22 11 6 7). I am stuck on how to go about it and the research I’ve been doing online has […]

Categories
Development

A simple reproducible example to pass arguments to data.table in a self-defined function in R

I have been googling this answer for a few hours. A lot of people have asked similar questions, but I did not find either a simple enough question or a straightforward answer. Here is my approach: Assume that I want to do a simple group by in data.table: library(data.table) mtcars = data.table(mtcars) mtcars[,sum(mpg), gear] # […]

Categories
Development MySQL

How to create a BEFORE INSERT Trigger

I’m trying to create a BEFORE INSERT trigger and getting errors that I don’t understand. The MySQL to create the trigger looks like this: CREATE TRIGGER `GetPolyLinkID` BEFORE INSERT ON `TableA` FOR EACH ROW BEGIN INSERT INTO TableB () VALUES (); NEW.PolyLinkID = last_insert_id(); END The error I’m getting is You have an error in […]