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

When you browse the file system, does that file exist and is it accessible by the logged-in user? (Sorry, no VS experience.)

Mr.M commented: The file is not generated +8
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

My experience is that AT&T fiber for residential use does allow servers and does not block ports. I used to have Verizon FiOS which, also, did not block ports, but that was a business account and so under different rules. Spectrum and Optimum Online business accounts also didn’t block, but I paid an extra $10/month for a static IP back then as well.

It might be the router that is blocking. Most routers these days block port 80 by default. This might be the router built into your cable modem as well.

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

Building backlinks is an important part of any SEO strategy, but Google has banned the buying/selling/trading of backlinks.

Back in the before-times, you could purchase backlinks and be very strategic about the keywords used in doing so and exactly how that link looked, since it was essentially a paid advertising campaign.

Nowadays, building backlinks is more about creating great content that entices people to want to link to it naturally. When that happens, you don’t have any control over how it’s linked to. For example, if someone links to an article from a Reddit post, the website publisher of the article isn’t around to whisper in the person’s ear what text to use in the Reddit post.

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

I don't. All of the content on DaniWeb is user-generated, so I have very little control over the words that appear on each page. Years and years and years ago, back when backlinks weren't banned by Google, I used to be a little intentional when it came to keywords in anchor text, but we're talking over 2 decades ago.

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

Because Google doesn’t think your website has enough to offer, has a strong enough brand name, is not spammy, etc.

Create high quality, non-AI generated content, and build backlinks pointing to your site.

Also, if you have not already done so, create a Google Search Console account.

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

In other words, if you just need days or hours you can do something like $diff->d or $diff->h (All properties available here, but if you want to calculate a runner's start time and end time and then do something like "You ran the race in 08:33:56!" then you could use the format() method to make it easier.

Hope this all makes sense, and glad you got it working. (Also, just to confirm, you now have two datetime-local input boxes and no more date picker on its own, right?

Erussuhsh commented: Hi can you help me Dani +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also just one more question regarding your code, I will have to minus 1 hour from the total hour difference, do I have to use the %h - 1?

Just in case you haven't figured this out yet, the answer is no :)

In my code above, see where I am showing you what $diff looks like on line 15? You should be able to do something like this:

$hours = $diff->h;
$total_hours = $diff->h - 1;
echo "Total hours: $total_hours";

Alternatively, this should also work:

$total_hours = $diff->format('%h') - 1;

This is all untested code. :)

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

Oh goodness, I’m sorry! I made a typo. Remove the new keyword. I’ve edited my post above.

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

I am confused when you say the HTML time picker input box can be set to 20:00 for time in and 5:00 for time out, because <input type="time" ...> only allows the end-user to specify a time, not a time and date combination. Should it always be assumed that if the time out is earlier than the time in, that it is the next day? Otherwise, if the time out is later than the time in, should it always be assumed that it is the same day?

Perhaps what you mean to say is that you are using <input type="datetime-local"> which makes a lot more sense, because then the end-user specifies both a date and time together.

Let's assume that the datetime-local control is used and both a start and an end are submitted via an HTTP POST form.

We can now do something such as this:

// Get start and end date/time combos from HTTP form
$start = $_POST['start'];
$end = $_POST['end'];

// Create DateTime objects in PHP for us to work with
$start_object = date_create($start);
$end_object = date_create($end);

// Get the difference represented as a PHP object
$diff = date_diff($start, $end);

// $diff is now a PHP object of how many years, months, days, hours, seconds

// See for ourselves what $diff looks like
var_dump($diff);

// Specify a string that says how to format the time interval
$format = '%d days, %h hours, %i minutes';

// Format the difference in a way we want
echo 'The time difference …
Erussuhsh commented: Hi can you help me Dani +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You might want to check out Upwork or Toptal to get freelance development work.

May I ask what the code you provided here does? It seems to just be a constructor function with some getters and setters, but is missing the rest of it. Was it written by ChatGPT?

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

Why don’t you tell us since you’re a Sharepoint compliance manager according to your profile?

Salem commented: LOL +16
rproffitt commented: Yup. +17
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oh, it looks as if you're referring to auth0, as I see you've also posted over there. It says you've attached a diagram of the request flow but I'm not seeing it.

Marcus_8 commented: https://www.daniweb.com/programming/web-development/threads/543379/why-am-i-getting-a-401-unauthorized-error-when-calling-the-management-api +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Locking this topic because it's turned into a bit of a spam fest. Lots of deleted posts that didn't meet our quality guidelines.

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

Hi Tim! Welcome to DaniWeb. Thank you so much for taking the time to join us over here.

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

Hi Ron and welcome to DaniWeb! Thanks for taking the time to sign up and join us in our little corner of the web. Something tells me that @Reverend Jim and @rproffitt will be along any moment to greet you as well ... ;)

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

We used to use Sharepoint way back in the day when DaniWeb had one of those Microsoft subscriptions that gave you access to all license keys. I forget what it used to be called but they don't have it anymore and haven't for many years, as far as I know.

