Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So with this method there is no way to say 'I don't have a key'.

Just to clarify, if you are installing Windows off of bootable media, and the installer prompts you for a CD key, you can just click the Next button while leaving the field blank. It's not very intuitive that the field is optional. Usually Windows figures it out after installation is complete.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi Linda. Nice to meet you!! Welcome to DaniWeb. I hope to see you around here :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I I had to reinstall Windows within Windows. USB would not work.

I just recently had my Dell PC shipped from NY to California, where I recently bought a house, and had all sorts of issues reformatting it. I was wondering in what way the USB stick would not work for you? ran into a similar issue in which the latest downloadable version of Windows 10, used to create installable media, did not come with the correct drivers for my Dell RAID card. It would go through the entire installation process, and then when it was time to reboot into Windows, it would just either blue screen or panic and the computer would restart on its own. Ultimately, I had to use an older version of Windows 10, install that, then upgrade the drivers from within Windows, and then upgrade to the latest version of Windows 10 from within Windows. Since you mentioned that your computer was also a Dell, and that you couldn't install off of the USB stick, I thought I'd mention this, just in case you're also having a driver issue with the latest version of Windows 10.

Now as far as activation is concerned, the others who posted here are right. Windows 10 stores your hardware profile in the cloud, associated with a license key. Ideally, if you reinstall on the same computer, as long as your hardware has not been fundamentally changed, the MS servers should recognize that there is already a …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I also want to mention that rproffitt is not wrong when he pointed you to some existing C++ MTG games on Github. One of the best ways I've learned has been to read existing code, and then start by making small modifications to it, and then eventually bigger and bigger modifications. Eventually, I felt comfortable understanding how all the pieces worked together, and what the limitations of the existing software were, that I could create my own from scratch that is even better than the one I learned off of.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Maybe because he’s interested in programming and also interested in Magic the Gathering?

When I was in middle school, I was morphing my skills from QBasic to Visual Basic, and I was also honing my touch typing skills, and loved using Mavis Beacon. So I wrote a Mavis Beacon clone in VB.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I should have clarified I was asking about the candy version.

I understood what you meant. It was a joke. Sorry for hijacking your topic, 1kpop! ;)

rproffitt commented: ?roll. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, we won't just do your homework for you here at DaniWeb. Please post the code you have so far along with where you're stuck, what's confusing you, where any errors are, etc.

rproffitt commented: ❼ Up! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. So nice to meet you. Welcome to DaniWeb!!

rproffitt, I would assume that all fish eaten in Sweden are Swedish fish.

rproffitt commented: I should have clarified I was asking about the candy version. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm really sorry, but I guess my confusion is:

  1. How is the existing functionality different from the expected functionality? Is it just that the user cannot use a credit card but only their debit card?
  2. Upon paying for the digital goods, is the user presented with a way of downloading them? Or is that the part that isn't working?
  3. What are the contents of your thankyou.php page? I know that you've been having a difficult time posting code, so posting it here as an attachment should work just as well.
  4. What are you hoping that utilizing IPN will accomplish for you?
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As an addendum to my previous post, check out Example 6 of the HTML Media Capture spec: https://w3c.github.io/html-media-capture/#example-6

It shows that, instead of uploading the media content, you can display it at fixed dimensions via javascript:

https://w3c.github.io/html-media-capture/#example-6

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The code you are providing is just a simple HTML file upload form with nothing special about it. The capture property is a hint directed to the web browser the desired use case is for the end user to use the device's native media capturing capabilities to capture something to be uploaded. As far as I am aware, you cannot pass a further hint for the resolution you prefer to capture in.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've definitely written about this before on DaniWeb ... I'll have to see if I can pull it up. But, to answer your question, it really depends on what your long term goals are.

Coding has been really glamorized in the last handful of years, and so you have everyone and their mother now thinking they want a computer science degree. Let me burst your bubble: very little of computer science has to do with learning to code.

When I went to school in the early 2000s, there were two courses focused on learning to code in C++. Beyond that, code was used as a learning aid in many ways, but the classes themselves focused on calculus, discrete mathematics, more discrete mathematics, probability and statistics, and more calculus. There was also a tiny amount of digital circuitry added in for good measure.

