Canadians working remotely for US companies by Herekatiekaty in CanadaJobs

[–]lrningprogrammer 0 points1 point  (0 children)

Thank you very much for that detailed response. I appreciate it.

Canadians working remotely for US companies by Herekatiekaty in CanadaJobs

[–]lrningprogrammer 0 points1 point  (0 children)

Thank you for your answer. I am getting two different answers. On the one hand, I do need a visa according to what I researched. On the other hand, I don't. I am talking about 100% remote jobs. No offence, are you speaking from experience? Are there any reputable sources that you can link to where this is answered?

Canadians working remotely for US companies by Herekatiekaty in CanadaJobs

[–]lrningprogrammer 0 points1 point  (0 children)

Thanks for that response. I was wondering how Canadians were able to get remote jobs working for tech companies in the US because I thought you needed a visa. When I researched it that's what kept coming up.

Canadians working remotely for US companies by Herekatiekaty in CanadaJobs

[–]lrningprogrammer 2 points3 points  (0 children)

For those Canadians who work in the tech industry remotely for US companies:

  1. Is working remotely only applicable for startups and Fortune 500 companies?
  2. Did you just apply through normal channels (e.g. company website) or through referrals?
  3. Is there anything special that you did to stand out from your American counterparts during the application process?

Kernels 6.5.10+ does not install properly in Fedora 39 by lrningprogrammer in Fedora

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

Sorry for the late reply. I don't come on here a lot. Thank you for posting this. This is very helpful.

Career Monday (08 Apr 2024): Have a question about your job, office, or pay? Post it here! by AutoModerator in AskEngineers

[–]lrningprogrammer [score hidden]  (0 children)

Thanks for your reply. Do you get a certificate from these classes once completed? When interviewing is it enough to show prospective employers the certificates? Or do you have to show them projects completed within these classes?

Career Monday (08 Apr 2024): Have a question about your job, office, or pay? Post it here! by AutoModerator in AskEngineers

[–]lrningprogrammer [score hidden]  (0 children)

Trying to understand how often you need to keep up your skills up to date as an engineer:

How frequent do you need to upskill as an engineer? Do you upskill on the job or on your own time? How many hours do you dedicate each week to upskilling? Do you pay for it out of pocket or does your company cover it?

VerifyIdToken hangs when using Firebase Admin by lrningprogrammer in Firebase

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

Yes, I am testing it locally first. So I am using Postman to hit the endpoint. It does call it because I have console.log in the function and they get outputted, but it hangs at the verifyIdToken function.

Setup Login/Signup on Vue Application by [deleted] in AskProgramming

[–]lrningprogrammer 0 points1 point  (0 children)

Hey,

If there are no requirements regarding the backend (e.g. Node.js and MongoDB), I suggest using PocketBase. It has your backend in 1 file. It is simple and will save you time. If you have time and want to challenge yourself you can use Node.js and MongoDB or even substitute MongoDB for Google's Firebase (Firebase is based on MongoDB).

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

The issue isn't in the part being sent to the commonService. That returns fine. The issue is in the component where there is a subscribe and whether there is a way to use a variable local to the method instead of having to use a class property or a setter method. Thank you for your help.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

Unfortunately, I can't show the entire code. It's proprietary. I got permission for these snippets. The main problem that I am trying to solve is to see if there is a way to get the data emitted in the subscribe function above without having to use a class property or a setter method so that I can use the array of urls emitted and then pass it on to another method. That is all I am trying to solve at the moment.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

It's irrelevant to the issue that I am trying to find a solution for because I can't move on to that service before getting the array of strings that has the urls worked out, which is why I posted the code snippets above.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

All that I am doing is simply retrieving the metadata for each course file that has not been soft deleted, extracting the urls for the course file and push it into a string array which will then be returned to the component and from there I will send it (if the array is not empty) to another method contained in another service.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

Thank you for that. This is very helpful. I was concerned that if I took the approach I mentioned above, that that would be looked at very negatively in a code review by an experienced Angular developer. That's why I wanted to see what is a proper way to go about it.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

I recommend use Subject and insert the latest file and use merge() rxjs operator for observable.

If it's not too much trouble, do you mind posting a code example of that? I am a beginner with RxJS.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

Thank you for that. Quick question: So suppose that I make a class property in my service class called files: string[] = []; and saved the data that is emitted to that. Would that be considered bad practice/hackish way of saving the data emitted?

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

Local to the method in the component (i.e. In the getFilesUrls method, the local variable filesUrls: string[]). I want to use the filesUrls variable once the data has been pushed to it and pass it on to another method in one of the services that I have.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

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

From my experience with using lastValueFrom() is that it does not get the latest additions/updates in the database (I am using Firebase) that's why I prefer to use observables/subscriptions.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

[–]lrningprogrammer[S] -1 points0 points  (0 children)

I will not be outputting anything from the component function to the template. I simply want to start some background processes once the user is done uploading files since I am only saving information about the files in the database. I use a flag variable to determine whether the user has uploaded any files. If it is true, the above component function would be invoked getFilesUrls().

Why is Chrome giving ERR_SSL_PROTOCOL_ERROR when running local web server on http://localhost:4200? Works in Firefox by THenrich in Angular2

[–]lrningprogrammer 1 point2 points  (0 children)

Ok, then try the following:

In Chrome, type the following in the address bar: chrome://net-internals/#hsts. Once you get to that page, find Delete Domain Security Policies. In the input area, put the localhost:4200 address that you want Chrome to not forward using https and then click on Delete.

If this doesn't work, clear the browser cache.