Categories
Terminal Tutorials

How npx / npm exec works

I was working with angular cli and wanted to run the local version of angular not the global version. The reason was to run the available angular migrations with the installed version of Angular. I reached for the following path. ./node_moduels/@angular/cli/bin/ng.js This is long and verbose. Finding the executable in different system is task on […]

Categories
Java Script Tutorials

You might not need lodash

This article is also available in Urdu I found a year old issue for my personal project that is to Remove lodash dependency I scanned the code to find following instances I am even using the es modules that are much more performant that common js and what not is out there. Let’s see how […]

Categories
Java Script Tutorials

Combine Two PDF Pages into One with variable width

This post is the extension to the previous tutorial. This tutorial add the width and height controls. User can change the width of embedded page and can visually see it’s impact on final PDF in realtime. Implementation We will continue with updating the HTML markup We have added the two inputs. One for width and […]

Categories
Java Script Tutorials

Combine Two PDF Pages into One with pdf-lib

I have this recurring need where we I have PDF of national Identity Cards. It has front side and back side. Both in separate pages. Most often than not I need to move it to single page PDF. This was it’s easy to print (thought print tool does this is without much trouble) and some […]

Categories
Opinions

When to use Signals in Angular – Decision Tree

The content discusses a problem with resetting and syncing cascading dropdowns in Angular, where changing a root dropdown unintentionally resets a third dropdown. The solution involved moving the reset logic to the linkedSignal, illustrated through a flowchart and decision tree outlining various signal handling strategies in React.