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

AMD vs ARM

ARM vs AMD When downloading Hugo. It gives the binary which we can place in PATH. This binary comes in 2 flavours for Windows: ARM AMD How to find your Windows Hardware is AMD or ARM …so that you can download the correct binary? Turns out its very simple: D:\mywork>echo %PROCESSOR_ARCHITECTURE% AMD64 D:\mywork>

October 22, 2022 · 1 min · Anant

CSRF basics

Also called CSRF / XSRF (Cross Site Request Forgery) When a malicious site can cause a visitor’s browser to make a request to your server that causes a change on server. The server thinks that because the request comes with the user’s cookies, the user wanted to submit that form. On every request to a site A, from browser, the browser includes automatically the cookies that came from Site A....

September 24, 2022 · 1 min · Anant