Dimas Maulana

Dimas Maulana

Developer

Welcome to my website! I am a developer with a current focus on React and Go. My experience encompasses both front-end and back-end development, enabling me to design and develop seamless and efficient applications.

Solving Laravel HTTPS to HTTP Proxy Issue

When you’re dealing with a setup where a client communicates with an SSL load balancer over HTTPS, and the load balancer talks to a backend server over HTTP, you might encounter issues with Laravel generating URLs with an http:// schema. To address this issue, you can implement the following workaround:

Step 1: Modify routes.php

Open your Laravel project’s routes.php file and add the following code snippet at the top of the file:

Understanding Docker Run Arguments: -I, -T, and --Attach

When working with Docker, you often use various command-line arguments to customize the behavior of containers when they are launched. Three commonly used arguments are -i, -t, and --attach. These arguments are often used together, and they serve different purposes in controlling how your container interacts with the terminal and user input.

-i - Interactive Mode

The -i flag stands for “interactive.” When you include this flag in your docker run command, it tells Docker to keep STDIN (standard input) open, allowing you to interact with the container’s command or application. Here’s what it means in more detail:

How to Force Select Text From a Screen Session on Terminal Mac

Sometimes, when you’re working in a terminal on your Mac and using the screen command to manage multiple shell sessions, you may encounter situations where you need to select and copy text from within a screen session. However, the usual text selection methods like click and drag may not work as expected within a screen session. In such cases, you can use the Fn key in combination with the Left Click to force select text within a screen session.

Make Google App Engine Local Development Server Available on Network

To make the Google App Engine Local Development Server available on your network using Maven, you need to configure the appengine-maven-plugin with the appropriate host and port settings. By default, the local development server runs on localhost, which means it’s only accessible from the same machine where it’s running. To make it accessible from other devices on your network, you should set the host to 0.0.0.0 to bind it to all available network interfaces.

Understanding the Difference Between Bug and Defect

In software development, the terms “bug” and “defect” are often used interchangeably, but they have distinct meanings that can impact how issues are categorized and addressed. To clarify the difference, let’s explore each term and provide examples for better comprehension.

Bug

A bug is a problem or issue in a software application that occurs as a result of a coding error. It represents an unintended behavior that arises from mistakes made during the implementation phase of development. Bugs can manifest as crashes, data corruption, unexpected behaviors, or any issue where the software does not perform as intended due to a coding mistake.

Removing Git History Commit

If you want to remove Git commit history and start fresh with a new branch while keeping your current files, you can follow these steps:

1
2
3
4
1. **Create a New Orphan Branch:**

   ```shell
   git checkout --orphan newBranch

This creates a new branch called newBranch with no commit history.

  1. Add and Commit Your Current Files:

    1
    2
    
    git add -A  # Add all files and changes
    git commit -m "Initial commit"

    This stages and commits all your current files to the new branch.

0%