Aspect Oriented Programming with Spring Aspect-oriented Programming (AOP) complements Object-oriented Programming (OOP) by providing another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns (such as transaction management) that cut across multiple …
Spring – IoC
Introduction This Blog covers the Spring Framework implementation of the Inversion of Control (IoC) principle. From Spring official document, IoC is also known as dependency injection (DI). It is a process whereby objects define their dependencies (that is, the other objects they work with) only through constructor arguments, arguments to a factory method, or properties …
When ImageView doesn’t display in emulator in Android Studio
In ImageView there is two options src and srcCompact. Try both of them to find out which is working. android:src="@drawable/pic" and app:srcCompat="@drawable/pic"
How To Customize Spring Project Launch Banner
When we luanch Spring Project, we could saw Spring Banner in our console as below: What if we want to customize this banner using personal name、company name or even some interesting picture? First we should use this website to transfer text to ASCII. Then we could copy the ASCII content generated and paste it into …
Continue reading “How To Customize Spring Project Launch Banner”
Intent In Android Studio
Build an intent An Intent is an object that provides runtime binding between separate components, such as two activities. The Intent represents an app’s intent to do something. You can use intents for a wide variety of tasks, but in this lesson, your intent starts another activity. In MainActivity, add the EXTRA_MESSAGE constant and the …
Question Mark in Kotlin
While I am learning Kotlin, I notice some variables appended by a question mark. It is not common in other programming languages, so I do some search and got answer from Google. In Kotlin, programmer could express nullability explicitly in the type of a variable. By appending a question mark to the type, we let …
Setting Up Firebase For Android Studio Project
1. Go to Firebase and sign in. Click "go to console" on the right top corner and Add project. 2. Then we could add Firebase to our Android App. 3. Follow the instruction and add necessary codes, then we can go to the project.
Setting Up Parse Server On AWS
Parse Platform is an Open Source Project which could help people develop and manage the back-end of their personal project. I will make a note about how to set up a parse server on Amazon AWS. 1.Sign up an AWS account and log in. 2.Access the AWS dashboard and find EC2 under Computer from Service …
What is Morris traversal?
Morris (InOrder) traversal is a tree traversal algorithm that does not employ the use of recursion or a stack. In this traversal, links are created as successors and nodes are printed using these links. Finally, the changes are reverted back to restore the original tree. Algorithm Initialize current as root While current is not NULL …
How to delete trash files as “~$.doc/xlsx” on Mac
Today I noticed when I typed "ls" in my terminal, some weird files pop up on my terminal. Their format looks like "~$ a.doc" or "~$ b.xlsx". I think their are some remain trash files for which office files that I have deleted or moved away. I tried to delete then using "rm" command but …
Continue reading “How to delete trash files as “~$.doc/xlsx” on Mac”