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

This seems like a homework assignment for a computational modeling class. Can you give us some more background as to the scope of the assignment? Are you meant to feed in how long each customer waits and then compute the average? How many tellers are there?

Please show us what you've done so far and where you're stuck or what's not making sense.

Jericho_2 commented: Write a program simulator that will compute for the average waiting time of each customer in a bank. Also the program will indicate the number of the +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you’re getting unserialize() to return false, it’s because the string being passed in is not a valid PHP serialized string.

Confirm that your MySQL query is correct and fetches the column that contains the serialized string.

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

Sorry, I'm confused by your question. The same way you use serialize() you can use unserialize().

What happens if you do var_dump(unserialize($memberDetails));?

SimonIoa commented: i am getting bool(false) +5
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You are specifying a relative path. That means that the images folder should exist as a subdirectory within wherever the location of this PHP file is. Try changing the $upload_dir to an absolute path such as /home/username/images/.

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

Hi there! Nice to meet you. Welcome to DaniWeb.

Ariful Arif commented: Thanks. keep in touch. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What API are you referring to?

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

The above non-English post got automatically flagged by our spam bot, but in translating it, I realized it seemed to be a legitimate post.

I’ve released it and unbanned the author. Sorry about that. I do realize this is an old discussion.

For future notice, we are meant to be an entirely English-only community.

John_165 commented: what it means? +2
Amber_12 commented: So true +0
PheA commented: So what does it mean? +0
Venkata subbara commented: Encountering same error as AttributeError: module 'pandas' has no attribute 'read_file' +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

rproffitt, how so? I've used it for nearly 2 decades to handle all accounts payable, accounts receivable, invoicing, insertion orders, and taxes.

rproffitt commented: I worked with developers for Star Accounting. Corporate scale accounting package from long ago. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

QuickBooks is the best, and arguably most popular, accounting software for small businesses. It’s available in 150 countries so far.

rproffitt commented: It's good stuff yet can be limited in scale. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Please show the code of userinfo.php

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

Umm .... that has nothing to do with the question I asked. This is the SEO forum.

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

Because there is far less competition for the top spot.

Lots and lots of different shoe store websites are all trying to rank for “shoes”. But there’s far fewer trying to rank for “blue running shoes with orange laces”.

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

What proprietary software is it?

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

I’m not sure what data set sever you’re using, but you may need to add indexes to the appropriate lookup columns for decent performance.

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

Why not? I provided code for everything except highest/lowest and explained the algorithm you could use to accomplish that.

Why isn’t it working?

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

Firstly, I'm confused how you're calculating sum on line 23.

Let's say the first run through the loop, I enter the number 5.

Then the sum will be (5 + 5) / 2 ... 5

Why not just have sum += number ?

Why multiple by 2 and then divide by 2? If you take any number, add it to itself, and then divide by 2, you're going to end up with the same number you started with.

Anyways ... that's a moot point :)

In terms of calculating the largest and smallest numbers ...

For the first run through the loop, set the value of the variables representing the largest and smallest to whatever was entered. Then, for each additional run through the loop, if the number entered is smaller than the current smallest, overwrite it, and if the number entered is larger than the current largest, overwrite it. If not, leave it alone. At the end, you'll end up with the latest values for the smallest and largest out of all the numbers that were entered.

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

For me, I love the strategy game.

martinharry339 commented: what should be the strategy am new in search engine optimization +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I definitely hear ya, but at the same time, I’m privy to all of the stats that show lots of good things to come.

From my perspective, last year I was super burned out with DaniWeb and felt like I was in a hamster wheel and nothing was improving.

This year, I‘be been doing a lot more on the SEO front and I can actually see the light at the end of the tunnel for the first time in a long time.

So that’s where I’m coming from right now.

I guess all I can say is don’t be a stranger, and I’ll be the first to ping you if/when things improve.

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

Fromn what HTML snippet?

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

IPv4 was running out of IP addresses so now there's IPv6. With IPv6 there's no danger of running out of IP addresses anytime soon.

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

Years ago, Firefox was sooo much faster and more powerful than Internet Explorer. Then somewhere down the line Chrome was released and much more lightweight than Firefox.

Nowadays I’m still a Chrome user, just because I’m all about all things Google. But it’s definitely slower than Firefox. As a Mac user nowadays, I’ll even say that it’s slower than Safari.

I use it because I’m comfortable with it and I don’t have a strong motivation to switch.

rproffitt commented: I have friends that work on web sites. They always test with Safari among the other browsers. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Ask your customers to review you and work to get lots of good Google reviews.

rproffitt commented: Good and great advice as always. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You mention that in order to get to the form, the user has already been authenticated and variables have been added to the session. If that's the case, can't the beginning of insUpSel.php simply check whether the proper session variables exist, and if not, do an HTTP header redirect to the login page?

On insupsel.php, you can do any of the following:

