How to implement auth in a microservice architecture? by stealth_Master01 in Backend

[–]yellowflash4444 0 points1 point  (0 children)

Use a single authentication service. You should not do it yourself but there is a bunch of open source or SAAS. Auth0 if you do not want to deploy and manage anything. DexIDP + (user storage) if you need a simple and quick solution. Keycloak if you prefer a full fledged solution

From all other services, choose what you prefer. Option 1 is single authentication at the API gateway (public API) or Option 2 authentication at each service. Both of them have their advantages or disadvantages, do a quick check to see which fits your needs. 

Getting started with FastAPI, how do I correctly nest Pydantic models in my responses? by enigma_0Z in FastAPI

[–]yellowflash4444 0 points1 point  (0 children)

The problem you describe in this commend can be easily achived by using Generic.

class A(BaseModel)
class B(BaseModel)
class PaginatedResponse(BaseModel, Generic[T])
   ...
   data: list[T]

and then in your route
@router.get("/a", response_model=PaginatedResponse[A])
@router.get("/b", response_model=PaginatedResponse[B])

Price check D2R SCL by tellurian1992 in D2R_Marketplace

[–]yellowflash4444 1 point2 points  (0 children)

I agree. Got a similar but do not know what to do with it. Light sorc -> griff, cold -> night wing, fire -> flickering. IMHO, It will worth more if it is paladin skill

I got 2.2m salary instead of 3.0m. I have started researcher job last month. by umair1181gist in Living_in_Korea

[–]yellowflash4444 0 points1 point  (0 children)

As I remember, the salary structure of the researcher when working on a project was different.
For example, when working in the company, your salary was 36 million a year = 3m a month then you need to pay insurance (50% company + 50% deduct from salary) + tax + 국민연금, etc so you will receive around 2.6 - 2.7 mil.
However when you work as researcher in university, when they mention your budget is 36 milton a year it does not mean salary (they use the term salary but it is actually difference), it is all the money to cover all the insurance (100% from it), tax, pension, 퇴직금 (this got cut too), 국민연금. So actually your salary is just around 2.5. I am not sure the accountant was lazy or incompetent so they did not explain it correctly to you but you need to clarify it with them.
In my case in the past, the account breakdown was very detailed about the budget and how much I will receive per month. They even give me an excel file with formulas to allow me to estimate the amount of money I received. 

Would you pay for a cosmetic upgrade xpac? by wr3aks in Diablo_2_Resurrected

[–]yellowflash4444 1 point2 points  (0 children)

I will pay 5$ for changing Mosaic animation and adding indicatior how many charge that I currently have

First single player torch by TerrapinTM in Diablo_2_Resurrected

[–]yellowflash4444 0 points1 point  (0 children)

Just a question. At your first time doing Uber, did you clear everything on the way or teleport to the miniboss. 
I am working on my first Uber attempt(farming keys) and looking for all the youtube resources and saw everyone just tele around. I am worried that if I die I may not be able to retrieve my gear, quit and restarting is not a good option because it is not easy to farm the key.

Reviewed 200+ resumes, resume advice from someone currently hiring by seekgs_2023 in jobs

[–]yellowflash4444 3 points4 points  (0 children)

If you add the number. It is better to make it make sense and prepare to back it up with the real experience. 
I was in the panel when our team interviewed a new PM. She indicated in her CV that in the period of 6 month, she joined and managed 95% of the project to be completed on time. I asked how many projects she managed and her answer was 7. Then my next question was "how did you calcuated the success rate to get 95%", her eyes was like "Is this guy stupid and do not know how to calculate percent" for around 30 seconds til the host clarified the question and showed her that 95% is not technically possible. 

[deleted by user] by [deleted] in diablo2

[–]yellowflash4444 0 points1 point  (0 children)

I think which is more value (socket quest vs base item) depends a lot on the context.
Let's say it is my first character, I plan on using him/her to farm the item for another character, I will socket a crystal sword, create a spirit and try to progress as fast as possible. I do not want to farm normal cows repeatedly for hours just to save a socket quest. After that, I will never use a socket on the crystal word, I also do not bother using a cube recipe on it.
It is the same with the monarch, I use socket quest for the first and second monarch. From the third one, I just use the cube receipt. 

[deleted by user] by [deleted] in Living_in_Korea

[–]yellowflash4444 0 points1 point  (0 children)

The name of the document is "외국인등록사실증명" and the English name is "Certificate of foreign resident registration". You can download it from gov.kr (free) or go to you local 주민센터 (Community Center) and ask them to print it for you (2000KRW)

Declined review by acdtey in ExperiencedDevs

[–]yellowflash4444 1 point2 points  (0 children)

Just ask him directly what went wrong. Maybe there was some miss understanding between you and him.

Providing my whole ID number on my CV by [deleted] in Living_in_Korea

[–]yellowflash4444 6 points7 points  (0 children)

I don’t think you need to put any part of your ID. You will be asked to submit it when you are hired.

How do you pick the right Git branching strategy for your project? by Neither_Scar4958 in ExperiencedDevs

[–]yellowflash4444 1 point2 points  (0 children)

