Connect to server console. In my case, I just log in digitalocean and click console from my droplet. Check mysql status: sudo netstat -plt If we can’t see mysql appear in output from previous step, restart mysql manually: sudo systemctl start mysql Problem should be fixed if you are lucky đ
How to build VPN with Vultr and OpenVpn
Sign up and log in Vultr. Build a personal server. Pick Openvpn as server type from application. Save the openvpn username and password. Download OpenVpn application from Internet. Fill in IP address, username & password.
Spring – AOP
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 …