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

Is there a way to pick which build of a dependency to use?

I'm using node to build my webapp. One of the packages I depend on is tippy.js. When I import it with npm i tippy.js, it puts all these files in my node_modules directory (see screenshot). I'm not sure why, but when I build my project it ends up using one of the files meant for node. How do I get my build to use the version meant for frontend instead (I think that would be any version with umd in its name)? My project is written in typescript, I build with npm and rollup. It would help me a lot just to know which of these tools I need to learn more of in order to find the solution....
No description

WebSocket Chat Application in Spring Boot Not Receiving Messages in Postman

Problem Description: I'm working on a WebSocket chat application using Spring Boot. The application uses STOMP over WebSocket for communication. When I test the WebSocket connection in Postman, I can establish the connection and send subscribe messages, but I'm not receiving any messages. Here are the details of my setup: ...
No description

shell script to create file with latest mod time of any other files in directory

My VPS running Plesk, in git settings of a repository on the site, offers an 'enable additional deployment actions' with a box to put shell command statements line-by-line. I'd like to have it create a file in a directory via touch with the mod time of any other file with specific extension (e.g. '.js' /'.css') in that directory so an outside script can examine that (e.g. latest.js / latest.css) for comparison by other code. If this isn't possible or convenient, I must to resort to a frequent 'scheduled task' to do this operation. Thanks for any help! 🙂...

pass PHP to JS - string

Hello, How can I pass string from PHP to JavaScrtipt? string like this : "1 - one 2 - two...

Vanilla Node.js vs. Serverless Functions for Database Management: Seeking Recommendations and Advice

Project Requirements: -User registration and login with password hashing. -Storing form submissions in MongoDB. ...

What is the process of authenticating an application(PC/Mobile) through external browser?

I am trying to implement authentication in an application, which requires authentication to process on browser and redirect to app after successful login. Like it is used in various applications eg: Spotify. Tech. used: Electron JS, Typescript, MongoDB. I searched a lot but could not find any relevant solutions, any suggestions would be helpful....

Best Practices for Securely Sending Form Submissions via Email in a Web Application

Hi everyone, I'm a junior developer working on a website, and I need some advice on the best way to email a business owner when a user fills out a contact form and clicks submit. I initially looked into EmailJS, but I wasn't comfortable with it as it exposes API keys. Now, I'm considering using Nodemailer....

How to implement cache in an api that return a random fact

I want to implement cache in an api that return a random fact I’m using node.js and hono and prisma...

Firebase staging help

I'm new to Firebase and to back-end stuff in general, and I'm trying to use Firebase as I consider it a friendly way to integrate a back end into my project, which is a Chrome extension Recently I've been trying to tackle the issue of setting up a staging environment. However, firebase hosting:channel:deploy staging isn't a great solution because the generated URL is short-lived, yet I need to put the URL hardcoded in the extension and distribute it to test users What would be a better way to tackle this? Thanks...

PHP info not loading

Hello, In the php info : "Configuration File (php.ini) Path no value Loaded Configuration File (none)"...

How to synchronize session IDs between Socket.io and API requests using Vite and Express?

I'm working on a project where I need to synchronize session IDs between my Socket.io connections and API requests. I'm using Vite for the frontend and Express with Socket.io for the backend. However, the session IDs for WebSocket connections and API requests are not matching. `const sessionConfig = { secret: config.app.Session_Env, resave: true, saveUninitialized: true,...

google login

hello guys, im developing system in laravel and i want to put a system login and create account with google option, can someone give me a tip for these ? Thanks !!!...

Necessity checking if video exists or not

```js export const addComment = asyncHandler(async (req, res) => { const { videoId } = req.params; if (!isValidObjectId(videoId)) {...

User Logins

Hello, I have made a MongoDB Database Playground within my VSCode and I am wondering if I can replace what is already in the database, with Usernames and Passwords for users? Code:...

Low quantity image storage

Hi, I’m creating a shop backend in Go with MongoDB as a database and I need to store product images for a relatively low quantity of products. After looking around, I wasn’t sure what would be the best option to store these images. I could either use GridFS in MongoDB, Cloudflare R2 or Cloudflare images. CF images seems like it’ll be cheep but I’m unsure if it’s worth adding the complexity of another service when MongoDB can store images already. There is also the concern that there won’t be many products (probably under 50) so that plays in to things too. But, CF images does do optimisation for me so that’s a plus. I’d love to hear your opinions on what way I should go!...

container vs VM for monolith application

Hi everyone, so I'm planning to build a SaaS app since the job market isn't that spectacular, however I have little experience (actually none-I'm "self taught") with deploying productions apps, server performance and costs . I plan to build the app using monolithic architecture but I'm not sure what is the best way to deploy it cost effectively, I have deployed containers on EC2 and ECS before for practice projects and I liked how you can spin up multiple containers to handle request spikes wi...

Create Hacker Website Login Page in html

Like Share and Subscribe My You Tube Channel : @WebDevXpert Create Hacker Website Login Page in html and CSS #ytshorts #hacker #viral #trending #loginform: https://youtube.com/shorts/x9hjoFx0Too...

MS SQL & T-SQL

MS SQL & T-SQL Anyone got resources for learning these?

JavaScript host like Cloudflare Workers & Glitch had a baby?

I remember finding a JS hosting service, kinda like Glitch, but less FE & more BE/REST with generous free tier. Can someone please help share their glitch alternatives?...

Why is my app slow in production?

I recently deployed my new Next.js 14 app to Vercel and noticed it takes quite a while to even show the page... navigating to other pages is slow as well. However when I run npm run build and then npm run start on my machine everything works nice and fast as it should. Did I maybe do something wrong while deploying? Any help would be much appreciated. Live site: https://bt-snapgram.vercel.app Source code: https://github.com/boristenkes/snapgram...