Archives (39 articles)

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.

Invalid file mode error when deploying a Node.js application to Cloud Foundry

Find out how to get rid of Cloud Foundry `Failed: The resource file mode is invalid` issue.

Create a pull/merge request starting from your terminal

A quick tip on how to create a pull/merge request with the git CLI in your terminal.