- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 45
- Posts with Upvotes
- 36
- Upvoting Members
- 16
- Downvotes Received
- 10
- Posts with Downvotes
- 8
- Downvoting Members
- 7
Re: 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 … | |
Re: 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; … | |
Re: 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 … | |
Re: 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 … | |
Re: 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', … | |
Re: 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; … | |
Re: 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. … | |
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 … |