PHP

Use of undefined constant SIGINT

Recently, while setting up a FreeBSD laptop, I was configuring Phpactor as Language Server for PHP. The idea was to have it working in Vim through the YouCompleteMe plugin. While trying to start the Phpactor server, I received the following error (among others): Use of undefined constant SIGINT – assumed ‘SIGINT’ (this will throw an Error in a future version…

Continue Reading

Vim editor
Linux, PHP

Vdebug: Xdebug not showing full array contents

Have you ever tried to debug some PHP code in Vim just to find that Xdebug won’t show the full array contents? Fortunately the DBGP protocol allows you to set features for debugging, such as the max length of data that the debugger returns. You can set these features in the Vim dictionary g:vdebug_features, and they will be sent to…

Continue Reading

Bash terminal
PHP

Bash API Contract Testing

We have been doing some API development at work, and at one point we started evaluating tools for API contract testing. One of the explored approaches was drafting a bash script that glued some native Linux tools together in order to achieve the desired results. That’s how this tool came to be. It is a proof of concept (POC) used…

Continue Reading

Bash terminal
Bash

Bash: echo ignores here-documents

Well, not quite. I mean, if you are trying to use here-documents with the echo command in bash and it seems you are getting an empty line instead, the issue might be that echo is displaying only the first line, and it turns out to be an empty one. Consider the following example: $ echo < this is not >…

Continue Reading

vim-gutentags vimrc config
Short Articles

vim-gutentags ignoring exclude parameters from ctags

If you’re using vim-gutentags with Vim and struggling to exclude directories like node_modules, vendor, or themes from your tags file, you’re not alone—and the fix is simpler than you think. The issue usually comes down to one thing: path format mismatch. vim-gutentags expects relative paths in your exclude patterns, but many users accidentally use absolute paths, causing ctags to ignore the exclusions entirely.…

Continue Reading

PHP, Short Articles

Magazon WordPress Theme Error

Yo!, what’s up? I’ll post this here in order to (hopefully) save someone some time: If you happen to be using a WordPress theme called Magazon (even the latest versions), you probably found out that it’s broken. The issue gets worst as in latest version of WordPress it is not evident what the problem is because WordPress suppresses the error…

Continue Reading

Random

How People Change

While trying to get back in shape with some good habits, once again I grabbed a book that I started reading a while ago. It has been a very refreshing reading, as tend to be the case with books authored by Paul D. Tripp and/or Timothy S. Lane (you can add David Powlison here, as well) Allow me to share…

Continue Reading