Reformat Date. Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st"}. Month is in the set {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}. Year is in the range [1900, 2100]. Convert the date string to the format YYYY-MM-DD, where: YYYY denotes the 4 digit year. MM denotes the 2 digit month.
read moreNebular is a UI libary from Akveo company for Angular. It can be customized for meeting your needs and has many components and visual themes. It also has authenticate and security modules. NgxAdmin is an admin dashboard built based on Nebular. NgxAdmin is also customizable. Key tip: I use isGranted() of NbAccessChecker from Nebular’s security package, canLoad and canActivate directive from Angular framework to achieve features inside this article. I
read moreModern web systems often require users to login first and then allow those, who are login successfully, start to use. If these systems are built with concept of single page application, it’s good to try Cypress for automatic UI end-to-end testing. The login is first one need to be solved for Cypress testing. Notice: The content of this article has been tested at cypress version 5.6.0, 6.2.0, angular version 6.1.10,
read moreMerge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists. Example 1: Input: l1 = [1,2,4], l2 = [1,3,4] Output: [1,1,2,3,4,4] Example 2: Input: l1 = [], l2 = [] Output: [] Example 3: Input: l1 = [], l2 = [0] Output: [0] Constraints: The number of nodes in both lists is in the range [0, 50].
read moreI have taken three weeks for reminding myself and learning again React.js with three playlists on YouTube since tail part of last February. I recommend the video channel: The Net Ninja. Following video contents are helpful for me and easy to understand concept of React. Hands-on projects are also easy to follow up by myself. These videos clarify questions, which are existing in my mind, and lower bar for learning
read moreMosquitto starts to support OCSP stapling since version 1.6(20190417). Online Certificate Status Protocol(OCSP) can be used to query a certicate from client to server whether it is still valid or be revoked. OCSP is an alternative way for Certificate Revoke List(CRL). One of pros of OCSP is no need to maintain large list same as CRL. Most part of cons is that few programs support it. Some well-known programs such
read more