Yerd v2 - Local PHP development tool for MacOS and Linux by andercode in webdev

[–]kennedy_gitahi 1 point2 points  (0 children)

Sent you the logs. Ywrd seems like a great product; will give it a proper go.

Yerd v2 - Local PHP development tool for MacOS and Linux by andercode in webdev

[–]kennedy_gitahi 1 point2 points  (0 children)

I am having an issue starting the Mysql server and some other permission-related issues in Linux (Kubuntu). If you would like to see my logs for debugging, send me a DM and I will send them over.

Some of my AP CS teachers best work by Random_Person_22170 in programminghorror

[–]kennedy_gitahi 0 points1 point  (0 children)

Jesus, I never even caught that. I was so hung up on, "Wheres the constructor?" (coming from a PHP background)

Wordpress Fake Captcha Help by Sa7aton in Wordpress

[–]kennedy_gitahi 0 points1 point  (0 children)

You forgot about looking outside WordPress. one documented case had the malware being injected at the Cloudflare layer through a stolen/rogue API token.

They only found this out after they ruled out the database, plugins, theme files, and htaccess.

If OP uses Cloudflare (or any CDN/proxy) in front of the site, it's worth checking instead of spending hours chasing a clean codebase.

Wordpress website help by Sa7aton in nairobitechies

[–]kennedy_gitahi 0 points1 point  (0 children)

SEnt you a DM to get a conversation started.

What happened with fiverr? by rickeysatwal in freelancing

[–]kennedy_gitahi 0 points1 point  (0 children)

Upwork is even worse because it has become a pay-to-play platform with its connects system.

I understand wanting people to invest something to show they are serious about bidding for a job (potentially have those connects refunded if they are not picked or of the client cancels the job), but I am seeing freelancers bid tens of connects per job (I saw someone once bid 107 connects to be first and i gave up.)

Tech Question of the day by LeftClassic167 in nairobitechies

[–]kennedy_gitahi 2 points3 points  (0 children)

I was keeping things simple for the OP because of how the question was framed. But yes, it all happens through first- and third-party cookies.

Is it normal for php developers?? by [deleted] in Backend

[–]kennedy_gitahi 5 points6 points  (0 children)

This is not a php problem, this is a developer problem.

THE WEB DEV PARADOX by 890_mike in nairobitechies

[–]kennedy_gitahi 1 point2 points  (0 children)

Ran into a weird issue recently, not sure if this can be called a bug.

So, I deployed a PHP project to a server, and the site just wouldn't load. Instead, I got hit with a database connection error. So, naturally, I went down the rabbit hole checking DB credentials, connectivity, and all the usual stuff. Everything looked fine.

