When I compile my typescript app in local env, it compiles without errors, but in heroku, it gives JS Stack trace errors. Can someone give me any inputs regarding how to fix t...
How to I handle user authentication in microservice pattern? I have auth service which is will signin user and send a jwt to the client. I have set an expiration time of 5 min...
When I initially run ./main, the memory usage was nearly 1mb, when I uploaded a file of 10mb, the memory usage jumped to 30mb, and for the next consecutive file uploads, it ke...
Hi Devs, I have zero idea about front end, so I need your help here. I have a server, and when something is updated in the db, I want to show a popup in the front end. What do...
I have a method which i want to be available in global scope. Which can be called by global.signin(). I have this declaration declare global { namespace NodeJS { i...
{ "total": 1, "results": [ { "id": "1901", "properties": { "createdate": "2020-06-23T07:44:24.624Z", "e...
It is suggested to return fmt.Sprintf("cannot Sqrt negative number: %v", float64(e)) to avoid infinite loop, but can someone explain why this happens?
I want to process some large data from an API and post it to another API, the amount of data can be very large. 10000s of data. I was thinking of using a CRON job which would ...
im trying to spin a project using TS, but im flooded with ways to run the code on prod and dev. For prod I can use concurrently "tsc" "node dist/index.js" or ts-node src/index...
One of my juniors asked me this... In which of the following circumstances will a multithreaded application fail? One CPU, with multiple cores Multiple CPUs, each with multi...
Any elegant way to get the url from <https://mythio-store.myshopify.com/admin/api/2020-04/customers.json?limit=3&page_info=eyJsYXN0X2lkIjozNzE5OTk3NzE4Njg4LCJsYXN0X3ZhbHVlIjox...
In NextJS' documentation, https://kutt.it/T1OuV1 Why do they ask to not use fetch inside getStaticProps?
Why does type ErrNegativeSqrt float64 func (e ErrNegativeSqrt) Error() string { return fmt.Sprintf("cannot Sqrt negative number: %v", e) } Run into infinite loop?
In inversiy, how to inject the objects, which inversify can't produce? I have class Logger { constructor(level) { this.level = level } getLevel() { return this.level } } cl...
I stumbled upon some code in JS which had object perform some bitwise operation... I cant understand what it is doing tho, can someone explain what it is? let obj = { len: num...
I have a 10000 customer's data and I want to import this into SQLdb. But this data comes at a max size of 250 customers (paginated), I want to create an endpoint which will do...
function(...) { ... stdout.on("data", function(data) { output += data; }); ... return output; } if i return output, i get empty object. But when i print output inside stdo...
Hello guys! I needed help with my recyclerView. The list items width are set as match_parent and even in layout editor, it looks fine when i test it using tools:listitem. Earl...
When using ts in vscode, the formatter does the code formatting properly, but it doesn't add semicolon at the end! Any extension I should look into for this?
I have another doubt, I have a server side rendering app inside a pod, it needs to make a request to an api endpoint which is in other pod, how do I access that? I read that t...