Skip to main content

My Repositories

I

n this article we provide links to some repositories which uses xDebug in Dockerized containers.

Dockerized xDebug

Simple PHP App:

ssh://git@ubuntu22:10022/php/php_xdebug

PHP 8.0

Symfony PHP App:

ssh://git@ubuntu22:10022/php/php_setup

PHP 8.2

Symfony PHP Swish App:

ssh://git@ubuntu22:10022/php/swishtwig

PHP 8.2, SQLite

VMware workstation player - resize Ubuntu partition size

I

was running a small server on my Ubuntu HPE server where I have installed couple of small virtual machines (of Ubuntu 20.04) using VMware workstation player 16. One day I ran out of space on my one virtual machine.  I spent couple of hours and read around by googling here and there. There were many articles and every one was explaining their ( little bit different method). In my case none of them were fully compatible with my situation and therefore I felt the need to write this article.

In this article we walk through all the steps needed to successfully resize disk volume of an Ubuntu virtual machine running on VMware workstation player 16.

Although we have tested this using VMware but it should work ideally for any virtualization technology like virtual pc, virtual box etc because the actual key commands involve gparted & ubuntu. 

The commands or tips related to VMware workstation might be a bit different from other virtual softwares but the idea is the same.

These are the steps that should be followed.

  1. Increase the disk space for your virtual machine using VMware workstation player.
  2. Downloading gparted iso file
  3. Increase the boot menu display time for virtual machine
  4. Bring up the bios setup of your virtual machine & boot from CD (gparted iso file)
  5. Using the gparted tool to increase the volume to cover the available space
  6. Booting into your virtual machine and running the magical commands
  • 1. Increase the disk space for your virtual machine using VMware workstation player.

  • 2. Downloading gparted iso file

  • 3. Increase the boot menu display time for virtual machine

  • 4. Bring up the bios setup of your virtual machine & boot from CD (gparted iso file)

  • 5. Using the gparted tool to increase the volume to cover the available space


Using submodules in Git

I

n Drupal and all other frameworks it is likely to use sub modules. I spent several hours to use submodules in git. I was unable to find an easier way to pull all sub modules. There are dozens of articles on google and stackoverflow, but non works as expected.

In this article I will explain the process and a simple script to use with git sub modules and save you a lot of time.

  1. Copy .gitmodules from root to directory `web/modules/custom`
  2. Run inside custom/ 
    cat .gitmodules | grep url | cut -d'=' -f2 | xargs -n1 git submodule add

     

Problem Solving

W

e daily solve our problems by going & consulting an expert of that domain area. For example we go to a doctor if we get sick. The doctor solve our problem (illness) by doing a series of tasks. The first task is to understand the illness and to do so the doctor takes several laboratory tests and other methods to understand your disease correctly; this process is usually called diagnosis. Once the illness is diagnosed/understood from the reports of laboratory tests, the doctor is then able to give you the precise medicines, and this process is called treatment.

Like wise we solve software problems also. According to some studies the process of any research is actually derived from medical research.  In the world of simplicity medical diagnosis uses different techniques & tools to understand the problem. Therefore taking this analogy into consideration there should be a concrete technique in software development to understand the problem correctly.

To the best of our knowledge these techniques & tools have not been described in any software engineering literature. Although there exists different methodologies (SCRUM. SAFE, Spotify etc) which focus on how to manage the different work units and may be add some reporting on top of  it to track the performance.

We don't understand the software problem in terms of any thing, we just write specifications or user stories; but is there any formal practice in any methodology in vogue that could be used to diagnose the problem. After taking the user requirements it is divided into bunches of work where every body try to solve it without really understanding it. In other words we simply convert business logic or requirements into software code. 

There is not really any tools where we can measure and identify the software problems and then provide some remedy. Let suppose a senior doctor asks a junior doctor about the reports of the patient, the junior doctor will perhaps tel about a severe temperature. But how does the senior doctor believe him, as he may do a mistake; well from the reports ( readings ). Here we simply focus on concrete measurements that could really define a problem. At one place the problem is defined by patient e.g he says severe headache or other pain but these are only symptoms which should be put in scientific tools to determine it correctly.

Let comes to the point of software development, the problem is usually defined by your client but defining & understanding it ( technically ) are different things. When we write use stories or requirements specifications, after that the real process of understanding and analyzing starts. Here we need those tools & techniques that are used in Doctors analogy. 

In this article we will provide some concrete tools which copewith these problems in the software world.

 

How to

H

ow to do something in a neater and smarter way is ideal for professional development. In programming one problem can be solved in many ways but using the better & recommended way is an asset to know about.

In this section we will show how to do the most important and useful tasks in Drupal development. These approaches are gathered from open source community and Drupal core.

  • Alter existing route