Programing
In the 21st century, being able to use a computer doesn’t just mean you can browse the internet or write documents; it means you can command the computer, reduce repetitive tasks, and enhance productivity—in other words, it means knowing how to program. However, as this is not a blog for developers at the Shrimp Sushi Restaurant, it focuses on simple tips rather than detailed theories.
theory
- Types in Programming
- First-class Objects in Programming
- Meta Programming
- Programming Paradigms
- Reasons for using d and f in Integer and Floating-point Format Codes
- Row-major and Column-major in 2D Arrays
- Higher-order Functions
- Map and Reduce
cheatsheet
python
- Web Document Crawling and Tag Removal
- Reading Large
csv
Files at Once - Row and Column Merging with
numpy
Array - Swapping Two Variables
- Difference between
is
and==
- Three Ways to Pause a Program:
input()
,time.sleep()
,os.system("pause")
- Comprehensive Guide to the
os
Module - Comprehensive Guide to the
shutil
Module - Things to Watch Out for When Slicing
- Writing Multiple for-loops in One Line with
itertools.product()
- Solutions When npy Files Won’t Open
- Getting Column and Row Names in
pandas
Data Frames with.columns
,.index
- Indexing Arrays with Tuples
- Converting Strings like
"False"
,"no"
to BooleanFalse
withdistutils.util.strtobool()
- Clearing Previous Output and Displaying New Progress
- Python Library for Convenient Dictionary Use:
easydict
- Passing Input Arguments When Executing Python Files
- Getting PC Name with
os.getlogin()
- Checking the Operating System with
platform.system()
matplotlib ![](matplotlib.svg)
- Solving the Error: Fail to create pixmap with TK_GetPixmap in …
- Setting the Scale Range for Figures with
plt.clim(a,b)
- Drawing Vertical and Horizontal Lines with
plt.axvline()
,plt.axhline()
- Removing Axes with
plt.axis('off')
,plt.gca().axes.xaxis.set_visible(False)
- Drawing Subplots with
plt.subplot
- Drawing Subplots in Complex Layouts with
gridspec
- Drawing Overlapping Subplots or Subplots at Arbitrary Locations with
fig.add_axes
- Drawing Box Plots with
plt.boxplot
pip
MATLAB
MATLAB is a software developed by Mathworks, providing powerful matrix algebra and applications as a paid program. In fact, installing MATLAB is not exactly straightforward, but if you have a license, you can simply run it online through this link.
Tutorials
- How to comment and uncomment multiple lines at once with Ctrl+R, Ctrl+T
- How to save calculated data as an Excel file
- How to import data from Excel
- How to measure code execution time
- How to initialize the workspace and remove all variables
Matrix
- Functions related to the size and length of a matrix
- How to perform element-wise operations between two matrices
- Functions for creating special matrices
- How to select specific rows or columns of a matrix
- How to create equally spaced row vectors
Visualization
- List of special symbols available for graphs
- How to print multiple figures on one page
- How to specify graph color, line types, and marker types
Image Processing
OS
- Uploading and Downloading Files to/from a Server with scp
- Accessing SSH Servers via CLI
- Checking Text File Encoding in Terminal
window
- Setting up an ssh Server
- Getting File List from Command Prompt
- Installing Python TensorFlow
- Installing Python TensorFlow GPU
- Initial Setup for Windows 11
- System Restore with
rstrui
linux
In fact, for compiled languages, Linux is often more convenient than Windows.
Frontend
Javascript
- 🔒(24/09/17) Example of Changing Output with a Button
- 🔒(24/09/19) Using Functions Outside a Module with
window.f = _f
Program
Many people, upon first getting into coding, want to solve problems on their own with boundless confidence. However, a true expert knows when programming is needed and when it’s not. Knowing a few tips about some popular commercial programs can significantly improve work efficiency.
git
VS Code
Visual Studio Code is a text editor developed by Microsoft, and is currently the most widely used development environment.
- Changing the Default Terminal with
Ctrl+Shif+C
- 🔒(24/09/05) Default Snippet Path
- 🔒(24/09/09) Using Multiple Windows
- 🔒(24/09/13) Changing Auto-wrap Settings with Alt + z
All posts
- code summary
- Knuth's Up-Arrow Notation: Why ^ is Used for Exponentiation in Programming
- How to Change the Default Save Location for Excel, PowerPoint, and Word
- Reasons for Using the Format Codes d and f for Integers and Floating-Point Numbers
- Web Scraping and Removing Tags with Python
- How to Execute a.out after Compiling Fortran in Linux
- How to Install TensorFlow for Python on Windows
- How to Get a List of Files from Command Prompt in Windows
- How to Comment and Uncomment Multiple Lines at Once in MATLAB
- How to Save Data Calculated in MATLAB to an Excel File
- Importing Excel Data into MATLAB
- List of Special Symbols Available for Graphs in MATLAB
- How to Output Multiple Figures on One Page in MATLAB
- Matrix Size and Related Functions in MATLAB
- How to Perform Element-wise Operations on Two Matrices in MATLAB
- Creating Special Matrices in MATLAB
- Rotating an Image in MATLAB
- How to Specify Colors, Line Styles, and Marker Types in MATLAB Graphs
- Selecting Specific Rows and Columns in a Matrix in MATLAB
- How to Create Equally Spaced Row Vectors in MATLAB
- Programming Paradigm
- Programming Types
- First-Class Objects in Programming
- How to install the cv2 and PIL packages with pip in Python
- Reading Large CSV Files in Python at Once
- Merging Rows and Columns in numpy array in Python
- How to Swap the Values of Two Variables in Python
- Differences between is and == in Python
- Building an SSH Server on Windows
- Resizing Images in MATLAB
- Measuring Code Execution Time in MATLAB
- Uploading and Downloading Files to and from a Server using SCP
- Meta-Programming
- How to Initialize the Workspace and Remove All Variables in MATLAB
- Compiling C Code with GCC Compiler on Linux
- How to Print and Save a 2D Array as a Heatmap Image in MATLAB
- Equivalents Codes in Julia, MATLAB, Python, and R
- How to Save a Git Password
- Solution to the git warning: LF will be replaced by CRLF in …
- RGB Color Cheat Sheet
- Row-major and Column-major of 2D Arrays
- How to Solve the "Fail to create pixmap with TK_GetPixmap in TKImgPhotoInstanceSetSize" Error in Python matplotlib
- How to Initialize Swap Memory in Linux
- Installing TensorFlow GPU on Windows with Python
- Points to Note When Slicing in Python
- Three Ways to Pause a Program in Python
- Python OS Module Summary
- Writing Multiple for Loops in One Line Using Python
- Solutions When Python npy Files Won't Open
- Python shutil Module Summary
- How to Set Plot Scale Range in Python matplotlib
- How to Check Python Package, Library, and Module Versions
- How to Get Column and Row Labels of Data Frame in Python Pandas
- Drawing Vertical and Horizontal Lines in Python matplotlib
- How to Remove Axes in Python matplotlib
- How to Change the Default Terminal in VS Code with Ctrl+Shift+C
- How to Draw a Histogram in Excel
- Using Tuples for Indexing in Python
- How to Check Text File Encoding at the Terminal
- Higher-Order Functions in Programming
- Programming with Map and Reduce
- CSS color name tags
- How to Draw a Map in Excel
- Python Matplotlib Basics & Custom Line Styles
- Converting Strings like 'False', 'True' to Bool Type in Python
- How to Replace Existing Output with New Output in Python and Display Progress
- EasyDict: A Python Package for Convenient Dictionary Use
- How to Draw Subplots in Python matplotlib
- Drawing Subplots with Complex Layouts in Python matplotlib
- Drawing Subplots at Desired Arbitrary Locations or Overlapping in Python matplotlib
- How to Draw a Box Plot in Python matplotlib
- How to Pass Arguments When Executing a Python File
- Python's Command Line Parsing Module argparse
- Windows 11 Initial Setup
- How to Connect to an SSH Server via CLI
- Sampling with Replacement and without Replacement in Python
- How to Perform System Restore on Windows
- How to Get the PC Name in Python
- How to Check the Operating System in Python