Gnu parallel basic usage
Introduction to GNU Parallel
parallel is a GNU utility that allows you to run processes simultaneously, sending them to different CPU cores, threads or even other hosts to be runned.
There are millions of use cases for this, and it is incredible useful when you need to process tasks that are CPU intensive or network intensive , or you are just...
Type checking in bash and correct argument handling
Type checking in bash and correct argument handling
I just want to write a quick tutorial, after stumbled with yet another stone in the path, so you don’t have to (although chances are that if you have landed in this article you may have probably looked for an answer already).
Bash is an sripting language, but its full interoperability outside...
Javascript Intermediate 16 - Using promises
Javascript allows concurrency in the sense that some functions can be executed and putted on the background , while they wait for some external process to finnish (send a message) such as I/O operations , network operations etc… .
Using promises will help and clarify the way we deal with asynchronous operations in a syncrhonous way.
Asnychronou...
Javascript Intermediate 15 - Recursive calling for asynchronous effects part 2
A callback function associated with an asynchronous code waits for its execution inside either
A callback queue
A microtask queue
Most of callback functions associated with an asynchronous code have to wait for their execution in the callback queue.
But some of callback functions with asynchronous code , like with the promises wait for...
Javascript Intermediate 14 - Recursive calling for asynchronous effects part 1
I am trying to do a clock handle spinning
It will tick in one of the 8 positions according to the clockhandle been 0 degrees 45 Degrees etc.. | / - \
The clock will spin a number of times (noSpins) in those 8 positions , taking from position to position a time in ms (delay)
Initially my function would have been
function clockSpin (noSpins , d...
Javascript Intermediate 13 - Nodejs debugging on the CLI
There may be thousands of libraries and utilities that allow you debug nodejs projects, but I am going to write few lines on how to do it using the node built-in tool.
Is not nearly as powerful as gdb , but using the right strategy to approach the process can clarifying as well as timesaving, as you wont be needing to install some other addition...
Javascript Intermediate 12 - Method chaining in Javascript
Method chaining is a programming technique to allow better readiblity and writeability of objects, that allow you to call any instance method of the same object on the return object of another instance method.
May be cryptic the definition, but lets see with an example.
You declare a Class , with some instance methods (we are going to use pseu...
Javascript Intermediate 11 - Traversing the Javascript standard-library Object Model
First of all there is not a clear definition of Standard-Library for Javascript as it depends on the context of execution that varies a lot , depending if you are running it on a Browser, or on a container such as node.js we will be using the later one.
The global object is binded to globaThis
So you can see all of the Global Objects derived fr...
32 post articles, 4 pages.