Posts

  • PHP Modernization Chronicles - PHP Version Upgrade Part 2

    In the previous post, I discussed the considerations for upgrading a code base to a new version of PHP and mentioned a couple of tools. In this post, I am going to go into detail about my approach and experience in upgrading the webERP project from PHP 5.1 to PHP 7.0.9.

    ...Read more
  • PHP Modernization Chronicles - PHP Version Upgrade Part 1

    In this post of the PHP Modernization Chronicles series, I am focused on the PHP Version upgrade. Upgrading PHP versions can be a project in itself depending on how many major releases are between the subject and target versions. This post discusses my thoughts, considerations, and tools for the PHP version upgrade step of my modernization project.

    ...Read more
  • PHP Modernization Chronicles - Installation

    This is my first real post in this series. My first steps were focused on just getting the project installed and running. Through this process, I learned some details about the application that will be important in the future modernization tasks.

    ...Read more
  • PHP Modernization Chronicles - Introduction

    I have been thinking about PHP modernization, and modernization of legacy code in general, for a while now. I’m taking the next steps to really get into this process. In this blog post series I will document my journey. I don’t know how many posts will be in the series or how long it will take to complete, so it will just continue to evolve as I go. This post is a brief introduction to the series and my plans.

    ...Read more
  • Open File With External Program From Vim

    I am currently working on some workflow and tools to be able to spend more time in a terminal and on the keyboard instead of window swapping and mouse clicking. I have a Windows laptop, but heavily use Cygwin. One of my goals is to be able to manage all aspects of a project within a terminal. Part of working in a project is navigating the folder structure and opening documents. To replace Windows Explorer, in my terminal setup I am using the NerdTree and CtrlP Vim plugins. This works great for most files, but I ran into problems trying to open .xlsx and .docx documents. This post is about how I overcame these problems with some custom vimscript and configuration for these vim plugins.

    ...Read more
  • Quick Clone Function for Fast Access to Code -- No Clean Up Required

    If you’re like me, you probably work with multiple code repositories. I have around 15 repositories that I might need to access on any given day and about that many more that could be accessed less frequently. Keeping a clean development environment with all of these repositories can be a challenge. Managing the clones of repositories you are actively working on is one thing. But, when adding on all the ad-hoc clones made for short impromptu review or discussions with team members, the housecleaning effort is compounded. In this post, I’ll share a simple bash function to quickly clone a repository for temporary usage and automatically clean it up for you.

    ...Read more
  • Autocomplete Anything in Bash

    One of the great features of the bash shell is autocompletion. It is most widely used for file system path completion. It saves a ton of typing when navigating the file system. Type <tab><tab> and get a list of files and directories. Type a few characters and type <tab> and BOOM no more typing required. In this post, I’ll show how I enabled autocomplete for a custom shell function.

    ...Read more