Posts
 
Reputation
Joined
Last Seen
Ranked #336
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
74% Quality Score
Upvotes Received
35
Posts with Upvotes
29
Upvoting Members
13
Downvotes Received
10
Posts with Downvotes
8
Downvoting Members
7
13 Commented Posts
4 Endorsements
Ranked #396
Ranked #4K
~17.8K People Reached
Favorite Tags
Member Avatar for Olive34

The error you are seeing is because of the way DataRowAttribute is defined. It can handle arrays of simple types. The issue here is that DataRowAttribute has the overload for more than one parameters: DataRowAttribute(object data1, params object[] moreData). In your expression, C# takes the second string array as the …

Member Avatar for Ellsaheranny
1
142
Member Avatar for Reverend Jim

Some information left out is the actual name/ model of laptop, hard drive, and whether or not it was visible in the BIOS. Some features may have a power saving mode or power plan, even software controls. Create a new power plan, go to high performance mode. Update drivers and …

Member Avatar for Reverend Jim
0
178
Member Avatar for Dani

This recent Microsoft [CSP](https://learn.microsoft.com/en-us/power-platform/admin/content-security-policy) article may be of help. In the past, anything that was non-browser would just ignore. It's best to test your policy against whatever method you're trying to prevent. You know what assume stands for. One thing that I find effective & troubling is hash file name …

Member Avatar for Ethanbrody
0
78
Member Avatar for manmohan419

What I like to do is write code, even if it's not working or even correct syntax. This will help illustrate what the idea or thought is. Please paint us some sort of pseudo code of your design. Not optimized: class App { function start() { showLoadingScreen() loadLobbyDataFromServer() // This …

Member Avatar for aishamushtaq
0
76
Member Avatar for Oven

Display everything to see where you go wrong. Also, simplify your testing, e.g., 1 ant 2 rooms, 2 paths. There are some algorithms to consider. The Breadth-First Search (BFS) and Dijkstra’s algorithms are ways to find the shortest path. Research those to understand your use case. A fix to your …

Member Avatar for toneewa
0
59
Member Avatar for Dani

A recent interest is the genome mapping of our DNA. The related pathways, vitamins, minerals, and 20 amino acids, associated with each gene. I wish they wouldn't gatekeep such great technologies for people to have a full mapping. E.g., Celiac disease, if you don't have the genes HLA-DQ2 or HLA-DQ8, …

Member Avatar for Chris_103
1
126
Member Avatar for jprog1000

Some minor syntax fixes. Some things to consider are the collision and distance of drawing the next ball. A ball inside a ball's radius will cause numerous collisions. Even the starting ball locations can be already causing collisions. I added a collision counter display. Increased the maximum balls to make …

Member Avatar for aishamushtaq
2
127
Member Avatar for Dani

The first thing that comes to mind is that Google doesn't, because they don't have to. They can save all the nofollows for a third party, and still be telling the truth. Google -> follow -> done. Google -> nofollow -> save -> done. save <- NSA -> done. NSA …

Member Avatar for KomalBhatt
2
124
Member Avatar for toneewa

I'm curious on people's thoughts of using DaniWeb's content to train an A.I. model, with all the questions that are marked as Solved. It can be an optional feature, like "Ask DaniWeb AI". When a user asks a question, the DaniWeb AI will auto answer your question if it's been …

Member Avatar for toneewa
1
70
Member Avatar for Dani

I'm a little late to the party, however, I want to share my experience learning MySQL in the past day. I setup a server, a database, and wrote a C++ program to connect to it. It measures the times for 3 SELECTs. The whole product list, using HAVING, and WHERE. …

Member Avatar for toneewa
0
499
Member Avatar for mx_983

I wonder how these IP addresses are issued. Static, dynamic, or is DHCP on? It reminds me of the time a network printer that stopped working, after the power went out. Other devices connected to the network after it's setup. Then, after rebooting, it got a different IP, but the …

Member Avatar for toneewa
1
60
Member Avatar for Thomasio

The [Windows Media Foundation API](https://learn.microsoft.com/en-us/windows/win32/api/mfmediaengine/nf-mfmediaengine-imfmediaengine-getduration#requirements) is probably what you are thinking of. You also can just use my example, using the ffmpeg library. Just change the filename. extern "C" { #include <libavformat/avformat.h> #include <libavformat/avio.h> } int main() { AVFormatContext* fmt_ctx = NULL; int ret; // read the header of input …

Member Avatar for Thomasio
0
86
Member Avatar for Dani

jQuery's ready() works asynchronously, even if the DOM is already ready, which keeps your code running consistently. jQuery simulates the non-existent DOMContentLoaded event on obsolete browsers like Internet Explorer, using deferred execution, that fires later than the real event in other browsers, making sure it doesn't run too early. DOMContentLoaded …

Member Avatar for jkon
0
139
Member Avatar for snah19

While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #endif #include "url.h" To: #include "libavformat/os_support.h" #include "libavformat/avformat.h" #include "libavformat/internal.h" #if …

Member Avatar for toneewa
1
72
Member Avatar for Dani

Maybe you were thinking of something like this: <?php // Include PHPMailer-BMH library require 'vendor/autoload.php'; // Adjust the path as needed // Create a new BounceMailHandler instance $bmh = new \voku\BounceMailHandler\BounceMailHandler(); // Set up Office 365 SMTP settings $bmh->setSmtpHost('smtp.office365.com'); $bmh->setSmtpPort(587); $bmh->setSmtpSecure('tls'); $bmh->setSmtpAuth(true); // Set OAuth2 credentials $bmh->setAuthType('XOAUTH2'); $bmh->setOauthClientId('your-client-id'); $bmh->setOauthClientSecret('your-client-secret'); $bmh->setOauthAccessToken('your-access-token'); …

Member Avatar for Dani
2
153
Member Avatar for Dani

Did you try the Allow directive, so the website can be crawled and indexed by Googlebot? Be sure to re-submit the corrected sitemap URL. Allow: /Sitemap: https://www.daniweb.com/latest-sitemap.xml Allow: /Sitemap: https://www.daniweb.com/sitemap.xml

Member Avatar for Dani
1
525
Member Avatar for Juniormi_01

You cannot declare an array with variable length in C++. You can use a vector instead. #include<iostream> #include<vector> using namespace std; void nextPermutation(vector<char>& v) { //function declaration for next permutation size_t n = v.size(); size_t i, j; //variable declaration for (i = n - 1; i > 0 && v[i …

Member Avatar for Gulshan_6
0
332
Member Avatar for priya1717

The C version would be: #include <stdio.h> int main() { char bytes[4] = {50, 48, 49, 51}; int bytes1[4]; for (int i = 0; i < 4; i++) { bytes1[i] = bytes[i] - '0'; } for (int i = 0; i < 4; i++) { printf("%d ", bytes1[i]); } return …

Member Avatar for toneewa
0
124
Member Avatar for Sky_

This should do what you asked. #include <iostream> using namespace std; int main() { int i = 1; float working_hours, overtime_payment, total_overtime_payment = 0; float average_overtime_payment; string employee_id; do { cout << "Enter Employee ID: "; cin >> employee_id; cout << "Enter working hour: "; cin >> working_hours; overtime_payment = …

Member Avatar for dwellfox
0
146
Member Avatar for Ahmed_217

This should do what you asked. #include <iostream> using namespace std; int main() { int n, i, arr[50], flag = 0; cout << "Enter the size of array: "; cin >> n; cout << "Enter the elements of array: "; for (i = 0; i < n; i++) cin >> …

Member Avatar for toneewa
0
68
Member Avatar for Angélica_7

You have to declare your variables first. MCSTEPS as a constant expression, and before trying to use it. sum_1, sum_2 need declaring also. You can log your output and variables separately, or however you want, and read the file(s) later. #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <iostream> …

Member Avatar for toneewa
1
128
Member Avatar for Kyoto_1

A few things here. Move and capture all (Z)ombies (on the left). Check your if statement against size_t. Change your variables x, y from int to size_t, as well as change them from comparison operator to assignment operator. Check your (Z)ombies, (H)ouls inputs to be within bounds. Use display(plain); to …

Member Avatar for toneewa
0
134
Member Avatar for Virat_4

You could make an automated program to auto-click, auto-scroll (the more you scroll, the more div classes (questions) are added), save the webpage, parse that file for urls (topic posts & user profiles), days, visit each url... Sites that use javascript, cookies, even capcha or cloudflare to hide content, make …

Member Avatar for Naor
0
238
Member Avatar for Afonso_1
Member Avatar for Dani
0
985
Member Avatar for Quoc_4

You just create that function to navigate back to redo your input. Here, I check for input during the gender input to see if the letter 'b' (back) is entered. If so, the last name function is called. #include <iostream> #include <string> using namespace std; int navigate(); int display(); int …

Member Avatar for toneewa
0
80
Member Avatar for emmamark

Here's a way to get started. Searches a text file for similar words from characters, logs and displays them. #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; ofstream logfile("log.txt", ios_base::app); ofstream found_words("found.txt"); void menu(); int read(); int found(); //int user(); int main() { while (1) { menu(); …

Member Avatar for toneewa
0
204
Member Avatar for Dani
Member Avatar for Austin_11

Breaking down the process into simple functions, enables you to figure out where you are going wrong. Here, this example creates x amount of random letters in a file, Lab7.txt, and then reads the file, counting the letters. Then displaying the counts and total. #include <iostream> #include <fstream> #include <iomanip> …

Member Avatar for rproffitt
1
50
Member Avatar for Braxy

Here is a working program that'll keep track of your rooms A-P. It reads a text file and it saves changes as you make changes as "book" or open. #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; int menu(); void readrooms(); int status_update(); int choice(); int main() …

Member Avatar for Schol-R-LEA
0
167
Member Avatar for Ashton21

While, I wouldn't normally do it this way, I tried to match what you were asking. #include <iostream> double display_temp(double temp1, double temp2, double temp3, double temp4); double temp1 = 0; double temp2 = 0; double temp3 = 0; double temp4 = 0; void main() { std::cout << "Temperature 1: …

Member Avatar for toneewa
0
229