Taking Bun JavaScript runtime for a spin

Taking Bun JavaScript runtime for a spin

Bun has made a big splash on reaching version 1.0. It is so much faster than Nodejs and provides enough compatibility with Nodejs to get most people interested. One of the key design decisions that helped Bun achieve this outstanding performance is to bundle all the tooling required for a typical JavaScript project into a…

Read More Read More

nnn file manager: Developed plugins for integrating with MacOS clipboard

nnn file manager: Developed plugins for integrating with MacOS clipboard

On the Linux platform, the drag-and-drop plugin enables nnn to work with other GUI applications like Email, Slack, Finder etc. but no such option is available for MacOS. This limits the usability of nnn on MacOS. I have implemented two plugins to support file copy and paste from a MacOS clipboard. This will help share…

Read More Read More

Setup ‘finder’ plugin for nnn Terminal File Manager on MacOS

Setup ‘finder’ plugin for nnn Terminal File Manager on MacOS

The finder plugin integrates the find command with nnn Terminal File Manager but out-of-the-box it doesn’t work on MacOS, throwing a bunch of errors. Upgrade Bash The first problem is the mapfile command not found on MacOS. This is because of an older version of bash installed on MacOS by default. Typically, bash version 3…

Read More Read More

Setup nnn Terminal File Manager on MacOS

Setup nnn Terminal File Manager on MacOS

nnn (n3) is a text-based file manager for the terminal. It is a significant improvement over ls and cd for moving around the file system. Execute the following command to install nnn. If you don’t have brew, install it first. It is highly recommended for Package Management on MacOS. For other ways of installing nnn,…

Read More Read More

Delivered a talk on Generative AI and Retrieval Augmented Generation at CfB

Delivered a talk on Generative AI and Retrieval Augmented Generation at CfB

RAG (Retrieval Augmented Generation) is an AI technique for Large Language Models (LLM) to extract answers from an external source. It helps mitigate the problem of hallucinations and provides more accurate and up-to-date responses. Recently, the committee of Ballarat held a session, “Leveraging the AI Opportunity”, as part of their Insights forum. I delivered a…

Read More Read More

Released svelte-lexical 0.3.1: Upload images

Released svelte-lexical 0.3.1: Upload images

It is a minor release including few bug fixes and minor enhancements. We have to ability to upload images now, earlier images could only be added using a URL. Another enhancement is the ability to use collaboration in nested editors like image caption. Here is a demo: Change Log:

Released svelte-lexical 0.3.0: Code blocks and link editor

Released svelte-lexical 0.3.0: Code blocks and link editor

svelte-lexical version 0.3.0 is out with a lot of new features and bug fixes. Now, we can insert code blocks. They support keyword and syntax highlighting in 14 different languages. Also, there is support for code formatting using Prettier for HTML, JavaScript, CSS and markdown. Another focus area for enhancements in this release is hyperlinks.…

Read More Read More

Customise terminal prompt on Mac OS using Starship

Customise terminal prompt on Mac OS using Starship

Starship works across shells, so the customised prompt will apply across applications like Warp, Visual Studio Code and builtin Terminal app. 1. Install Fira Code Nerd Font code Fira Code Nerd Font enables us to show symbols in the prompt. It is also highly recommended for programming. Download link: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/FiraCode.zip 2. Change the font to…

Read More Read More

Type transformations in TypeScript: Removing functions from a type

Type transformations in TypeScript: Removing functions from a type

TypeScript is often quoted as one of the most loved programming languages (StackOverflow, 2022). I guess, what contributes to it is the ease with which TypeScript can be introduced in a JavaScript project and the benefits it bring like static type checking, null safety, better refactoring and IntelliSence support. Another aspect of TypeScript which I…

Read More Read More