Posts

Notes on exploring Windows command to list folders modified in past x days excluding specified folders like .git and node_modules

Last updated on: 5 May 2024 The number of folders and files within .git and node-modules results in long output of Windows commands like: forfiles /S /C “cmd /c echo @path” /D 30-04-2024 Ref: (My post:) Searching for files modified in a period in Windows Explorer and in Command Line . That makes commands like the above unviable for project folders using Git or Node Package Manager (npm). I should be able to exclude folders like .git and node_modules (and .next for Next.js projects) at least in the output but ideally in the recursion itself. To that end, I did some exploration which is so far unsuccessful but hopefully may become successful in future. This post is capturing the notes of my exploration so far. ================= Using batch file to list files created or modified in the last 7days Ref: https://stackoverflow.com/questions/73723028/using-batch-file-to-list-files-created-or-modified-in-the-last-7days powershell -nop -c "(dir -recurse|where { ((get-date('3.05.2024'

Notes on Docker and Kubernetes

Nice short video about docker concepts: 100+ Docker Concepts you Need to Know,  https://www.youtube.com/watch?v=rIrNIzy6U_g , 8 min 27 secs by Fireship, published in March 2024.  Nice short video about Kubernetes: Kubernetes Explained in 6 Minutes | k8s Architecture,  https://www.youtube.com/watch?v=TlHvYWVUZyc , 6 min 27 secs by ByteByteGo, published in Jan. 2023.

Notes on Low Code Dev. Platforms

I am interested to know how to quickly provide small to medium size web apps. In that context, low code and no code development platforms seem to be quite fascinating. But there seems to be a plethora of such development platforms! And the pricing for many seem to be based on per user which I presume is users using the app. That may be a big tripping point for many small organizations especially charitable organizations. One doubt I have is that if some of these low code dev. platforms are great then why all this buzz about MERN stack, Ruby on Rails etc. Instead the buzz should be about few of these dev. platforms that are great. I think I will get some idea of the answer only after I explore some of these low code dev. platforms myself. Plan to do that sometime in the near future, time permitting. ===================== 7 Best Low Code Development Platforms in 2024 [Full Software Demo], https://www.youtube.com/watch?v=NHcY7VetK10 , 15 min. 17 secs., published by Business Solution in F

BFTB App: Current CSS code and tests to minimize appearance of horizontal scrollbar in blogbook window

Last updated on 29 Apr. 2024 In  Blogger Feed To HTML Book App  (BFTB), the updated key CSS code (as of 28 Apr. 2024) in blogbook page to minimize appearance of horizontal scrollbar in blogbook window is as follows (blogbook is the class used by body element; body element has one main element and two script elements; main-book is the class used by the main element; blogbook page source code ):       .blogbook {         padding-left: 20px;         padding-right: 20px;         display: flex;         align-items: center;         word-break: break-word;         word-wrap: break-word;       } ...       .main-book {         max-width: min(100%, 1200px);         margin: auto;       }       .main-book img {         max-width: 100%;       }       .main-book a {         margin-left: 0 !important;         margin-right: 0 !important;       }       .main-book pre {         overflow-x: auto;         white-space: pre-wrap;         word-wrap: break-word;       }       .main-book span {         white-s

BFTB App: 640px width image contained in anchor element with margin results in max-width of 100 percent on img element showing horizontal scrollbar for 700px window width

This post currently simply captures some notes I have made on this issue and one solution for it. These notes are not organized. Time permitting I will try to improve organization of this post. For images with 640px width specification in a blog post, in  Blogger Feed To HTML Book App  (BFTB) when blogbook page CSS has a 'max-width: 100%' declaration for img elements, the blogbook page shows a horizontal scrollbar at window width less than around 700 px. If the blogbook page CSS declaration for img elements is changed to 'max-width: 90%', the horizontal scrollbar appears at only below around 160px width! Ideally the app. should not show horizontal scrollbar at 360px and above as then the app. will display in most mobile portrait mode screens without horizontal scrollbar. Earlier I did not have time to investigate why exactly the above was happening, and so was going with 'max-width: 90%' in the BFTB app. Recently I spent some time to investigate the issue and th

BFTB App: Rare error on creating new window followed by calling JS function of window.opener to write to new window; Related test program

Image
Last updated on 26 Apr. 2024 26 Apr. 2024 Update I think I now understand when such errors could happen. window.opener may be non-null but not the index page! I am not sure of the exact conditions when that can happen. But I think it can happen. I did some tests on localhost and I think I was able to recreate the same error but do not have the clear sequence of my actions. If window.opener is not null and not the index page then there may not be a updateBlogbookPage() function in it and so this error would happen. I am testing out various possibilities using a test project. I think the solution lies in naming the index page window and then checking whether the window.opener.name is the name of the index page window before invoking updateBlogbookPage() function. Error conditions and associated key log statements Background: https://developer.mozilla.org/en-US/docs/Web/API/Window/open states "If the browser successfully opens the new browsing context, a WindowProxy object is return

Notes on showing only current directory name in VSCode Terminal window prompt on Windows

Last updated on 26 Apr. 2024 Quick-Info : To show only cur-dir in a particular VSCode Terminal: Run following command in terminal: Function Prompt { "$( ( get-item $pwd).Name )> " } In Powershell to retrieve function commands history, use: func[F8] ... F8 can be pressed multiple times to go further back in commands history ------- Sometimes my directory path for a VSCode project is very long and so when VSCode Terminal shows the whole path as part of its prompt, it is a distraction and tends to come in the way of viewing the terminal window contents. The notes below capture my efforts to solve the issue. So far, it is not fully successful.  Ref: Hiding the full file path in VSCode Terminal, https://anjikeesari.com/articles/hide-full-path/ But following above procedure to edit $Profile resulted in this error in VSCode every time I opened a Terminal window: . : File C:\Users\Ravi-user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded https:/go.mic