Jiayi's Blog

衣带渐宽终不悔,为伊消得人憔悴

LeetCode EFS

935. Knight Dialer     This question is a great example of seeing a problem from forward or backward!     Also, it looks like we should always think about separating the program into stages and t...

Aspect Oriented Programming

Spring with AspectJ

Resources Intro to AOP Spring AOP Reference & Tutorial Basic Idea of AOP     As shown in the above graph, the idea of AOP (Aspect Oriented Programming) is to cut the program running...

C++ Fundation

I need this language for interview but apparently a programming language is just a tool for development. We should focus more on how we can design a system/software with this language. Related...

Daily Programming Questions

646. Maximum Length of Pair Chain Just like other knowledge, it takes building blocks for analyzing. Now I’m not familiar enough for all these building blocks including dynamic programming and ...

Daily Programming Questions

1062. Longest Repeating Substring     The key idea used in this question is: Iterate over length of substring instead of every char / substring in the string. Consider the iterating of lengt...

IntelliJ IDEA Using Experiences

General Operations Note that all the below operations are based on MacOS. Preference     The preference window can be found at IntelliJ IDEA -> Preference. Project Structure     As show...

Maven Tutorial

Introductions to Maven This tutorial is a great resourse for learning maven basics, which also answered the following questions. What is building tool and why we need one How Maven work Fin...

Strust & Spring & Mybatis

Mybatis Some Operation For MySQL Check MySQL port: Firstly login to mysql with mysql -u root -p then use sql request SHOW GLOBAL VARIABLES LIKE 'PORT'; to get the port. Mybatis Major Procedu...

Java Database Connector - JDBC

MySQL Install MySQL Server     To play with JDBC, the first step is always to set up a database, for here, MySQL.     For MacOS, it is very convenient to set up MySQL with homebrew. Check this a...

Tomecat & Java Servlet & JSP

This post is based on How2J tutorial and the offcial website of Apache Tomecat. Set Up Tomcat Web Server In unix system, to bind webserver with port number less than 1024, we need to sudo ...