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

Issues with Emails After Possible Domain Hack

Hello everyone, This situation may sound more like a back-end than a front-end, that's why I prefer to ask it here, even though my page has nothing back-end, it's just a presentation page. About a month ago, I uploaded the website I designed for a food import company to their existing domain. The domain and hosting were previously managed by another developer, whom I’ll call Alex. He owns his own hosting service. I uploaded the website on September 16, replacing the old version....

resources for server side auth

I’m struggling to find tutorials or courses that hold your hand and walk you through basics on how to make a request and authenticate/authorize a user- even platform and language specific courses are difficult to find. Preferably using google cloud console with oauth2.0 or service worker in a perfect world Getting more comfortable with the concepts but examples on the actual syntax and steps to do so is what I’m looking for then how to work with the token/refresh token would be a nice follow up. I’m so dense when it comes to backend as a whole , any suggestions or ideas for resources are greatly appreciated ✨...

Can't connect to my Postgres instance from my app

I've got a Postgres instance set up in a docker container, which allows local connections without a password: ``` TYPE DATABASE USER ADDRESS METHOD ...

need help with error handling in async functions in js

So i fetch some details from backend and get in frontend..so if i turn off my internet it shows error as "cannot read properties undefined" , so i add as if(!res) throw error and provide catch block in frontend but it shows error instead it catch and store on error variable heres the code: react code ```js...

Google drive API + OAuth 2.0 + Wordpress + Elementor Site w/ ACF

Does anyone have experience setting up a project on cloud console with Google Drive API? I need some clarifications on some of the fields for the oauth 2.0 registration.

POSTGRESQL ERROR

Hello, everyone i got these error in my terminal when i run the code please who can help me with error fix

sendgrid email

If sendgrid is used with a client contact form, where would the user's email be placed in the sendgrid object you're sending? A lot of examples use hard coded values, while most real world scenarios will need to be dynamic data like from a contact us form. Where does your verified email go & where does the user's email go?

ASP.NET SQL Connection Security; what should never go in a public github repository?

Lost my job last week and I'm working on an ASP.NET/Angular project to demonstrate what I know in .NET/C#. I'm wanting it to be public enough for potential employers to at least see that I'm comfortable working in this kind of tech, but my settings include my password for the local db, and I'm really really not a security person so I'm concerned there's something obvious that shouldn't be public. Unless I'm being overly paranoid. The server is only locally hosted right now, but if I get to the...

How to get around CSP during testing (WebSocket)

I have a simple websocket server that simply alerts each connected user every time a new user joins the server. I cannot connect to the server because I keep getting CSP violations. When running this code in the console:...

Is there a quick way in vanilla PHP to log things?

I have only the basic PHP extensions available in the default PHP installation. Just wondering if there was a quick and easy way to log data in the backend? I'm using error_log but that's stopping the application it seems when I use it so need something that won't stop the app and log the data to a file

Making APIs using Buildship

I am learning making APIs using BuildShip. Can some experienced person connect with me to help me?

img not displaying from Mongodb img address

So my Mongodb has values as name : "item1" , img : 'Assests/Icons/iconName' ...

websocket design for messagin app

can i get help me with my websocket design i have a message app like discord, it has servers groupchats and dms, and they all have channels. messages are tied to the channels. when a user goes in the app, i have a map that maps channel_id to a list of websocket connections. When someone sends a message, it will broadcast that message to everyone in the channel. now i am wondering if i should have the client listen to all dms and groupchats, but for server channls listen for messages in the active channel. ...

how to send post from data from react and capture the data in express

react code ```js const [formDetails,setFormDetails]=useState({ name : '', mail:'',...

need help with mongodb

My collection document look like this ```js { _id : 1,...

how to add params in useEffect axios get request

Backend code : ```js routes.get('/delivery/hotel/:hotelname',(req,res)=>{...

Get IP Address

Hi Everyone what api do you recommend in geting IP Address. I tried https://api.ipify.org but not working if I use android device or IOS device. only working on Web

Api Access and Youtube Statistic

Hey guys I have questions regarding how to build statistic based website by connecting with youtubes api ( like viewstats.com or socialblade.com) I am new to this topic, my main objective is to create a website where I can access youtubes data and be able to catagorize channels based on thei video topic views etc. I'm having problems like, connect to data base, how to use api to manupulate those data etc....

Error in .cs of Webform

im trying to solve this error on Line 8 ,what is it , How do i solve?
No description

ACF pro Wordpress

Is it possible to create a field that could be used on all pages and posts but still being able to change to content on one, but not on all pages? For eg. I want to create a field for a header image that displays on all pages and posts (except homepage), but I want to be able to change the image on particular page, I don't want them to change simultaneously on all of them. Makes sense? Ideas?...