11,530 Posted Topics
Re: WordPress is the most popular blogging software on the web today. It’s easy to get started with it infinitely powerful if you grow into a power user over the years. If you plan on blogging, I would recommend WordPress. However, you can install WordPress on any server for free, and … | |
Re: Hi, Per our private chat, can you please give a little more detail in terms of where you are stuck or confused? Our goal is to help you complete the assignment, but also to teach you how to do it yourself, so you won’t need as much assistance next time. | |
According to [this page](https://developers.google.com/search/docs/advanced/experience/signed-exchange), Google requires "as a rule of thumb" that the SXG expiration date is less than 1 day in the future if the content is JS, or otherwise 7 days in the future. My external Javascript files are immutable. Why should they have a 1 day cache … | |
Re: I’m not near my computer right now to double check, but if memory serves, I use UTF-8 for email and never had an issue. It would be recommended to use something like utf8 or utf8mb4 if you have a global audience where the email body can contain non-Latin characters. I … | |
Re: Here's someone else needing help about ten years ago with the same program in C++: https://www.daniweb.com/programming/software-development/threads/270987/multiple-math-function-options You can use what they have as a start, and work through debugging it. The easier way, of course, would be with if statements. They seemed to have used multiple functions. Have you learned … | |
Re: > Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\merge\registration.php on line 3 To answer 2451-18-737-303 (albeit nearly a year late) You're missing { and } around all of your if statements: <?php include('connect.php') if(isset($_REQUEST['submit'])!=' ') { if($_REQUEST['name']=='' || $_REQUEST[email']=='' || $_REQUEST['password']=='' || $_REQUEST['repassword']=='') { echo "please fill the empty … | |
Re: You mention you're looking for an extension that promotes your products on instagram. Odeskavita mentioned that there are a handful of Instagram extensions for Magento ecommerce sites, but this requires you to be using Magento to power your ecommerce. If that's not the case, you can create an RSS feed … | |
Re: I was able to find [URLDownloadToFile()](https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/ms775123(v=vs.85)) but what is URLDownloadToFileA()? Is that a typo or a function you wrote? | |
Re: We are an English-only forum :) Google Translation: *hello everyone, someone can help me ... I would like to make a form with a button that inserts the data into a db access when clicked, I would need the code for the connection to the db, and the statement for … | |
Re: Hi and welcome to DaniWeb! You’ll find yourself right at home here alongside many other longtime web developers. However, we do ask that you please don’t plug a link to your site, to keep our community spam-free. | |
Re: I don’t know VB at all but why do you have SHAPE { with an opening bracket but no closing } anywhere? | |
Re: Hi there!! I never got rid of the Java forum! Converting from a Forum to a Tag doesn't mean it's gotten rid of. https://www.daniweb.com/tags/java The conversion to a tag-based architecture was in response to the swiftly declining traffic, not the cause of it. I think people don't realize that because … | |
Re: Hi there and welcome to DaniWeb! What do you blog about? Or is it mostly just that you do paid content for clients? | |
Re: I wish I could help but unfortunately I don't know Assembly beyond one course I took in college, two decades ago. However, to rproffitt's point, it's usually considered good etiquette/technique to give someone credit in the code comments if you're copying/pasting their code. That being said, the bottom of the … | |
Re: I don't know C++, but here's how I would set something like this up in PHP: // All players have a name and belong to a team class Player { private $name; private $team; // Create a new player by passing in their name and team public function __construct($name, $team) … | |
Re: Remove the entire <script> section in the code you posted and instead use this: <script type="text/javascript"> // This executes right before displaying the modal $('#myModal).on('show.bs.modal', function (event) { var text = $("#linkbutton1").text(); $("#modal_body").html(text); }); </script> There's no need for the openModal() function because you're not using it anywhere anyways. | |
Re: Some portions of Google's various search algorithms are patented. Whether or not they're still using those patents, as is, is unknown, of course. | |
Re: The code that you are showing me is simple HTML code that produces a linkable image, followed by a little tracking pixel, and can be embedded anywhere. While I don't have any personal experience with Thymeleaf, it's a template engine that lets you insert HTML and include Java variables. We … | |
Re: Hi William and welcome to DaniWeb! Ah, loading time. With Google really pushing Core Web Vitals (aka site performance) a growing part of their algorithm nowadays, not to mention how site speed is directly related to user satisfaction and conversion rates, site speed is more and more important. The low … | |
Re: Is it possible the fan is installed a little bit off balance? | |
Re: Hello and welcome. What do you think of DaniWeb now that you’ve had some time to explore? | |
Re: What was so bad about your experience? I’ve never heard of them, although quite sad that Fry’s didn’t make it through the pandemic. I finally moved to a city that had a Fry’s … 3 actually … and the entire chain closes not long after. | |
Re: For those of you who didn't want to click the link, here is the code in the padlet: #include <iostream> using namespace std; void WardCharge(char, int, int); int main() { char categ; int ward_class, days; cout << "WELCOME TO HTAA SYSTEM\n\n"; while(true) { cout << "Category (G-government, N-non government): "; … | |
Re: > It’s also not Java. The question was tagged both c++ and java. I don't think the OP has a preference, and can probably follow along with either. | |
Re: Hi Praise! Nice to meet you!! :) What got you interested in affiliate marketing? My first experience with affiliate was reselling Amazon books (back when Amazon.com was just a bookstore!) for 10% commission back in 1998! My second experience with affiliate was putting a little Goto.com search box on my … | |
Re: That looks like a project that could take awhile. It's probably about a couple full day's work for a beginner programmer. Have you started yet? Do you have code you can show us so far including where you're stuck or where you need help? I urge you to begin working … | |
Re: Hello! Thank you for posting this. Here at DaniWeb, we use the [Markdown syntax](https://www.daniweb.com/welcome/syntax) for posting. (You can get to that page I just linked to by clicking the little question mark in the editor toolbar). If you scroll down that page to where it says Lists, you can see: … | |
Re: As I mentioned [in this post](https://www.daniweb.com/programming/web-development/threads/538477/is-htmlspecialchars-necessary-here#post2287282) the purpose of using htmlspecialchars(), urlencode(), and rawurlencode() is to make it easier for you to make your HTML code valid, and make your URLs valid. In the example you're providing, it's necessary to use `rawurlencode('Sales and Marketing')` because have you *ever* seen spaces … | |
Re: I'm having a hard time understanding what it is that you're trying to do. You say 371 videos but I only see 3 videos in your HTML, and you say that's the working code. Why do you have specific conditionals for August 1st, 2nd, and 3rd? I would do something … | |
Re: Is code like this still necessary anymore with the JDK including a web server by default, then? | |
Re: Thank you for resubmitting your code. It's much appreciated, to help us to help you :) That being said, when you have: <form action="product_list.php" method="post"> <input type="text" name="..."> <input type="submit"> </form> Then, unless you have Javascript that is preventing the default event action, the values of the text input fields … | |
Re: I don't have any experience with .NET, but I do have a lot of experience with Bootstrap, which is the CSS framework that we use here at DaniWeb. I'm very familiar with bootstrap modals because we use them all over this site. If you don't want the page to get … | |
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 … | |
Re: A 500 internal server error means there’s something wrong either with the server configuration or some type of fatal error in executing the code for the web app to where it’s unable to continue and simply fails. This would never happen because of the web browser you’re using or something … | |
Re: I don't know about C++, but PHP has a built-in function that does just this. When I follow rproffitt's link to Rosetta Code, there's this complicated NumberToEnglish() function. However, there's no need for any of this. Just use https://www.php.net/manual/en/class.numberformatter.php <?php $formatter = new NumberFormatter("en", NumberFormatter::SPELLOUT); echo $formatter->format(123); // Prints out … | |
Re: Basically what you're looking for is something to manage rate limiting or flood control. [I wrote a little code snippet up](https://www.daniweb.com/programming/web-development/code/538531/flood-control-using-redis) that shows the code we are using to manage flood control. We use Redis, a persistent caching mechanism. You can alternatively use Memcached to achieve something very similar. | |
Re: Can you provide an example of how someone can use this code in an editor? For example, a text editor class that actually utilizes this struct? Otherwise, on its own, there's not much value here. Why does the textnode need to include a pointer to the next textnode? What are … | |
Re: > This would seem to be outdated today as most systems are online. I think the point of the code that jnbgames.dev has been posting lately are meant more as learning exercises than code snippets that could actually be utilized in production in the real world. | |
Re: Thank you for posting this. What do you mean by a maze, though? Do you mean like a grid? | |
Re: Ahrefs free plan has some good core functionality as well. However, it’s definitely worth the money if organic SEO is really important to your business model. | |
Re: It is correct for your PHP code to begin with <?php and to end with ?>. However, if you have regular HTML mixed into the same file, you want to make sure that your opening and closing PHP blocks don't encapsulate your regular HTML code as well. If you could … | |
Re: Next.js is a Javascript framework that enables React-based websites to do server-side rendering. This is completely different functionality than PHP, and they are different tools for different jobs. You can port a PHP-based website to be written in back-end Javascript, instead, but it wouldn't actually be a line-by-line translation. You … | |
Re: You’re on the right track! The overloaded 0-arg constructor should set this.length and this.width, not just length and width as you have it. We are setting the object’s properties when we create a new Rectangle object, as so: public Rectangle(){ this.length = 0; this.width = 0; } The area variable … | |
Re: > Looking at https://rosettacode.org/wiki/Perfect_numbers#C I wonder if line 154 needs a change. How would you change it? Be helpful to people stumbling across this thread from a Google search and wanting the ability to copy/paste. (That's the point of our code snippet library, after all). | |
Re: On line 69 of the code snippet you posted, you deleted game1.highScore. Then, on line 70, you pass game1 into the function high_score(). When I look in that function beginning on line 269, I see you are setting game1.highScore to a value, and then returning a pointer to game1.highScore. I'll … | |
| |
Re: I'm sorry, I'm not understanding your question. Whenever `$c` is a string, regardless of if the value of that string is `bool` or `string`, if you do `settype($c, 'integer');` then the value of `$c` will be 0. $c = 'blah'; settype($c, 'integer'); // Results in $c is now the integer … | |
Re: So looking at customer_login.php, I'm not sure what you mean to do here: <form action="index.php" method="post" value="login_customer"> You cannot set a value of "login_customer" to the form itself. I think what you mean to do is: <form action="index.php" method="post"> <input type="hidden" name="action" value="login_customer"> The same is true on the product_register.php … | |
Re: Looking forward to you helping students in our computer science forums! You can add a link to your business in your [post signature](https://www.daniweb.com/connect/profile/community) so students who need extra 1-on-1 help can see that you're knowledgeable and hire you. |
The End.