Skip to main content

Posts

vuejs setup error - ExecutionPolicy Unrestricted

npm\vue.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 + ~~~     + CategoryInfo          : SecurityError: (:) [], PSS      ecurityException     + FullyQualifiedErrorId : UnauthorizedAccess soluion:   Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

AXIOS : with JavaScript or TypeScript?

AXIOS : Promise based HTTP client for the browser and node.js  Axios is a   promise-based   HTTP Client for   node.js   and the browser. It is   isomorphic   (= it can run in the browser and nodejs with the same codebase). On the server-side it uses the native node.js   http   module, while on the client (browser) it uses XMLHttpRequests. or simply  Axios is a tool that can help simplify retrieving data when making API calls to a backend service.   Features Make  XMLHttpRequests  from the browser Make  http  requests from node.js Supports the  Promise  API Intercept request and response Transform request and response data Cancel requests Automatic transforms for JSON data Client side support for protecting against  XSRF Reason to use Axios with TypeScript: Because browser doesn't recognize the commonjs output, and failed to find the axios source code. Typescript only compile the ts code into js, bu...

AMD Ryzen 5 4600H vs AMD Ryzen 7 4800H

 AMD Ryzen 5 4600H vs AMD Ryzen 7 4800H ASUS TUF Gaming A17 Ryzen 5 Hexa Core 4600H  vs  Lenovo IdeaPad Gaming 3 Ryzen 7 Octa Core 4800H consider these two websites for detail: need to check RAM performance as well UserBenchmark: AMD Ryzen 5 4600H vs 7 4800H AMD Ryzen 5 4600H vs AMD Ryzen 7 4800H: What is the difference? (versus.com)

React Lifecycle methods and their purposes

React Lifecycle methods: constructor() getDerivedStateFromProps() render() componentDidMount()   A component is updated whenever there is a change in the component's   state   or   props . React has five built-in methods that gets called, in this order, when a component is updated: getDerivedStateFromProps() shouldComponentUpdate() render() getSnapshotBeforeUpdate() componentDidUpdate() In the  getSnapshotBeforeUpdate()  method you have access to the  props  and  state   before  the update, meaning that even after the update, you can check what the values were  before  the update. If the  getSnapshotBeforeUpdate()  method is present, you should also include the  componentDidUpdate()  method, otherwise you will get an error. the most reason for writing a method as a class property is when  the method will be passed as a callback, and you need it to always be bound to the instance . React lifecycle m...

Websites running on #Reactjs

Recently you've seen suggestions on your facebook to turn on dark mode and new facebook layouts. That's Reactjs, much popular these days and many companies are adopting React as frontend for fast developing of their apps and websites as well. Here are some of the name I found worth mentioning and I'll keep updating as I get to know.  Try to implement in your local react setup.  React Microsoft News Microsoft Outlook Microsoft Skype Quora Pinterest Zoom Grammarly BitTorrent Instagram Whatsapp - web cloudcraft -  after you login and enter your feed/activity page Formstack  Facebook - after you login and enter your feed page AG Grid kiwi - flight booking YTS shutterstock BBC Medium Apple Fullstack Cafe IBM Db2

Samsung M51 Review after 7 days usage, Pros & Cons.

  Samsung M51 Pros. Normal use battery stays for more than 2 days (48 - 52 hrs.)  - I keep internet ON during day time and I use mostly call and Instagram. Phone feels not so much heavy even it has 7000mAh battery (6800mAh can be used as mentioned in the settings too) I really like the animation - switching apps, cursor, hovering on words Double tap to sleep and wake up screen Wi-Fi calling and network calls are really good.  Glassy look and feel (scratches appear) Works well - meeting with Google Meet or Zoom, screen sharing too Latest security patches Video stability (sometimes more saturated) Charging - 115 minutes for full charge Brightness is really low even if you don't use night time filter Dolby Atmos - Sound is Samsung. Speaker - clear and loud Cons. Picture quality not so good, I shot few with 32MP settings, not so details  Battery feels like 5000mAh - 6000mAh Phone heating issue when I use Skype, Microsoft Teams, audio and screen sharing (Microsoft should ...