Posts
 
Reputation
Joined
Last Seen
Ranked #262
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
53
Posts with Upvotes
41
Upvoting Members
17
Downvotes Received
10
Posts with Downvotes
8
Downvoting Members
7
15 Commented Posts
6 Endorsements
Ranked #299
Ranked #3K

62 Posted Topics

Member Avatar for Dani

If you have the enterprise plan you should have an emergency phone option under support. Cloudflare also has a 24/7 Emergency Hotline at +1 (866)-325-4810. There's a Live Chat option for Business. Call their sales number and get some answers. +1 (888) 99 FLARE A disputed charge back on a …

Member Avatar for toneewa
1
11
Member Avatar for Dani

Your data wouldn't be accurate and incomplete, if either one of the performance schemas were off. event_waits_current was off, so MySQL didn't store the data (e.g., collect wait event data in detail), which can create incomplete or missing information about index usage like table I/O waits, index access details, event …

Member Avatar for toneewa
0
61
Member Avatar for Mr.M

For VS2010 project support in VS2022, to compile your example I did the following: Created header stdafx.h: #pragma once #include <iostream> #include <fstream> #include <sstream> #include <string> #include <Windows.h> #include <WinSock.h> #include <msclr/marshal_cppstd.h> namespace MR_MNamespace { void DisplayComputerName(); } Created mr_m.cpp: #include "stdafx.h" using namespace System; using namespace MR_MNamespace; namespace …

Member Avatar for toneewa
1
169
Member Avatar for Dani

You're not suppose to switch databases with a connection mid-transaction. It's by design to rollback because it considers it a change to the session context. XA Transactions can be done if you use the InnoDB storage engine. Create separate PDO connections for each database. I wonder what kind of results …

Member Avatar for Dani
0
183
Member Avatar for Dani

AMD Ryzen 5950X - 32 threads, 3090 24GB, 32 GB, 2K - 27" 144Hz, 1080P - 27" 144Hz, M.2 AMD Ryzen 5900X - 24 threads, 3060 TI 8GB, 16 GB, 4K - 28" 60Hz, SSD

Member Avatar for Salem
1
270
Member Avatar for Bdill7

This will add a uniqie identifer to a new file each time you run it. It creates a new .txt file each time. Be sure you have permissions, e.g., run VS Code as Administrator, and the directory exists. import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; …

Member Avatar for hostingspell
2
80
Member Avatar for jkon

The global share of Safari is ~18.07%. Sounds about right to me. Remember, web servers really don't care what a user-agent string is. They just check for a word. E.g., try to access a webage that doesn't want you to browse it without a particular user-agent - it halts, and …

Member Avatar for jkon
1
198
Member Avatar for Reverend Jim

