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

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

Github Pages

Seem to be occurring an issue when trying to publish my project onto github pages. I amended the file names from upperCase[0] to lowerCase, it kinda helped, I now have a reset button showing, but nothing else? https://github.com/callum-laing/etch-a-sketch...

Restart Vite Dev Server

Had to restart a project in vscode. I am using vite. How can you restart the dev sever? I have googled it but not really finding an answer. Thanks for any help!

Question about domain stuff

Greetings! I have already purchased a domain on GoDaddy, and I have also linked it to Netlify. So, can I use that domain to deploy multiple websites?

VCS JS snippets

Hey all. I have two questions regarding VCS JS snippets and maybe regarding JS itself. 1. From what I see in the documentation (and I might be wrong, I am new to this), console.log() should always have an object passed to it. I tried running console.log and nothing happens, no error, but it is pointless, am I wrong? So, why isn't VSC just writing the whole thing? Eg. of what I wish for: I start typing "cons" it offers the word "console", I press enter, I write a dot "." and then I write "lo" and it offers "log()" and puts the pointer between the brackets. Similar with Math.random(), for example. ...
No description

JS vs HTML/CSS in VS Code

Hey all. I have a feeling that writing JS requires much more manual input than HTML and CSS do. When writing HTML and CSS, I feel like flying and like I can write many lines of codes quickly because of suggestions that pop up and me pressing enter without having to type them out. When writing JS, I feel like I have to write a lot of characters for a usable suggestion to pop up, if it pops up at all. If not, I have to write the entire thing out. Am I doing something wrong? Am I the only one? Is it possible to address this?...

Any way of updating the browser used for live preview in VS Code?

Not a big deal really, but the live preview extension seems to be running Chrome v108. Is there any way to update it?

Naming conventions for setting up projects

I'm a huge fan of BEM and my OCD is kicking in so I've been thinking a lot about file structures and naming for projects. I know that with some node packages and sass there can be certain folders and files that need specific names. So I'm wondering anyone could recommend some documentation or research on best practices for naming project files? Thanks

Deleting users in linux

I couldn't be bothered to spin up a VM for a Uni assignment and ended up adding a bunch of users and groups to my personal OS. Below is a record of what I did as cleanup. The things I did were; - create 4 users - create 3 groups...

[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...