Something Already Running on Port XXX

Ports and what they mean as a process: Sometimes working on react app, you run into issues like: Something is already running on port 3000. To handle this: For Linux/Mac OS search (sudo) run this in the terminal: $ lsof -i tcp:3000 $ kill -9 PID On Windows: netstat -ano | findstr :3000 tskill typeyourPIDhere change tskill for taskkill in git bash Source: referring to this SO: https://stackoverflow.com/a/45130296

February 25, 2023 · 1 min · Anant

New Git Bash Terminal From Existing

To open a new git-bash terminal from existing terminal: Set alias: alias git-bash='/git-bash.exe & > /dev/null 2&>1' Simply type git-bash into your already open git bash terminal now. to open a new git bash terminal. Also this opens the new terminal at the same path. Ref: https://superuser.com/a/1360806

February 25, 2023 · 1 min · Anant

Powershell ExecutionPolicy

When using suitecloud command from npm package (globally installed) on windows (powershell inside VSCodde), got the following error: File C:\Users\Anant\AppData\Roaming\npm\suitecloud.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + suitecloud project:deploy + ~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess On googling found the reason and solution: https://www.sharepointdiary.com/2014/03/fix-for-powershell-script-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system.html Summary: “Execution policy” of Windows powershell - was set (for some reason - default) to Restricted....

January 17, 2023 · 1 min · Anant

React Native Setup - Intro

Started with official documentation of React Native. Expo Go Problem 1: Network Response Timeout Error. Googled - found that had to change connection from LAN to tunnel: https://stackoverflow.com/questions/43593042/network-response-time-out-error-create-react-native-app-expo npx expo start --tunnel Saw that solution was to toggle this on a UI - but didnt find the UI (Metro UI) Problem 2: The Metro UI would not open in Browser. Found the reason: https://github.com/expo/expo/issues/19069 The Web UI was deprecated a while back....

January 16, 2023 · 1 min · Anant

Hydration

What is Hydration? As per wikipedia: In web development, hydration or rehydration is a technique in which client-side JavaScript converts a static HTML web page, delivered either through static hosting or server-side rendering, into a dynamic web page by attaching event handlers to the HTML elements. It makes the server rendered website fully interactive. Major frameworks like Next, Nuxt, Angular use it. Page load stages. (source: Fireship)

October 22, 2022 · 1 min · Anant