Posts

Check Windows DRIVE Disk space by Folders in POWERSHELL

Image
 Recently, my C Drive is getting almost full,  So I wants to know which folder is occupying how much space. The easiest and fastest way is to run the command in powershell To check how much space each folder in your C:\ drive is using, you can run this PowerShell command: Get-ChildItem -Path C:\ -Directory | ForEach-Object {     $size = (Get-ChildItem $_.FullName -Recurse -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum     [PSCustomObject]@{         Folder = $_.FullName         SizeGB = "{0:N2}" -f ($size / 1GB)     } } | Sort-Object SizeGB -Descending Tips: This might take a few minutes depending on your disk size and number of files. You can also run it for a specific folder like C:\Users or C:\Program Files by changing the -Path parameter.

Tavily web search using Langraph agent

Image
 Hi, In this post, we will see how to do tavily web search using langraph  1, Run the below command to create a new repository and initiating a new project. mkdir langgraph-agent cd langgraph-agent npm init -y 2, Run the below command to install dependencies # runtime npm i @langchain/core @langchain/langgraph @langchain/openai @langchain/community dotenv # dev tooling npm i -D typescript tsx @types/node 3, Create tsconfig.json  {   "compilerOptions" : {     "target" : "ES2022" ,     "module" : "NodeNext" ,     "moduleResolution" : "NodeNext" ,     "esModuleInterop" : true ,     "forceConsistentCasingInFileNames" : true ,     "strict" : true ,     "skipLibCheck" : true   } } 4, Update package.json file 5, Create .env file in the root of the repository and update the open ai api key and tavily api key 6, In root of the repository, create a new file named agent.mts and paste the ...