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

Are you referring to an Uber or Lyft clone that only dispatches from your local cab company?

If so, what would the benefits of someone using the app over Uber, for example?

It’s not always the case that “if you build it, they will come.” Sometimes, it makes more sense to just go where the people already are.

Wouldn’t it be more profitable for your cab company to simply operate under Uber?

If I sell homemade jam, for example, it’s more effective for me to get my jam onto the shelves of the most popular supermarkets, where people are already shopping, than to build my own market to sell my jam, convince people to start shopping in it, and only sell my own food in it. It’s an uphill battle to convince people to now go to two stores: one for just my jam, and another for everything else they need.

People use Uber because it works anywhere, in any city, and at any time. What would be the advantage to downloading and installing your app just to use when they happen to need a ride in your city?

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

Yes, it’s unrelated to the browser’s asset cache. By “cache” I simply mean that jQuery’s get and set data() on an DOM element are essentially just getting and setting a Javascript variable attached to the element, with the added convenience of this variable being initialized to whatever happens to be the value of the element’s data-* property, at the time of page load, if any. Multiple data() calls to update the value does not update the corresponding DOM property, however.

This differs from setting the DOM data-* attribute with attr() because doing so almost serves as a visible variable that is being manipulated in the DOM itself.

The conclusion is either always use data() or always use attr() and you can never go wrong, because, in doing so, you’ll always be setting and getting the same variable attached to a DOM element. It’s making the assumption that you’re working with the same variable interchangeably that can cause undesired results.

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

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.

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

I see you posted an attached file that has a screenshot of the first bit of your code. Can you post the entire thing please? You can use the code button in the wysiwyg editor (to the right of italic, third button from the left).

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

Can you please show us what you have tried so far to do this homework problem and exactly where you are stuck or confused?

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

What is just an analysis of traffic? Ahrefs? Ahrefs crawls the entire web to build a graph of backlinks to each page. It’s completely unrelated to traffic.

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

Yes, I believe you should, and I can’t think of a reason why this could hurt you. However, with mobile-first indexing, having Schema markup on desktop only could, I’m assuming, be hurtful, as it will rarely be crawled. However, I would take extra special care that the schema matches exactly. For example, don’t use the heading item property on desktop but the title item property on mobile.

Valeriia commented: Thank you for your answer! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Are you referring to Google’s API to get the stats? Please explain what stats you’re referring to. Keep in mind Google Pagerank is no longer a thing, and hasn’t been for many, many, many years.

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

Hi there and welcome to DaniWeb!!!! Thanks so much for joining and hope to see you around.

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

What “seo stats” are you referring to? There are already sites such as Ahrefs that measure backlinks and sites like that are not simple scripts.

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

I guess I’m confused by what you’re referring to. Programming code is a sequence of steps that are executed by the script … there are functions, loops, conditionals, classes, etc. that each add a level of complexity by allowing code to branch off, be modular, remove duplication of code, etc.

Do you have specific code that you need help interpreting?

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

It depends on the quality of the backlinks. It also depends on the content of your pages linked to from the backlinks. 100,000 low quality back links equal one really strong backlinks.

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

Hi Susan,

What did you decide to do?

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

If you are using jQuery, you can do something like: $('div#id').html('<strong>New HTML!</strong>');

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

Honestly, I don't really like the "Recommended Answers". It made us need to scroll more in order to see the replies...

There's now a button that you could click to collapse it and save yourself the scrolling. Does that fix it for you?

John_165 commented: yup, it looked better now +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This automated scrolling thing is one of those things that once you see it, you can't unsee it! I never noticed it until our discussion, and now I am finding it done everywhere! I just went to go tweak some of our Cloudflare settings (the CDN we use, which is quite popular), and I ran into it there.

rproffitt commented: Scrolling. Mission accomplished. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

They track different things. Google Analytics is javascript that you place on your webpages to track how many visitors you have, and demographics about each of your visitors. It can also track conversions and a whole slew of things.

