Posts

Notes on moving some AppData folder contents from C drive to D drive (Windows)

Last updated on 9 Nov. 2024 This post captures some of my current as well as old notes in this regard. Note that the overall intent is to free up more disk space on C drive (system drive). 9 Nov. 2024: Is it safe to delete AppData\Local\Temp?,  https://superuser.com/questions/571901/is-it-safe-to-delete-appdata-local-temp , March 2013. : "Yes, you can. Windows already does it for you when you use the Disk Cleanup tool (cleanmgr.exe) and select the Temporary files checkbox." ... But when I tried to do so, Windows reported that it has removed "Temporary files" but going back and then coming again showed that "Temporary files" has not been deleted. Also, the Temp directory is not deleted and its contents seem to be same size as earlier. So I attempted to manually move all Temp directory contents to another Temp directory I created on D:. Barring few files that seem to be used by Chrome instance that was running, all other files got moved. C: AppData Temp siz...

Moving Github Desktop directory from AppData C drive to D drive (Windows)

Transferring Github to D drive #66767, https://github.com/orgs/community/discussions/66767 I chose to try out move of Github Desktop directory from C drive AppData\Local to D drive AppData \Local. Note that it has all the program files and packages. Then I ran the program from D drive AppData \Local. It seems to work!  This has freed up significant amount of disk space in C drive.

Moving Postman directory (AppData) from C drive to D drive (Windows)

Changing location of Postman's data directory, https://stackoverflow.com/questions/51135010/changing-location-of-postmans-data-directory I followed suggestion from above post's linked post - https://community.postman.com/t/installation-directory-windows/217/4 - to simply move the folder from C drive to another (D) drive. Ran Postman from D drive folder (AppData of Postman has the exe too) and it worked. Surprisingly running Postman from Start button also works though the icon doesn't show. Postman shows the old Collections and Requests data that I had saved. This has freed up significant amount of disk space in C drive.

Moving npm-cache from C drive to D drive (on Windows)

https://docs.npmjs.com/cli/v6/using-npm/config#cache https://docs.npmjs.com/cli/v6/commands/npm-cache Commands  Get cache path : npm config get cache Output: C:\Users\Ravi-user\AppData\Local\npm-cache Clear cache : npm cache clean Asks for --force to be used to delete cache. I used that. It reduced cache directory size (on C drive) from over 1 GB to 17.6 MB! Set cache path : npm config set cache=D:\Users\Ravi-user\AppData\Local\npm-cache No output but immediately after running: npm config get cache gave output: D:\Users\Ravi-user\AppData\Local\npm-cache So it seems to have done the job of changing the config info. for npm cache location. Need to see whether npm now works properly and uses this cache. Testing npm by copying src data of working React program -node-modules to temp directory and then running npm install in temp directory. The program's running slowly but is populating the new directory location (D drive) cache. It completed successfully. Then I could run the React prog...

Notes on React Native tutorial and using Expo on my Android phone to explore the tutorial

Last updated on 20 Apr. 2024 The official tutorial, it seems:  https://reactnative.dev/docs/getting-started  .  Provides a working web view and  "The code is live and editable, so you can play directly with it in your browser."  which makes it very interesting. The Android view is very slow as one has to wait in some "Account-based queue". I think this tutorial would be very worth it as even if I don't see the Android view (or iOS view) due to it being stuck in the queue, I get exposure to the coding and see the web view. So I may get a good feel of React Native by going through this tutorial. I followed the steps in 'Expo Go Quickstart' in Setting up the development environment,  https://reactnative.dev/docs/environment-setup to see if I could have a test React Native project shown on my Samsung M21 Android phone. I was successful in that! Key steps I followed were: Ran 'npx create-expo-app AwesomeProject' Opened AwesomeProject folder in VSCode...

Tutorial links for Bootstrap, Next.js, TypeScript and React Native

Last updated on 25 May 2024 Bootstrap Very interesting video with advice that struck me as quite sensible: Do You Really Need Bootstrap or Tailwind?,  https://www.youtube.com/watch?v=omWmWu1XO8U  , 8 min. 27 secs. by Lama Dev, March 2022 Bootstrap 5 Crash Course: https://youtu.be/Jyvffr3aCp0 , by Web Dev. Simplified, around 1 hr. 10 min, Aug. 2022 Covers a small website creation and so quite interesting: Learn How to Code Using Bootstrap 5 Tutorial 2023!, https://www.youtube.com/watch?v=g9b4LjYrsUQ , by Coding With JayBird, 19 mins., Mar. 2023 https://getbootstrap.com/docs/5.0/getting-started/introduction/ Use HTML CSS Support VSCode extension:  https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css  . Use instructions (.vscode/settings.json related) provided in above page for extension to pick up Bootstrap stylesheet classes. I used the same url of Bootstrap CDN that I am using in my pages checking out Bootstrap classes. Next.js Very fast ...

Blogger feed request to get posts updated in last x days includes posts published but not updated in last x days

I created a test post and published it. Immediately after publishing (without any updates being made to it), I used BFTB  app/program to view last 5 posts. The test post was listed at the top with an updated date-time which was 59 seconds after published date-time! But I had not updated the post at all - only published it. Here's the post output in the blog book (as text not HTML): Test post Published: Tue Apr 16 2024 12:08:00 GMT+0530 (India Standard Time) Updated: Tue Apr 16 2024 12:08:59 GMT+0530 (India Standard Time) Test post related to published date & updated date  --- end post output --- If this is the way Blogger handles all newly published posts which have not had an update, then if I choose to list default number of posts (25) updated in past 1 or 2 or 3 days, I should get all posts published or updated in the specified number of days (unless I have done lot of blog publishing/updates due to which number of matching posts is > 25 and in which case I can use u...