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

php function doesn't work on hosting but working localhost

hello, I run my php code on xampp localhost is works. But running on host I getting this issue ' This page is not working www.bigrafi.com.tr is currently unable to process this request. HTTP ERROR 500 '...

Fingerprint

Has anyone worked on a web based fingerprint authentication and what languages (excluding the C brothers) were used and how does the implementation go about

Form Email Database Setup

Hey, Looking for someone capable of assisting me by writing code to send an email to clients when they submit a form and an email to me that includes all the information included within the form. Need it implemented immediately. Deadline is tomorrow. The landing page is currently hosted with firebase so utilizing fireStore is perfectly fine. Please LMK if your interested and capable of implementing by end-of-day tomorrow via direct message along with compensation. I don't need anything fancy. Th...

php function does not work on hosting

hi, I run my php code on xampp localhost is works. No problem sending information to database. But running on host my form I currently getting the issue 'www.bigrafi.com.tr is currently unable to process this request' HTTP ERROR 500 etc. By the way, I'm submitting my form from an html page, that wouldn't be a problem, would it? While the page is being refreshed, I think there may be an article like your message has been sent. is this good or it could be a better suggestion...

Login system

Hi guys, I'm trying to make a production-grade app and have never done a login system before. I feel like I have the general gist: make a form, get username and password, check against a database table, and if valid, send a 200 and a JWT for subsequent requests for the client to authenticate. Problem is, I don't know a secure way to do this. I don't want to take any chances as this will be a production grade app, so does anyone have any resources I can follow to make a foolproof, secure login sy...

error Microsoft Visual C++ 14.0 or greater is required

I was trying to install Jupyter using pip and it's giving me this error. I've already installed Visual Studio Build Tools 2022 to try fixing this but it didn't work.
building 'psutil._psutil_windows' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
building 'psutil._psutil_windows' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Any suggestions?...

Node.js & React -- Cannot use import statement outside a module

I converted my Node.js files into modules and put "type": "module" inside of my package.json. The converted syntax works fine for most files. However, when I try to import my React component into my backend server.js file, it's giving me the error Cannot use import statement outside a module. Specifically, it's pointing to an import statement inside of my component file (that's inside of the client folder).

Best way to send Express data to React props

I have a webapp that pulls data from a table in a database through Express. I want to pass that data in to my React components. Currently, my react components are defined in the client. I read that you can use client-side rendering (using an api like axios to fetch data from express) or server-side rendering (where you fetch the data for the components during the initial page request and send back an html file with pre-filled data). I think I want to go with SSR, since I read it's better for SEO...

Property 'pull' does not exist on type 'ObjectId[]'

moongose
moongose
typescript
typescript
I want to remove from an Array list and this is the error I am getting when I tried to use the
PULL
PULL
method, please how do i resolve this error ?

To try to find ip adress of person who visits my website

I have uploaded a website using cloudfare pages. I want to know the details of anybody who visits my page #console...

TypeScript-ESLint is trying to parse markdown files

I've not tried to setup ESLint like this before; I want to have a single source of truth at the root of a monorepo, and from there I'll be formatting *.ts, *.svelte, *.md, and *.[c|m]?js. Basically, I have no idea what I'm doing, and the documentation doesn't have a section on "what to do when a TS parser parses markdown". I've tried looking online, but I must be using the wrong search terms, all im getting is the packages, not any info on the conflict between them. The plugins I'm using are (from package.json devDeps);...

Docker environment not generating new sql-files.

-I had to remove all files from mysql-data so it could generate new file from labo.sql when I restarted my container. But no files neem to generate and the mysqldb-1 is not starting.

Flask before_request

What am I missing here? I'm trying to redirect the user when they use 'www' to the correct domain but it seems that I'm missing something because it's not working, it gives me error 😦 ``` @app.before_request def redirect_to_domain(): FROM_DOMAIN = "www.marsman.pythonanywhere.com"...

Typescript; push ObjectId into an arr[ ]

HOW DO I PUSH OBJECTID OF A DOCUMENT TO ANOTHER IN MONGOOSE
HOW DO I PUSH OBJECTID OF A DOCUMENT TO ANOTHER IN MONGOOSE
..... I have a collection for categories and it has an
Array[ ]
Array[ ]
of Brands that only takes in
ObjectId
ObjectId
of brands, i typed the brand as
brand: ObjectId[ ]
brand: ObjectId[ ]
but the push method is not working, nothing is being pushed to the
brand Array[ ]
brand Array[ ]
inside the category.

Webpack output to the wrong directory

Hey guys, I have a quick question. I've got this webpack setup ```const path = require('path') module.exports = { "mode": "development", entry: {...

How can I use nginx in such a way to achieve the functionality of Route your outbound requests

Route your outbound requests through static IP addresses, making your app compatible with services and firewalls that require IP whitelisting.
Route your outbound requests through static IP addresses, making your app compatible with services and firewalls that require IP whitelisting.
https://elements.heroku.com/addons/fixie...

jq memory issue

jq is using too much ram, is there a way to limit the amount of memory usage?

Digital ocean droplet docker build no space available error

Docker is creating this issue on each new re-build on github actions any idea how can I prevent this like what can I include in the script of github actions? You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 29 MB The error is very misleading because normally it is probably doing something wrong or unconfigured so it is filling a lot of space somehow which each re-build normally i don't have anything on my ubuntu server (digital ocean droplet)...

Check if id exists using node-postgres

WIth MongoDB & Mongoose, I could check if an id exists like so:
if (!mongoose.Types.ObjectId.isValid(id))
return res.status(404).send(`No post with id: ${id}`);
if (!mongoose.Types.ObjectId.isValid(id))
return res.status(404).send(`No post with id: ${id}`);
...

Github actions self-hosted runner fails on npm ci

This is Github Actions Flow giving error on npm ci any idea how to fix this issue ? Active: failed (Result: oom-kill) since Tue 2022-10-11 08:44:37 UTC; 22s ago...