Sending a file from a server as a request to another server. Seems like a pretty common scenario. If the file is large, I consider it an anti-pattern most of the time, but there are cases when there is no better choice. Especially if the top management in your 'agile' team are just concerned about delivering a product to the client asap without considering the possible issues that would arise from not compressing such huge payloads, let alone allotting developers in the team the time to solve such problems. But this post isn't a rant about how several 'certified' practitioners of agile methods apply the opposite of the patterns they were supposed to have learnt. Without further ado, let's begin. Axios is a popular promise based HTTP client. When sending a file like a pdf as a request to another server which might expect the file in the files array of the request, you will also have to use FormData , which does not have native support in Node.js. Here's a s...
The coronavirus has affected all of our lives adversely in some way or another, unless you've been living under a rock of course. In which case I'd advise you to go back and stay there. Attain nirvana or something. Anyways, one thing the virus has taught a lot of people is the need for financial awareness. We've seen a wave of amateur retail investors in the equities market booking nice profits. I was lucky enough to be one of these people. I remember the first day I opened my demat account and threw all my life savings into the most random list of companies. I had a 20-spread portfolio and was proud of what I'd done, even though I was completely clueless about the financials of those companies. I started the game as a reckless gambler out of sheer boredom. Based on a bunch of videos and articles I read, I came to the conclusion that holding was the way to go. So I held this through red and green for about 2 months. Meanwhile I kept learning more about the markets onlin...
Being a student forced to sit through monotonous classes for more than 7 hours per day, 6 days in a week, it helps to find innovative ways to kill boredom.. without attracting the attention of the "demon" lecturer, of course. I collaborated with my deskmate to make a story supplied with lines alternating back and forth between us. This is the mess I got in my notebook as a result: Once,there was a man. There is a man notorious for his demonic disposition. His name is ( insert your choice here). He has the power to manipulate other beings....by making them sleep! ( you don't say~ ) He can manipulate shadows and create nightmares while his victims sleep ( my friend's an avid Naruto fan.. ). He had a best friend, ( insert second demon, preferably a demoness). She can manipulate memories. When they met, she had nightmares about her memories and he had memories of his nightmares. It was love at first sight! Together, they took control of ( your college here). Nowada...
Comments
Post a Comment