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

Styling error on Wordpress theme, after deploying to Github Pages

Hello, I'm not sure if this is the right channel for this question but hope someone can help. I've used the Simply Static plug-in to compress my Wordpress theme to HTML, so I can deploy to Github pages. However, the site has broken styling whereas just the index.html opens fine. The issue is only when opening the link to the site: https://alanrobert.github.io/the-butty-bar-static/ ...

A general curriculum-path thing for Golang

Sharing a note I made to help learn go for the web. Looking for some feedback, especially at the end.

Data Flow Diagram simplify

Hey guys I cant find any tag to post this DFD. So I will try to post this here. Can you guys suggest how can I simplify this Data Flow Diagram? Maybe Level 0 - 1. We have a system that is anti fraud system in a online shop app. If the customer has a low merit points which means the customer cant order many items in the shop....

Need help on deciding a web stack

I am currently in highschool, and pretty decent in javascript and python, and I need to build a website that will have users, and levels for a quiz. While I have looked around and the general consensus is using firebase for the backend with either vue or react, I was wondering what would be the easiest and most beginner friendly path to choose as someone new to back end web development

File not found

Can someone help in node issue. I building basic info site project . The site is working ok when run locally but when I am hosting it on replit , its only showing the main page , on clicking other links it throws error https://replit.com/@Tribhuwan-Joshi/BasicSite-3...

how to add payment button?

Is there a way I can add and make the button like Pay $20 if the price in cart is $20 ?

DKIM and SPF?

Obviously I can google and pick a link, but I was wondering if anyone has a decent resource they recommend for this? I'm terrible with email shit, but google's moaning about it. ----- More detail: ...

I don't understand error handling middlewares (Express)

I'm learning from fullstackopen.com and now I'm going into error handling middlewares. This is their demo code for this part : https://github.com/fullstack-hy2020/part3-notes-backend/blob/part3-5/index.js My understanding is that middlewares need to have next() for the next middleware to be executed. Why the demo code shows ... ...

Cannot push changes to github

In the terminal, I've given the following commands:
git remote add origin REPOSITORY_NAME
git remote add origin REPOSITORY_NAME
git branch -M master
git branch -M master
when i try to push changes using git push -u origin, it said I've to enter git push --set-upstream origin master....

Fish out of water in server side questions ...

Hi! I was just offered a web dev job by a friend, and since one can't sit and to tutorials for the reste of ones life I said "Sure! I'll fix this for you!" ... and now I'm shit scared, haha! So I have a a few questions, and I don't expect you guys to solve them all, but I need to know how to frame the problems so I can ask for proper help from developers I know can fix this. ...

paginated

This a simple one just confused, in making paginated APIs how do I know where to add the next property so the frontend developer knows it has a next page...how do I check where the next is going to be a + 1 or it's going to be null, in a database,

Correct Response code to send when DB connect fails

Which HTTP code is semantically correct to send in response to failing to connect to a database? 500 (internal server error) is a good catch-all, but it doesnt seem not be specific enough. 503 (service unavailable) is what im leaning towards but I'm not sure if it makes sense to say that the database is actually down at this time even if it fails to connect after the maximum retries...

Streams

Am using express I want to read a file using readStream in express and send to the frontend each time a buffer is ready...I want to know how to get the data on the frontend for each buffer, not waiting till all is fetched and combined into one response, it's music data with each response can I add to audio src html type to create some sort of streaming experience, is this possible? A good resources (video preferably) would be nice I've searched

host website

how i can host my website that build with nodejs and mongodb in internet server

Website using cached version

Hey guys, I've finally finished making my website. Whenever I make some changes, I have to press shift+reload to see the changes to clear the cache. I've tried everything to fix it form using head tags in my code to purging the cache from cloudflare. What are some other steps I can take?

node-canvas error

node-canvas error
Is there any other library I can use since `node-canvas` seems to be an issue, please recommend.
Is there any other library I can use since `node-canvas` seems to be an issue, please recommend.
I tried using node-canvas with jsbarcode to process barcode from a node application but node-canvas seems to be an issue ever since I tried implementing using it.I have tried rebuilding from source yet the error still a blocker....

My life has been blocked by CORS policy: Response to preflight request doesn't pass access

Who doesn't like a bit of monday morning cors? 😆 Was hoping that someone could help me narrow down my issue if they've got a sec. I've a FE and BE server, FE using axios, BE express. Locally, the FE is on port 4600, backend 3550, and there doesn't seem to be an issue. I'd thought that was because I'd set the correct headers on the server:...

IntelliJ issue

I cloned a project I have to do for a Udacity nanodegree in java using IntelliJ. But for some reason, that project window is not showing any documentation when I hover over things. But if I try to open another project, it will work as expected, showing documentation as you hover over things. So I'm guessing it's this specific project that's giving some issue.

why does me delimiter / replace not remove commas in my csv file?

And also how do i change the date format from YYYY-MMM to DD-MM-YYYY(for example: 2022 Jan-> 01-01-2022(all the days start with day 01 since there is no day) only with using import datetime and import csv, no pandas). I tries using ai and just googling it ,but it does'nt work(or its using pandas), gives me constant errors for some reason. Please help, would greatly appreciate it