Fundamental Concepts of C++: Introduction to Variables

Fundamental Concepts of C++: Introduction to Variables

Variable Declaration Declaring a variable reserves a space in memory to store the value of that variable. The compiler requires that you specify the type of the variable when declaring it. C++ provides a rich set of built-in variable types and allows for user-defined variable types. For example, int is a built-in type that represents … Read more

Setting MySQL Case Sensitivity on Linux

Setting MySQL Case Sensitivity on Linux

1. Check If MySQL Is Case-Sensitive show variables like '%case_table%'; lower_case_table_names=1 (indicates it is case-insensitive) lower_case_table_names=0 (as shown in the image, 0 indicates case-sensitive) 2. Change lower_case_table_names Value to 1 (1) Since I am using the Baota panel, I can directly modify the configuration information Add lower_case_table_names=1 under [mysqld] (as shown below) (2) Modify /etc/my.cnf … Read more

C Language Naming Beyond ‘Hundred Family Surnames’: Discussing the ‘Hidden Rules’ Known Only to Experts

C Language Naming Beyond 'Hundred Family Surnames': Discussing the 'Hidden Rules' Known Only to Experts

In the last lesson, we used the metaphor of “Hundred Family Surnames” to easily grasp the basic rules of C language identifiers. We learned that names must start with a letter or an underscore, can be followed by numbers, but cannot use keywords. However, this is just the “beginner’s guide” to the art of naming … Read more

Treating Bugs as Features? Linus Torvalds is Speechless…

Treating Bugs as Features? Linus Torvalds is Speechless...

The Linux Kernel Mailing List (LKML) has erupted again. This time, it’s over an old issue that has existed for more than twenty years: Should file systems be case-sensitive? Linus Torvalds directly referred to it as a “huge mistake,” causing the technical discussion to explode. The issue originated from a patch for the Bcachefs file … Read more

GoLang HTTP Header Case Sensitivity Issues

GoLang HTTP Header Case Sensitivity Issues

Introduction Today, while using the http package in GoLang, I found that the case of the headers I set did not match what I passed in. Standards The HTTP standard states that HTTP headers are case insensitive. GoLang HTTP GoLang normalizes headers when setting them, capitalizing the first letter and the first letter after a … Read more