Writing code is fun. Period. If someone tells you otherwise, they’re probably lying, frustrated, or gatekeeping (combinations are a possibility.). However, as any skill you can develop in life, you have to be conscious about the environment and the requirements of that particular environment.
When generating PDF files in NodeJS, one of the most used ways is to render them through Puppeteer. However, there is no standard way to change the filename on the Puppeteer side when serving the Buffer through Express (or any other webserver), in this post I explain how to change the filename by using appropriate HTTP headers.
For those times that I feel nothing but regret and anger, this post will be there for me. To remind me of conclussions, to remind me of my life, to remember my silly mistakes and to improve myself everyday from now on.
Last Christmas my uncle gave me this little book: Superintelligence: Paths, Dangers, Strategies, by Nick Bostrom, and it captivated me from the very first pages. As I kept reading, my understanding of “the big picture”, as it should be called, became clearly expanded. There is no other way to call this book as an eye-opening experience towards the imminent technical, moral and philosophical struggles within AI development that will occur during the following years (centuries?) and here’s my personal review about it.