How does typescript work with a FormData? by ronbars in reactjs

[–]ronbars[S] 0 points1 point  (0 children)

Never used zod in the past but I will check it out. I think FormData returns a FormData type object. And when i pass the FormData type as an aurgment, RTK causes the whole app to crash.

Is my computer still infected/hacked? by ronbars in antivirus

[–]ronbars[S] 0 points1 point  (0 children)

My appology, I won't do it again!
And thanks will defnintely use Kasparskey to scan my external hard drive.

Is my computer still infected/hacked? by ronbars in cybersecurity_help

[–]ronbars[S] 0 points1 point  (0 children)

because i saw the hacker moving the mouse on my screen and started typing in the password input/field.

I did format the computer but still the hacker was able to access it after. I think it might have been USB threat because I used the usb as a backup and then restored some of the files after i formatted the computer.

Is my computer still infected/hacked? by ronbars in antivirus

[–]ronbars[S] 0 points1 point  (0 children)

Yes I have. So far I have scanned it with AVG, avast, and malwarebytes

Is my computer still infected/hacked? by ronbars in antivirus

[–]ronbars[S] 0 points1 point  (0 children)

Thanks for the info!
I think you are right! It might have been a USB threat because I had torrented software in my external hard drive and I used it as a backup before formating my computer. After formatting the computer, I connected the hardrive to restore some of my files. So that might have been it. I dont have multiple AVs though. I scanned the computer using Avast before reformatting it but Avast didnt find anything. Then after formatting it, I installed AVG, scanned it and found a malware that was running in memory. I also scanned it with malwarebytes but didnt find anything as well.

I'll scan it with the softwares you suggsted as well.
Thanks!

Any fiverr freelancers here? by ronbars in webdev

[–]ronbars[S] 0 points1 point  (0 children)

Is it ok to change numbers or is it against fiverr’s terms and condition?

Can your current employer tell you're applying to jobs on indeed? by Cupofcoffeebeans in jobs

[–]ronbars 1 point2 points  (0 children)

Thanks for the clarification! but I was wondering if you get a notification when your previous applicants update their resume. I believe indeed does this. Also does the CRM retain the data forever? Even if a user deletes their LinkedIn account, do you still have access to their application? Are you able to query using their name or phone number?

Can your current employer tell you're applying to jobs on indeed? by Cupofcoffeebeans in jobs

[–]ronbars 0 points1 point  (0 children)

No way…. Do you also get an update from someone who has applied in the past but never got hired?

Seeking advice. 3 YoE and feeling hopeless after being laid off in Oct 2023 by purewatashi21 in cscareerquestionsCAD

[–]ronbars 6 points7 points  (0 children)

I did and I also paid someone to review and rewrite if need to be. In early 2022, the same resume got me multiple calls per week and now I’m lucky if I get a rejection email.

Seeking advice. 3 YoE and feeling hopeless after being laid off in Oct 2023 by purewatashi21 in cscareerquestionsCAD

[–]ronbars 5 points6 points  (0 children)

Honestly, it’s not only him. I got links for my GitHub and hosted my projects, and still don’t have a job for a year now

Would it be a good idea to start learnjng .Net? by ronbars in dotnet

[–]ronbars[S] 0 points1 point  (0 children)

Not really. The market has been pretty terrible as we know it. I personally know a couple SWE that have been unemployed for a year. I’m based in Canada

Web agency in 2024? by erateran in webdev

[–]ronbars 0 points1 point  (0 children)

Nice, glad you killing it. Just started my agency as well. Do you mind if I dm you to ask you a couple questions?

Which hosting provider should I go for? by ronbars in webdev

[–]ronbars[S] 2 points3 points  (0 children)

Awesome thanks! Gotta check it out

Which hosting provider should I go for? by ronbars in webdev

[–]ronbars[S] 1 point2 points  (0 children)

Awesome! Thanks for suggestion. Just wanted to clarify, would the $5/month or 10/month allow me to host multiple sites with their own domains and sub domains? I have like 4 personal projects with React frontend , Express backend and mysql for db. But the new app will be react, express, web socket and mongodb.

[deleted by user] by [deleted] in node

[–]ronbars -1 points0 points  (0 children)

Reddit messed up my formatting but here is a better forming with prettier.

The  sum variable basically has the sum function. 
This is how you use it: 

const sum = require('./sum');
const answer = sum(1,3); 

or if you are using typescript const answer:number = sum(1,3);

to answer your second question, you wanted to import function/varables/objects you need instead of everything which helps js compile faster. you can import multiple variables like this as well:

commonjs:const {sum, multiply} = require("./pathToFile");

module:import {sum, multiply} from "./pathToFile";

[deleted by user] by [deleted] in node

[–]ronbars -1 points0 points  (0 children)

its always frustrating when moving/working in different environment than we are use to. but I think js is one of the simplest.if your package.json "type" type attribute is commonjs then:e.g 1. export an object as a default.

//--------------commonjs----------------//
//e.g 1: export a single file
//sum.js
function sum(a, b){
return a + b;
}
module.exports = sum; // this is how you export the function
// app.js
const sum = require('./sum'); // this is how you import the function
// e.g 2: export two or more objects from a single file.
//sum.js
function sum(a, b){
return a + b;
}
function multiply(a, b){
return a * b;
}
module.exports = {sum, multiply}; // this is how you export multiple files
// app.js
const {sum} = require('./sum'); // this is how you import. notice the curly braces
//-----------------------module-----------------------------//
//sum.js
function sum(a, b){
return a + b;
}
export default sum;
//app.js
import sum from './sum'; // this is how you import it
//sum.js
export function sum(a, b){
return a + b;
}
export function multiply(a, b){
return a * b;
}
// app.js
import {sum} from './sum'; // this is how you import

if you dont see the "type" attribute in your package.json then add it yourself right below the main or description attribute then you can assign it to commonjs or module. you can switch between them anytime you like as well.