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

CORS Blocking My Request

I include this in my backend: header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: *"); header("Content-type: application/json; charset=UTF-8"); ...

Problem with meta tags in html

<meta property="title" content="Manage - create your own landing pages fast and quick"> <meta property="description" content="Bring everyone together to build better products. Manage makes it simple for software teams to plan day-to-day tasks while keeping the larger team goals in view."> <meta property="image" content="https://th.bing.com/th/id/R.4107886f854aab71acb7746a7f544c56?rik=6sybA%2fLm8QQAOQ&riu=http%3a%2f%2fcdn.onlinewebfonts.com%2fsvg%2fimg_428490.png&ehk=DudW5bomMg%2b7ersswfCrrIPe81obpewX7sSc1AU2z%2bw%3d&risl=&pid=ImgRaw&r=0">...

.env vs config folder in nodejs

.env saves the enviroment variable while config does what ?? the same...

django rest framework

i have a question i want to give user to authinticate itself using 2 ways my social platforms like google and also using normal email and password i am using react in front end and django in backend can anyone guide me how i can achieve this?

SYNTAX ERROR PROBLEM INSIDE OOP PHP

My problem is: syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) When I do this: public function __construct(private ProductGateway $gateway)...

restore input with km

Someone who can help please. I do not understand it any more. I have an attendance list for the cycling club. We have 4 groups; A, B+, B and C. Each group cycles different km. I store all these in the db. together with who cycled with which group....

How to listen for SOAP request in nodejs

Hello friends, I couldn't find better tutorial on understanding SOAP. Currently I am working with SMPP protocol to send SMS from my application, it works fine, but to receive SMS, the ISP told me to use SOAP, they said that they will send MO messages to my end using SOAP request, now my node application need to listen for that request. But I am not familiar to how I am going to create a server to listen for SOAP request. Anybody here with experience in SOAP? Thanks...

Good free low-code platform

Hello, Im fairl y good in FE (html, css and js) I like to learn also BE work but in ruby and PHP I fail at things to be complex. So I think I want to look at non of lowcode to make nice custom looking website's....

Invalid environment variables

❌ Invalid environment variables: { ENCRYPTION_KEY: [ 'Invalid input' ] } /node_modules/@t3-oss/env-nextjs/dist/index.mjs:1

routes order when using nodejs

does arrangement or order of routes matter in nodejs when building api's because I currently have my routes some with jwt tokens and others without tokens but when I try to access routes without tokens insomnia asks that add a jtw token, is that a bug or should I re arrange my routes?

c#

Hello, I want to create a phone number field with winform. Thanks,...
No description

Query on JSON data type. MySQL.

Excuse me.. I'm still learning on querying database. I have a column with a JSON data type like this ```json [...

How to compress images in s3 bucket ?

actually i have a backend in nodejs and confused to how to compress the images and then store them again to my s3 bucket .Moreover i also want to decompress thode images whenever the client fetches them ? Any help will be appreciated, Thank you !...

what's faster async or sync ?

so I came across a video and it was talking about this article https://www.softwareatscale.dev/p/the-hidden-performance-cost-of-nodejs#:~:text=NodeJS%20and%20GraphQL%20are%20popular,promises%2C%20which%20degrades%20request%20performance. which says that the sync is a way faster approach than the promises/async and shows some tables showing the difference what would be the best approach since I always use async functions in serverless functions...

Please I need help connecting my website to Adsense

I'm almost caught up with my deadline and I've tried everything I know to connect this client's website to Adsense. But all attempts failed. Please anyone should help me out 🙏🙏
No description

Need help with mongodb

There is this error when connecting to db :- Error while connecting to db querySrv ECONNREFUSED _mongodb._tcp.cluster0.ygopfxf.mongodb.net...
No description

facing problem with xampp

am new to php and i was working in signup sysytem but when i try to see my work i face this error does anyone know the solution i search in the net and i try what i found but nothing work with me...
No description

hi, anyone got an idea why im getting this error? code is below

all im doing is printing post in the php code. Appreciate the help in advance😄
No description

Trying to understand if I always need to identify commonjs or module?

I have the following package.json file and do not see a type key, but they are using es module import statement. They also import json files without using createRequire(). How is this possible? Add to that that they are using require statements as well...how? var os = require('os'); in index.js below ``` { "name": "incoming-mobile-event-service",...