SOFTWARE

  Some Thoughts About Microservice Adoption

Nowadays microservice is very popular among companies with the increasing complexity of systems. The goal is to make each microservice to handle one specific job and handle it well. This normally would provide the benefit of maintaining the service easily and isolating errors and making the service more reliable and scalable.The benefits of adopting microservice are obvious.Maintainability. Decouple functions so that each function can be maintained separately which reduces the risk of issue caused by bug in other code which is not related to this function at all. It can be easily maintained by...

  2,782      0       ADVANTAGE DISADVANTAGE MICRO SERVICE


  How To Reset Git Repository to Remove Sensitive Information Committed Before

To reset a Git repository and remove all its history (such as to eliminate sensitive information from commits), follow these steps carefully. Be aware that this process is destructive and will rewrite the repository, so ensure this is what you want.1. Backup the Current RepositoryBefore making any irreversible changes, create a backup of your repository in case you need to reference the old data later.2. Create a New Branch Without History# Move to your repositorycd /path/to/your/repo# Checkout a new orphan branchgit checkout --orphan clean-historyAn orphan branch starts without any history.3....

  2,176      0       HOW TO GIT RESET SENSITIVE INFORMATION


  When no need 3 handshakes in TCP?

OverviewIn the previous article titled Why TCP needs 3 handshakes simple answers were provided to the following three questions:Can application data be carried during the first handshake?Can application data be carried during the second handshake?Can application data be carried during the third handshake?Briefly, traditional TCP requires a three-way handshake to establish a connection, and during these three handshakes, only simple SYN and ACK packets are sent.From the perspective of utilizing network bandwidth resources, the TCP header at the transport layer plus the IP header at the net...

  1,881      0       REASON NETWORK TCP EXPLANATION


  Why TCP needs 3 handshakes

Prerequisite KnowledgeFirst, let's look at the control bits and state machine of TCP, which form the basis for understanding the three-way handshake of TCP.TCP Packet Control BitsThe control bits in the TCP packet header are used to control the status of the TCP connection and can indicate various control information such as connection establishment, termination, reset, etc.There are six common control bits:SYN (Synchronize Sequence Numbers): Requests to establish a connection (part of the three-way handshake). It is set in the initial packet during connection establishment, indicating that th...

  101,621      2       REASON NETWORK TCP EXPLANATION HANDSHAKE


  Undoing Changes in Git: Working Directory, Staging Area, and Committed Changes

When working with Git, it's crucial to understand how to undo changes at different stages—whether in the working directory, the staging area, or after committing changes to the local repository. This guide walks you through the essential Git commands to effectively manage and revert changes, ensuring that your version control process is smooth and error-free.Modifying Files in the Working Directory but Not Yet Added to the Staging AreaWhen you make changes to files in your working directory but haven't yet added them to the staging area, you can easily discard these changes if needed.Dis...

  1,250      0       GIT RESET STAGING AREA UNDO CHANGE


  OT Railway System Development: How to Use PLC to Implement Land Based Railway Track Fixed Block Sign

Figure-00: Railway fixed block signaling system over view diagram, version v1.3 (2024)Project Design Purpose: This project aims to use Programmable Logic Controllers (PLC) with train detection sensors and train control signals to develop an automated OT system for railway track fixed block signaling control. The system will include a digital equivalent simulation to explain the logic of the track fixed block Automatic Train Control (ATC) mechanism for demonstration and training purposes. In this article, we will introduce the design of the block controller's electrical circuit, then demonstrat...

  834      0   


  GitHub Copilot may generate code containing GPL code

GitHub Copilot is a new AI-powered code completion tool that can generate code snippets from natural language descriptions. It is powered by OpenAI Codex, a deep learning system that has been trained on billions of lines of public code. GitHub Copilot claims to be a “copilot, not a pilot”, meaning that it is not intended to write code for you, but rather to help you write code faster and better.However, some developers have raised concerns about the legal and ethical implications of using GitHub Copilot. One of the main issues is that GitHub Copilot may emit code that is derived fr...

  8,113      0       GITHUB COPILOT GPL


  What are the Four Most Important Technologies Inside an Office, Today?

The office life has changed a lot since the beginning of the 21st century. Nowadays, technologies have taken over a large part of the work that people have to do, inside their walls. Some of them are more important than others, though. Here are four that no company should live without. A VoIP Phone SystemIf a company wants to communicate with its clients, it needs to install a centralized phone system. The old ones were complicated and costly. The more phone lines you had, the higher the monthly bill got. Today, VoIP phone systems have replaced the traditional ones, bringing in an era of ...

  3,052      0       SMARTPHONE VOIP 5G