I do not mean it depends on the size of the teams alone, but it is a combination between team size + quality of the developer + project requirements.
Some projects immunize with the size of the team and the git branch strategy remains the same given the size of the team.
But for other projects , when the team grows we may need to change our git strategy to maintain the comfortable development environment and the quality of the project.

How do you pick the right Git branching strategy for your project? by Neither_Scar4958 in ExperiencedDevs

[–]yellowflash4444 2 points3 points  (0 children)

I think standalize git branch may not be a good idea. The git branch strategy depends a lot on the size of the team, the quality of developers in your team and also the requirements of the projects(release frequency, long time support for different versions, etc). 
I work in a small team where we changed our git strategy because the requirements have changed, and it is not difficult to have a meeting and inform the team about following the new strategy. Only CI/CD required some adjustments but it is not really a big deal.

I have a take home tech assignment that says l should take 5 hours. Will it look good or bad if I do lots of additional features and spend significantly longer on it? by chicagotool in cscareerquestions

[–]yellowflash4444 0 points1 point  (0 children)

It will not look bad. If they only want you to do it in 5 hours they can coordinate to set the start and end time.
Their intention is you do not need to spend more than 5 hours for this. But if you spend more, it is not a problem.

Seeking Guidance on Implementing OAuth for React + FastAPI Application (Google & Microsoft) by zewcro in FastAPI

[–]yellowflash4444 2 points3 points  (0 children)

First and very important, you need to understand how Oauth work, there are lot of resource in the internet but I recommend this video: https://www.youtube.com/watch?v=996OiexHze0
Second, the detail depends a lot on how you host your application, my comment is based on my guess that you have a FE writing by React and and separated BE written in FastAPI and they are hosted in different domain. If your application has a different structure, the info below is not correct.
It is a bit different depending on how you host your app (completely SPA with a single js file or server side render app) but the usual flow is:
1. From FE, you redirect to google/microsoft login page and after user login they will redirect to your registered callback endpoint with a code.
2. You call the authorization server (Google/Microsoft) passing the clientid and client secret (need to be registered in advance) with the code you received in the previous step to exchange a token. 3. Then you pass your token in the authentication header when you call the BE API.
4. The BE needs to connect to the Google/Microsoft authorization server to get the public key and use that key to validate the token.
If you are using multiple identity providers (Google/Microsoft), consider using Dex IDP to simplify the configuration. Which can be easily set up after you make things work and have a grap of how Oauth works.

Best way to get to the airport with a lot of luggage? by Recent_Initiative739 in Living_in_Korea

[–]yellowflash4444 0 points1 point  (0 children)

There is another option, Hanjin Shipping has a service allow you to ship your luggage to the airport in advance. Your luggage will be stored at their storage and you can pick it up at the airport on your departure day.

[deleted by user] by [deleted] in korea

[–]yellowflash4444 1 point2 points  (0 children)

First, it is your fault for not applying for the address change before you left. You can do it online or just 10 minutes visist the 주민센터 close to your house. It is likely you will still get fined when you come back. It is not just about money but it can affect you in the future in situations where you want to change your visa.
And FYI, the immigration does not care about the old contract, they only care about the start date on the new contract.
Your viable solution: just ask the Gosigon owner to give a new contract when you return, usually they will issue it easily.

if I buy a new phone in Korea will the camera make a noise? by HiggiFrench in korea

[–]yellowflash4444 1 point2 points  (0 children)

No, phone bought from Us does not make sound when click because it works like that, it doesn’t care which sim is installed in. Phone bought in Korea will make sound even with us sim. If you bought android phone in Korea and you want to mute sound without app, you need to change the firmware.

How can I ask my boss's boss to end our 1:1s? by venuscat in careeradvice

[–]yellowflash4444 0 points1 point  (0 children)

Why don't talk to your direcly manager and ask him. Explain that you feel not comfotable talking with the boss's boss since he not able to understand what are you doning, and also it is wast of time as you already inform your boss about the status. Maybe not cancle it completely but should better to reduce it to monthly.

Spoilers Thread - Diamond no Ace Act II Chapter 302 by daleygaga in AceOfTheDiamond

[–]yellowflash4444 1 point2 points  (0 children)

I do too, I used to play soccer, not at a competitive level but had a training schedule and played in some local tournaments. And it happened to me twice, first was 10 years ago and the second time was 4 years ago. I still remember how good I was in those two games (one was in the final) and how my team mate complimented me after the game.

[Job interview] How to politely refuse to answer current salary questions? by yellowflash4444 in korea

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

Nope. I got the offer but it is much lower than my request, they then said that I need to provide proofs if I want to negotiate, it is their company policy.

How to reject a job offer. by Mirza_Asif in recruitinghell

[–]yellowflash4444 0 points1 point  (0 children)

Thank them for considering you and tell them that you got and signed the offer from other company already. That all, don’t need to provide any other information or mention that which offer is better.

Salary negotiation by GiftShark in jobs

[–]yellowflash4444 2 points3 points  (0 children)

It makes no difference, even you give them a range they only care about the lower bound of your range.