Archives (41 articles)

Today I learned: How to suspend Vim temporarily, run some commands, and go back

Ever wanted to quickly get out of Vim to run some commands and jump back into it and resume where you left it? This post is for you.

Bash command chaining operators

Little Wiki entry about a few bash command chaining operators

Today I learned: How to log a JavaScript object with indentation to the console

Find out how to console JavaScript objects in a more readable form using JSON.stringify and its versatile space argument.

Today I learned: How to delete until the beginning of the line including the cursor in Vim

Learn about vim exclusive character motions and how to turn them into inclusive motions

Today I learned: How to show current buffer's path in Vim's normal mode

Learn the Vim shortcut to reveal the current buffer's path in the command line from normal mode.

Today I learned: How to style a <fieldset>'s <legend> element as display inline

Learn how to work around the dodginess of HTML <legend> tag to make it behave as it would be `display: inline` or `display: inline-block`.

Vim CursorHold autocommand error when opening command line window

Find out how to get rid of `Error detected while processing CursorHold Autocommands for ... E11: Invalid in command-line window...` issue.

Express.js error: Cannot set headers after they are sent to the client

Find out how to debug `ERR_HTTP_HEADERS_SENT: Cannot set headers` after they are sent to the client in Express.js server.

No match error when testing an Express.js controller doing multiple calls to a same backend

Find out how to solve `ERR_NOCK_NO_MATCH` error occurring when mocking multiple calls to same backend.

How to repurpose a 2006 Macbook into a Linux laptop

Learn how to install Lubuntu 16.04 on a 2006 Macbook.