Ahrefs is an SEO tool that is typically used to track backlinks.

It’s true that it’s often the case that as your backlink count increases, your organic SEO traffic increases, so you may see a correlation between the two analytics platforms. However, that’s because they each track their own separate things that happen to have a cause/effect between them.

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

Start a LinkedIn group.

rproffitt commented: "It's always best to start at the beginning – and all you do is follow the Yellow Brick Road." Glinda the good witch of Oz. +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, my food was ready and I wanted to eat it while it was hot, so my previous message was a bit rushed. But, yeah, if one of your existing community member volunteers isn't up for the challenge, I think you are going to be very hard pressed to find someone willing to take on a project like this for free.

You might want to reach out to local schools and see if you can find a student there willing to do an internship in exchange for school credit.

When I upgraded DaniWeb to PHP 7.x, it was very quick and smooth because, having written all the code from scratch, I knew exactly what parts weren't backwards compatible and what code to change.

But to upgrade someone else's project, I would have to painstakingly comb over all of the code that powers the project to see what would need to be done.

Are we talking about 5000 lines of code or 5 million? How big is the existing code that powers the site? Does it use a CMS (such as Wordpress, etc.)?

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

Depending on the complexity of your code, this can be a one week project or a six month project. I recommend hiring on a site such as Upwork. I've had really good experiences with Upwork in the past, including a recent project I hired someone from there for.

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

Do you mean change the contents of the div? Or add or remove classes from thr div?

DOM manipulation is expensive from a performance standpoint, so you want to change as little as possible.

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

I think the OP's question is simply, how does Windows Storage Space recognize hdds in its array? E.g. if the drives were rearranged in how they were connected to the motherboard, will it still work because they're identified by serial # or some other attribute independent of how they were arranged?

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

Hi John,

Thank you for your opinion. That feature has been around for a decade or so because it’s meant to filter out the fluff of a long discussion and give a quick way to just get the answer to the OP’s question. I will take your recommendation to remove it under advisement and put some thought into how I could achieve the same thing with less scrolling.

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

The code freeze is over since we launched on Friday, so I'll look into this within the next day or so.

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

Hi Fay, I'm at my computer now and I found the link I was thinking of yesterday. Check it out here: https://moz.com/google-algorithm-change

Try to match up a Google algorithm update with when you hit the decline, and then we can investigate a bit further together.

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

Late last night, I launched a rewrite of our front end HTML and CSS that is designed to look nearly identical, but is much faster and designed to be more easily updatable and manageable moving forward.

Let me know if you spot any bugs or inconsistencies.

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

If the items appear in the DOM but are simply not clickable, this is most likely a CSS issue. It’s hard to diagnose without seeing the full working page. It’s possible it’s a z-index issue. For example, there might be a transparent div on top of the clickable elements.

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

Do you mean with page navigation? Or do you want to retrieve specific rows from a table of 5 million? Is your concern that your database query is too slow?

joy3629 commented: yes madam display million records by pagination +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Loops do repetitive things. Loops also count with each iteration.

When you think of a diamond written in ASCII asterisks, you can think it starts off with one asterisk on line 1, then 2, then 3, then 4 … each line is indented by one character less … then eventually it does the opposite.

Mehak_3 commented: Please tell me the program of it? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Welcome to DaniWeb! I really wish I could help you but, unfortunately, I still use Codeigniter 3. Does CI4 not have the same form validation array that CI3 uses?

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

Why should people be given money for NOT being stupid? Where's my incentive each and every time I use my seat belt? Each and every time I don't jaywalk? Each and every time I look both ways before crossing the street? Where's my incentive each time I get an annual flu shot? Where's my incentive each time in my life I interact with society in a way that benefits society as a whole?

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

Also, no, this is not the appropriate use case for file_get_contents(). You would have incredibly poor performance doing it that way.

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

Why not point both domain names to the same code so the site works with both? Would require a config change to your httpd.conf file and pointing both domain names to the same place.

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

