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

INSTALLING TAILWIND

Hello, I'm getting confused with installing Tailwind, especially when it comes to using PostCSS. If I installed the Tailwind CLI and then I want to install Tailwind using PostCSS, do I need to repeat the command? as of know I'm trying to start to learn the tailwind.
No description

How would one create a "side branch" in git/github and commit to it?

Friend wants to check all of my code that I'm stuck on but asked me to upload it to a side-branch to avoid pushing bad code into my main (understandable). I've never done this and google wasn't that helpful, any advise? I'm sure it's fairly simple!

Going back to a project in WSL that's built using NPM, npm run not working?

I'm absolutely sure I'm missing something as it shouldn't be this difficult to just carry on from where I left off, suuurely? All I've done here is open WSL, cd into my directory,
code .
code .
to open vsc, then the terminal is screenshotted here.
No description

[My Bad] ISSUES TO CHANGE OPACITY AFTER VARIABLES ARE DECLARED

Hey there folks, I hope this should be the right place to ask. I started just now the Space Travel Site course on Scrimba, but when we set up the variable of the colors I have trouble changing the opacity into the classes, and the code doesn't work. Does anybody else have this problem like me? Now I sorted the design system section but before going on with the rest I wish to fix this problem. ...

Issue starting a vanilla js build with vite

Using WSL terminal and I'm trying to start a project using vite, keep encountering the below error.. ```Error: EPERM: operation not permitted, mkdir 'C:\Windows\restaurant-app' at Object.mkdirSync (node:fs:1395:3) at Zr (file:///C:/Users/User/AppData/Local/npm-cache/_npx/1415fee72ff6294b/node_modules/create-vite/dist/index.mjs:48:7572) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {...

Format on save - two lines separated by comma

Hi, How to set prettier to keep orignally two lines separated by comma as I saw on one of Kevin vids? Mine goes straight into one-liner. @kevinpowell would you mind showing your prettier settings?...
No description

How to fix lags of Chrome and suddenly hangs up when using live server from VS code?

as you can see on the chrome at the bottome the document tab wont reload or load so basically it already hang i cant even touch other tabs due to the hang
No description

Using AI to process, classify and filter text?

First off: I am a noob, only work with HTML and CSS, but have a little bit of understanding of how programming and the web works. So I am interestig on how one would process html / text nowadays to classifiy it by certain standards. Let's say for example I would want to filter a number out of a block of text, but if there are multiple numbers, I want to prefer the number that has a certain word in it's radius and so on. I know that this can be done with regex (regular expressions), but wonder how hard it is to build such a classification service using ML/AI services available today. ...

Windows terminal in address bar

So im pretty used to writing cmd in adress bar to open terminal in that folder. When i used to use cmd it was fine as it opened new cmd instance in WT but now I use bash as primary profile and to open it i need to write wt in address bar. This works but only partialy as the bash active directory isnt at the folder which i used this shortcut in. Anyone know a solution for this?...
No description

Netlify deploy failing with error, check description

Description: Click here for codebase on GitHub: https://github.com/chr1swill/https---github.com-chr1swill-astro-blog-website/issues/1 Hello, I am using Astro, SCSS, CSS, JavaScript and markdown for my static site. I am running into a problem when trying to deploy my site on Netlify. The deploy command 'npm run build' is failing with below error:...

GitHub Problems

A while ago I went through the process of changing my primary branch from "master" to "main". This was all good UNTIL I went to push some changes to my GitHub site which was still a "master" branch. Then everything went sideways! I tried all the hints they presented such as renaming the master branch on GitHub site but still am getting errors such as: origin is missing check that you have permission ... Change the upstream settings (I did this but nothing changed)...

Why open in VS code doesn't work in codesandbox?

Its only on my side I asked somebody to open smth in VS code with codesandbox and everyting works properly
No description

How to enable emmet for .ejs file in lazy nvim

i want to enable the abbrevation in .ejs file in nvim (lazy vim). I have installed the emmet but it is not working in .ejs file. Here is my config ``` return { {...

SEO for translated content.

SEO tools are reporting content is not readable but for foreign store level. How do I fix this? If I have terms/conditions translated how else can I make it "readable"

Piping in Bash (`echo "blah" | foo`)

In bash we can use the pipe character to pass some content to a command;
echo "blah" | foo
echo "blah" | foo
...

files in cloud

Does anyone here use any cloud solution to put all your files? I was wondering about putting all the files from my hd to cloud and have more free space at my pc itself, so if anyone does this and can give me better insights on how optimal this can be, i would appreciate (:

npm install speed very slow

i just created a vite project.
npm create vite@latest
npm create vite@latest
continued with the prompts normally, but after i went in the folder
cd myproject
cd myproject
and then installing dependencies...

hosting a website on a virtual machine, or other alternatives

i want to know how to host a website on a private VM
or if there are some good other alternatives...

VSC coloring

Hey all. Does anyone know why VSC (Windows) is coloring "style.display" differently in these two lines? (screenshot also includes a list of all installed extensions) Thanks....
No description