3,102 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for andrewsmith2921

Hello all, i am new here and i hope this is the right place to ask the python query, basically i am in the first year of engineering and i want to learn the python programming language. we all know that python is now a days very popular programming language, …

Programming python
Member Avatar for Colleen Cox
0
85
Member Avatar for geetajlo

Hi friends I want to refresh my combo box . i have even used the combobox.refresh() syntax but it does nothing! need help

Member Avatar for jeric_2
0
7K
Member Avatar for Sky_

3. Using repetition control structure (do while loop), prepare a program that can receive employee id and working hour(s) for three (3) employees. The program able to: i. calculate Overtime Payment using formula Overtime = Working hours * 35.00 for each employee ii. calculate Total Overtime Payment for all employees …

Member Avatar for dwellfox
0
146
Member Avatar for Olive34

This is not really a question, since I can make it work. It's just something I have not seen before and I think it is odd. I'm writing some unit tests. One test works fine, but when I change a parameter for another test, it gives an error. The parameters …

Member Avatar for toneewa
1
126
Member Avatar for bprosic

Hi everyone, here is code in React. I dont know how to re-render this array prototype map in React? import React, { useState, useEffect } from 'react'; const Help = () => { const initialObject = [ { fileName: 'Horizon.txt', fileSize: 450, }, { fileName: 'Something.png', fileSize: 2720, }, ], …

Member Avatar for bprosic
1
90
Member Avatar for Corey_5

how exactly would I get an age validator and a rental cost calculator to work (python tkinter)? the code I used for the age validator is as follows: def validate_age(): dob = dob_entry.get() age = calculate_age(dob) if age < 24: tk.Label(text="You must be aged 24 or over to complete this …

Programming python
Member Avatar for rproffitt
0
126
Member Avatar for priya1717

1 I have an array of char but values is decimal representation of a character. example: char bytes[4]={50,48,49,51} how to convert this to get char array like this: char bytes1[4]={2,0,1,3} c

Member Avatar for toneewa
0
122
Member Avatar for Ahmed_217

I need a c++ program that is able to determine whether or not a given array is sorted in ascending or descending order. then after that the program should reverse the direction of order

Programming c++
Member Avatar for toneewa
0
66
Member Avatar for Corey_5

The button in question is supposed to calculate the cost of a car rental, from inputs for how many months, how many weeks and how many days. This is the entire code at the moment: import tkinter as tk from datetime import * # Create a tkinter window window = …

Programming python
Member Avatar for woooee
0
63
Member Avatar for Dani

I'm following the list of [backward incompatible changes](https://www.php.net/manual/en/migration80.incompatible.php) while upgrading my code from PHP 7.4 to PHP 8. It says that `match` is now a reserved keyword. DaniWeb's matching algorithm has many instances of the variable `$match`, the function `match()` and even a class named `Match`. What do I need …

Member Avatar for Colleen Cox
0
103
Member Avatar for jkon

I wanted to post something in Daniweb for a while but I didn't had anything new. Recently I decided to write a new implementation for websocket connections client side using Shared Web Workers. Shared Web Workers are supported today by most browsers for desktop but few for mobile devices , …

Member Avatar for jkon
2
449
Member Avatar for david.tigner

My online submission pages no longer work after upgrading to PHP v8. After pressing Submit, screen then turns white and no email sent with the submitted info. Screen is not supposed to turn white. After switching back to PHP 7.4, everything worked normally again. I have many online submission pages …

Member Avatar for Dani
1
112
Member Avatar for david.tigner
Member Avatar for Angélica_7

H! I need to calculate the mean of the coverages of two types of particles that could be trapped on a square surface. They are particle #1 and particle #2. Such averages are taken after certain number of steps, for example, every 10 Monte Carlo steps, and considering a number …

Programming c c++
Member Avatar for toneewa
1
127
Member Avatar for portfox

Hi Wanted to utilize the php/mysql insert into the FPDI pdf export tool. I have it working just as plain text which is nice. But, i'd like to to have mysql place db entries into it. I've declared my sql connection, just using dreamweaver at the moment. I'm struggling to …

Member Avatar for Dani
1
69
Member Avatar for Pranay_2

I am having trouble showing the export buttons, it works perfectly if the data is not fetched from database with the basic example however they are not showing with my php code, I have included the script and necessarry files from https://live.datatables.net/kugajayu/1/edit. Please help, below is my script. <!DOCTYPE html> …

Member Avatar for Pranay_2
0
880
Member Avatar for deus d universo

So... I have a fully working code, but my boss asked me to add a button that downloads the table in excel format with the values from the database and I was like, *I can do that?* I also asked chatGPT but it has a character limit so it never …

Member Avatar for Dani
0
432
Member Avatar for joshi1984

Hello, i have an excel-file whith 2 sheets. There are much columns, but I need only a few of them. I want to delete some columns by name. I found this code but, I don´t know why it doesn´t work!?!? It tells me ".UsedRange" is wrong. Can you help me, …

Programming excel vb.net
Member Avatar for rproffitt
0
121
Member Avatar for Kyoto_1

This is a simple zombie survival game, i need to have finished by tomorrow, and I am having multiple problems with vectors being out of range. I also need to change some stuff into classes and make inheritances. I have tried fixing the problems but no success so far and …

Member Avatar for toneewa
0
134
Member Avatar for savedlema

You may be familiar with apps such as Time Watcher. I'm looking forward to creating an application to be used on students' computers to control the amount of time one can be on a computer. When a student is given a computer, she will be allocated say 30 mins, a …

Member Avatar for Dani
0
55
Member Avatar for anshsachdeva

Hello Friends, I don't whether it's the right place to ask this question or not. Apologies if it's not the right place. I and two of my friends are working on a startup and now we are in a position to take the startup online. Currently, the major issue that …

Member Avatar for bravomorris9
0
399
Member Avatar for nander

Hi has anyone seen an error like this before I believe it has to do with logging into a page using domain credentials but our logins have been converted to exchange online (PHP Fatal error: Uncaught TypeError: ldap_get_dn(): Argument #2 ($entry) must be of type LDAP\\ResultEntry, bool given in /var/www/html/folder/external/ldap.php:26\nStack …

Member Avatar for nander
0
74
Member Avatar for borobhaisab

Hello Folks, How to rid GET METHOD from echoing the submitted webform's search button name in the destination url ? My site search page's url looks like this: http://localhost/Work/buzz/Templates/pagination_GET_METHOD_TEMPLATE.php When I click the search button, I am taken to same page ````$_SERVER['PHP_SELF'];````. Taken to: http://localhost/Work/buzz/Templates/pagination_GET_METHOD_TEMPLATE.php?search=&match=fuzzy&index=crawled_links_index&limit=1&web_search_button= NOTE the last part of …

Member Avatar for Dani
0
63
Member Avatar for borobhaisab

Hiya, It seems to me that if I put a condition on ```` mysqli_stmt_fetch($stmt); ```` to check if user credentials was ok enough for the data to be fetched, then the whole purpose of using the following function is defeated. ```` password_verify() ```` This is what I mean .. ```` …

Member Avatar for FilipKappa
0
60
Member Avatar for jonsan32

I've searched, but can't even find what to call this. Any links or code would help a ton. I want 8 main items to appear from a side-menu with 4 sub-items branching out to their right when clicked. As any sub-item is clicked, I'd like for 4 items below that …

Programming accordion menu navbar
Member Avatar for jonsan32
0
44
Member Avatar for Cindy_11

I have a database which contains authors and books. Some of those authors and books contain slashes in the name or title fields. When I query the database for authors, it matches just fine, with or without slashes. When I query books, however, it only finds books without slashes in …

Member Avatar for Dani
1
113
Member Avatar for Reverend Jim

My older son and I are both working through online videos teaching machine learning with python. All of the materials we have seen use Jupyter Notebooks. For those of you unfamiliar with Jupyter Notebooks, they are freaking awesome. At least they are when they work. We were using two laptops …

Programming machine-learning python
Member Avatar for Reverend Jim
0
72
Member Avatar for borobhaisab

Helle Fellow Programmers! Unlike last time where I was checking for matching rows count using mysqli_stmt_rows_count(): https://www.daniweb.com/programming/web-development/threads/539306/login-with-prepared-statements-mysqli-stmt-num-rows-function On this thread, I am checking for matching rows count using Sql's COUNT function. This means, both threads are not same so mods do not close them. Issue is, on both threads, no …

Member Avatar for borobhaisab
0
125
Member Avatar for oussama_1

VB.Net never meant for games! it's more recommended for software developement, but hey why not have some fun. If anyone out there is looking to create an Angry Birds Game-like or a Simulator for throwing an object, you've come to the right place, this code will give you great start/push …

Member Avatar for joy_731
1
3K
Member Avatar for Vawana

Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type in a different piece of advice. The program then ends. The next person to run the program receives the advice given …

Member Avatar for Wadoster
0
92

The End.