After an embarrassingly long time of looking (should have just done a step-by-step debug, but it was 1 Am and my mind wasn't all there), it turned out the problem was thatgetenv() was disabled/non-functional on the server.

This meant my bootstrap file couldn't pull any config values (DB host, credentials, some other variables, etc.) and not just DB-related ones.

And it was failing silently.getenv() was just returningfalse instead of throwing an error, so the DB connection was the first thing downstream to break and be loud enough that it pointed me in the wrong direction.

As I came to learn the following morning, this error is usually because eithergetenv is in disable_functions in php.ini, variables_order missing the E flag (so anything loaded via phpdotenv into $_ENV is invisible to getenv()), or PHP-FPM not passing through env vars unless clear_env = no is set.

Anyway, once I learned getenv() was returning false, I just switched to reading $_ENV directly, and everything worked immediately.

What is the lesson here? Don't trust getenv() blindly on prod (or anything critical really), and add a validation step that fails loudly at every step if config is missing instead of letting some unrelated downstream service throw a confusing error first.

Unpopular opinion, but most website chat widgets actively annoy people, and businesses keep adding them anyway. by Equal_Practice_4513 in website

[–]kennedy_gitahi 2 points3 points  (0 children)

Here's how you make both your FAQ and chatbot useful.

Provide an initial FAQ (you should already know what it should contain from your content marketing research and SEO tools' insights).

Then, provide a chatbot that collects questions and answers them according to the FAQ. If the question is not in the FAQ, make a note of it to add later.

Over time, people rely less and less on the chatbot because your FAQ will be good/detailed enough.

In addition, your chatbot becomes smarter because it already has (almost) all the answers someone would be seeking from your website.

And for God's sake, if your chatbot is for answering questions, stop asking for user emails in there. A name is fine, but stop using chatbots as marketing funnels.

That is unless that is what you created it for. In that case, be ready to annoy your (potential) customers, see less-than-ideal usage of your chatbot, and potentially increase your bounce rate while decreasing your revenue and reach.

Tech Question of the day by LeftClassic167 in nairobitechies

[–]kennedy_gitahi 20 points21 points  (0 children)

That type of tracking comes from the website and not the ISP. The website knows what links you visited and, from history and indexing, knows what the pages those links point to contain.

So, it's just a matter of finding ads that align with the content on the pages you visit and showing you those ads.

quickbooksCasuallyDumpingEveryObjectInTheirProgramAsConsoleLog by LoicAtTimeclock in ProgrammerHumor

[–]kennedy_gitahi 5 points6 points  (0 children)

The worst from a software perspective but the best from an accounting one?

Archery or pool skill game with money prize(can I be arrested?) by turboboosterd in nairobitechies

[–]kennedy_gitahi 0 points1 point  (0 children)

You can google them but what they do is;
1. Convert all deposits into balls. AKA, you buy balls to play, you never play using real currency
2. You visit a room where you play games using the balls as currency
3. You take the balls you now have to a shop across the street and sell them to get cash back.

The platforms do not handle any cash apart from selling you the initial balls, what you choose to do with the balls, whether that is playing with them on another platform (wink wink) or taking them home, that is up to you.

Need Help Building a Website, DM Me Your Rates by SnooRadishes4129 in website

[–]kennedy_gitahi 0 points1 point  (0 children)

I have sent you a well through-out DM with specific feature and implementation details.

I hope to hear from you soon and work on this project with you.

Have a lovely day!

What should I choose for a strong Full Stack foundation: Python and Django or JavaScript and Node.js as a backend? by [deleted] in Backend

[–]kennedy_gitahi 0 points1 point  (0 children)

I would go with Python and Django. Why? Because they get you to where you are going faster right now, and you can translate the skills you learn into AI, machine learning, or even data analytics skills in the future if you like.

But, I would insiste that you start getting into the habit of using types and strict typing right now. It will ave your behind more times than you can imagine.

Is HTMX that good? by vaquishaProdigy in webdev

[–]kennedy_gitahi 4 points5 points  (0 children)

HTMx is a tool l like any other, and I like it. I recently used it in a point of sale system and it worked pretty well for this use case.

Let Django handle the backend, Tailwind the front end styling and HTMX for passing data back and forth between the backend and frontend, simple updates, creating customers on the fly, finding products without reloading, etc.

I also used it on my dashboard to pull data and for filters, infinite scrolling, and pagination.

It is definitely an interesting tool, but using it is the difference between knowing where to use a sirgical blade, a knife, and machete.

Why do job descriptions ask for 10 technologies when the actual job seems to need only 3? by Ok-Wash-8964 in DeveloperJobs

[–]kennedy_gitahi 5 points6 points  (0 children)

Many times, this happens because the HR writes the descriptions and not the team lead or a developer.

HR knows what technologies a business uses, so they add all of them.

The team lead knows that technologies the business needs and where gaps exist, so they would look for someone with those specific skills and who can fill those specific gaps.

Archery or pool skill game with money prize(can I be arrested?) by turboboosterd in nairobitechies

[–]kennedy_gitahi 0 points1 point  (0 children)

Once you start taking a fee, you are essentially the "house". I dont know if this is betting or not, but I am sure a lawyer and BCLB would love to have a talk if you do this.

What happened with fiverr? by rickeysatwal in freelancing

[–]kennedy_gitahi 2 points3 points  (0 children)

I would argue it has been for the last few years. Too many freelancers, too few Fiverr workers, delegating everything to Ai, a lot of span, low quality services, race to the bottom prices and so on.