Skip to content

Tag: node.js

Arabic Text issue with PDFKit plugin

To generate dynamic PDF files, I’m using PDFKit. The generation works fine, but I’m having trouble displaying arabic characters, even after installing an arabic font. Also, Arabic text is generated correctly, but I believe the word order is incorrect. As an example, I’m currently using pdfki…

Excel PERCENTRANK.INC in Javascript

Is there an exact way to clone the PERCENTRANK.INC function of Excel in Javascript ? I wrote my own and also tried to use the following libraries – the results don’t always match. https://github.com/formulajs/formulajs https://github.com/malcolmvr/percentile-rank FormulaJS comes close to Excel&#82…

update two layer nested object based on the id

I have this structure in my Mother Model (this is a fixed structure and I just push cards or update them on these 3 array levels): The Objects inside cards.advanced array above are like: Assuming I have access to Mother model like this: How can we update a card object based on its id and the level it belongs …

How to send a message to a Channel on all Servers

I would like to send a message to all channels that are in all servers that are called “labycheck-shop” at 12 midnight. I have already tried this but it did not work: Answer This feature can turn out to be spammy on the Discord API, so you might want to keep that in mind I believe that you might b…