- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 35
- Posts with Upvotes
- 29
- Upvoting Members
- 13
- Downvotes Received
- 10
- Posts with Downvotes
- 8
- Downvoting Members
- 7
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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'); … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 = … | |
Re: 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 >> … | |
Re: 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> … | |
Re: 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 … | |
Re: 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 … | |
Re: You can use URLDownloadToFileA. It has worked for me very well. | |
Re: 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 … | |
Re: 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(); … | |
Re: 1) GREAT 2) AUDIO 3) URBAN 4) STRIP 5) LEARN 6) FREAK | |
Re: 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> … | |
Re: 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() … | |
Re: 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: … |