// 'submitted' field with specific value was passed into form
if (isset($_POST['submitted']) AND $_POST['submitted'] == 'value') { ... }

// 'user_id' cookie with specific value is set
if (isset($_COOKIE['user_id']) AND $_COOKIE['submitted'] == 'value') { ... }

// 'session_var' session variable with specific value exists
if (isset($_SESSION['session_var']) AND $_SESSION['submitted'] == 'value') { ... }
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

rproffitt, the article you linked to does not say that Apple gave short notice to its developers before breaking changes would prevent any existing apps from functioning properly. Instead, it says that Apple gave short notice to its developers before releasing a new OS version out of beta and into gold release that supported new features.

Developers were upset because they had been using the developer build of the upcoming OS to create apps that supported the new soon-to-be-released functionality. Apple announced that the the OS with the new features was going to go to gold and be released to the public with short notice. Therefore, developers felt rushed to get the next version of their apps (that they had been developing to take advantage of the new features) ready and submitted to the App store by launch day to take advantage of the hype of the new features.

rproffitt commented: I did not polish my replies. See James reply for a better explainer. We don't have this problem anymore! +15
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

A single quote indicates treating everything inside as a literal string. Double quotes indicate parsing out variables inside the string. For example:

$foo = 'World';

echo 'Hello $foo'; // Prints Hello $foo
echo "Hello $foo"; // Prints Hello World

You can use single quotes inside a double-quoted string, or double quotes inside a single-quoted string. But if you're going to try to encase double quotes within double quotes, it is treated as a premature end to the string. You need to escape the quote with a backslash as so:

echo '<select id="nm" name="name">'; // This will work
echo "<select id=\"nm\" name=\"name\">"; // This will work too
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Your problem appears to be on line 9 of the code you provided:

echo "<select id=''nm'' name=''Name''>";

Instead, try:

echo '<select id="nm" name="name">';

I'm not sure why you had the two single quotes next to each other, so that needed to be fixed. Also, while group and btype are lowercase, you have the name of the select field Name but then you were trying to retrieve $_POST['name'].

Let me know if this works.

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

I'm going with no since the way things work the reply from the server would go to the IP it came from.

Not true. This can be done with Google's Custom Search javascript, in which case the end-user's web browser will be making the request, and not the OP's server.

rproffitt commented: I'm outdated here. It was about a decade ago someone tried this and it was costly so no for them. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So, if I understand you correctly, you would like to create a simple website that lets people do searches, for example to search Google.

You then want to store the search results within your own database, in an effort to begin populating your own search database?

I'm assuming you want the search to use the end-user's IP address so that your server's IP address won't be hit by Google's flood control limits.

You can use Google's Custom Search javascript to have the end-user perform a search from their own IP. You can then use Javascript to scrape the results. You can create an engine at https://programmablesearchengine.google.com/cse/all

Another option is to use the Custom Search API at https://developers.google.com/custom-search/v1/overview but that would use your own IP address and begins to cost money if there are more than 100 queries per day.

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

not sure what's up with the recommended answer...
I never marked this question solved :/

We recently started showing recommended answers even for questions not marked solved.

rproffitt commented: That's new. I missed it too. Right there "Recommended Answers" is the line above. +15
Tcll commented: I hope this isn't a way to auto-censor like YT does :/ +6
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This is a two part question. Firstly, what are some methods to build backlinks in late 2020 that are not through guest blogging / blog outreach? Secondly, what are some methods to encourage users to share your content on social platforms?

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

@Dani. That sounds even worse in some ways.

Yes.

Also, collecting email and any partials on credit card or other identifiable data pushes this closer and closer to what a phishing site would be.

Yes, that's the point. He has created a phishing website that purports to be from a financial institution. He wants to know if he has terms of service fine print that essentially say, "This is not a real banking website. Don't fill out your actual information." absolves him of any legal trouble.

Nothing at all to do with fake money or monopoly money or counterfeit money. My advice to him was that deceiving the end-user in such a way is wire fraud.

rproffitt commented: "Fraud." Hmm, never compete with our current USGOV? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You cannot put in your terms of service something to the effect of, "Even though tricking people online is illegal, I cannot be charged for it." You can't put anything into your terms of service that contradicts the legal system.

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

Of course, the workaround is to put a huge alert message at the top of every page that says, "This is for entertainment purposes only. Enter fake information." The line you don't want to cross is that if you are creating something that deceives or tricks people.

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

A terms of service is null and void if it includes wording that contradicts any laws. For example, just because you have in your terms of service that you don't have to pay if someone takes you to court and sues you, that cannot be honored if someone actually does take you to court, and the judge finds you in the wrong. In other words, I can't put into my terms of service, "If I murder your family, then I won't have to face any penalties." You can't put in your terms of service anything that contradicts what the legal system says.