If you think coding is fun and want to do it on the side, there are coding bootcamps that teach you how to do some very basic coding using today's popular languages, but it's more of just memorizing some code syntax, and not why anything you're doing actually works. It's also not really conducive to taking any skills and applying them to anything outside of what's done in the bootcamp.

If you want to make a career out of doing small coding projects (e.g. creating simple websites for small businesses) or want to supplement your career with some coding knowledge, perhaps pursue a technical school that focuses in …

rproffitt commented: ?‍♀️ or ?‍♀️. Always good to see your writings. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Is this Python? You tagged database python vb.net visual-basic xml. Should I untag this topic from being VB related?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The first portion of the assignment says that the program should be object oriented with a constructor with attributres brand, model, year, and price.

Therefore, what we're talking about is a program which has different Car objects. Each Car object is a type of Car, with its own combination of brand, model, year, and price.

Therefore, the name of the class should be Car or something like that, and properties of a Car should be the variables brand, model, year, and price.

Then, you can create a new Car called MyCar, a new Car called YourCar, a new Car called NeighborCar, etc.

Then, there should be a method within this Car class to calculate the price. Then, I can do something like MyCar->calculatePrice(), or NeighborCar->calculatePrice() and see who has a more expensive car.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I just stumbled across this thread randomly as the result of a Google search for something else, and thought I'd take the time to reply.

What I ultimately ended up doing is trying a deadlocked query 5 times before rolling back the transaction. Over the past 1+ years of logs, it's never taken more than two attempts to be successful, which ended any user facing bugs revolving around this.

In terms of using cron jobs to delay not-so-important updates and run them behind the scenes in batches, we have always done that for article views and so forth. However, member post count is something that users expect to show up instantaneously. I take the time to write something, and then I expect it to reflect that my account has a post submission. Otherwise, I might think it didn't go through, etc.

Anyways, the current solution has been working for the past year and a half with no issues.

rproffitt commented: ?? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi Kapil!

Sorry to hear about that. The pandemic has been so hard on so many different people. You might wish to check out our People Match which can match people looking for a job with those who are hiring.

I also recommend you sign up with Upwork, if you haven't already.

All the best of luck to you!!

rproffitt commented: ? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Forget about defining "best" ... please define your industry and your goals. The best digital marketing strategy is different for every site. Some sites care the most about web traffic. The more traffic, the better, and that's all that matters. Other sites care more about short tail conversions, and they are more focused on spending a lot of money to focus on getting just a handful of people who will spend a lot of money with them purchasing their goods or services.

rproffitt commented: Best answer. ?‍♀️ +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The existing Facebook groups are all now-abandoned fan groups started by members many years ago.

What would be the benefit to creating an official Facebook group or groups on other social media sites? What would be posted there? What would be the benefits to utilizing it?

The purpose of the DaniWeb website, itself, is to be a community that unites people interested in technology. Here on DaniWeb, we have message forums where you can ask any question, start a discussion, get programming help, etc. We have one-on-one chat, and we have group chat. DaniWeb members can even start their own DaniWeb group chats about topics that interest them. We have a robust API that allows third party developers to tap into the DaniWeb database and create their own apps that connect DaniWeb members. We have a patented algorithm that matches users with each other based on the likelihood they would want to meet each other, and a robust user search to discover new people in your geographic area.

I get that it makes marketing sense to have a social media presence. However, aside from an official Facebook page, which we do have (not a group, but a FB business page), and an official Twitter account, which I'm active in, what would be the advantage of sending our members off-site to chit chat, when we have a more robust chatting system right here (which is actually our core product)? Facebook groups aren't conducive to posting programming questions or code, etc.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

All of the variables in your Hangman class are private or protected, meaning they are only accessible to objects of the class itself, or to objects of classes that inherit from that class.

You need methods within the Hangman class that manipulate or retreive the variables.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It doesn't cost that much to make an app that's usable both on desktop and mobile.

Why do you say that? Take me, for example. I'm in the opposite situation: I do web development, but I don't know the first thing about mobile development. I wouldn't even know where to begin when creating a mobile app, other than knowing that you use Objective C for iPhone development and I'm not sure what for Android.

