Posts

fzf - Find CLI Application and Execute

Run the Application when Found

When you have an application you wish to search for that you know starts with a certain letter, you type the letter into your Bash shell and press tab to display all the suggestions. Most likely, there will be more applications than one would be able to identify readily by eye.

To make the task of finding your application easier, one can use fzf to perform real-time filtering of your application search.

Categories: #fzf
Tags: #cli-tools
PySide6 and Matplotlib - Simple Line Plot

Fill a Window with a Graph

The PySide6 library offers Python bindings for Qt which is a C++ cross-platform UI library. Qt has been in development for a long time and this will give a stable and mature platform for developing desktop applications. PySide enables one to leverage all the packages from the Python community while using QT. The Python graphing library, Matplotlib, becomes a naturally pairing with the QT library because Matplotlib provides integration options.

Categories: #python
Coqui STT - Extract Words from Audio Files

Speech to Text CLI Tool

There could be a time when you were listening to a podcast, but you can not make out the spelling of a word that you would like to understand. If there was a way to add a 'live-caption' feature to your podcast, this will inform you of the vocabulary that you are missing. To get remedy this problem, you can use a Speech-to-Text tool to output the transcript of the audio.

You might also want to convert an audio file to text if you are able to read quicker than you can listen to the audio file.

Categories: #shell
Tags: #cli-tools
forgit - Git with fzf

Fuzzy Finder for Git Commands

The real time fuzzy finder tool fzf is a good tool to perform searches for files as well as filtering output from other command line tools. This tool complements Git really well due to the fact git has a master-detail workflow view. When you are looking at a commit log (master), you want to look at the file changes (details) for that commit.

Categories: #git #shell
Docusaurus - Basic Config

Documentation-centric Changes

Docusaurus is a JavaScript framework documentation generator. This tool provides many useful conveniences such as documentation versioning and search integration. Docusaurus gives you the ability to quickly get a working documentation site running by using a config-based means of manipulating your settings for the site. Even though it is config-based, one can drop to a lower level by changing JavaScript and styles files in the src source to make custom changes to your site.

Categories: #JavaScript #documentation
Using Ava with Testdouble

Example of a Simple Test Case

Ava is a unique testing framework in that it is one of the few testing frameworks out there that recognizes observable resolution. It also makes asynchronous testing the default option when you write tests ensuring better performance. Another nice feature of Ava is that it has a nicer assertion output display.

Testdouble is an assertion library which specializes in create 'doubles'. Testdouble is different from Sinon because Testdouble will replace the function outright for which it is substituting when mocking out a function or object. It also makes it easier to track using a 'sandbox' API to alleviate the user from having to restore an original replaced function.

Categories: #JavaScript #testing
Tags: #NodeJs
JavaScript - Querying Objects

Data Querying

As JSON/JavaScript objects are heavily relied upon means of accessing data, it is crucial to quickly retrieve certain pieces of information within the object quickly. For simple objects, a couple of loops will suffice in honing in to the exact detail, but most likely, the general object will be more complex.

Categories: #JavaScript