Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

how to create a test function and define a property when using std::map in c++?

Hi Team i am struggling to implement two things on this class,   1) to define a property when creating a modifier for using std::map<K, V> that one K is an int and V string. 2).how to create a test function inside a class? ...

what is the main purpose technically speaking about the abstraction in programming using DI, Interfaces, and Abstract...

I viewed a couple of answers online regarding Abstractions, Abstract Classes, Interface's, DI, and Loose coupling. But none of these answers are answering my question. I grouped these topics because they are related to achieving abstractions....

python Blockchain code hashes transfer

Hi, I am a beginner in python. I am working on blockchain and I am trying to transfer hashes through socket programming but on the client-side, I am receiving nothing. Can anyone please help me if this work can be done through a database like i c...

Apply this popup feature for infinite users

I made a popup feature, which shows the phone number of a user. I was able to apply this feature to one instance. A single user. Normally, each user has a unique phone number. But then, I thought, what if I have lots of users as they come, ...

is there a way to insert specific event dates and other info in a calendar date cell

I am trying to select data from the sqllite3 database and insert them into the tkcalendar so the user can insert his event info (registration_check_date, car_type) and view them by clicking on the calendar specific colored date cell, I had conver...

CONVERTING A STRING TO DOUBLE

Converting a String to Double Write a program to read the input amount as a string and parse it to Double using the 'valueOf/parseDouble' method.   Strictly adhere to the Object-Oriented specifications given in the problem sta...

Change product image by selecting only one attribute in Woocommerce Variable Products

This relates to an online clothing store. We have variable products set up with colour and size attributes, for example a product might have 2 variations; Green/Any Size and Black/Any Size. There is an image of the product in the corresponding...

Convert rails 3 list of routes to rails 6 list of routes