There is also the issue of security.... To register for mobil apps, you have to give your phone number

That isn't a prerequisite of mobile apps. It depends on the mobile app to ask for that information. The same way a desktop app could ask for any information it wants, as well.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. Welcome to DaniWeb, and stay safe in India!!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What is your existing business model and in what way are you hoping to automate it, that is currently being done manually?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Donnolic commented: I want to write API for my VB.net application to consume. It will be able to get data from my online MySql databasa and also send data to my online db +0

Hi,

No, I get that. Can you please just clarify what the purpose of your API is? Is it an internal or external API? Also, where are you stuck, specifically? What about it is confusing you?

Donnolic commented: Is will be internal. The purpose is to retrieve data from my database and also send data into my database just on a button click from my VB desktop ap +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there Paulo! Welcome to DaniWeb :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome to DaniWeb!! :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there!! Welcome to DaniWeb!! :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The code for the backend depends on how you're storing this data, if you're using a PHP framework, and oh so many things. Do you already have PHP code set up to connect to a database and store user profiles? I see this is an Account Setting page, so I assume you already have code in place for a user to register and log in? There's no "one size fits all" for this, as the code would vary tremendously for every single use case.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I don't know .NET, but I've written an API before, and this is a bit of a loaded question. What exactly do you mean by you're looking to use an API instead of a direct connection to the database? Do you mean to just create classes that abstract away the database connection details? Or are you wanting to create a RESTful API for other users of your API to consume?

Donnolic commented: I want to write API for my VB.net application to consume. It will be able to get data from my online MySql databasa and also send data to my online db +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I also just want to add this is the single biggest thing that I struggle with as well.