Edit: ChatGPT reminded me that it was called a TechNet Subscription.

rproffitt commented: "Those were the days my friend. We thought it would never end." +17
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It should be fixed now. Unfortunately it's been broken for quite awhile and I didn't realize it. It broke on the 5th of the month when I went through all the code and mass-added a wrapper that ran some sanitization stuff. So sorry about that! Either way, it's fixed now.

John_165 commented: thanks you +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Probably this is me just venting more than anything, but has anyone had success in getting in touch with someone from Cloudflare billing?

Cloudflare recently charged us a boatload of money for Argo accelerated traffic that was the result of a DDoS attack. Cloudflare was able to detect on their end there was a DDoS attack going on at the time. I tried submitting a billing ticket a week ago and there have been no responses to it as of yet. Pretty frustrating.

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

BTW I've spoken with a former Microsoft Engineer. He also agrees OneDrive is an abomination.

I’ve spoken to several current and former Apple engineers who agree that Siri is an abomination.

rproffitt commented: This just in: Head of DoD declares all their software is outdated. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

But programming basics are still something people need help with, and the basics have not changed appreciably over my career.

They sure have changed appreciably during my career! But maybe that's because my career is in web development, and the web, and the technologies that power the web, have changed a lot over the past 25 years. Heck, 25 years ago we were talking HTML and perl cgi scripts! Usenet groups and AOL and Compuserve before that.

Salem commented: Memory lane flashback! I suddenly remembered my CiS ID +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As a macOS user these days, does Windows not have a find tool? /confuzzled

rproffitt commented: "Windows Search" exists but a mystery why it's such a bad finder compared to other apps. Then again I'm old. DIR to the max. +17
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Then there’s me, whose expertise is mostly limited to technical SEO and PHP these days, I’m afraid. Ugh, the brain fog is real.

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

I checked out your website and notice you're using the particles javascript at the bottom of the page. Many, many years ago, we used to use that as well, until we discovered it was causing some people's web browsers to crash, and for others, made the webpage unresponsive for users with slower computers.

I would highly suggest that, instead, you use a vector animation in a loop that can provide the same desired effect, as opposed to this javascript that has to continuously calculate the position and vectors of each of the individual particles and connections between them. That's a lot of wasted processing power.

sayitontheweb commented: Thanks Dani! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

OMG, I can't with the dad jokes.

Reverend Jim commented: Trust me. You'd really hate my actual dad jokes. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As you may know, yuo can customize the error pages in Cloudflare, such as for a WAF block, etc.

For some reason, since the switchover to the new error pages dashboard, the custom font I always use isn't working.

I can see that it converted https://cdn.daniweb.com/font.woff into inline base64 for the @font-face CSS, which sounds about right. However, it's not working for whatever reason, and I have no idea why.

Has anyone heard of anything like this before?

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

Jim, I have not used Windows in a very, very long time, but can you not configure Windows to store My Documents on D? I'm quite sure that you can, if I remember correctly?

https://superuser.com/questions/1725456/wha-cant-i-move-my-documents-folder

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member
  • Microsoft Office (for macOS)

And then to manage DaniWeb:

  • PhpStorm
  • Remote Desktop Manager
  • Viscosity
  • Screaming Frog SEO Spider
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jim,

My intense headache is because the shingles rash is all over my scalp, my eyebrow, and even all over my eyelid! The intense headache pain was radiating from the area of my scalp where the shingles rash eventually presented.

Luckily, the shingles vaccine is no longer live, so you should definitely get it. (I just happened to have not gotten around to getting it yet, since I was told the risk was very low for people under 50.)

John_165 commented: I had it on last year May +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Today is day one trillion of this still unrelenting headache. FINALLY, a diagnosis! I have shingles. Feeling hopeful to begin treatment and start feeling better.

jkon commented: I hope you have an easy and fast recovery +0
John_165 commented: take vitamin B +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I have a bit of a migraine right now, so I have to put a little more thought into whether these 2 posts should be deleted when my head is a bit clearer.

Unfortunately, I ended up in the ER from an unrelenting migraine that hasn’t let up for 6 days, and is not responding to any medication.

I don’t mean to drop the ball on this thread.

rproffitt commented: I hope you get better soon. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Just as the topic title suggests, any jQuery 4 beta users out there who could let me know what it's like?

The wait for v4 gold release is killing me. Also, please don't make fun of me for being a jQuery user. DaniWeb has been built on jQuery for decades. (Okay, maybe that's not something to brag about.)

BobDelaney commented: Why would anyone be hesitant to admit to using jQuery? At the time it was released, it sparked fundamental upgrades to JavaScript. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I don't know what you mean about building a buying persona through DaniWeb?

SanjayJoshi commented: Daniweb is spreading nowdays this only platform now looks humans are using so just finding some DEVS here and thanks to build this platform "DANI" +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I started this thread thinking about James, DaniWeb's sysadmin, who I was surprised to hear uses Windows as his daily driver, despite his proficiency in Linux. I believe he quoted things like Linux not being ideal for gaming.