I removed the link to your Google Drive because it requires permission to access it, and we require content to be here on DaniWeb. Please post your code here in the forums for everyone to see so we can help you.

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

Correct me if I’m wrong, but it won’t give them any additional information they can’t already get from one of the many existing travel sites that aggregate flight data.

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

I suspect what you’re wanting to do is use AJAX to dynamically change a part of a form based on what is selected elsewhere in the form. For example, if you have two dropdowns, the selection you make in the first alters the menu items available in the second. Is that correct?

If so, I’m confused what that has to do with pagination?

nirmal.patel.59 commented: e.g. author XYZ has 10000 records. on author "XYZ" filter I am sending only first 10 records from backend. I required all the published dates of 10000 +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Number 9 is Santa Baby.

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

No 1. Rock around the christmas tree
No 2. Peace is the world smiling
No 5. Rudolph the red nosed reindeer

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

Golly, everyone’s so terse today! :-p

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

Over the past week, I’ve made a handful of UI changes across the site. What do you think? Am I on the right track? Is this an improvement?

rproffitt commented: "It's very nice." (French soldier in Monty Python and The Holy Grail) +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Welcome to DaniWeb!!

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

I just racked my brain for the past hour trying to fix a bug, and learned something new in the process.

I always thought that the jQuery function .data('key') was a wrapper for .attr('data-key'). It turns out that's not the case!

Take the example: <div data-key="foo">:

I can use data('key', 'foo') to set data-key to something in the DOM. I can use data('key') to retrieve the value of the data. I can also use attr('data-key')to retrieve the value of the data.

It turns out the data() method has a cache, and once a value is set, anytime you use .data() to retrieve it, it's always retrieved from the cache. When using the attr() method, it's always retrieved from the latest value in the DOM.

Just thought I'd pass this on.

pritaeas commented: Great find! +17
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

My fiancé uses Slack for engineering work at Apple, and Apple is super duper secretive. They wouldn’t use Slack if they didn’t trust it.

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

Slack, perhaps?

rproffitt commented: They used Slack too. Thank you as I forgot about that one. The software group is using a lot of Azure services now. +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I guess I’m misunderstanding you. If your teacher gave you the assignment to create a billing system, why would you create an arcade system instead?

Either way, please post the code you have so far along with where you’re stuck and what isn’t working, and we can look into helping you figure it out.

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

I believe that means that you just have to store the user’s data individually associated with the user. For example, if you have a table in the database, there’s a different record for each user, such that you can retrieve a single user record.

I believe the purpose of the paragraph is to ensure that you aren’t aggregating data across many users and storing that aggregated data for the purpose of analyzing big data, etc., but that instead each user has an individual record in your data store that is meant to only benefit how that individual user uses your app.

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

Have you tried using explode()?

function cidrToRange($cidr) {
    $range = array();
    $cidr = explode('/', $cidr);
    $range[0] = long2ip((ip2long($cidr[0])) & ((-1 << (32 - (int)$cidr[1]))));
    $range[1] = long2ip((ip2long($range[0])) + pow(2, (32 - (int)$cidr[1])) - 1);
    return $range;
}
var_dump(cidrToRange("73.35.143.32/27"));

//////////////////OUTPUT////////////////////////
// array(2) {
//   [0]=>
//   string(12) "73.35.143.32"
//   [1]=>
//   string(12) "73.35.143.63"
// }
/////////////////////////////////////////////////
matei_ commented: This function only shows the first and the last IP from the CIDR range. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hello!

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

Seems Google changed.

How has Google changed?

Nextsmm, regardless of if you're paying or not, Google wants to make sure that they are sending visitors to relevant pages. What is your quality score? Work towards improving your quality score to the best it possibly can be, and take heed of Google's recommendations for the average CPC you should be aiming for.

rproffitt commented: I read articles from my link and came to the conclusion that Google changed. +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Good catch! The OP is using MD5() but also storing the password hash in a column not suitable for MD5 hashes.

Yes, use password_hash() instead of MD5() and increase the size of the column.