rproffitt commented: ヾ(´〇`)ノ♪♪♪ (sing it!) +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, this is an English-only community. Did you have a question about Java, or something you wanted to discuss with the members of the community?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You don't have a semi-colon at the end of lines 11, 14, and 15.

However, to fully diagnose this, please post the full PHP file as well as the full error message. The error mesage should specify what line the error is on.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Give people a reason to come back. Give them the ability to create an account and then show them personalized content if they're logged in. In my experience, starting a mailing list has been the best way.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This is completely irrelevant, but perhaps it will help in the future. PHP has a built-in filter_var() function that automatically validates that an appropriately formatted email, URL, etc. have been typed in. The only reason I bring this up is because for some reason I thought that phone numbers might be included in that function, so I checked, but alas they're not.

You can change line 7 to be:

if (!empty($_POST['billing_phone']) && ! (preg_match('/^[0-9]{10}$/D', $_POST['billing_phone'] ))){

This should only show the error message if it's both not empty and doesn't match the criteria.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There are two very different ways to accomplish what you're asking. The first is, as I believe has been suggested above, to use Javascript to create a scrolling message that overlays on top of where you would display your video on a website. Remember, everything in a DOM document (webpage) is layered, so you can always choose which elements to overlay on top of all other elements.

Secondly, and I'm not sure anyone would actually want to tackle this, but programatically alter the video itself to add an overlay to it. I'm personally not sure how to do this, but I'm relatively sure it could be done.

rproffitt commented: I have worked in video editing on the backend systems. But would not do such on a mobile today. Too messy. But overlay on playback. Sure thing. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This seems like a homework assignment. What do you have so far? Where are you stuck?

Abhirami_1 commented: I applied for RPA developer job they given 3 tasks to do I don't know much about C++ I checked google but I am stuck . +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also, I noticed you changed my code to:

header("Content-Disposition:attachment; filename=".$file);

This is incorrect. You don't want the filename to be a full path, as $file denotes. Go back to my initial value here.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi and welcome to DaniWeb!!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

When I comment our the echoing of the contents I just get the output of the 2 <a href="..." ... </a> lines as a single line:

As I keep pointing out, you are still including HTML code. In the code above, the lines 1, 2, 13, and 14 are all HTML that cannot exist if you're trying to print a PDF. Also, you aren't seeing any of the PDF contents because you're not echo'ing out the PDF contents (you commented out line 11).

Please, please, please just try the five lines of code I provided to you, and it should work.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

SEO existed long before those search engines did. I was doing SEO back in 1996 on GoTo.com, Ask Jeeves, Etc. Long before Google was born.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The headers have to be spit out before any other contents on the page. Also, are trying to spit out the contents of a PDF file and HTML on the same page. You can't do that. The webpage needs to be either HTML or a PDF file, not both.

For a PDF file, listscores.php should look as so:

<?php
$file = $_GET['file'];
header("Content-type:application/pdf");
header("Content-Disposition:attachment; filename='printout.pdf'");
readfile($file);

And that's it in the entire php file. Just those 5 lines. (Of course, this is very insecure because you're essentially letting someone download any file on the web server, depending upon the path they pass in as a URL parameter.)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi Ed. Thanks for posting this here. I tried to help you via our little one-on-one chat, but the private chat isn't really conducive to posting code and such.

The problem seems to be that you are using the listscores.php to point the browser to this PDF file. However, web browsers typically interpret the output of PHP files as plaintext HTML markup, and the PDF is essentially binary data.

When you try to load the .pdf file directly, the web browser knows how to correctly handle .pdf files, and so it treats it as such. When you try to load the .pdf file by way of .php, the web browser assumes HTML is the output of the .php file.

It would help if you could show us the contents of listscores.php

However, in lieu of that, adding the following PHP headers to listscores.php just before you echo anything out should resolve the problem for you:

header("Content-type:application/pdf");
header("Content-Disposition:attachment; filename='printout.pdf'");
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Are you sure the library is called graphics and the files for that library are installed on the computer?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes, I don't remember what it's called, but there is a way to directly convert a website into an app. Ignore me when it comes to this.

However, I think there might also be a way to create an app icon that functions as a URL bookmark, but I'm not sure.

rproffitt commented: Thanks for this. Yes, there is some app maker that does nothing but launch the browser. You can choose the ICON for the app too. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Domain age plays a big role in SEO directly because it tells Google that the website has been around awhile, and is most likely a legitimate company, and not a fly-by-night temp site or "doorway page".

Indirectly, domain age is probably one of the most important, if not the most important, factors in SEO, because the longer a domain has existed, the more people have found it and shared it on their social media, the more other webpages have most likely been linking to it over time, and the more backlinks it has built up.

As you point out, all of his social media URLs are one thing. Whatever they are, don't change the domain from that. Those social media links are essentially vouches for the domain that it's been around awhile, people are talking about it, and it's a real company. Destroying that can be a real killer to the company's long term gains.

Good luck!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

HI Fred! Welcome to DaniWeb. I hope you stick around and join our little community here. I'll try to remember to refer to you as Fred when I see you around.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm not understanding your question. What are you trying to accomplish? Are you trying to build a database for an ecommerce clothing store?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, we're just an English only community, but I assume you're trying to say Hello World :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also, don’t underestimate the power of social media. It’s common for employers to stalk potential employees on Facebook to get the inside scoop into what they aren’t saying on their resumes or interviews. Also, check LinkedIn.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There are lots of tools online where you can verify the identity of people. Most cost money. One of the more reputable ones I could recommend is WhitePages.com

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I get this is a homework question, and we typically won't just do someone's homework for them without them showing any effort themselves, but I think this can be a learning opportunity for anyone who sees this.

$array = array ('Main', 'Photo Gallery', 120, 'Rustam', 'Services', 'Lesson 12', 'Link');

I'd like to begin by saying you accidentally had a typo in your code above. There should not be a space between the dollar sign and the word array. The reason is that the variable is $array, as PHP variables are preceded by a dollar sign. Having a space there would introduce a bug.

We now have this comma-delimited array of strings. An array of this type can almost be thought of as a list ... a list of these strings. We can use PHP to take this PHP array and spit it out as an HTML list. There are two types of HTML lists, ordered and unordered. Ordered lists are preceded by numbers (e.g. List Item 1, 2, 3, etc.) and unordered lists are preceded by bullet points. We denote them with the HTML <ol> and <ul> respectively. Let's spit out an unordered list:

echo '<ul>';

Now, let's loop through the array, and spit out each item in the array as an HTML list item. We use double quotes here because single quotes (as we used above) are literal, in that it will echo everything exactly as contained in the single quotes, but double quotes processes variables.

foreach ($array AS …