Advanced Git Commands and Workflow Optimization
Configuration
git config --global core.editor "vim"
Discarding Modifications
// Unstage files from the index
# Step 1: Move changes from index to working directory
git reset HEAD path/to/file
# Step 2: Discard changes in the working directory
git checkout -- path/to/file
// Restore a specific file to a previous revision
git checkout <comm ...
Posted on Sat, 25 Jul 2026 17:11:03 +0000 by LostinSchool
Connecting PHP to MySQL Database and Basic Operations
Connecting PHP to MySQL Dataabse
<?php
$serverName = "localhost";
$userName = "root";
$password = "root";
$databaseName = "mysql";
// Create connection
$connection = new mysqli($serverName, $userName, $password, $databaseName);
// Check connection
if ($connection->connect_error) {
die("Co ...
Posted on Thu, 23 Jul 2026 16:06:47 +0000 by ErnesTo
Simplified Kubernetes Installation Using Kubeadm
Kubernetes (K8s) is an open-source container orchestration platform used to automate the deployment, scaling, and management of containerized applications. Installing K8s requires tools to simplify and accelerate the process. This article explains how to install K8s using the most common tool, Kubeadm.
K8s Installation Workflow
The following is ...
Posted on Tue, 21 Jul 2026 16:24:40 +0000 by RossC0
Basic Concepts and Usage of Git
Git is a distributed version control system primarily used for tracking and managing changes to source code. It allows multiple developers to work on code simultaneously and provides powerful tools for merging and managing different versions of code. Below are the basic concepts and usage of Git.
Basic Concepts
Vertion Control System (VCS): Re ...
Posted on Mon, 20 Jul 2026 17:06:17 +0000 by Reformed
Connecting a Local Git Repository to GitHub
This guide explains how to initialize a local Git repository, configure user credentials, generate SSH keys, and link the repository to a remote GitHub repository.
Configure Git User and Email
Set the global Git username and email address. When connecting to GitHub, the email should match your GitHub account. The username does not need to be yo ...
Posted on Thu, 16 Jul 2026 17:29:54 +0000 by Hopps
Setting Up Jupyter Notebook Environment
Introduction to Jupyter Notebook
Jupyter Notebook is a web-based interactive computing environment that integrates code execution, documentation, and visualization. It supports live coding, mathematical equations, narrative text, and rich media output within a single document.
Core Components
Web Application: Provides an interface for authorin ...
Posted on Thu, 09 Jul 2026 16:31:01 +0000 by Gulsaes
Working with Arrays in Java
Arrays are data structures used to store multiple values of the same type in contiguous memory locations, each accessible via a zero-based index. They eliminate the need for declaring numerous individual variables when handling collections of data, such as storing grades for multiple students.
Declaring and Initializing Arrays
Arrays can be dec ...
Posted on Mon, 06 Jul 2026 17:50:20 +0000 by forgun
Master SQLite3 with Python in 5 Minutes
In today's data-driven world, databases have become an indispensable tool. Python, as a popular programming language, comes with built-in support for several databases, one of which is SQLite. SQLite is a lightweight relational database management system with extensive application in Python. This article introduces how to use Python to operate ...
Posted on Sat, 04 Jul 2026 17:37:12 +0000 by everogrin
Mastering Core Vue.js Concepts and Architecture
Initialization and MVVM Pattern
To initialize a Vue application, start by creating a DOM mount point and instantiating the Vue constructor. The ViewModel serves as the bridge between the data (Model) and the view (DOM). Below is a basic setup demonstrating two-way data binding using the v-model directive and interpolation syntax.
<div id="r ...
Posted on Fri, 03 Jul 2026 17:18:16 +0000 by christillis
Educational Codeforces Round 161 (Div. 2) - Virtual Participation Summary
Preface
At first, I was stuck on Problem A for 20 minutes, which was a bit annoying. Then I noticed that more people had solved Problem E than Problem D, so I went for E, but it turned out that D was actually more suitable for me.
Sorting Problems: Prioritize problems that can be solved fastest based on the effort required. (Order of answering ...
Posted on Fri, 26 Jun 2026 17:49:15 +0000 by mubashir