[NOTE] Không thể cài đặt được Oracle JDK từ PPA kể từ 16/04/2019 (Đã có PPA thay thế)

Fix: 
Có một số nguồn PPA thay thế cho việc cài đặt này.
Trong đó có thể xài đến PPA của “Hellenic Schools Technical Support Team” team như sau.
sudo add-apt-repository ppa:ts.sch.gr/ppa
sudo apt-get update
sudo apt-get install oracle-java8-installer
Last check: 07/10/2019 vẫn còn hoạt động tốt với Oracle Java 8.
Nguồn: https://askubuntu.com/questions/1139387/update-to-latest-version-of-java-after-ppa-is-discontinued

_________________________________________________________________________________
Do License của Oracle thay đổi nên kể từ ngày 16/04/2019 chúng ta chỉ có thể cài Oracle JDK từ trang chủ của Oracle (Yêu cầu login bởi tài khoản Oracle).

Nguyên văn thông tin Official:
"The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here.

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation)."


Cách đơn giản để tạo ssh shortcut (alias)

Thông thường các đơn giản nhất để tạo shortcut cho ssh command là thêm alias vào file .bashrc hoặc config theo user trong file ~/.ssh/config.
Nhưng nếu bạn quản lý quá nhiều server ip và user truy cập tương tự nhau (như trong trường hợp của mình) thì cách đơn giản là tạo một function để làm shortcut như sau:
Bên mình có một chuỗi server dạng: 10.0.x.x, user để truy cập là quangdeptrai.
Các bước như sau: (Mình sử dụng ubuntu, các nền tảng linux khác cơ bản tương tự nhưng có thể file .bashrc được thay bằng file khác tương tự)

vim ~/.bashrc (có thể dùng editor khác ngoài vim nếu bạn thích, file .bashrc này sẽ chỉ apply cho user login hiện tại trên hệ thống).

Thêm vào function:
#Connect with quangdeptrai
function sshc(){ #tên function cũng là tên của alias
 ssh quangdeptrai@10.0.$1.$2 # $1 và $2 lần lượt là tham số truyền vào.
}

Lưu file lại và gõ lệnh "source ~/.bashrc" để apply kết quả.
Thử connect vào server: 10.0.1.15 bằng lệnh. "sshc 1 15" => nếu ok thì done.




IntelliJ IDEA - Java Developer IDE

In the Java world, there are many support tools for building and debugging applications. With the diversity that gives users more choice, but it's also difficult for beginners, They don't know what tools are optimal and most appropriate for themselves.
Through my work, I would like to introduce to the IntelliJ IDEA tool - a powerful support tool for Java programmers.
To download and install the application, let us visit the download page of the application. Press releases download absolutely free Community Edition.


After downloaded the installation file, click and install according to instructions on the display (If you are unsure, just click the Next button until the finish).
The installation is completed, you will see the interface as shown below: 

Create New Project: Create any new Project,
Import Project: import Eclipse project.
Open: Open exists project from the drive.
The next step we will generate Java Hello World application test first.
Click button Create New Project:
Select the Java JDK from the drive where you have downloaded and installed earlier (If not, you can download and install it here).
Click Next Button.
Tick checkbox "Create project from template". This will create a simple Java application that includes a class with main() method.
Continue click next button. 

Project named according your hobby and click finish.
Follow the tips to know the features of the IDE. After finished, You will see a great interface and professionally to develop applications.

Follow the simple code to show "hello world!" on a terminal.
Click Tab Run/ Run 'main' or green triangle button right corner of the toolbar to run the program.

The end, we will see "Hello World!" printed on the terminal screen as below.


After completing all the above steps, you know how to install and create the first application using IntelliJ IDE simplest.
As for the features of the tool, I will introduce in the next articles.
Thank you, if you have any questions please leave a comment.


Welcome to quangspace blog!

Quangspace is a place to keep and share all the knowledge and tricks that I have learned and summarize the research process and my work.
My articles will focus on web technology, backend, especially Java, in addition I will share all knowledge related to the backend and web  frontend as NodeJS, PHP, angularJS,  HTML / CSS ...
Please leave a comment and share what you want, I will try to help the best of my ability. I hope you will support yourself so I have the opportunity to share more and more knowledge for everyone.
Through this blog, I hope that it will be helpful for everyone to contribute to the development of community and social programming.