Kevin Powell - Community

KPC

Kevin Powell - Community

A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.

Join

front-end

resources

back-end

ui-ux

os-and-tools

MAX height

```sql SELECT first_name, last_name, height...

Multi-provider authentication on Firestore

I'm working on an MV3 Chrome extension on a feature that requires authentication with a third party provider Considering that I'm not proficient in backend, I was wondering what's the right way to handle multi-provider authentication, i.e. letting the user to login with both Google and Facebook FYI, I chose Firebase for several reasons: 1. It has a great integration with extensions such that when I put a listener for a collection on Firestore in the background script, it prevents it from getting terminated 2. Firebase is quite beginner friendly...

MongoDB POST ISSUE

Here, I am trying to post to the user database. I am using the saveUser API on the registration page. I have also provided images of the server and error. I have been stuck here for the past few hours. Can anyone tell me what the issue might be?
No description

How do you edit a website that's already deployed on a cloud service provider?

How do you make small changes to your website if its hosted on aws elastic beanstalk for example

Cookie from backend not getting set in frontend

Hi devs, I am trying to set the jwt token as the cookie from backend but I am not seeing that getting set in the Applications tab in the browser. Too much to ask maybe, but if someone is available can we connect. I can walkthrough the code whatever I am trying to do. I am just stuck and not able to proceed with my project....
No description

Handling POST request in Express.js

Hello, So I have this form that sends an email to a waitlist database, both the form sending form "fetch" and the express view that handles the request works perfectly fine in these two situations: - Through my local development environment - and through postman, which sends the request to the live website both works as expected, but when I submit a form through the live website and try to send it, I get a 404 error in the console and a "Cannot Post" error in the network tab....

Allow logins from multiple providers

I'm working on an MV3 Chrome extension and in the past several months I've been working on addin a paid feature that requires logging in to the extension Considering that I'm not proficient in backend, I chose Firebase and Firestore My goal is to allow the user to authenticate with both Google and Facebook So far I successfully managed to let the user login with Google and I save his UID in Firestore, but I realized that if his account gets deleted due to https://support.google.com/accounts/answer/12418290 , he should at least be able to authenticate with Facebook After he logs in with Google, he has to start a monthly PayPal subscription to use the feature, and so I pass the UID to the webhook and I update that Firestore entry...

I don't know how to deploy this Node.js website

I made a website that uses MongoDB and Node.js, and Im not sure how and where I should deploy it.

Does this make sense to be a subclass?

I'm trying to create a subclass to implement some custom functionality to a parent class. I'm making a discord bot that has a class Discord. This Discord class has a constructor that takes a token. I've created a subclass Bot that has a constructor that calls the parent function. I've done this so I can implement environment variables. ```php...

Cloudfare

can someone tell me if is that way i cretae a subdomain? in cloudfare
No description

JS array to Sqlite

Hello, Here is my website: https://codepen.io/lanszelot/pen/eYarmbN?editors=1010 This template shows how the website have to work. How can I save to sqlite database the JS arrays?...

How should I architecture an api?

Hey guys, bit of an abstract question. I'm writing a discord bot in php so I can better understand php. This will be a terminal application. I'll also have a portion of the app in python to do sentiment analysis. I was wondering what the heck are the logistics behind writing a way to communicate between the php (bot) portion of the app and the python (sentiment analysis) portion of the app? I'm assuming I can write an api between the 2, but then my question is how do I even host that? I know how apis work but I've never actually set one up myself. I'd be using a digital ocean droplet with cpanel installed, and cpanel comes with apache ootb so I'm assuming i'd need to configure it in apache...

Firebase and Wordpress

Hello, I wanna learn to build websites especially backend-side using Firebase, but I also wanna start using Wordpress as CSM for my website, are both compatible together easily? Is Firebase made so that you don't need Wordpress? I'm not sure how both would work together..

I want to create an effect and i dont know how

Warning: I'm asking this question without any knowledge in code (Doing only a bit of CSS here an there). I'm a graphic designer who try to learn coding. The effect:...

Dynamically Changing Charts

I'm trying to dynamically change some charts on Myfantasyleague.com based on the team names and colors. I can get this code to work when I'm testing via a local server on VS code, but when I load the code onto the live site, it doesn't function correctly. Can anyone tell me what I'm missing as to why these charts are not being reformatted? Script I'm using https://codepen.io/tvu1313/pen/vYwpwEP ...

Is there a way to pick which build of a dependency to use?

I'm using node to build my webapp. One of the packages I depend on is tippy.js. When I import it with npm i tippy.js, it puts all these files in my node_modules directory (see screenshot). I'm not sure why, but when I build my project it ends up using one of the files meant for node. How do I get my build to use the version meant for frontend instead (I think that would be any version with umd in its name)? My project is written in typescript, I build with npm and rollup. It would help me a lot just to know which of these tools I need to learn more of in order to find the solution....
No description

WebSocket Chat Application in Spring Boot Not Receiving Messages in Postman

Problem Description: I'm working on a WebSocket chat application using Spring Boot. The application uses STOMP over WebSocket for communication. When I test the WebSocket connection in Postman, I can establish the connection and send subscribe messages, but I'm not receiving any messages. Here are the details of my setup: ...
No description

shell script to create file with latest mod time of any other files in directory

My VPS running Plesk, in git settings of a repository on the site, offers an 'enable additional deployment actions' with a box to put shell command statements line-by-line. I'd like to have it create a file in a directory via touch with the mod time of any other file with specific extension (e.g. '.js' /'.css') in that directory so an outside script can examine that (e.g. latest.js / latest.css) for comparison by other code. If this isn't possible or convenient, I must to resort to a frequent 'scheduled task' to do this operation. Thanks for any help! 🙂...

pass PHP to JS - string

Hello, How can I pass string from PHP to JavaScrtipt? string like this : "1 - one 2 - two...