Of course I'm not an expert in this, but it does seem to me that you could be charged for wire fraud. To the best of my knowledge, wire fraud is when you create or do something online that could be used to trick people into giving you their information, money, or property. Just because you might have fine print in a terms of service does not mean that the website isn't designed to trick people.

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

I think you are misunderstanding the question, rproffitt. Michael is not producing fake or counterfeit money. He created a fake money transfer platform. He didn't create fake money. He created a "fake" website. In other words, he created a phishing site that gives the illusion that you are transferring money into someone else's account, but on the backend, there's no database or API calls or anything.

This, in itself, is not illegal. Lots of programming students have school projects in which they're tasked with creating a fake ATM program. However, although creating the platform itself is not illegal, there are two caveats:

Firstly, a phishing website is most likely against the terms and service of your ISP, domain registrar, and hosting company. By being against their terms of service, that means that they can kick you off and take whatever civil measures they feel they are entitled to for violating their terms of service, that you agreed to when you signed up with their platform.

Secondly, while creating the website might not be illegal, actually utilizing it most likely is. For example, if you are conning people into submitting sensitive information to you, and you are not using it explicitely for the purposes they believe you are, then that can fall under the broader laws against identity theft or wire fraud.

Jen Larosa commented: Thank you for this information Dani, I was gonna ask about phishing stuff. Good thing my questions is already answered here! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I agree with "Completely useless without qualifying information."

Sorry, I don’t understand? It seems you disagree with my post yet you voted my post up? Am I misunderstanding? I’m confused what you mean.

rproffitt commented: I agree with your post, and with an above comment. The OP asked for a lot more. Let's get some data! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Where's your qualifying information?

This is just a thread of people voting on their personal favorite choices. You don’t need qualifying information to give your opinion, although asking why they like it could be a good idea :)

Think of this like one of those old “Windows or Linux?” threads where everyone chimes in. If someone says, “Linux all the way!” then it makes sense to ask what they like about it, but responding with asking what qualifying information they have doesn’t make much sense.

Why did you pull up such an old discussion?

Everyone’s list of recommended topics as they browse DaniWeb is different. This is a hot topic that keeps getting replies every few days, so it’s most likely on the homepage for people who the system thinks are into SEO.

rproffitt commented: I agree with "Completely useless without qualifying information." +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oh, goodness, rproffit. You're really loving those emojis, eh?

rproffitt commented: ? Again, thanks for the updates. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Just a little notification that our markdown parser is now in strict mode. That means that, when posting headings, there has to be a space after the initial hash symbol. In other words:

#This won't work

# This will work

Hopefully it will stop everyone who doesn't properly indent their code having #include<iostream> stop showing up as

include<iostream>
rproffitt commented: #️⃣ space. Got it. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

We support emojis now. Was in response to a private conversation with rproffitt. Sorry for the confusion.

rproffitt commented: Thanks again. It's a little thing but nice. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Emoji test ?

rproffitt commented: That's ? logic for you. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I guess I meant scrape the sides of the bowl with the spoon and then lick the spoon. LOL

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

I reread this entire thread just now and enjoyed reminiscing. Sadie is almost a year and a half now, and oh how things have changed! She is capable of entertaining herself for manageable amounts of time, and we just last week finally replaced our area rug after a few months of practice not chewing the old one anymore. She’s still not the biggest fan of cuddling and pets, but we do manage to get a cuddle session or two in every day. Also, we discovered she absolutely loves cartoons! She will watch a full length animated movie without taking her eye off the screen, except for potty and water breaks during the commercials. Then she’ll run right back as soon as it comes back on.

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

Sorry, just to clarify, it’s not guilt-free in the butter and sugar department.

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

I very guiltily sampled a little cookie dough as a kid as well. The best part was licking the remnants stuck to the side of the bowl and spoon clean as soon as the cookies were sent into the oven.

However, edible cookie dough is eaten by the spoonful (yum!) and completely guilt-free.

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

Well there ya go! That answers the emoji question we were chatting about. The email notification I got included a cookie emoji but clearly it’s been stripped away on the site.

Will be fixing that this upcoming week.

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

Sounds awesome. I think we’re going to be possibly migrating to a different editor this upcoming week sometime. We’ll see if my plans work out.

In the meantime, I made edible cookie dough today. Yum!

rproffitt commented: Cookies! +0
Reverend Jim commented: The word "edible" is redundant. Also the word "sugar" in sugar cookie. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Don't worry. I can't make it through the night either.

Thanks for all the new content!!

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

This is true, but to take it a step further, use hreflang HTML tags if you have content in multiple languages.

Local SEO is a huge industry in and of itself, and the techniques you use to rank a site with a local target audience are very different than the techniques used to rank a site with a global or nationwide audience. Expect the entire competition landscape of the search results pages to change and to, of course, be very personalized (as me Googling for "best coffee shop" is a lot different than someone in a different city doing the same search).