I'm macOS only these days.

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

Breakdown your method of creating high quality niche related backlinks !!

Yes, please :)

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

First post from my new (~2 minutes old) 5Gbps fiber connection. :)

Reverend Jim commented: Sweet. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Linux has come a long way, but it's still primarily a server OS, correct? How many of you linux fanboys and girls use it as your primary operating system for daily tasks? How does it compare to Windows or macOS in terms of productivity and overall user experience?

rsleventhal commented: I've been using Linux as my primary desktop O/S since 2009 and have never been happier or more productive +0
AlVest commented: Linux Lubuntu, personal pc. Mac & Windows at work. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member
SanjayJoshi commented: It's Official store Well Known place for Bootstrap Templates +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi and welcome!

What interested you in SEO initially? Do you focus more on technical SEO or off-page (backlinks, etc.)?

SanjayJoshi commented: 1st Technical then Going for Offpage & Backlinks Activities +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hello,

DaniWeb actually uses Bootstrap, but I don’t use any preexisting templates. How much CSS experience do you have? Are you experienced with creating HTML code that uses css classes to piece together something unique?

Bootstrap also has its own template store, if I recall correctly.

Also, Tailwind is a competitor to Bootstrap, so I’m confused what you mean about using them both together. When would you want to do so?

SanjayJoshi commented: I am just came here how devs using the templates so asking questions and building buying persona through DANIWEB +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Use Cloudflare (free plan is available) and plugins such as WP Rocket or WP Engine.

Romaric Onel commented: Thank you very much.In fact, my site is super fast (92% on mobile and 99% on desktop performance according to Google Page Speed). +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What are some best practices for optimizing memory management when working with large datasets?

I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low level c++ community that is well suited to being able to delve into this topic into depth, and because years ago when I focused on c++ myself, I was very focused on efficiency).

seven7pillars commented: Great insights! Efficient memory management is crucial for handling large datasets. Techniques like data chunking, indexing, and using optimized data. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What's the most challenging bug you've ever encountered in your programming career, and how did you eventually solve it?

I’ll start. The only one I can recall from the recent past is not realizing that you can’t use a MySQL transaction from within a persistent connection. Here’s when I learned that lesson.

As far as the single biggest threat to my career from a technical perspective, I would have to definitively say the miscommunication between myself and James that lead to our database being hacked in 2015. We are still experiencing the fallout from that today.

How about everyone else?

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

Always customize based on search keywords, I suppose? Honestly, I've been out of the PPC game for a few years now.

MasoodDidThat commented: Yes, that's correct. Also, follow up on which keywords are performing well, costing less, and delivering the best results. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It was a typo I noticed immediately, but I couldn't edit the comment (which could be a useful feature).

You should be able to click the little edit button for up to 10 or 15 minutes (I forget which) after posting in order to correct typos. We don't allow you to edit your post after that because we've run into problems in the past in situations where, for example, a student will post a question, get responses and help, and then want to cover their tracks because their professor told them they can't get online help with the take-home exam, so they go back and edit their first post saying "never mind" or something like that, making the entire thread useless for future visitors and disrespectful to the people who took the time to respond.

However, using it in the same PC, location, connection, etc., provides one of the few relatively reliable tools we have to understand what changes to make and observe their impact.

You are assuming that most people have reliable internet connections that allows them to perform the same Lighthouse test multiple times and get consistent answers. Something else I forgot to mention is that a site like DaniWeb has complicated ads that are different each time the page loads. Some ads are well written and some are a huge drain on all CWV factors, so that also makes it really hard to compare trends with Lighthouse.

Your responses made me to …

jkon commented: this is a test comment to see If I can edit a comment +11
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I highly doubt anyone here would be able to sell or license to you access to their Apple developer enterprise account (mostly because it would violate their own agreement with Apple), but out of curiosity, why do you need it? The program is designed for specific use cases in which large organizations need to distribute their proprietary app privately to their employees?

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

Of course, Lighthouse audit results are influenced by factors like your location, connection, and other variables.

That's why I disagreed with you that a Lighthouse audit is always representative of real world users. In my case, the majority of my real world users do not have the same location and/or technology as I do.

I decided last week not to respond to your last post, but, let's be honest, I can't keep myself from responding.

Face it. It's because you just love talking to me.

jkon commented: I love being part of the DaniWen experience +11
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If the databases are on the same server and use InnoDB, you can use fully qualified table names, and write to multiple databases on a single connection.

That's what I ultimately started doing instead!

Thank you so much for a definitive answer to my question.

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

Can you try upgrading Chrome now and see if the problem goes away? Much thanks!

Mr.M commented: Ok I will update and see +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It depends on the purpose of the article. Short content works when people want a quick answer to something. Long content works when people want a lot more in-depth information about a particular topic. You should always have a target audience in mind when writing content.

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

It would be very helpful if you could not upgrade Chrome for now, while we debug this, since you're currently the only known person who is experiencing the bug.

Mr.M commented: Noted +0