You can save this code as an HTML document, and also test several display resolutions. It will automatically set the resolution & associated color. It includes a related weather forecast. <!DOCTYPE html> <html> <head> <style> body { background-color: lightblue; transition: all 0.5s; display: flex; flex-direction: column; align-items: center; justify-content: center; …

Member Avatar for quackyfist
2
225
Member Avatar for alexxx1

I signed up and tested the Snoopi code, and the following works. JQuery is needed. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Get Location</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> <h1>Your Location</h1> <div id="location">Loading...</div> <script> $(document).ready(function() { $.ajax({ url: "https://api.snoopi.io/check?apikey=a11...0b", dataType: "jsonp", jsonpCallback: "unBounce" }); }); // Ready …

Member Avatar for toneewa
2
141
Member Avatar for alexxx1

From what I can see, I'm thinking it's not embedded correctly. [Here](https://toneewa.wixsite.com/toneewa), I created a test site using the sample timer. I suggest you right-click and inspect the elements for the pages. You'll see the page reference source to the html [document](https://toneewa-wixsite-com.filesusr.com/html/085832_1ca667945d2ebf26ec45de33a92a122d.html), where the code is placed. ![timer.jpg](https://static.daniweb.com/attachments/4/6b4c27f0e0f432f24801f36116b94b24.jpg) ![timer2.jpg](https://static.daniweb.com/attachments/4/5c005d174357e2ee7301e6e78d664e62.jpg) Check …

Member Avatar for toneewa
0
130
Member Avatar for Tuấn_4

I downloaded a sample csv [file](https://www.datablist.com/learn/csv/download-sample-csv-files), and installed pandas in Visual Studio, Python 3.9, 3.11 with the command prompt: python -m pip install pandas (workspace directory: C:\Users\toneewa\nasa\repos\read_py_file\) CD C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64 python -m pip install pandas This runs fine: import pandas as pd #shows all #pd.set_option('display.max_rows', None) #pd.set_option('display.max_columns', …

Member Avatar for toneewa
0
28K
Member Avatar for varone

You can try to only show the window when you are ready to draw. Runs fine. Main.java: package org.example; import org.joml.Matrix4f; import org.lwjgl.glfw.GLFWVidMode; import org.lwjgl.glfw.GLFWErrorCallback; import org.lwjgl.opengl.GL; import org.lwjgl.system.MemoryStack; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.util.Objects; import static org.lwjgl.glfw.Callbacks.glfwFreeCallbacks; import static org.lwjgl.glfw.GLFW.*; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.system.MemoryStack.stackPush; import static org.lwjgl.system.MemoryUtil.NULL; …

Member Avatar for varone
2
136
Member Avatar for fowokov687l

Using Win32Disk Imager to run the OS [Raspbian](https://raspians.com/how-to-run-raspbian-on-an-orange-pi/) on Orange Pi is what I feel you are looking for. I would suggest reading the [manual](http://www.orangepi.org/html/serviceAndSupport/index.html) for the device you are using. Plenty of tools and resources provided. E.g., on page 231-234 shows SSH setup for the Orange Pi 5 Pro. …

Member Avatar for fowokov687l
1
74
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
194
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
201
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
146
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
98
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
1
85
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
136
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
195
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
139
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
79
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
788
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
73
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
283
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
207
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
86
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
174
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
1K
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
338
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
129
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
156
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
71
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
134
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
139
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
341
Member Avatar for Afonso_1
Member Avatar for Dani
0
2K
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
83
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
220
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
58
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
177
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
327
Member Avatar for Yolie_b

Here is a simple conversion from F to C. #include <iostream> int main() { float f_temp = 0.0; float c = 0.0; while (1) { std::cout << " Enter Fahrenheit Temperature: "; std::cin >> f_temp; c = (static_cast<float>(5) / 9) * (f_temp - 32); std::cout << " Temperature in Celsius: …

Member Avatar for toneewa
-1
305
Member Avatar for Ashton21

You can use the preprocessor example in the manner to help calculate your weekly salary. It doesn't take overtime into account. Your salary comparisons were incorrect and left out conditions. You can easily find out what isn't working, by displaying what the calculations are entered. Decimal variable input wasn't taken. …

Member Avatar for toneewa
1
191
Member Avatar for Shianne_1

If you break down each process, to see if your calculations are correct, it would be easier to see where things are not working. I did that for you in this example. print("Enter hours and rate for total pay") rate = float(input("Enter the hourly pay rate: ")) hours = float(input("Enter …

Member Avatar for Reverend Jim
0
342
Member Avatar for dummyjy0*_08

While it's not using the requested function formats, it'll do what you want plus more. #include<stdio.h> #include<iostream> int products(int arr[], int len) { int i, temp = 1; for (i = 0; i < len; i++) { temp = temp * arr[i]; } return temp; } int num = 0; …

Member Avatar for toneewa
0
45
Member Avatar for kasmar45

There are a lot of examples out there using the function isdigit. #include <iostream> using namespace std; int main() { int i,count; string checkint; cout<<"Enter a number : "; cin>>checkint; for (i = 0; i < checkint.length(); i++) { if (isdigit(checkint[i]) == false) { count=1; break; } else count=0; } …

Member Avatar for john_111
4
319
Member Avatar for isyae

What you want to do is handle the white spaces on your cardNames or change the formatting. It thinks that there are more than 6 variables. #include <iostream> #include <iomanip> #include <fstream> using namespace std; //Prototype void readCards(); int main() { readCards(); return 0; } void readCards() { const int …

Member Avatar for toneewa
0
85
Member Avatar for Ethan_145

My advice is learn about threads to do it in real-time. Otherwise, load/generate everything that is needed, **before** you start battles. Then, see what direction you need to go. Benchmarking your design is just part of the process.

Member Avatar for toneewa
0
506

The End.