Having trouble defining multiple routes together in rails 6. In rails 3 we defined multiple routes like the example below. member_routes = { :validate_update_action => :put, :rebuild_update_form ...

moving between section page using next and previous button in javascript

In the same page i have multiple section. One section will be show and this will happen using a class active. In the same page i have li buttons 1, 2 and 3 when i click on one of them the section related appear and the old one disappea...

How to subtract two column of different table using sql query

I Have 2 tables WIthdrawMaterial and DepositMaterial,Both In WithdrawMaterial contain quantity column, and DepositMaterial contain totalDeposit ,I want to perform subtraction between quantity and totalDeposit column using query and store the resu...

Converting code from C to PHP

Hi! I have a question about a small piece of code in C to make the same piece of code work in PHP, it has to do with a bit shift and I can't figure out what's wrong. C: unsigned u = 3910796769; u += u << 8; printf("%u\n&q...

Combine the PL/SQL and the SQL commands in manipulating the database.

(PL/SQL structure, Data types, Variable, DBMS Output and Conditions), try to combine the PL/SQL and the SQL, where you can use PL/SQL with SQL commands in manipulating the database. and this is my codes but i am having issues running it...

How to get id ("not name") of a radio button via POST request in Django?

<div class="form-check"> <input class="form-check-input" type="radio" name="q1" id="q1a"> <label class="form-check-label" for="q1a"> A story te...

How to solve ArrayIndexOutOfBoundsException in Java?

I want to insert a csv data into a MySQL table. When I run the code, I've got the following error message. Any suggestions? java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3     at BudgetTrackerCu...

Does unifiedContacts(matching:keysToFetch:) return only unified contacts and leave out non-unified contacts?

When I use the Contacts Framework with Swift for iOS 15 using Xcode 13, when I use CNContactStore instance method unifiedContacts(matching:keysToFetch:), what happens to those CNContact objects that are not linked with any other CNContact objects...

Adjust the height of labels location and autosize to content

I create a user control. i have label (labe1, label2, label3). this labels have auto size property to false, and the user control scale base on the combine height of the three labels.  My problem is the height of the labels work fine but ...

Help me to this error in java I am new to coding

this is the code: import java.util.Scanner; public class Bill { public static void main(String[] args) { // smiley 30 strips 40 milk 20 Scanner sc = new Scanner(System.in); System.out.println("Choose one o...

Issue while Fetching Data from Firebase on Mat Table

i'm not able to fetch data from  firebase on mat table from component ts getAllStudent() { this.service.getAllStudent().subscribe((data: any)=>{ console.log(data.payload) this.students = data.map((e: { payload: { doc:...

Truncating Collection description text in Shopify

I am trying to add "Read more" and "Read less" buttons to collection descriptions for my Shopify store how can I add Html with liquid conditions? Currently, {{ collection.description }} is the only thing on collection.descrip...

Web Scraping Code Bug- Returning Empty List

hi i want to scrap all the pairs that kucoin support from the webpage but the code that i wrote just return a empty list. how should i correct it? from bs4 import BeautifulSoup from selenium import webdriver driver = webdriver.Chrome(e...

how to run this program in do while loop

Hi, I want to run the below program in do while loop, please help me. #include<stdio.h> int main() { int num; char another; do { printf("enter the number"); scanf("%d", &num); printf("the square is %...

Swift Firebase Firestore not able to get variable outside of embedded query

Note: This is not a swiftUI I have a collection called **teamMembers** and another one called **patients**. In the **patients** document is an array field with a list of the **teamMembers** (document id). I am trying to set a toggle switch to ...

Why I am getting this error in the code ''int' object is not callable'. Thanks for help!

Here is my Code:  class Account: def __init__(self, owner, balance, deposit, withdraw): self.owner=owner self.balance=balance self.deposit=deposit self.withdraw=withdraw def __str__(self): return f'Ac...

Java code error: One curly brace is missing

Following is my code-  import java.util.Scanner; public class Sample { public static void main (String [] args){ Scanner myObj = new Scanner (System.in); System.out.println(Hello.Do you want to check your cuteness percentage...

How to make Async Requests to Paginated API

I want to make requests to an api that returns a response like so:  { totalRecords: 30,000, data: [{...}], links: { selfLink: 'http://example-api.com/data?api_key&page=0&size=10', nextLink: 'http://example-api.com/...

sqlite3.OperationalError: near group: syntax error in sqlite3

I use sqlite3 library for using database in python. When I want to make a table, I get this error: sqlite3.OperationalError: near "group": syntax error My function that does this: def connect(): conn = sqlite3.connect(dbpath) ...

How to save modification of a file in original file not a new one?

Dear all, I have a code to modify a file. This code make changes on my file and save it to a new file. But, I want to have changes(modifications) on my original file not a new one. I made attempts to change the code but it didn't work. How...

Can't use HTTPS to download from website with early Android versions

I have an Android app which downloads simple text files from my website using HTTPS. I have been testing it on emulators for every version from API18 onwards, and on real devices running API18 and API28. It works fine for API21 and above, but for...

How to resolve casting error in my Java program

I am trying to get data from a database using 3 Jcomboboxes and then put the data in a Jtable and i am getting a empID=(int)employees[selectedIndex-1][1];  public void updateTable() { int selectedIndex=employeeCmb.getSelectedInd...

Modal dialog getting closed on submit and without processing form

I have a modal that when opened through ajax displays a form with a submit button. The modal is getting opened successfully but when I am submitting the data in the form the modal disappears without doing the requisite function. I have tried m...

Data Structures: How to Remove Items?

Hi.  Is there an order of operations of sort when de-constructing or constructing arrays? Example: I have a n array with eight numbers. I want to .shift( ) the the first number in index "0" then .splice( ) the ...

Tabs in Angular Nativescript

I had two tabs as follows. <TabStriphighlightColor="#FFFFFF"class="tabStrip"unSelectedItemColor="#D0D2D4"selectedItemColor="#FFFFFF"> <TabStripItem> <Label[text]='tabManualMsgTxt|translate'class="activeTab"></Label...

How can I give a 3D dimension of a layer with Python?

I need your help with a problem regarding the 3d plot. I have created a layer T2 with the below code, and what I what it to do is to give this layer a volume with a third dimension. That means to be raised it, let's say 2 or 3 units, and from...

Dequeue remove from the tail using node

hey there! whenever i run my program it works well but when im at removeTail() it crashes at last value,it works to delete from the back when im at the last value it crashes,any help? hope it makes sense. import java.util.Scanner; public ...

How to Canvas HTML script Animate shapes

I have created a Canvas and I am working with HTML and inside the HTML script tags I have created shapes that I want to move to animate. I want to add an animation to my Canvas. I Want to animate the Triangle and the Hexagon so that they rotate a...

R2dbc Rest Api relation problem

Hi everyone, I am write simple project in Webflux Rest api not problem the response. My problem is that the code is working, but the response is wrong, so for example the label has 3 but 6 returns, the projects are repeated, I don't und...

How do I fix this life function code?

Please help me to fix the life function code.  #include <stdio.h> #include <stdbool.h> //I learned that you need to add stdbool.h to make the bool function work - Chris int main(void) { printf("You will have lif...

Python Programming Task Help

Hi please could you someone help me with this python question. Part of my uni course!!! Only have an hour till submission and totally lost. Thank you so much! Any help at this point would be appreciated.   TASK   A virus is ...

Bubble Sort Problem- Number of Passes

Write a Bubble Sort program that sorts the given input array in descending order and prints the number of swaps made after m passes in the algorithm.  Sample Input 1:  2  4 1 2 3 4 Sampl...

Help needed to read command line arguments in Nodejs

Hi, I am trying to accept input from the command line in Nodejs using process.argv in the code snippet, but currently getting an error when I run the following command on the terminal - node index.js "1 18" Error that I get - ...

cURL request problem

Hello, do people know anything about cURL queries? When I execute a query, I get back only a part of the HTML code of the page. When I compare the request with the HTML code directly on my browser, I notice two problems: - Some sections are ...

Help with Python Drills

// Have several things that you want to change into something else? Reduce it const fullNames = [["s", "peter"], ["p", "athena"]]; // -> ["Peter S", "Athena P"] const scores = [34, 33, 1, 0, 99, 123]; // 48.33 // with full names (from abo...

Error can't understand

#NiceHexSpiral.py import turtle colours=['red','purple','blue','green','yellow','orange'] t=turtle.pen () turtle.bgcolor ('black') for x in range (360): t.pencolor (colors[x%6]) t.for...

Rewrite hit_target() function

  Rewrite hit_target() function Existing hit_target() function uses a primitive algorithm to get the target coordinates. Your task is to rewrite hit_target() function with the most optimal algorithm to make as ...

java

Assume the central government wants to develop a GUI application to survey and estimate the awareness of the schemes among the people of India and promote the scheme which is least popular. Construct a GUI to get the Aadhar card number from the ...

How do I display the number of clients that placed an order for a particular product?

I'm a beginner in java and I want to display the number of clients that placed an order for a particular product on my MVC WebApp. I came up with a logical way of doing this but I stumbled upon a dead end. Here's what I tried to do. An...

How to create CDC for mongodb source in oracle golden gate?

I am new to the Oracle GoldenGate product. I want to understand if it is possible to create a CDC pipeline from MongoDB as Source to any RDBMS target or KAFKA using Oracle GoldenGate? Can anyone help me with any documentation for MongoDB as sourc...

Copying file content to other file

Hi, I have two files file1 an file2. I want to take each line from two files and compare with a keyword if the keyword matches in both the files. The complete line which matches from file1 should be written to file2 at the position below the m...

How to Use Calculation of an Aggregate Function as Filter Criteria?

I have tables on booking orders for trips. Bookings (booking_id, booking_time, driver_id, customer_id) Drivers (driver_id, name) I need to identify all customers who have had at least 60% of their bookings completed by the same driver within t...

How to return order_no where customers made concurrent bookings?

I have a table on booking orders for trips. Bookings (order_no, user_id, booking_time,cancel_time,complete_time) I try to write a query to return the order_no from all rows where customers made concurrent bookings (i.e. where a customer mad...
prev 1 3 23
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: