1,164 Recommended Topics
Remove Filter ![]() | |
I happily just discovered the Cache-Control rules *stale-if-error* and *stale-while-revalidate*. I came across [an article](https://developers.cloudflare.com/cache/concepts/cache-control/) on Cloudflare's site that says that those two directives are ignored if CF's Always Online feature is enabled, so I've gone ahead and disabled that. However, I'm confused by the following quote: > The stale-if-error … | |
Hi DW, I'm getting this error when I try to debug, it says it can't open `"c:\users\myusername\Documents\Visual Studio 2010\Projects\myprojectname\debug\myprojectname.exe"` How can I solve this? | |
Id like to know as to how to go about creating a web service that validates a registerd user to my site. Also how to register a new user to the site. What steps shall i take in order to do this? Im using Visual Studio 2008 (.NET Framework 3.5) … | |
i want to add Crosshair , a vertical and horizontal line to view the value of the axis is this available for charts in vb.net 2017.  | |
I've been reading about the Microsoft Solutions Partner program and wanted to ask the community is it actually worth pursuing for an IT company It looks like Microsoft has set certain performance and certification requirements that companies need to meet in order to qualify. They have categories like Infrastructure, Data … | |
Hi everyone, I've recently started exploring ChatGPT in the French language for programming help, and I was surprised at how effective it can be — even when working with frameworks like Laravel or JavaScript. For example, I asked it to generate a Laravel controller with French comments, and the output … Programming c++ javascript python | |
[OpenAI](https://openai.com/) and [Anthropic](https://www.anthropic.com/) are two AI giants delivering state-of-the-art large language models for various tasks. In a [previous article](https://www.daniweb.com/programming/computer-science/tutorials/542132/comparing-gpt-4o-vs-claude-3-5-sonnet-for-zero-shot-text-classification), I compared OpenAI GPT-4o and Anthropic Claude 3.5 sonnet models for text classification tasks. That article was published almost a year ago. Since then, both OpenAI and Anthropic have released state-of-the-art … | |
Here's a quick bit of code to upload a file in PHP. | |
Hi all, My team and I is making an open-source library for running AI models on the phone. We are planning to create a very simple SDK which will allow you to download a model and use it on your phone. We plan to release an initial version in a … | |
I have a candlestick chart with long list (data point) on X-Axis which becomes congested when loaded. How to show datapoint with sufficient space . Is there any container with horizontal scroll bar to display chart just like data is displayed in DataGrid view without reducing column width.  | |
When displaying extensive MLM (Multi-Level Marketing) hierarchies using TreeView in ASP.NET, performance issues often arise due to the sheer volume of nested nodes. Loading thousands of members at once can slow down the interface, increase page load time, and degrade user experience. | |
I know that this is probably a hopeless question, but are there any automated scripts that would *reliably* and *automagically* convert my thousands upon thousands of lines of jQuery code into native Javascript? | |
In my increasingly futile attempt to remain using the now-defunct CodeIgniter 3 framework, I came across something that I figure might be worth sharing in case anyone else is maintaining older PHP codebases and suddenly things start breaking after a PHP upgrade. With PHP 8.2, there’s a new warning that’s … | |
Here is the function that I use here at DaniWeb to manage flood control. It keeps track of how often a specific user or IP address is making a request, and increments a counter. If there have been no requests after 5 minutes, the counter resets to 0. It returns … | |
I’m working on a travel planning form that adjusts based on the selected nationality. For example, if someone picks a country like India, the form should display whether they need an electronic visa for places like Sri Lanka, and maybe show a short message or guide link. I’m using JavaScript … | |
Hello, Just curious and want to know is their any alternatives to github as well? | |
Hey Flutter devs I’ve been learning Flutter app development for cross-platform app development and I’m starting to get into more advanced stuff — but one thing that still feels a bit unclear is state management. I know there are several options like: setState() Provider Riverpod Bloc GetX, MobX, etc. But … | |
I'm just coding something for fun right now and I'm stuck on looping. I'm using a while loop that only runs if my variable is 0. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import time import sys … Programming python | |
What are some best practices for optimizing memory management when working with large datasets? I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low … | |
I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this? | |
Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I … | |
I want to post Pins using Pinterest API. I have tried to generate code using ChatGPT but it returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret = "xxx"; // Replace with your App Secret $redirectUri = "xxx"; … | |
The project is: -------------------------------- Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. Create a text file and name as numbers.txt and add the … | |
In 2025, a successful website goes beyond just good looks. It needs to be fast-loading, mobile-friendly, and accessible to all users. Strong user experience (UX), clean navigation, and clear calls to action are essential. Integrating SEO best practices, secure protocols (HTTPS), and scalable backend systems is also vital. Websites should … | |
I use Github for DaniWeb's code base. I was just wondering though. How secure is it? Would you ever store passwords or other sensitive information in Github (Don't worry. We use .gitignore.)? What about code that could be considered a trade secret, or that type of thing? | |
And is it bad or what because sometimes I think I might get carried out | |
Hi DW, I'm trying to mark attendance register which has the date for which that register is being marked for as well as the date which the register is actually marked on. For Date as well as Marked Date. I also have two time picker textboxs which one is for … | |
Hello, fellow coders, I'm relatively new to coding and web development but excited to embark on a project combining my passion and my budding programming skills. I'm eager to create a tool like this https://minecraftcirclegenerate.com/ created using HTML, CSS, and JavaScript. As a beginner, I'm seeking guidance on where to … | |
Hello, I'm a Freshman in college that's going to majoring in Electrical and Computer Engineering. Right now I'm taking a C++ class and I'm looking to do something funny to a friend of mine. I have been searching the web for some "fake viruses" and whatnot to to play around … | |
## Introduction ## In a previous tutorial, we learned [how to create a notification on Android](https://www.daniweb.com/programming/mobile-development/tutorials/536756/android-native-how-to-create-a-notification#post2282507). In that tutorial, we did not have to request any permission because applications did not need permission to post notifications on Android 12 and below. It has been almost a year since the release … | |
Hi DW. I'm a bit confused and lost on how this App is working called Ha Tunnel Plus (You can check it on Playstore, and have a look on YouTube for the configuration file). Basically it somehow uses the internet connection of the server, it tunnels it to your Android … | |
what are the challenges?? | |
How can I identify and delete unused MySQL indexes? I have a large table that has somehow accumulated way too many indexes over the years, and I'd now like to identify and delete indexes that are no longer used by the application. | |
I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following: Have a webpage with a button, when pressed, it will launch a webpage that runs a … | |
Hi everyone, I'm getting a 401 Unauthorized error when trying to call the Management API from my web app. I've already checked my token, headers, and API endpoint, but nothing seems to work. However, I’m still confused and can’t figure out where exactly I’m going wrong. I feel like the … | |
What model of Android phone would you start with for testing a Java app? Is there one phone of which you can say, "Well, it works fine on here. There’s a good chance it’ll work on 75% of other Android phones and tablets"? | |
I'm currently working on enhancing the user experience for the <snipped> app, and I've run into a bit of a roadblock. I'm trying to optimize the game lobby to ensure smooth navigation and quick loading times, especially as our user base continues to grow. However, I'm finding that even with … | |
what is sharepoint policy management software, and how does it benefit organizations ? | |
I want to build an easy machine language more likely that sport local language and easy for building software applications and much more Programming assembly shell-scripting | |
Never published this before, so this is a DaniWeb.com Exclusive :) If your WP-Site has a lot of K-Links, you should consider using this script. It definetly works. For now... ## **Negative SEO** through spamming Backlinks can be a huge problem for the visibility of a webpage. ## You can … | |
As you may know, yuo can customize the error pages in Cloudflare, such as for a WAF block, etc. For some reason, since the switchover to the new error pages dashboard, the custom font I always use isn't working. I can see that it converted https://cdn.daniweb.com/font.woff into inline base64 for … | |
Probably a silly question, but is Argo Smart Routing (the usage-based product) only applicable to content served at the origin? Otherwise, does it makes sense to be spending money to find a more efficient path between the end-user and the edge? Isn't the edge already pretty darn close? | |
Hi Everyone, Web development can be both exciting and challenging, but having the right tools makes all the difference. If you're starting out or looking to improve your workflow, consider using popular frameworks like React or Vue for streamlined front-end development. On the back end, Node.js and Django are solid … | |
We examine the steps involved in developing an iPhone app and their efficiencies. With the help of our blog, you may identify important developer requirements, pick the best programming language, and acquire reliable resources. Existing business owners and startup ventures eagerly anticipate realizing the benefits brought forth by iOS mobile … | |
Hey Guys, What problems might a business owner face during mobile app development? | |
I have been searching online for a program that will: -reads in number of times a user wants a coin flipped -flip the coin that many times, printing out result of each coin flip -print out the total number of heads flipped and total number of tails flipped the application … | |
Large language models are trained on a fixed corpus, and their knowledge is often limited by the documents they are trained on. Techniques like retrieval augmented generation, continuous pre-training, and fine-tuning enhance an LLM's default knowledge. However, these techniques can still not enable an LLM to answer queries that require … | |
I'm planning to develop a mobile application and am in the process of selecting a development partner. With so many options available, what factors should I consider to ensure I choose the right mobile app development company? Are there specific credentials, portfolios, or client testimonials that are particularly telling of … | |
Just as the topic title suggests, any jQuery 4 beta users out there who could let me know what it's like? The wait for v4 gold release is killing me. Also, please don't make fun of me for being a jQuery user. DaniWeb has been built on jQuery for decades. … | |
How can lazy loading improve web portal performance by reducing initial load times and optimizing resource usage? What are the best techniques to implement lazy loading in images, components, and data fetching using JavaScript frameworks like React, Vue, and Angular? How does lazy loading impact SEO and user experience? |
The End.