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

help

[VSCode Extension] Looking for something to render mermaid in JSDoc

Title, basically. Say I have the following JSDoc comment; ```js...

Raspbian NAS constant disk activity after extending LVM with new disk

I just added a second hard drive to my raspbian NAS (pi4 4GB), added it to the LVM storage volume, extended the filesystem (ext4). It's reporting the proper size and seems to be working just fine, but there's non-stop activity (the LED for the new drive is blinking and the drive is making accessing noises). I'm hoping / assuming it's just some background process where the disk is getting... something'd? No idea what exactly... there's nothing special in dmesg (nothing since the ext4 expansion was done) or syslog, iotop reports only known processes that are using the disk and it was doing the same thing before those were running I ran pvcreate /dev/sda (the new disk) to create a physical volume, vgextend storage /dev/sda to add the new disk to the existing VG, then lvresize -l +100%free /dev/storage/storagelv to extend the LV. resize2fs /dev/mapper/storage-storagelv extended the ext4 filesystem, which took maybe 15 minutes and reported done. I see jbd2/dm-0-8 pop up (as well as jbd2/mmcblk0p2-, which is the sd-card iirc) occasionally, maybe once every 10 seconds, but the drive activity light is blinking on and off maybe 4x a second, and the drive is making noise in time with the light ...

which framework preset should i select in cloudflare pages?

I created a simple project using vite react. There is an option for create-react-app in cloudflare pages but not for vite. So which one should i select?
No description

Is there a guide on how to host vite+react after done coding?

i followed one tutorial to upload via github pages by installing gh pages etc and it ended up having issues. the host websites only has root div and no content inside.

Issue Installing Sass

I believe I have the latest version of NPM (9.5.1 ) installed. In visual studio code I type: npm install -g sass then I receive this error.. See image attached.. ...
No description

Can I select 2 different tabs in the same time and input in them at the same time?

Kinda a weird and stupid question, but hear me out. I'm practicing design a bit, and I have 2 different designs for the form, and I can't decide which one is better. Is there a way to split 2 tabs and input my keyboard in both of them in the same time so I can see in real time how effects perform? It's driving me nuts. 😦...

Installing Support Board on a Digital Ocean Droplet

I was tasked with installing Support Board on a Digital Ocean Droplet, however, I have no experience with SSH, what are the steps that I can take so that I can have some sort of progress?

Building a Static Website in a Folder: Relative Paths

I'm not sure how to ask the question properly as I'm not very fluent in english. I know about absolute paths and relative paths. I also know that relative paths can either be relative to the domain or root folder, or relative to the file itself. When I build a static site inside a folder I manually created without the help of builders (e.g. creating a new .html file, .css file, etc manually and structuring it properly inside my folder) I can move that folder wherever I want to, I would only have to make sure that whenever I call an asset inside an html file, the path should be relative to the html file itself, and the website will work almost 100% of the time. However, I noticed that whenever I build a website with the help of a builder (e.g. Astro.build with npm run build command), naturally it spawns a dist folder where the website will live, the website only works if you put it in the root folder of the domain want, or configure the builder to build the website so that it will work in a sub-folder of the domain you want (e.g localhost/subfolder)....

IntelliJ tips

Does anyone have IntelliJ idea shortcuts that you use everyday #os-and-tools...

How can i nstall gatsby-remark-reading-time plugin ?

i've been trying to install with the` npm install [plugin name] but didn't work i did a little research and i found one with npm install -legacy-peer-deps `which actually it recommends in the photo, but firstly did work but when i run npm start got a lil problem, i changed node.js to the new version and now seems both the npm install [plugin name]** and npm install -legacy-peer-deps

VS Code Snippets -- why do I have 2-3 for the same thing?

I've disabled all extensions. I'm trying to cut down on my code snippets because sometimes I'll have 4-5 that do close to the same thing and the only one I want is usually 2-3 down the list. Attached is just one example.

Tools for writing css components?

Are there any JS-less (i.e. don't require working with js (i.e. react/vue and jsx) when writing, not building) tools for conveniently organizing and aiding in writing css components or "design systems"? I know of storybook, but it's heavily reliant on js.

Update email address of a series of commits

Hi there, hope you can guys help me with something... I completely reinstalled everything on my machine and got a new fresh setup. This includes git configuration, so when I resumed work on an old project I had to enter my user and email address for all my commits, as expected. Unfortunately I got the email address wrong and now my commits won't appear on the GitHub counter which is a bit of a bummer. Is there a way to overwrite all commits to use a different email address? Git is still one of those things that I only know at the surface level, and I'm still green when it comes to this type of stuff. ...

Files lost in commit to "no branch"

I commited changes I made and I think they got into an "no branch". I don't really understand what happend and how to get them back.

Astro file

Why does my astro file's code has no color. It's a working code. But I don't know if I have to do anything so it shows it's color.

Laravel gitignore more to include question

Anything else I should add here to what has been pre generated by the laravel setup?

Prettier is doing some weird stuff.

Hi, I started using prettier few weeks ago and this keeps happening a lot. I tuned the settings for closing brackets which helped a bit, but some elements ( links for example) are still broken. I dont know why is this happening. I doesnt give me any errors in the log. I have the same settings as my friend and he doesnt have this problem.