Ramda is a powerful javascript library which I would love to use in every project I work on. It is so powerful yet simple and well formed, once you get the hold of it’s functions and when and where to use them, you would feel the power and simplicity and can potentially save hours of coding time. When I first started reading the official documentatation, I have to take some time understanding the functions and it’s use mapping to my existing knowledge coming from dot net LINQ and F# background.
When getting data from a REST service, it is common to serialize the data as JSON string. Parsing the data returned into a javascript object is easy with a simple eval. But when the data returned includes a date, then the JSON date format usually looks like 12 /Date(/Date(1426636800000)/)/ To convert this date to the standard date format for display to the frontend, we first need to extract the date part as below:
Problem: Most of the starters using Open XML starts by creating a Mail Merge alternative using Open XML SDK. A simple way to have some pre-defined text in the document/ template and replace it programmatically using the Open XML SDK. Solution: With a simple few lines of code one can use SDK to generate mail merged word documents from templates without having MS Office installed on the server. Also Microsoft strongly recommends using Open XML SDK over other methods for Server-side Office automation.