Squid Username/Password Configuration
Configuring password authentication for Squid, a popular open-source proxy server, involves several steps. Here’s a basic guide on how to…
NPM Proxy / Registry Configuration
When working with npm (Node Package Manager), you might need to configure a proxy if you are behind a corporate…
Fixing gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
When you build cpp files on centos/fedora os, invoke gcc with the following command will through error: gcc: error trying…
ImportError: cannot import name ‘url_quote’ from ‘werkzeug.urls’
when you run your python app with flask and werkzeug packages, if the version do not match, it will through…
Configure socks proxy for Python pip
To setup a socks5 proxy for python pip, you need to install pysocks package, otherwise the following error will be…
Understanding goroutine in Go
The biggest feature of Go language is that it supports concurrency (Goroutine) from the language level. Goroutine is the most…
How to Read and Parse RSS Feeds with Rome in Java
Introduction RSS (Really Simple Syndication) feeds are a valuable source of information for both content creators and consumers. In the…
Read PDF file in java
PDF (Portable Document Format) is a popular file format for sharing documents. We will use pdfbox to read texts from…
How to read csv file in java?
To read a CSV file in Java, you can use the OpenCSV library, which is a very simple and easy…
Mastering HTTP Requests with WebClient in Spring WebFlux
Introduction In the world of web development, making HTTP requests is a fundamental operation. In this comprehensive guide, we’ll explore…
How to delete a directory and its sub directories in Java?
Introduction Deleting directories and their subdirectories is a common task in Java programming, especially for developers managing files and directories…
How to download and save file with apache httpclient in java?
Apache HttpClient is a robust and efficient library for making HTTP requests in Java applications. It provides a wide range…
Merge fine-tuned checkpoint with base model
if you have fine-tuned an open source model, such as llama or llama2 with lora or qlora, you can only…
Size Mismatch In Lora Fine Tuning
When you fine tuning a model with lora or qlora methods, the lora_r(lora rank) parameter is important, it will define…
Mastering Kubernetes VolumeMount: User Groups and File Permissions
Introduction Kubernetes is a powerful container orchestration platform that helps developers manage and deploy applications at scale. While it simplifies…
Extract sub-array from an array in javascript
You can use the slice() method in JavaScript to get a sub-array from an array. Here’s a simple example: In…
Configure Git Proxy With Socks5
To configure Git to use a SOCKS proxy, you use the http.proxy and https.proxy configuration options. Here is how you…
Setup ngx-translate in angular
In angular typescript, we can use ngx-translate for i18n, and ngx-translate-extract for extracting keys to generate multiple language file. i…
Configure Monaco Editor Language and Theme in Angular Typescript
In angular typescript environment, the vscode editor is integrated by ngx-monaco-editor, for how to install ngx-monaco-editor on angular typescript environment,…
Install and Setup Docker On CentOS Stream 8
Install and Setup Docker On CentOS Stream 8, the docker repo should be installed first, and then install it by…
Intergrate vscode editor in angular
To intergrate vscode editor in angular 13 typescript and above, ngx monaco editor should be installed. The following steps described…
Spring WebFlux Databuffer Limit
The default databuffer limit size in spring webflux is 262144(256K) bytes, and it is hardcode in Base class(BaseDefaultCodecs), When you…
Understanding sync.Map in Go
As we know that go provides a type of map that allows us to store key-value pair data, but if…
Kubernetes configmap guide
A ConfigMap is a Kubernetes resource that allows you to store configuration data as key-value pairs. You can use ConfigMaps…