Posts

Showing posts from October, 2024

Notes on quick 1st round of remaining part of John Smilga Node Express tutorial (after Tasks project)

Last updated on 4 Oct. 2024 2 & 3 Oct. 2024: Continuing from after Tasks project in John Smilga Express tutorial...Node.js Projects, https://youtu.be/rltfdjcXjmk?t=11235  (from around 3 hrs, 7 mins in the video). The next project taken up is the Store project. express-async-errors, https://www.npmjs.com/package/express-async-errors Most of the source code of the Store project is straight-forward and somewhat similar to Tasks project. However, controllers\products.js has fair deal of complexity as it uses the various query features of Mongoose find() with Query String params being the mechanism for specifying the query to the get route ('routed' to getAllProducts() method in controllers\products.js file). The code for string data query is simple. Numeric data query code is complex which is covered below in some detail. Chaining the find method conditionally with sort and select methods, and unconditionally with skip and limit methods is new in the tutorial. The await keyword

Biodata/résumé (simple) project related notes

Last updated on 3 Oct. 2024 Over past few days I am updating my (Ravi S. Iyer) biodata/résumé  - GitHub repo . Some notes related to the biodata source files/project are given below: How to load CSS files using JavaScript?, https://www.geeksforgeeks.org/how-to-load-css-files-using-javascript/ Get Query String Parameters with JavaScript, https://davidwalsh.name/query-string-javascript To force Chrome to discard cache for specific site/URL and reload page: Ctrl+F5 . I had to do this to get Chrome to show my latest biodata page hosted on github. Ref: clear cache for specific website in Google chrome, https://support.google.com/chrome/thread/16531954/clear-cache-for-specific-website-in-google-chrome?hl=en To save a web page (biodata, in this case) in colour as PDF in Chrome, check "Background graphics" option in Save As PDF dialog. Ref: Win10 - Is there a way to print a web page to PDF in color?, https://www.reddit.com/r/techsupport/comments/nlnw7s/win10_is_there_a_way_to_print_a