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

It goes back to the page they were on when the click Continue Shopping.

<input type="hidden" name="return" value="http://www.website.com/thankyou.htm"> 

Per your code, it does not go back to where they were originally. It goes to a thankyou.htm page. What are the contents of this thankyou.htm page? What about the thankyou.php page? Please post the full contents of these pages and don't simply describe them to me. If there is a bug, it's contained within the code here.

<input type="hidden" name="hosted_button_id" value="YN5WHJPWYTEXE">

You are using a Hosted Button ID. That means that all of the preferences you would like are not all self-contained within these hidden input fields in the HTML. A lot of the preferences are set from the hosted button which is configured via PayPal's website.

What are you hoping that utilizing IPN will accomplish for you?

I still don't feel as if you've answered this question. What do you mean by the prchase is not beign completed? You say above, "Yes, the buyer gets a download link/page after a few seconds of his/her payment being accepted." The payment shows up in Paypal, and, in exchange, the user is presented a link to download the digital goods. Isn't that the equivalent of payment being accepted? I don't understand what isn't working for you and what you're expecting to be different.

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

I ran into a similar problem recently, but I’m not home right now. I’ll type up a proper response when I’m back at my computer later.

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

ABSPATH is static, right? Remove the single quotes around it and that should do the trick.

rproffitt commented: Pieter van Musschenbroek and Ewald Georg von Kleist smile. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome to DaniWeb!! Thanks for joining. What are neck joints? I’ve never heard that term before as it relates to image manipulation.

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

How do you know the problem is the motherboard? How do you know it's not the hard drive, etc.

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

OK, sorry I wasn't able to help. I'm really good with PHP if you need help again in the future.

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 and welcome to DaniWeb. Is that you?? What are you trying to do to the photo?

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

I've turned this topic into a general question instead of a featured code snippet.

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

Sorry, we are an English-only community.

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

Sorry for my late reply, but I just came across this thread trying to find a more efficient way than I currently am doing, but here's what I have so far:

// Store valid emails
$emails = array();

// Use regex to find all email-like matches
$regexp = '/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,4})+/i';
preg_match_all($regexp, $body, $matches);

if (isset($matches[0]))
{
    // For each valid match ...
    foreach ($matches[0] AS $email)
    {
        // Remove any invalid characters, etc.
        // Not really needed for this regex example
        // $email = filter_var($email, FILTER_SANITIZE_EMAIL);

        // Make sure it's a valid email
        if (filter_var($email, FILTER_VALIDATE_EMAIL))
        {            
            // Add it to the list of valid emails
            $emails[] = $email;
        }
    }
}
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

As to the OP, I had hoped they would come back with more questions.

They did come back though.

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

This just seems like you want someone to do your homework assignment for you. We will help you, but we won't just do your work for you for free. Please show the code you have so far and where you're stuck or need help.

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

Please clarify what you mean as to how will you get paid? We are a free community of members helping each other.

DaniWeb Connect is a paid product where you pay micropayments to be matched with other members who fit criteria. (Or $5 for unlimited matches).

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

I see. I guess for starters, how are you currently retrieving and sending data from/to your database? What are you hoping to get out of abstracting that into an internal API?

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

From an app development perspective, developers would typically use different tools and technologies based on the platform and form factor of the device it's intended to run on. For example, software created for Windows doesn't automatically work on macOS, software created for iPhones doesn't automatically work on Android, etc.

Software that makes sense being cross-platform has often been ported to different operating systems. However, if 95% of an app's userbase is designed to only use it on mobile, for example, it might not be worth it, business wise, for the company to invest resources to accomodate the other 5% of potential users.

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

Taking a look at this header:

header("Content-Type: application/pdf/jpg");
header("Content-Disposition: attachment; filename=\"" . $filename . ".rar\";");

What type of file are you trying to give to the user? Is it an application? A PDF? A jpg? A rar file?

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

They had a spam link embedded in their post, which I removed, so I'm not so sure their question was genuine.

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

Hi there! Welcome!!!!!

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

So sorry, but this is an English language community and so I don't understand what you're asking. How can I help?

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

There's a setting in Cloudflare to override expiry with a cloudflare-set setting, or to respect the origin server's headers. You need to set it to respect your server's headers or else Cloudflare will override.

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

Is it possible to add scrolling text across the page/video-camera-screen?

I'm not familiar with this terminology. What is a "video-camera-screen"? Is that something specific I'm unaware of? (Why the dashes?)

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.